Skip to content

Commit

Permalink
Add "Exclude posts liked by users" filter to the advanced form
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Oct 31, 2024
1 parent 9ea9a79 commit 4895be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/advanced-search-form/advanced-search-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ export function AdvancedSearchForm() {
placeholder="user1, user2"
filter="-commented-by:"
/>
<TextInput
label="Exclude posts liked by users"
placeholder="user1, user2"
filter="-liked-by:"
/>
<ChooseInput label="Exclude posts with attachments" filter="-has:">
<option value="">Don&#x2019;t exclude</option>
<option value="images">Images</option>
Expand Down
1 change: 1 addition & 0 deletions src/components/advanced-search-form/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const usernameFilters = new Set([
'-in:',
'-from:',
'-commented-by:',
'-liked-by:',
]);

export function usernames(text = '') {
Expand Down

0 comments on commit 4895be0

Please sign in to comment.