From 9513c79076f997c2cd2584bf76f14074a90c3411 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 25 Nov 2019 07:33:29 +0100 Subject: [PATCH] Make comment-links work. --- static/comtodon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/comtodon.js b/static/comtodon.js index 23c98b2..f20e48b 100644 --- a/static/comtodon.js +++ b/static/comtodon.js @@ -72,7 +72,7 @@ (spoiler_text || sensitive ? h('spoiler', spoiler_text || h('spoiler-empty', 'Sensitive', 'span')) : '') + h('status-content' + (spoiler_text || sensitive ? ' sensitive' : ''), moji(content, emojis)) + (replies ? h('replies', html(replies, domain)) : '') + - h(`reply" target="_blank" href="https://${domain}/interact/${id}?type=reply`, 'Reply', 'a'))).join('') + h(`reply" target="_blank" href="https://${domain}/notice/${id}`, 'Reply', 'a'))).join('') } function moderate(statuses, id) { @@ -95,7 +95,7 @@ fetch(`https://${domain}/api/v1/statuses/${status}/context`) .then(res => res.json()) .then(res => { - el.innerHTML = h(`reply-main" target=\"_blank\" href="https://${domain}/interact/${status}?type=reply`, 'Comment', 'a') + el.innerHTML = h(`reply-main" target=\"_blank\" href="https://${domain}/notice/${status}`, 'Comment', 'a') const statuses = moderate(res.descendants, el.dataset.moderator) if (statuses) { el.innerHTML += html('deep' in el.dataset ? tree(statuses, { id: status }, el.dataset.deep || -1).replies : statuses, domain) @@ -105,4 +105,4 @@ }) .catch(() => fail(el, 'Request fail')) } -})() \ No newline at end of file +})()