mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 01:25:39 -04:00
Update the error code for duplicate annotation (#15075)
This commit is contained in:
parent
06ba71083e
commit
5febf88b6c
3 changed files with 11 additions and 1 deletions
|
@ -1337,7 +1337,11 @@ class EventCreationHandler:
|
|||
relation.parent_id, event.type, aggregation_key, event.sender
|
||||
)
|
||||
if already_exists:
|
||||
raise SynapseError(400, "Can't send same reaction twice")
|
||||
raise SynapseError(
|
||||
400,
|
||||
"Can't send same reaction twice",
|
||||
errcode=Codes.DUPLICATE_ANNOTATION,
|
||||
)
|
||||
|
||||
# Don't attempt to start a thread if the parent event is a relation.
|
||||
elif relation.rel_type == RelationTypes.THREAD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue