mirror of
https://github.com/nicolabs/mastodon-timeline-widget.git
synced 2025-09-07 01:44:28 +02:00
~ fixed : link to the media was to the preview, not the full/original media
This commit is contained in:
parent
ff73260763
commit
c37295e7e6
|
@ -288,7 +288,7 @@ MastodonApi.prototype.listStatuses = function() {
|
|||
user = $("<div class='mt-user'><a href='"+status_.account.url+"'>"+status_.account.username+"</a></div>");
|
||||
|
||||
// media attachments from this toot
|
||||
medias = status_.reblog.media_attachments;
|
||||
medias = status_.media_attachments;
|
||||
|
||||
// this toot's sensitivity
|
||||
sensitive = status_.sensitive;
|
||||
|
@ -406,7 +406,7 @@ MastodonApi.prototype.replaceMedias = function(content, media_, nsfw_) {
|
|||
}
|
||||
else {
|
||||
// pics visible
|
||||
var pic = '<a href="'+media_.preview_url+'"><div class="toot-media-preview" style="background-image:url('+media_.preview_url+');"></div></a>';
|
||||
var pic = '<a href="'+media_.url+'"><div class="toot-media-preview" style="background-image:url('+media_.preview_url+');"></div></a>';
|
||||
}
|
||||
|
||||
return pic;
|
||||
|
|
Loading…
Reference in a new issue