mirror of
https://github.com/nicolabs/mastodon-timeline-widget.git
synced 2026-05-21 11:56:48 +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>");
|
user = $("<div class='mt-user'><a href='"+status_.account.url+"'>"+status_.account.username+"</a></div>");
|
||||||
|
|
||||||
// media attachments from this toot
|
// media attachments from this toot
|
||||||
medias = status_.reblog.media_attachments;
|
medias = status_.media_attachments;
|
||||||
|
|
||||||
// this toot's sensitivity
|
// this toot's sensitivity
|
||||||
sensitive = status_.sensitive;
|
sensitive = status_.sensitive;
|
||||||
|
|
@ -406,7 +406,7 @@ MastodonApi.prototype.replaceMedias = function(content, media_, nsfw_) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// pics visible
|
// 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;
|
return pic;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue