We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2545d commit 2235560Copy full SHA for 2235560
routers/web/feed/profile.go
@@ -26,10 +26,12 @@ func ShowUserFeedAtom(ctx *context.Context) {
26
27
// showUserFeed show user activity as RSS / Atom feed
28
func showUserFeed(ctx *context.Context, formatType string) {
29
+ includePrivate := ctx.IsSigned && (ctx.Doer.IsAdmin || ctx.Doer.ID == ctx.ContextUser.ID)
30
+
31
actions, err := activities_model.GetFeeds(ctx, activities_model.GetFeedsOptions{
32
RequestedUser: ctx.ContextUser,
33
Actor: ctx.Doer,
- IncludePrivate: false,
34
+ IncludePrivate: includePrivate,
35
OnlyPerformedBy: !ctx.ContextUser.IsOrganization(),
36
IncludeDeleted: false,
37
Date: ctx.FormString("date"),
0 commit comments