prevent LLM alts from being linked with him

master
Aevann1 2022-12-22 00:19:14 +02:00
parent 97e3623ef0
commit 49cae21709
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ def check_for_alts(current:User, include_current_session=True):
past_accs = set(session.get("history", [])) if include_current_session else set()
def add_alt(user1:int, user2:int):
if SITE == 'rdrama.net' and (user1 == 3161 or user2 == 3161): return
if SITE == 'rdrama.net' and (user1 in (253,3161) or user2 in (253,3161)): return
li = [user1, user2]
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).one_or_none()
if not existing:

View File

@ -1156,7 +1156,7 @@ def subscribed_posts(v:User, username):
@app.post("/fp/<fp>")
@auth_required
def fp(v:User, fp):
if SITE == 'rdrama.net' and v.id == 3161:
if SITE == 'rdrama.net' and v.id in (253,3161):
return '', 204
v.fp = fp
@ -1168,7 +1168,7 @@ def fp(v:User, fp):
print(f'{v.username}: email', flush=True)
users += alts
for u in users:
if SITE == 'rdrama.net' and u.id == 3161: continue
if SITE == 'rdrama.net' and u.id in (253,3161): continue
li = [v.id, u.id]
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).one_or_none()
if existing: continue