diff options
author | 2022-04-26 10:47:21 +0200 | |
---|---|---|
committer | 2022-04-26 10:47:21 +0200 | |
commit | 225983810827a2c71a330a401a308d69f659a042 (patch) | |
tree | 08c2cb58cdc13ce1da39a58a5bf967f7101b1831 /internal/ap | |
parent | [bugfix] Allow processing of .png files where checksum is not correct (#487) (diff) | |
download | gotosocial-225983810827a2c71a330a401a308d69f659a042.tar.xz |
[bugfix] Fix CWs not showing sometimes (#488)
* allow summaries that are parsed as iris
* test parsing a status with iri summary
Diffstat (limited to 'internal/ap')
-rw-r--r-- | internal/ap/extract.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/ap/extract.go b/internal/ap/extract.go index 7160fd5aa..6f08aeef6 100644 --- a/internal/ap/extract.go +++ b/internal/ap/extract.go @@ -248,7 +248,10 @@ func ExtractSummary(i WithSummary) (string, error) { } for iter := summaryProp.Begin(); iter != summaryProp.End(); iter = iter.Next() { - if iter.IsXMLSchemaString() && iter.GetXMLSchemaString() != "" { + switch { + case iter.IsIRI(): + return iter.GetIRI().String(), nil + case iter.IsXMLSchemaString(): return iter.GetXMLSchemaString(), nil } } |