For Pleroma tags
This commit is contained in:
parent
657dec1c10
commit
8fbd8070f2
|
@ -6,17 +6,21 @@ function additional(acct_id, tlid) {
|
||||||
|
|
||||||
$("#timeline-container .mention").addClass("parsed");
|
$("#timeline-container .mention").addClass("parsed");
|
||||||
|
|
||||||
$("#timeline-container .hashtag").each(function (i, elem) {
|
$("#timeline-container .hashtag, #timeline-container [rel=tag]").each(function (i, elem) {
|
||||||
var tags = $(this).attr("href").match(
|
var tags = $(this).attr("href").match(
|
||||||
/https?:\/\/([-a-zA-Z0-9@.]+)\/tags\/([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/
|
/https?:\/\/([-a-zA-Z0-9@.]+)\/tags\/([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/
|
||||||
);
|
);
|
||||||
$(this).attr("href", "#");
|
if(tags){
|
||||||
if (tags) {
|
var tagThis = tags[2]
|
||||||
if (tags[2]) {
|
}else{
|
||||||
$(this).attr("onclick", 'tagShow(\'' + tags[2] + '\')');
|
var tagThis = $(this).attr("data-tag")
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(tagThis){
|
||||||
|
$(this).attr("onclick", 'tagShow(\'' + tagThis + '\')');
|
||||||
|
$(this).attr("href", "#");
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//トゥートサムネ
|
//トゥートサムネ
|
||||||
|
|
Loading…
Reference in New Issue
Block a user