Pleroma URL

This commit is contained in:
Cutls 2019-07-12 23:16:27 +09:00
parent eb02dd2986
commit 2576c48441

View File

@ -11,6 +11,10 @@ $(document).on('click', 'a', e => {
urls = url.match(/https?:\/\/(.+)/); urls = url.match(/https?:\/\/(.+)/);
//トゥートのURLぽかったら //トゥートのURLぽかったら
toot = url.match(/https:\/\/([a-zA-Z0-9.-]+)\/@([a-zA-Z0-9_]+)\/([0-9]+)/); toot = url.match(/https:\/\/([a-zA-Z0-9.-]+)\/@([a-zA-Z0-9_]+)\/([0-9]+)/);
if(!toot){
//Pleroma対策
toot = url.match(/https:\/\/([a-zA-Z0-9.-]+)\/users\/([a-zA-Z0-9_]+)\/statuses\/([0-9]+)/);
}
//タグのURLぽかったら //タグのURLぽかったら
var tags = []; var tags = [];
tags = url.match( tags = url.match(