mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
allow anonymous SSH clone
This commit is contained in:
parent
487fc8ca39
commit
e50982f5ec
20 changed files with 109 additions and 92 deletions
|
@ -57,7 +57,7 @@ type Issue struct {
|
|||
|
||||
func (i *Issue) GetPoster() (err error) {
|
||||
i.Poster, err = GetUserById(i.PosterId)
|
||||
if err == ErrUserNotExist {
|
||||
if IsErrUserNotExist(err) {
|
||||
i.Poster = &User{Name: "FakeUser"}
|
||||
return nil
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ func (i *Issue) GetAssignee() (err error) {
|
|||
return nil
|
||||
}
|
||||
i.Assignee, err = GetUserById(i.AssigneeId)
|
||||
if err == ErrUserNotExist {
|
||||
if IsErrUserNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue