Accept Article object (#4499)

This commit is contained in:
MeiMei 2019-03-15 00:23:24 +09:00 committed by syuilo
parent 68d43e43b6
commit 56eb896a03
7 changed files with 13 additions and 11 deletions

View file

@ -24,10 +24,8 @@ export default async (actor: IRemoteUser, activity: IAnnounce): Promise<void> =>
switch (object.type) {
case 'Note':
announceNote(resolver, actor, activity, object as INote);
break;
case 'Question':
case 'Article':
announceNote(resolver, actor, activity, object as INote);
break;