mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 07:47:28 -06:00
[chore/bugfix] Refactor ap/extract.go functions, return URIs more reliably (#1897)
This commit is contained in:
parent
0fa06c0cde
commit
d8e16a226a
9 changed files with 613 additions and 428 deletions
|
|
@ -34,7 +34,7 @@ func (suite *ExtractAttachmentsTestSuite) TestExtractAttachmentMissingURL() {
|
|||
d1.SetActivityStreamsUrl(streams.NewActivityStreamsUrlProperty())
|
||||
|
||||
attachment, err := ap.ExtractAttachment(d1)
|
||||
suite.EqualError(err, "could not extract url")
|
||||
suite.EqualError(err, "ExtractAttachment: error extracting attachment URL: ExtractURL: no valid URL property found")
|
||||
suite.Nil(attachment)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue