aboutsummaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-15 05:30:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-15 05:30:59 -0400
commit4b8e888437a9972459e73496d811ea30f105f06c (patch)
treec319bb015f1645b03979c74d6819fa0240f1275c /models/action.go
parent06deed820d9f48ecf972c8716b17ad58b91ab9b9 (diff)
downloadgitea-4b8e888437a9972459e73496d811ea30f105f06c.tar.gz
gitea-4b8e888437a9972459e73496d811ea30f105f06c.zip
Finish feeds
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go1
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)