fdsfddfs
This commit is contained in:
parent
d006ed0896
commit
e35cbd9147
8 changed files with 23 additions and 25 deletions
|
@ -350,9 +350,7 @@ def edit_post(pid, v):
|
|||
notify_users.add(541)
|
||||
if ('idio3' in f'{body_html}{title}'.lower() or 'idio ' in f'{body_html}{title}'.lower()) and 30 not in notify_users: notify_users.add(30)
|
||||
|
||||
for x in notify_users:
|
||||
existing = g.db.query(Comment.id).filter(Comment.author_id == NOTIFICATIONS_ID, Comment.body == message, Comment.notifiedto == x).first()
|
||||
if not existing: send_notification(x, message)
|
||||
for x in notify_users: send_notification(x, message)
|
||||
|
||||
|
||||
if (title != p.title or body != p.body) and v.id == p.author_id:
|
||||
|
@ -544,7 +542,7 @@ def submit_post(v):
|
|||
url = url.replace("old.reddit.com/gallery", "new.reddit.com/gallery")
|
||||
|
||||
url = url.replace("https://mobile.twitter.com", "https://twitter.com").replace("https://m.facebook", "https://facebook").replace("https://m.wikipedia", "https://wikipedia").replace("https://m.youtube", "https://youtube")
|
||||
|
||||
|
||||
if url.startswith("https://streamable.com/") and not url.startswith("https://streamable.com/e/"): url = url.replace("https://streamable.com/", "https://streamable.com/e/")
|
||||
|
||||
parsed_url = urlparse(url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue