summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/user/home.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 7f6396ebd1..9ff03cf04f 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -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,
})