Make comment-links work.
This commit is contained in:
parent
c9b084cf74
commit
5f80f02a53
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user