diff --git a/files/routes/users.py b/files/routes/users.py index 0cc664c54..0a7ce9416 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -919,11 +919,11 @@ def user_profile_name(username): def get_saves_and_subscribes(v, template, relationship_cls, page:int, standalone=False): PAGE_SIZE = 25 - if relationship_cls in (SaveRelationship, Subscription): + if relationship_cls in [SaveRelationship, Subscription]: query = relationship_cls.submission_id join = relationship_cls.post cls = Submission - elif relationship_cls in (CommentSaveRelationship): + elif relationship_cls is CommentSaveRelationship: query = relationship_cls.comment_id join = relationship_cls.comment cls = Comment