"Ghost" user in issue list points 404 page, but should not be clickable #3024

Closed
opened 2025-11-02 04:57:46 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @tklein23 on GitHub (Mar 7, 2019).

  • When a user creates an issue, then the name in the issue list is clickable and points to the profile (which is correct)
  • When the user is deleted, then the name changes to "Ghost", but is still clickable and sends to 404 page (which is not correct)

The incorrect line in the template is:

In other places ghost links are handled correctly:

I was able to reproduce the bug in:

Originally created by @tklein23 on GitHub (Mar 7, 2019). * When a user creates an issue, then the name in the issue list is clickable and points to the profile (which is correct) * When the user is deleted, then the name changes to "Ghost", but is still clickable and sends to 404 page (which is not correct) The incorrect line in the template is: * https://github.com/go-gitea/gitea/blob/01bd1fcd33a7af55bfbba10f391b22a631ac592c/templates/repo/issue/list.tmpl#L223 In other places ghost links are handled correctly: * https://github.com/go-gitea/gitea/blob/01bd1fcd33a7af55bfbba10f391b22a631ac592c/templates/repo/issue/view_title.tmpl#L39-L43 I was able to reproduce the bug in: * https://try.gitea.io/ * https://github.com/Freeyourgadget/Gadgetbridge/issues - Can you reproduce the bug at https://try.gitea.io: - [x] Yes - [ ] No - [ ] Not relevant
GiteaMirror added the topic/ui label 2025-11-02 04:57:46 -06:00
Author
Owner

@tklein23 commented on GitHub (Mar 7, 2019):

The example on try.gitea.io (issue #2 in the list) where Ghost should not be clickable:

@tklein23 commented on GitHub (Mar 7, 2019): The example on try.gitea.io (issue #2 in the list) where Ghost should not be clickable: * https://try.gitea.io/pippo/fsafsdfsd/issues
Author
Owner

@lunny commented on GitHub (Mar 9, 2019):

@tklein23 could you send a PR to fix that?

@lunny commented on GitHub (Mar 9, 2019): @tklein23 could you send a PR to fix that?
Author
Owner

@tklein23 commented on GitHub (Mar 9, 2019):

tl;dr: Sorry, I can't do that.

A CR would require additional translations for issues.closed_by and issues.merged_by in all supported languages. IMO this is the wrong approach, because this increases the cost for adding new and supporting the existing languages.

Someone with more knowledge about the template language should probably see if it's possible to fix the macro and avoid having a "_fake" variant of each issue event.

Maybe I can do that once I'm more familiar with the gitea codebase, but for sure I cannot do it right now.

@tklein23 commented on GitHub (Mar 9, 2019): tl;dr: Sorry, I can't do that. A CR would require additional translations for issues.closed_by and issues.merged_by in all supported languages. IMO this is the wrong approach, because this increases the cost for adding new and supporting the existing languages. Someone with more knowledge about the template language should probably see if it's possible to fix the macro and avoid having a "_fake" variant of each issue event. Maybe I can do that once I'm more familiar with the gitea codebase, but for sure I cannot do it right now.
Author
Owner

@adelowo commented on GitHub (Mar 10, 2019):

You don't have to do all of the translations. Only the English one is needed, others will be added as needed on https://crowdin.com .

@adelowo commented on GitHub (Mar 10, 2019): You don't have to do all of the translations. Only the English one is needed, others will be added as needed on https://crowdin.com .
Author
Owner

@oscarlofwenhamn commented on GitHub (Mar 22, 2019):

I think I've fixed the issue in the above commit, but I'm not sure how to properly make a PR as I have another one pending, and committing seems to add it to that PR, sorry.

@oscarlofwenhamn commented on GitHub (Mar 22, 2019): I think I've fixed the issue in the above commit, ~~but I'm not sure how to properly make a PR as I have another one pending, and committing seems to add it to that PR, sorry.~~
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3024