summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-03-28 12:10:16 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-28 12:10:16 +0100
commit4f66dba1393808993e1fa38e81af5a65006d6072 (patch)
treef55e884607e9301e97b63e436334c647ff06b71d
parent[chore/frontend] Adjust contrast, mute blurple a bit (#2785) (diff)
downloadgotosocial-4f66dba1393808993e1fa38e81af5a65006d6072.tar.xz
[bugfix] Serve correct URI for AP following collection (#2787)
-rw-r--r--internal/processing/fedi/collections.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/fedi/collections.go b/internal/processing/fedi/collections.go
index ccca10754..282180862 100644
--- a/internal/processing/fedi/collections.go
+++ b/internal/processing/fedi/collections.go
@@ -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)