Display quote and retweet entities.

This commit is contained in:
Maurice Parker 2020-04-20 10:32:36 -05:00
parent 56c8dad895
commit 675165b4da
1 changed files with 6 additions and 0 deletions

View File

@ -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
}