forked from rDrama/rDrama
commentsaverelationship
parent
a76344f7d0
commit
1e9f9564dc
|
@ -919,11 +919,11 @@ def user_profile_name(username):
|
||||||
|
|
||||||
def get_saves_and_subscribes(v, template, relationship_cls, page:int, standalone=False):
|
def get_saves_and_subscribes(v, template, relationship_cls, page:int, standalone=False):
|
||||||
PAGE_SIZE = 25
|
PAGE_SIZE = 25
|
||||||
if relationship_cls in (SaveRelationship, Subscription):
|
if relationship_cls in [SaveRelationship, Subscription]:
|
||||||
query = relationship_cls.submission_id
|
query = relationship_cls.submission_id
|
||||||
join = relationship_cls.post
|
join = relationship_cls.post
|
||||||
cls = Submission
|
cls = Submission
|
||||||
elif relationship_cls in (CommentSaveRelationship):
|
elif relationship_cls is CommentSaveRelationship:
|
||||||
query = relationship_cls.comment_id
|
query = relationship_cls.comment_id
|
||||||
join = relationship_cls.comment
|
join = relationship_cls.comment
|
||||||
cls = Comment
|
cls = Comment
|
||||||
|
|
Loading…
Reference in New Issue