mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-22 03:13:02 +00:00
Fix empty search showing tags without bookmarks
This commit is contained in:
parent
4c038f8157
commit
b58633c377
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ def query_tags(user: User, query_string: str):
|
|||
# Filter for user
|
||||
query_set = query_set.filter(owner=user)
|
||||
|
||||
# Only show tags which have bookmarks
|
||||
query_set = query_set.filter(bookmark__isnull=False)
|
||||
|
||||
# Split query into search terms and tags
|
||||
query = _parse_query_string(query_string)
|
||||
|
||||
|
|
Loading…
Reference in a new issue