forked from FoundKeyGang/FoundKey
Refactor
This commit is contained in:
parent
b98e67bca4
commit
a34710fea9
1 changed files with 2 additions and 1 deletions
|
@ -1,11 +1,12 @@
|
||||||
import Resolver from '../../resolver';
|
import Resolver from '../../resolver';
|
||||||
import deleteNote from './note';
|
import deleteNote from './note';
|
||||||
import Post from '../../../../models/post';
|
import Post from '../../../../models/post';
|
||||||
|
import { IRemoteUser } from '../../../../models/user';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 削除アクティビティを捌きます
|
* 削除アクティビティを捌きます
|
||||||
*/
|
*/
|
||||||
export default async (actor, activity): Promise<void> => {
|
export default async (actor: IRemoteUser, activity): Promise<void> => {
|
||||||
if ('actor' in activity && actor.account.uri !== activity.actor) {
|
if ('actor' in activity && actor.account.uri !== activity.actor) {
|
||||||
throw new Error('invalid actor');
|
throw new Error('invalid actor');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue