Skip to content

[Bug Report] Reactions API throws 500 for duplicate reaction #9544

Closed
@meteorlxy

Description

@meteorlxy

Description

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

Screenshots

First Time (OK)

image

Second Time (ERROR)

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions