mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 23:42:26 -05:00
[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
This commit is contained in:
parent
a09e101931
commit
f5a4f4321a
4 changed files with 59 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue