mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
✌️
This commit is contained in:
parent
8e6a772701
commit
0831159853
@ -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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user