forked from FoundKeyGang/FoundKey
extract note URLs from Activity
This commit is contained in:
parent
9ca504784a
commit
d92d389cda
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ export default async (actor: CacheableRemoteUser, activity: IFlag): Promise<stri
|
||||||
targetUserHost: users[0].host,
|
targetUserHost: users[0].host,
|
||||||
reporterId: actor.id,
|
reporterId: actor.id,
|
||||||
reporterHost: actor.host,
|
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`;
|
return `ok`;
|
||||||
|
|
Loading…
Reference in a new issue