From 0df863ac4031e26e3cb64779618e0733d9686fc0 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 27 Sep 2020 09:44:52 +0000 Subject: Add mutes list --- service/service.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'service/service.go') diff --git a/service/service.go b/service/service.go index de450b9..f268e30 100644 --- a/service/service.go +++ b/service/service.go @@ -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 } -- cgit v1.2.3