|
|
@ -26,10 +26,12 @@ func ShowUserFeedAtom(ctx *context.Context) { |
|
|
|
|
|
|
|
|
|
|
|
// showUserFeed show user activity as RSS / Atom feed
|
|
|
|
// showUserFeed show user activity as RSS / Atom feed
|
|
|
|
func showUserFeed(ctx *context.Context, formatType string) { |
|
|
|
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{ |
|
|
|
actions, err := activities_model.GetFeeds(ctx, activities_model.GetFeedsOptions{ |
|
|
|
RequestedUser: ctx.ContextUser, |
|
|
|
RequestedUser: ctx.ContextUser, |
|
|
|
Actor: ctx.Doer, |
|
|
|
Actor: ctx.Doer, |
|
|
|
IncludePrivate: false, |
|
|
|
IncludePrivate: includePrivate, |
|
|
|
OnlyPerformedBy: !ctx.ContextUser.IsOrganization(), |
|
|
|
OnlyPerformedBy: !ctx.ContextUser.IsOrganization(), |
|
|
|
IncludeDeleted: false, |
|
|
|
IncludeDeleted: false, |
|
|
|
Date: ctx.FormString("date"), |
|
|
|
Date: ctx.FormString("date"), |
|
|
|