mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
Fix 500 in public activity page (#1901)
This commit is contained in:
parent
9ddc35e343
commit
afe1f1c4af
@ -55,9 +55,13 @@ func getDashboardContextUser(ctx *context.Context) *models.User {
|
||||
|
||||
// retrieveFeeds loads feeds for the specified user
|
||||
func retrieveFeeds(ctx *context.Context, user *models.User, includePrivate, isProfile bool) {
|
||||
var requestingID int64
|
||||
if ctx.User != nil {
|
||||
requestingID = ctx.User.ID
|
||||
}
|
||||
actions, err := models.GetFeeds(models.GetFeedsOptions{
|
||||
RequestedUser: user,
|
||||
RequestingUserID: ctx.User.ID,
|
||||
RequestingUserID: requestingID,
|
||||
IncludePrivate: includePrivate,
|
||||
OnlyPerformedBy: isProfile,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user