diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-29 18:58:04 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-29 18:58:04 -0400 |
commit | 86eac0842b4df47bfd4fc845016ac698dcb1a5db (patch) | |
tree | 52af64012ce592479087f96bb9a579e8655d75f5 /models/action.go | |
parent | a046a31d2be4a72959ec98f1bed7dc5e29ca7126 (diff) | |
download | gitea-86eac0842b4df47bfd4fc845016ac698dcb1a5db.tar.gz gitea-86eac0842b4df47bfd4fc845016ac698dcb1a5db.zip |
Fix feeds display issue
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 9bd9da67c3..4203ead38e 100644 --- a/models/action.go +++ b/models/action.go @@ -382,7 +382,7 @@ func GetFeeds(uid, offset int64, isProfile bool) ([]*Action, error) { actions := make([]*Action, 0, 20) sess := x.Limit(20, int(offset)).Desc("id").Where("user_id=?", uid) if isProfile { - sess.Where("is_private=?", false).And("act_user_id=?", uid) + sess.And("is_private=?", false).And("act_user_id=?", uid) } err := sess.Find(&actions) return actions, err |