feat: 💨

This commit is contained in:
codytseng
2025-02-11 10:15:05 +08:00
parent ab1fff53ef
commit d322f595fe
6 changed files with 88 additions and 39 deletions

View File

@@ -9,6 +9,7 @@ import {
extractImagesFromContent,
extractMentions,
getEventCoordinate,
isProtectedEvent,
isReplaceable
} from './event'
@@ -25,6 +26,10 @@ export function createReactionDraftEvent(event: Event): TDraftEvent {
tags.push(hint ? ['a', getEventCoordinate(event), hint] : ['a', getEventCoordinate(event)])
}
if (isProtectedEvent(event)) {
tags.push(['-'])
}
return {
kind: kinds.Reaction,
content: '+',