This commit is contained in:
parent
e0df7e7436
commit
1110f7d8ec
|
@ -344,7 +344,7 @@ def apply_reaction_filters(by, q):
|
||||||
q = q.filter(Author.id == created_by)
|
q = q.filter(Author.id == created_by)
|
||||||
|
|
||||||
topic = by.get('topic', None)
|
topic = by.get('topic', None)
|
||||||
if topic:
|
if isinstance(topic, int):
|
||||||
q = q.filter(Shout.topics.any(id=topic))
|
q = q.filter(Shout.topics.any(id=topic))
|
||||||
|
|
||||||
if by.get('comment', False):
|
if by.get('comment', False):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user