diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-15 05:30:59 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-15 05:30:59 -0400 |
commit | 4b8e888437a9972459e73496d811ea30f105f06c (patch) | |
tree | c319bb015f1645b03979c74d6819fa0240f1275c /models/action.go | |
parent | 06deed820d9f48ecf972c8716b17ad58b91ab9b9 (diff) | |
download | gitea-4b8e888437a9972459e73496d811ea30f105f06c.tar.gz gitea-4b8e888437a9972459e73496d811ea30f105f06c.zip |
Finish feeds
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 8008d331cb..6a77d73003 100644 --- a/models/action.go +++ b/models/action.go @@ -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) |