[bugfix] Serve correct URI for AP following collection (#2787)

This commit is contained in:
tobi 2024-03-28 12:10:16 +01:00 committed by GitHub
parent ac3f195b56
commit 4f66dba139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -279,9 +279,9 @@ func (p *Processor) FollowingGet(ctx context.Context, requestedUser string, page
// Set the collection item property builder function.
pageParams.Append = func(i int, itemsProp ap.ItemsPropertyBuilder) {
// Get follower URI at index.
// Get followed URI at index.
follow := follows[i]
accURI := follow.Account.URI
accURI := follow.TargetAccount.URI
// Parse URL object from URI.
iri, err := url.Parse(accURI)