mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 13:42:24 -05:00
[feature] Option to hide followers/following (#2788)
This commit is contained in:
parent
29972e2c93
commit
f05874be30
19 changed files with 322 additions and 83 deletions
|
|
@ -281,7 +281,7 @@ type CollectionParams struct {
|
|||
ID *url.URL
|
||||
|
||||
// First page details.
|
||||
First paging.Page
|
||||
First *paging.Page
|
||||
Query url.Values
|
||||
|
||||
// Total no. items.
|
||||
|
|
@ -377,6 +377,11 @@ func buildCollection[C CollectionBuilder](collection C, params CollectionParams)
|
|||
totalItems.Set(params.Total)
|
||||
collection.SetActivityStreamsTotalItems(totalItems)
|
||||
|
||||
// No First page means we're done.
|
||||
if params.First == nil {
|
||||
return
|
||||
}
|
||||
|
||||
// Append paging query params
|
||||
// to those already in ID prop.
|
||||
pageQueryParams := appendQuery(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue