Add mutes list

This commit is contained in:
r 2020-09-27 09:44:52 +00:00
parent da22d19fb4
commit 0df863ac40
2 changed files with 18 additions and 1 deletions

View file

@ -517,6 +517,18 @@ func (svc *service) ServeUserPage(c *model.Client, id string, pageType string,
nextLink = fmt.Sprintf("/user/%s/bookmarks?max_id=%s",
id, pg.MaxID)
}
case "mutes":
if !isCurrent {
return errInvalidArgument
}
users, err = c.GetMutes(ctx, &pg)
if err != nil {
return
}
if len(users) == 20 && len(pg.MaxID) > 0 {
nextLink = fmt.Sprintf("/user/%s/mutes?max_id=%s",
id, pg.MaxID)
}
default:
return errInvalidArgument
}