feat: allow user.search to handle remote handles, beginning of mentions support

This commit is contained in:
Julian Lam
2024-03-05 09:56:15 -05:00
parent 07c1ea2876
commit 1b64fdb5b3
6 changed files with 75 additions and 8 deletions

View File

@@ -111,6 +111,8 @@ User.getUidByUserslug = async function (userslug) {
return 0;
}
// fix this! Forces a remote call, this is bad. Should be done in actors.assert
// then mentions. should return actor uri or url or something to parsePost.
if (userslug.includes('@')) {
const { actorUri } = await activitypub.helpers.query(userslug);
return actorUri;