summaryrefslogtreecommitdiff
path: root/internal/typeutils
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-23 17:12:46 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-23 16:12:46 +0100
commitf5a4f4321a96afacde920701c1f13125fc20a10c (patch)
tree260d942bb83e502bfa0cc84f80a86d329323e2d4 /internal/typeutils
parent[bugfix] If status URL is empty, use URI instead and don't log unnecessary er... (diff)
downloadgotosocial-f5a4f4321a96afacde920701c1f13125fc20a10c.tar.xz
[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
Diffstat (limited to 'internal/typeutils')
-rw-r--r--internal/typeutils/astointernal.go6
1 files changed, 1 insertions, 5 deletions
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 {