fdsfds
This commit is contained in:
parent
f1f44ee3dd
commit
4e90a17314
14 changed files with 84 additions and 184 deletions
|
@ -217,12 +217,7 @@ def settings_profile_post(v):
|
|||
error="Your friends list is too long")
|
||||
|
||||
|
||||
notify_users = NOTIFY_USERS(friends_html, v.id)
|
||||
soup = BeautifulSoup(friends_html, features="html.parser")
|
||||
for mention in soup.find_all("a", href=re.compile("^/@(\w+)")):
|
||||
username = mention["href"].split("@")[1]
|
||||
user = g.db.query(User).filter_by(username=username).first()
|
||||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||
notify_users = NOTIFY_USERS(friends_html, v)
|
||||
|
||||
cid = notif_comment(f"@{v.username} has added you to their friends list!")
|
||||
|
||||
|
@ -264,12 +259,7 @@ def settings_profile_post(v):
|
|||
error="Your enemies list is too long")
|
||||
|
||||
|
||||
notify_users = NOTIFY_USERS(enemies_html, v.id)
|
||||
soup = BeautifulSoup(enemies_html, features="html.parser")
|
||||
for mention in soup.find_all("a", href=re.compile("^/@(\w+)")):
|
||||
username = mention["href"].split("@")[1]
|
||||
user = g.db.query(User).filter_by(username=username).first()
|
||||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||
notify_users = NOTIFY_USERS(enemies_html, v)
|
||||
|
||||
cid = notif_comment(f"@{v.username} has added you to their enemies list!")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue