1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-27 22:59:28 -05:00
This commit is contained in:
syuilo 2018-06-13 05:15:26 +09:00
parent 1472f0b141
commit 80c52433cc

View file

@ -15,6 +15,11 @@ const log = debug('misskey:activitypub');
export default async function(resolver: Resolver, actor: IRemoteUser, activity: IAnnounce, note: INote): Promise<void> {
const uri = activity.id || activity;
// アナウンサーが凍結されていたらスキップ
if (actor.isSuspended) {
return;
}
if (typeof uri !== 'string') {
throw new Error('invalid announce');
}