mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-emoji.git
synced 2025-10-04 01:20:58 +08:00
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:
parent
4ddcbba7e4
commit
252d6b101e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue