mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-10 20:22:14 +02:00
Fix run list broken when trigger user deleted (#24706)
This commit is contained in:
parent
11552a779f
commit
a8f643c56e
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ func (runs RunList) LoadTriggerUser(ctx context.Context) error {
|
||||||
run.TriggerUser = user_model.NewActionsUser()
|
run.TriggerUser = user_model.NewActionsUser()
|
||||||
} else {
|
} else {
|
||||||
run.TriggerUser = users[run.TriggerUserID]
|
run.TriggerUser = users[run.TriggerUserID]
|
||||||
|
if run.TriggerUser == nil {
|
||||||
|
run.TriggerUser = user_model.NewGhostUser()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue