commentsaverelationship

master
justcool393 2022-11-01 12:19:21 -05:00
parent a76344f7d0
commit 1e9f9564dc
1 changed files with 2 additions and 2 deletions

View File

@ -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