1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-07-25 12:39:40 +02:00

Finish feeds

This commit is contained in:
Unknown 2014-03-15 05:30:59 -04:00
parent 06deed820d
commit 4b8e888437
6 changed files with 44 additions and 24 deletions

View file

@ -56,6 +56,7 @@ func NewRepoAction(user *User, repo *Repository) error {
return err
}
// GetFeeds returns action list of given user in given context.
func GetFeeds(userid, offset int64, isProfile bool) ([]Action, error) {
actions := make([]Action, 0, 20)
sess := orm.Limit(20, int(offset)).Desc("id").Where("user_id=?", userid)