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