From d8e16a226a570a7d262bdeb067273ce35b03cc7c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 17 Jun 2023 17:49:11 +0200 Subject: [chore/bugfix] Refactor `ap/extract.go` functions, return URIs more reliably (#1897) --- internal/federation/dereferencing/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/federation/dereferencing') diff --git a/internal/federation/dereferencing/status.go b/internal/federation/dereferencing/status.go index e4ecee639..11d6d7147 100644 --- a/internal/federation/dereferencing/status.go +++ b/internal/federation/dereferencing/status.go @@ -239,8 +239,8 @@ func (d *deref) enrichStatus(ctx context.Context, requestUser string, uri *url.U derefd = true } - // Get the attributed-to status in order to fetch profile. - attributedTo, err := ap.ExtractAttributedTo(apubStatus) + // Get the attributed-to account in order to fetch profile. + attributedTo, err := ap.ExtractAttributedToURI(apubStatus) if err != nil { return nil, nil, gtserror.New("attributedTo was empty") } -- cgit v1.2.3