mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-21 16:55:06 -05:00
Backport #24706 by @lunny
Fix #24682
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 2fea93b2d3
)
This commit is contained in:
parent
e12f550fed
commit
f9bf040a5a
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…
Add table
Reference in a new issue