[client] Add in:favorites and in:bookmarks to FTS filter menu

This commit is contained in:
Laura Hausmann 2023-11-19 00:40:24 +01:00
parent ee4b58dee8
commit dcee692caf
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 17 additions and 0 deletions

View file

@ -1505,6 +1505,8 @@ _filters:
fromUser: "From user"
replyTo: "Replying to"
mentioning: "Mentioning"
inFavorites: "Favorited"
inBookmarks: "Bookmarked"
withFile: "Has attachment"
fromDomain: "Specific instance only"
notesBefore: "Posts before"

View file

@ -88,6 +88,21 @@ async function openSearchFilters(ev) {
},
},
null,
{
icon: "ph-star ph-bold ph-lg",
text: i18n.ts._filters.inFavorites,
action: () => {
appendSearchFilter("in:favorites");
},
},
{
icon: "ph-bookmark-simple ph-bold ph-lg",
text: i18n.ts._filters.inBookmarks,
action: () => {
appendSearchFilter("in:bookmarks");
},
},
null,
{
type: "parent",
text: i18n.ts._filters.withFile,