Skip to content

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

Closed
@tklein23

Description

@tklein23
  • 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:

  • {{if gt .Issue.Poster.ID 0}}
    {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink .Issue.Poster.Name | Safe}}
    {{else}}
    {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.Poster.Name | Safe}}
    {{end}}

I was able to reproduce the bug in:

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions