This commit is contained in:
Deva Midhun 2025-04-25 12:27:16 +05:30
parent d5aa69ba98
commit faaef129e8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { Handler } from '@netlify/functions';
import { firestore } from '../../../lib/firebase';
import { generateActor } from '../../../lib/actor';
import { fetchActorInformation } from '../../../lib/activitypub/utils/fetchActorInformation';
const handler: Handler = async (event, context) => {
const [, , username] = event.path.split('/'); // /users/:username/followers
@ -16,7 +16,7 @@ const handler: Handler = async (event, context) => {
href: doc.data().follower,
}));
const actor = await generateActor(username);
const actor = await fetchActorInformation(username);
return {
statusCode: 200,

View File

@ -1,6 +1,6 @@
import { Handler } from '@netlify/functions';
import { firestore } from '../../../lib/firebase';
import { verifySignature } from '../../../lib/verify';
import { verifySignature } from '../../../lib/activitypub/utils/verifySignature.js';
import { handleFollow } from '../../../lib/handleFollow';
const handler: Handler = async (event, context) => {