mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-06 07:04:24 +01:00
nostr-to-activitypub.ts --> activitypub/actor.ts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { findUser } from '@/db/users.ts';
|
||||
import { getAuthor } from '@/queries.ts';
|
||||
import { activityJson } from '@/utils/web.ts';
|
||||
import { toActor } from '@/views/nostr-to-activitypub.ts';
|
||||
import { renderActor } from '@/views/activitypub/actor.ts';
|
||||
|
||||
import type { AppContext, AppController } from '@/app.ts';
|
||||
|
||||
@@ -14,7 +14,7 @@ const actorController: AppController = async (c) => {
|
||||
const event = await getAuthor(user.pubkey);
|
||||
if (!event) return notFound(c);
|
||||
|
||||
const actor = await toActor(event, user.username);
|
||||
const actor = await renderActor(event, user.username);
|
||||
if (!actor) return notFound(c);
|
||||
|
||||
return activityJson(c, actor);
|
||||
|
||||
Reference in New Issue
Block a user