hotfix: only insert hashtags when provided

pull/277/head
Sven Sauleau 2023-02-13 15:58:02 +00:00
rodzic d8e99e871b
commit 3d6393eda2
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -115,7 +115,9 @@ export async function handleRequest(
const note = await createStatus(domain, db, connectedActor, content, mediaAttachments, extraProperties)
await insertHashtags(db, note, hashtags)
if (hashtags.length > 0) {
await insertHashtags(db, note, hashtags)
}
if (inReplyToObject !== null) {
// after the status has been created, record the reply.