summaryrefslogtreecommitdiffstats
path: root/models/activities/action.go
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-02-18 21:11:03 +0900
committerGitHub <noreply@github.com>2023-02-18 20:11:03 +0800
commitbd66fa586a0da58c4cf2f5f8390aef4bac9d0527 (patch)
tree0aa52def7fb8c81ca91a2b882261e9db6a7c174a /models/activities/action.go
parent007d181bb51330c4c24e78c2f40a2e49cae45ed9 (diff)
downloadgitea-bd66fa586a0da58c4cf2f5f8390aef4bac9d0527.tar.gz
gitea-bd66fa586a0da58c4cf2f5f8390aef4bac9d0527.zip
Rename `repo.GetOwner` to `repo.LoadOwner` (#22967)
Fixes https://github.com/go-gitea/gitea/issues/22963 --------- Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Diffstat (limited to 'models/activities/action.go')
-rw-r--r--models/activities/action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/activities/action.go b/models/activities/action.go
index 8e7492c008..2e845bf89e 100644
--- a/models/activities/action.go
+++ b/models/activities/action.go
@@ -534,7 +534,7 @@ func NotifyWatchers(ctx context.Context, actions ...*Action) error {
repo = act.Repo
// check repo owner exist.
- if err := act.Repo.GetOwner(ctx); err != nil {
+ if err := act.Repo.LoadOwner(ctx); err != nil {
return fmt.Errorf("can't get repo owner: %w", err)
}
} else if act.Repo == nil {