mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Serve correct URI for AP following collection (#2787)
This commit is contained in:
@@ -279,9 +279,9 @@ func (p *Processor) FollowingGet(ctx context.Context, requestedUser string, page
|
|||||||
|
|
||||||
// Set the collection item property builder function.
|
// Set the collection item property builder function.
|
||||||
pageParams.Append = func(i int, itemsProp ap.ItemsPropertyBuilder) {
|
pageParams.Append = func(i int, itemsProp ap.ItemsPropertyBuilder) {
|
||||||
// Get follower URI at index.
|
// Get followed URI at index.
|
||||||
follow := follows[i]
|
follow := follows[i]
|
||||||
accURI := follow.Account.URI
|
accURI := follow.TargetAccount.URI
|
||||||
|
|
||||||
// Parse URL object from URI.
|
// Parse URL object from URI.
|
||||||
iri, err := url.Parse(accURI)
|
iri, err := url.Parse(accURI)
|
||||||
|
Reference in New Issue
Block a user