diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-03-22 08:03:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 15:03:22 +0800 |
commit | 80fd25524e13dedbdc3527b32d008de152213a89 (patch) | |
tree | 63b2bfe4ffaf1dce12080cabdc2e845c8731a673 /routers/web/feed | |
parent | 5495ba7660979973ba19e304786135da474e0e64 (diff) | |
download | gitea-80fd25524e13dedbdc3527b32d008de152213a89.tar.gz gitea-80fd25524e13dedbdc3527b32d008de152213a89.zip |
Renamed ctx.User to ctx.Doer. (#19161)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/feed')
-rw-r--r-- | routers/web/feed/profile.go | 2 | ||||
-rw-r--r-- | routers/web/feed/repo.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go index a7b8efcdbe..32898c6ee7 100644 --- a/routers/web/feed/profile.go +++ b/routers/web/feed/profile.go @@ -19,7 +19,7 @@ import ( func ShowUserFeed(ctx *context.Context, ctxUser *user_model.User, formatType string) { actions, err := models.GetFeeds(ctx, models.GetFeedsOptions{ RequestedUser: ctxUser, - Actor: ctx.User, + Actor: ctx.Doer, IncludePrivate: false, OnlyPerformedBy: !ctxUser.IsOrganization(), IncludeDeleted: false, diff --git a/routers/web/feed/repo.go b/routers/web/feed/repo.go index 53fb8148e0..ac856195b9 100644 --- a/routers/web/feed/repo.go +++ b/routers/web/feed/repo.go @@ -18,7 +18,7 @@ import ( func ShowRepoFeed(ctx *context.Context, repo *repo_model.Repository, formatType string) { actions, err := models.GetFeeds(ctx, models.GetFeedsOptions{ RequestedRepo: repo, - Actor: ctx.User, + Actor: ctx.Doer, IncludePrivate: true, Date: ctx.FormString("date"), }) |