mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Refactor
This commit is contained in:
parent
ee85f38eba
commit
3f85ae0fbf
@ -1,11 +1,12 @@
|
||||
import Resolver from '../../resolver';
|
||||
import deleteNote from './note';
|
||||
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) {
|
||||
throw new Error('invalid actor');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user