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