feat: 💨
This commit is contained in:
parent
ab1fff53ef
commit
d322f595fe
6 changed files with 88 additions and 39 deletions
|
|
@ -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: '+',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue