forked from FoundKeyGang/FoundKey
Johann150
36a0e48e49
There are still many places where import paths with `..` are used and maybe should use absolute paths also.
20 lines
609 B
TypeScript
20 lines
609 B
TypeScript
import { CacheableRemoteUser } from '@/models/entities/user.js';
|
|
import { apLogger } from '@/remote/activitypub/logger.js';
|
|
import Resolver from '@/remote/activitypub/resolver.js';
|
|
import { IAnnounce, getApId } from '@/remote/activitypub/type.js';
|
|
import announceNote from './note.js';
|
|
|
|
const logger = apLogger;
|
|
|
|
export default async (actor: CacheableRemoteUser, activity: IAnnounce): Promise<void> => {
|
|
const uri = getApId(activity);
|
|
|
|
logger.info(`Announce: ${uri}`);
|
|
|
|
const resolver = new Resolver();
|
|
|
|
const targetUri = getApId(activity.object);
|
|
|
|
announceNote(resolver, actor, activity, targetUri);
|
|
};
|