1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2018-04-09 05:34:33 +09:00
parent 44e5ae110e
commit 6b1dc866a8

View File

@ -8,10 +8,6 @@ import { IAnnounce } from '../../type';
const log = debug('misskey:activitypub'); const log = debug('misskey:activitypub');
export default async (actor: IRemoteUser, activity: IAnnounce): Promise<void> => { export default async (actor: IRemoteUser, activity: IAnnounce): Promise<void> => {
if ('actor' in activity && actor.uri !== activity.actor) {
throw new Error('invalid actor');
}
const uri = activity.id || activity; const uri = activity.id || activity;
log(`Announce: ${uri}`); log(`Announce: ${uri}`);