Skip to content

Discord Webhook Links To API JSON #4656

Closed
@atom0s

Description

@atom0s
  • Gitea version (or commit ref): a74426d
  • Git version: 2.17.1.windows.2
  • Operating system: Windows Server 2012 R2 Standard
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: N/A

Description

When a Discord web hook is sent to a Discord server, the output looks fine, however the main link is to the API call of the hook creation, instead of being to the actual thing. For example, if a web hook is called on an issue being created, Discord will display the main link title properly, but it will link to the API such as:
https://git.example.com/api/v1/repos/Example/Example/issues/55

Instead of to the actual issue link of:
https://git.example.com/Example/Example/issues/55

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions