From 4895be0e5b39aaeedd8510fbf6d8ba699f52ff5b Mon Sep 17 00:00:00 2001 From: David Mzareulyan Date: Thu, 31 Oct 2024 21:38:23 +0300 Subject: [PATCH] Add "Exclude posts liked by users" filter to the advanced form --- src/components/advanced-search-form/advanced-search-form.jsx | 5 +++++ src/components/advanced-search-form/helpers.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/components/advanced-search-form/advanced-search-form.jsx b/src/components/advanced-search-form/advanced-search-form.jsx index 52e72537..19c55579 100644 --- a/src/components/advanced-search-form/advanced-search-form.jsx +++ b/src/components/advanced-search-form/advanced-search-form.jsx @@ -194,6 +194,11 @@ export function AdvancedSearchForm() { placeholder="user1, user2" filter="-commented-by:" /> + diff --git a/src/components/advanced-search-form/helpers.js b/src/components/advanced-search-form/helpers.js index 96bdfa99..d7e3dbfe 100644 --- a/src/components/advanced-search-form/helpers.js +++ b/src/components/advanced-search-form/helpers.js @@ -56,6 +56,7 @@ export const usernameFilters = new Set([ '-in:', '-from:', '-commented-by:', + '-liked-by:', ]); export function usernames(text = '') {