From 2576c484413d780191dc85fa9bd81ca743bb1fe5 Mon Sep 17 00:00:00 2001 From: Cutls Date: Fri, 12 Jul 2019 23:16:27 +0900 Subject: [PATCH] Pleroma URL --- app/js/platform/end.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/js/platform/end.js b/app/js/platform/end.js index 41358f6c..1222c20f 100644 --- a/app/js/platform/end.js +++ b/app/js/platform/end.js @@ -11,6 +11,10 @@ $(document).on('click', 'a', e => { urls = url.match(/https?:\/\/(.+)/); //トゥートのURLぽかったら 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ぽかったら var tags = []; tags = url.match(