forked from rDrama/rDrama
1
0
Fork 0

delete alt cache when delinking alts

master
Aevann 2023-06-23 14:45:17 +03:00
parent 2452f94231
commit 3dfd56c352
1 changed files with 6 additions and 0 deletions

View File

@ -717,6 +717,12 @@ def admin_delink_relink_alt(v:User, username, other):
if not a: abort(404)
g.db.delete(a)
cache.delete_memoized(get_alt_graph_ids, user1.id)
cache.delete_memoized(get_alt_graph_ids, user2.id)
check_for_alts(user1)
check_for_alts(user2)
ma = ModAction(
kind=f"delink_accounts",
user_id=v.id,