Move template management to settings (#5811)

This commit is contained in:
Tom Moor
2023-09-10 15:46:12 -04:00
committed by GitHub
parent ac068c0c07
commit 0856f5f6ae
32 changed files with 432 additions and 267 deletions

View File

@@ -6,6 +6,7 @@ type Props = {
id?: string;
urlId?: string;
title: string;
emoji?: string;
text?: string;
state?: Buffer;
publish?: boolean;
@@ -28,6 +29,7 @@ type Props = {
export default async function documentCreator({
title = "",
text = "",
emoji,
state,
id,
urlId,
@@ -81,6 +83,7 @@ export default async function documentCreator({
fullWidth,
publishedAt,
importId,
emoji: templateDocument ? templateDocument.emoji : emoji,
title: templateDocument
? DocumentHelper.replaceTemplateVariables(templateDocument.title, user)
: title,