mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 21:12:25 -05:00
[bugfix] Fix CWs not showing sometimes (#488)
* allow summaries that are parsed as iris * test parsing a status with iri summary
This commit is contained in:
parent
eeb78bd141
commit
2259838108
3 changed files with 77 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue