extract note URLs from Activity

This commit is contained in:
Johann150 2022-01-20 20:46:54 +01:00
parent 9ca504784a
commit d92d389cda
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -23,7 +23,8 @@ export default async (actor: CacheableRemoteUser, activity: IFlag): Promise<stri
targetUserHost: users[0].host,
reporterId: actor.id,
reporterHost: actor.host,
comment: `${activity.content}\n${JSON.stringify(uris, null, 2)}`,
comment: activity.content,
urls: uris.filter(uri => !uri.startsWith(config.url + '/users/')),
});
return `ok`;