diff --git a/functions/api/v1/statuses.ts b/functions/api/v1/statuses.ts index 28d6846..75da97b 100644 --- a/functions/api/v1/statuses.ts +++ b/functions/api/v1/statuses.ts @@ -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.