Mentioning should check if the user exists #1492

Closed
opened 2025-11-02 04:02:21 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kolaente on GitHub (Feb 1, 2018).

  • Gitea version (or commit ref): 1.4.0-rc1
  • Can you reproduce the bug at https://try.gitea.io:
    • Probably

Description

When mentioning someone in an issue or pr, it doesn't seem to matter if the user exists or not. For example, when I mention someone @nonexistentuser, Gitea still creates a link from it, leading to a 404 page. It shold check if the user exists and only create the link if it does.

Originally created by @kolaente on GitHub (Feb 1, 2018). - Gitea version (or commit ref): 1.4.0-rc1 - Can you reproduce the bug at https://try.gitea.io: - [x] Probably ## Description When mentioning someone in an issue or pr, it doesn't seem to matter if the user exists or not. For example, when I mention someone @nonexistentuser, Gitea still creates a link from it, leading to a 404 page. It shold check if the user exists and only create the link if it does.
GiteaMirror added the type/proposal label 2025-11-02 04:02:21 -06:00
Author
Owner

@bkcsoft commented on GitHub (Feb 10, 2018):

If someone implements this, cache the result for at least that page-view :trollface:

@bkcsoft commented on GitHub (Feb 10, 2018): If someone implements this, _cache_ the result for at least that page-view :trollface:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1492