Browse Source

Show private data in feeds (#21369)

Show private data in feeds for admins and matching users.
tags/v1.18.0-rc0
KN4CK3R 1 year ago
parent
commit
223556073c
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      routers/web/feed/profile.go

+ 3
- 1
routers/web/feed/profile.go View File

@@ -26,10 +26,12 @@ func ShowUserFeedAtom(ctx *context.Context) {

// showUserFeed show user activity as RSS / Atom feed
func showUserFeed(ctx *context.Context, formatType string) {
includePrivate := ctx.IsSigned && (ctx.Doer.IsAdmin || ctx.Doer.ID == ctx.ContextUser.ID)

actions, err := activities_model.GetFeeds(ctx, activities_model.GetFeedsOptions{
RequestedUser: ctx.ContextUser,
Actor: ctx.Doer,
IncludePrivate: false,
IncludePrivate: includePrivate,
OnlyPerformedBy: !ctx.ContextUser.IsOrganization(),
IncludeDeleted: false,
Date: ctx.FormString("date"),

Loading…
Cancel
Save