fix: type parameter in filter:parse.post listener so that it expects it to be in data parameter instead of separate parameter

This commit is contained in:
Julian Lam 2024-11-13 12:27:20 -05:00 committed by Peter Jaszkowiak
parent 4ddcbba7e4
commit 252d6b101e

View file

@ -223,8 +223,8 @@ export function raw(content: string): Promise<string> {
return parse(content);
}

export async function post(data: { postData: { content: string } }, type: string): Promise<any> {
if (type === 'activitypub.note') {
export async function post(data: { postData: { content: string }, type: string }): Promise<any> {
if (data.type === 'activitypub.note') {
return data;
}