Fix feeds display issue

release/v1.15
Unknwon 2014-09-29 18:58:04 -04:00
parent a046a31d2b
commit 86eac0842b
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ func GetFeeds(uid, offset int64, isProfile bool) ([]*Action, error) {
actions := make([]*Action, 0, 20) actions := make([]*Action, 0, 20)
sess := x.Limit(20, int(offset)).Desc("id").Where("user_id=?", uid) sess := x.Limit(20, int(offset)).Desc("id").Where("user_id=?", uid)
if isProfile { 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) err := sess.Find(&actions)
return actions, err return actions, err