mirror of
https://gitlab.com/idotj/mastodon-embed-timeline.git
synced 2025-05-24 08:52:46 +00:00
Merge branch 'feature/retoots-image' into 'master'
Show retoots media in timeline See merge request idotj/mastodon-embed-feed-timeline!2
This commit is contained in:
commit
a2710e92b8
@ -148,11 +148,16 @@ MastodonApi.prototype.getToots = function () {
|
||||
|
||||
// Media attachments
|
||||
let media = '';
|
||||
if (status_.media_attachments.length > 0) {
|
||||
if (status_.media_attachments.length > 0 ) {
|
||||
for (let picid in status_.media_attachments) {
|
||||
media = this.replaceMedias(status_.media_attachments[picid], status_.sensitive);
|
||||
}
|
||||
}
|
||||
if (status_.reblog && status_.reblog.media_attachments.length > 0 ) {
|
||||
for (let picid in status_.reblog.media_attachments) {
|
||||
media = this.replaceMedias(status_.reblog.media_attachments[picid], status_.sensitive);
|
||||
}
|
||||
}
|
||||
|
||||
// Poll
|
||||
let poll = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user