forked from FoundKeyGang/FoundKey
fix missing variable in processContent
This commit is contained in:
parent
f00b3cc378
commit
bed8286175
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ export function validateNote(object: IObject): Error | null {
|
||||||
/**
|
/**
|
||||||
* Function to process the content of a note, reusable in createNote and updateNote.
|
* Function to process the content of a note, reusable in createNote and updateNote.
|
||||||
*/
|
*/
|
||||||
async function processContent(note: IPost, quoteUri: string | null):
|
async function processContent(actor: IRemoteUser, note: IPost, quoteUri: string | null):
|
||||||
Promise<{
|
Promise<{
|
||||||
cw: string | null,
|
cw: string | null,
|
||||||
files: DriveFile[],
|
files: DriveFile[],
|
||||||
|
@ -258,7 +258,7 @@ export async function createNote(value: string | IObject, resolver: Resolver, si
|
||||||
|
|
||||||
const poll = await extractPollFromQuestion(note, resolver).catch(() => undefined);
|
const poll = await extractPollFromQuestion(note, resolver).catch(() => undefined);
|
||||||
|
|
||||||
const processedContent = await processContent(note, quote?.uri);
|
const processedContent = await processContent(actor, note, quote?.uri);
|
||||||
|
|
||||||
if (isTalk) {
|
if (isTalk) {
|
||||||
for (const recipient of visibleUsers) {
|
for (const recipient of visibleUsers) {
|
||||||
|
|
Loading…
Reference in a new issue