Strip `mobile.' subdomain in nitter.net URLs - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit ccd655075343b8930f8ae57d979cf77f9a43efaf DIR parent 600107d75422aa4aeacd54849c19900779f0ed6b HTML Author: Leonardo Taccari <iamleot@gmail.com> Date: Fri, 8 May 2020 15:29:00 +0200 Strip `mobile.' subdomain in nitter.net URLs Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-start-services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -126,7 +126,7 @@ then else case "${uri}" in *twitter.com*) - nurl="$(printf "%s\n" "${uri}" | sed 's,twitter\.com,nitter\.net,')" + nurl="$(printf "%s\n" "${uri}" | sed 's;\(mobile\.\)\{0,1\}twitter\.com;nitter\.net;')" spurl="$(screenshot-paste "${nurl}")" annna-say -c '#bitreich-en' "nitter: ${nurl}"