If we post a same reaction more than one time via reaction API, it will throw 500.
https://gitea.com/api/swagger#/issue/issuePostCommentReaction
POST /repos/{owner}/{repo}/issues/comments/{id}/reactions
FYI, GitHub returns 201
for created, and returns 200
for duplicated
cc @6543
First Time (OK)
Second Time (ERROR)
The Api works as intended (500 is xorm error ...)
I could change this ...
Yes, a 5xx
code means things do not work as expected.
BTW, I think the error details should not be exposed
Most helpful comment
Yes, a
5xx
code means things do not work as expected.BTW, I think the error details should not be exposed