mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 23:43:09 +02:00
✌️
This commit is contained in:
parent
d8a87379ca
commit
cf5b679117
1 changed files with 0 additions and 4 deletions
|
@ -9,10 +9,6 @@ import { ICreate } from '../../type';
|
||||||
const log = debug('misskey:activitypub');
|
const log = debug('misskey:activitypub');
|
||||||
|
|
||||||
export default async (actor: IRemoteUser, activity: ICreate): Promise<void> => {
|
export default async (actor: IRemoteUser, activity: ICreate): 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(`Create: ${uri}`);
|
log(`Create: ${uri}`);
|
||||||
|
|
Loading…
Reference in a new issue