Filter statuses by full acct with @ symbol

virtualized-window
Alex Gleason 3 years ago
parent 24a78f7740
commit f83119bfc9
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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.
@crunklord420@kiwifarms.cc
@becassine@kiwifarms.cc
crunklord420
@King_Porgi@poa.st
becassine
King_Porgi
ademan`;
@ademan@thebag.social`;
const result = reducer(undefined, action).getIn(['AHcweewcCh0iPUtMdk', 'search_index']);
expect(result).toEqual(expected);

@ -60,7 +60,7 @@ const getPollOptionTitles = ({ poll }: StatusRecord): ImmutableList<string> => {
// Gets usernames of mentioned users from status
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

Loading…
Cancel
Save