Filter statuses by full acct with @ symbol

virtualized-window
Alex Gleason 2022-03-26 11:17:27 -05:00
rodzic 24a78f7740
commit f83119bfc9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

@ -143,15 +143,13 @@ Promoting free speech, even for people and ideas you dislike`;
const expected = `DMs are definitely only federated to the servers of the recipients tho. So if I DM a kfcc user, the kfcc admins can see it, but no other instance admins can. const expected = `DMs are definitely only federated to the servers of the recipients tho. So if I DM a kfcc user, the kfcc admins can see it, but no other instance admins can.
@crunklord420@kiwifarms.cc
@becassine@kiwifarms.cc
crunklord420 @King_Porgi@poa.st
becassine @ademan@thebag.social`;
King_Porgi
ademan`;
const result = reducer(undefined, action).getIn(['AHcweewcCh0iPUtMdk', 'search_index']); const result = reducer(undefined, action).getIn(['AHcweewcCh0iPUtMdk', 'search_index']);
expect(result).toEqual(expected); expect(result).toEqual(expected);

Wyświetl plik

@ -60,7 +60,7 @@ const getPollOptionTitles = ({ poll }: StatusRecord): ImmutableList<string> => {
// Gets usernames of mentioned users from status // Gets usernames of mentioned users from status
const getMentionedUsernames = (status: StatusRecord): ImmutableList<string> => { const getMentionedUsernames = (status: StatusRecord): ImmutableList<string> => {
return status.mentions?.map(({ username }: { username: string }) => username); return status.mentions.map(({ acct }) => `@${acct}`);
}; };
// Creates search text from the status // Creates search text from the status