following holes has nothing to do with the frontpage

pull/202/head
Aevann 2023-09-18 14:37:11 +03:00
parent 0b375b2269
commit 1ba8cc038a
1 changed files with 0 additions and 2 deletions

View File

@ -182,7 +182,6 @@ def follow_sub(v, sub):
if not existing:
subscription = SubSubscription(user_id=v.id, sub=sub.name)
g.db.add(subscription)
cache.delete_memoized(frontlist)
return {"message": f"/h/{sub} followed successfully!"}
@ -197,7 +196,6 @@ def unfollow_sub(v, sub):
subscription = g.db.query(SubSubscription).filter_by(user_id=v.id, sub=sub.name).one_or_none()
if subscription:
g.db.delete(subscription)
cache.delete_memoized(frontlist)
return {"message": f"/h/{sub} unfollowed successfully!"}