forgejo/models
zeripath 35fc9ad984
Use GhostUser if needed for TrackedTimes (#22021) (#22029)
Backport #22021

When getting tracked times out of the db and loading their attributes
handle not exist errors in a nicer way. (Also prevent an NPE.)

Fix #22006

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-05 14:20:37 +02:00
..
activities
admin
asymkey
auth
avatars Fix vertical align of committer avatar rendered by email address (#21884) (#21918) 2022-11-24 10:52:20 +08:00
db
fixtures
foreignreference
git
issues Use GhostUser if needed for TrackedTimes (#22021) (#22029) 2022-12-05 14:20:37 +02:00
migrations Init git module before database migration (#21764) (#21765) 2022-11-10 14:22:41 +00:00
organization Do not allow Ghost access to limited visible user/org (#21849) (#21876) 2022-11-20 19:37:20 +00:00
packages
perm
project
pull
repo Fix issues count bug (#21557) 2022-10-25 14:47:46 +02:00
system Fix dashboard ignored system setting cache (#21621) (#21759) 2022-11-10 19:41:44 +08:00
unit
unittest
user Fix dashboard ignored system setting cache (#21621) (#21759) 2022-11-10 19:41:44 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Fix issues count bug (#21557) 2022-10-25 14:47:46 +02:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go
user.go Prevent dangling user redirects (#21856) (#21858) 2022-11-18 22:25:00 +08:00