Display quote and retweet entities.
This commit is contained in:
parent
56c8dad895
commit
675165b4da
|
@ -141,6 +141,8 @@ private extension TwitterStatus {
|
|||
var html = renderAsTweetHTML(self, topLevel: topLevel)
|
||||
if topLevel {
|
||||
html += extendedEntities?.renderAsHTML() ?? ""
|
||||
html += retweetedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
html += quotedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
}
|
||||
return html
|
||||
}
|
||||
|
@ -154,6 +156,8 @@ private extension TwitterStatus {
|
|||
html += "</blockquote>"
|
||||
if topLevel {
|
||||
html += status.extendedEntities?.renderAsHTML() ?? ""
|
||||
html += status.retweetedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
html += status.quotedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
}
|
||||
return html
|
||||
}
|
||||
|
@ -170,6 +174,8 @@ private extension TwitterStatus {
|
|||
html += self.extendedEntities?.renderAsHTML() ?? ""
|
||||
if topLevel {
|
||||
html += quotedStatus.extendedEntities?.renderAsHTML() ?? ""
|
||||
html += quotedStatus.retweetedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
html += quotedStatus.quotedStatus?.extendedEntities?.renderAsHTML() ?? ""
|
||||
}
|
||||
return html
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue