comment-filter-fix
All checks were successful
Deploy to core / deploy (push) Successful in 1m41s

This commit is contained in:
Untone 2024-02-03 12:10:38 +03:00
parent dea03ffa4c
commit 7f04eba208

View File

@ -288,7 +288,7 @@ def apply_reaction_filters(by, q):
q = q.filter(Shout.topics.contains(topic)) q = q.filter(Shout.topics.contains(topic))
if by.get('comment', False): if by.get('comment', False):
q = q.filter(func.length(str(Reaction.body)) > 0) q = q.filter(Reaction.kind == ReactionKind.COMMENT.value)
by_search = by.get('search', '') by_search = by.get('search', '')
if len(by_search) > 2: if len(by_search) > 2: