]> source.dussan.org Git - gitea.git/commitdiff
Fix feeds display issue
authorUnknwon <joe2010xtmf@163.com>
Mon, 29 Sep 2014 22:58:04 +0000 (18:58 -0400)
committerUnknwon <joe2010xtmf@163.com>
Mon, 29 Sep 2014 22:58:04 +0000 (18:58 -0400)
models/action.go

index 9bd9da67c3cc7823d2d3fa28164dcfce964aafd7..4203ead38e8abcf0190aaee4cec3e83b3fd4efa7 100644 (file)
@@ -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