mirror of
https://gitlab.com/idotj/mastodon-embed-timeline.git
synced 2025-05-24 08:52:46 +00:00
Add reblog txt condition
This commit is contained in:
parent
93edb9847e
commit
238892360e
@ -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">'
|
||||
|
Loading…
x
Reference in New Issue
Block a user