[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
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 17 additions and 0 deletions

View file

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

View file

@ -88,6 +88,21 @@ async function openSearchFilters(ev) {
}, },
}, },
null, 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", type: "parent",
text: i18n.ts._filters.withFile, text: i18n.ts._filters.withFile,