/share page doesn't wrap title in brackets

ref: https://box.neachi.net/notes/9jnyy34gvpahjqlx
This commit is contained in:
Kainoa Kanter 2023-09-15 18:45:50 +00:00
parent 980addc1fa
commit 493971480c

View File

@ -65,7 +65,7 @@ const visibleUsers = ref([] as Misskey.entities.User[]);
async function init() {
let noteText = "";
if (title.value) noteText += `[ ${title.value} ]\n`;
if (title.value) noteText += `${title.value}\n`;
// Google
if (text?.startsWith(`${title.value}.\n`))
noteText += text.replace(`${title.value}.\n`, "");