Add reblog txt condition

This commit is contained in:
idotj 2022-04-27 14:57:44 +02:00
parent 93edb9847e
commit 238892360e

View File

@ -51,7 +51,7 @@ MastodonApi.prototype.getToots = function () {
}) })
.then(response => response.json()) .then(response => response.json())
.then(jsonData => { .then(jsonData => {
// console.log('jsonData: ', jsonData); console.log('jsonData: ', jsonData);
// Clear the loading message // Clear the loading message
this.mtBodyContainer.innerHTML = ''; this.mtBodyContainer.innerHTML = '';
@ -139,6 +139,11 @@ MastodonApi.prototype.getToots = function () {
+ status_.spoiler_text + status_.spoiler_text
+ ' [Show more...]' + ' [Show more...]'
+ '</div>'; + '</div>';
} else if (status_.reblog && status_.reblog.content != '') {
content =
'<div class="toot-text">'
+ status_.reblog.content
+ '</div>';
} else { } else {
content = content =
'<div class="toot-text">' '<div class="toot-text">'