mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
Finish feeds
This commit is contained in:
parent
06deed820d
commit
4b8e888437
6 changed files with 44 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue