From f5a4f4321a96afacde920701c1f13125fc20a10c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 23 May 2022 17:12:46 +0200 Subject: [bugfix] Fix `error extracting status content: no content found` (#598) * don't return error if no content found in Activity * add test for content extraction * go fmt --- internal/typeutils/astointernal.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/typeutils/astointernal.go') diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go index e8b585f5f..d0c0e51fa 100644 --- a/internal/typeutils/astointernal.go +++ b/internal/typeutils/astointernal.go @@ -192,11 +192,7 @@ func (c *converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab } // the html-formatted content of this status - if content, err := ap.ExtractContent(statusable); err != nil { - l.Infof("ASStatusToStatus: error extracting status content: %s", err) - } else { - status.Content = content - } + status.Content = ap.ExtractContent(statusable) // attachments to dereference and fetch later on (we don't do that here) if attachments, err := ap.ExtractAttachments(statusable); err != nil { -- cgit v1.2.3