Improved: attached video on Pleroma
This commit is contained in:
parent
bfade31849
commit
3cde6d0bff
|
@ -593,6 +593,15 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||
var sense = ""
|
||||
var blur=null
|
||||
}
|
||||
if(media.pleroma){
|
||||
if(media.pleroma.mime_type.indexOf("video") !== -1){
|
||||
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',' +
|
||||
acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url +
|
||||
'" data-type="video" class="img-parsed"><video src="' +
|
||||
purl + '" class="' + sense +
|
||||
' toot-img pointer" style="max-width:100%;"></a></span>';
|
||||
}
|
||||
}else{
|
||||
if(media.type=="unknown"){
|
||||
viewer = viewer +'<a href="'+media.remote_url+'">['+lang.lang_parse_unknown+']</a> '
|
||||
}else{
|
||||
|
@ -602,6 +611,8 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||
purl + '" class="' + sense +
|
||||
' toot-img pointer">'+nsfwmes+'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
media_ids = media_ids.slice(0, -1) ;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user