Change: audio wrap

This commit is contained in:
Cutls 2019-06-24 00:28:42 +09:00
parent 95460fabbb
commit 358d01b12e
2 changed files with 4 additions and 8 deletions

View File

@ -498,11 +498,9 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
purl + '" class="' + sense + purl + '" class="' + sense +
' toot-img pointer" style="max-width:100%;"></a></span>'; ' toot-img pointer" style="max-width:100%;"></a></span>';
} else if (media.type.indexOf("audio") !== -1) { } else if (media.type.indexOf("audio") !== -1) {
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',' + viewer = viewer + '<audio src="' +
acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url +
'" data-type="video" class="img-parsed"><audio src="' +
purl + '" class="' + sense + purl + '" class="' + sense +
' toot-img pointer" style="width:100%;" controls></a></span>'; ' toot-img pointer" style="width:100%;" controls></span>';
} else { } else {
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',' + viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',' +
acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url + acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url +

View File

@ -613,10 +613,8 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
if (media.type == "unknown") { if (media.type == "unknown") {
viewer = viewer + '<a href="' + media.remote_url + '" title="' + media.remote_url + '">[' + lang.lang_parse_unknown + ']</a> ' viewer = viewer + '<a href="' + media.remote_url + '" title="' + media.remote_url + '">[' + lang.lang_parse_unknown + ']</a> '
} else if (media.type == "audio") { } else if (media.type == "audio") {
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',' + viewer = viewer + '<audio src="' +
acct_id + ')" id="' + id + '-image-' + key2 + '" data-url="' + url + url + '" class="pointer" style="width:100%;" controls></span>';
'" data-type="audio" class="img-parsed"><audio src="' +
url + '" class="pointer" style="width:100%;" controls></a></span>';
} else { } else {
viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',\'' + viewer = viewer + '<a onclick="imgv(\'' + id + '\',\'' + key2 + '\',\'' +
acct_id + '\')" id="' + id + '-image-' + key2 + '" data-url="' + url + acct_id + '\')" id="' + id + '-image-' + key2 + '" data-url="' + url +