forked from rDrama/rDrama
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4198466#context
parent
ac4f9c1c01
commit
9ef00b7f0e
|
@ -25,7 +25,7 @@ def normalize_urls_runtime(body, v):
|
|||
if v.nitter:
|
||||
body = twitter_to_nitter_regex.sub(r'\1https://nitter.lacontrevoie.fr/', body)
|
||||
if v.imginn:
|
||||
body = body.replace('https://instagram.com/p/', 'https://imginn.com/p/')
|
||||
body = body.replace('https://instagram.com/', 'https://imginn.com/')
|
||||
return body
|
||||
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ def archive_url(url):
|
|||
url = url.replace('https://twitter.com/', 'https://nitter.lacontrevoie.fr/')
|
||||
gevent.spawn(_archiveorg, url)
|
||||
if url.startswith('https://instagram.com/'):
|
||||
url = url.replace('https://instagram.com/p/', 'https://imginn.com/p/')
|
||||
url = url.replace('https://instagram.com/', 'https://imginn.com/')
|
||||
gevent.spawn(_archiveorg, url)
|
||||
|
||||
def snappy_report(post, reason):
|
||||
|
|
Loading…
Reference in New Issue