From 1ba8cc038ab8a417f5f4dd311ce268ce62bf044f Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 18 Sep 2023 14:37:11 +0300 Subject: [PATCH] following holes has nothing to do with the frontpage --- files/routes/subs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index dfc80cac1..ce9dda674 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -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!"}