mirror of
https://github.com/turbomaster95/coderrrrr.git
synced 2025-05-11 04:30:14 +00:00
update
This commit is contained in:
parent
d5aa69ba98
commit
faaef129e8
@ -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,
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user