add: hide simple reposts you cannot view

quotes still show "Could not find original post..." when you cannot view the post that was quoted
This commit is contained in:
trisua 2025-06-16 18:32:22 -04:00
parent 844e60df30
commit a6aa2488c4
3 changed files with 66 additions and 21 deletions

View file

@ -53,6 +53,10 @@
console.log(\"socket disconnect\");
}
}
if (window.location.pathname.startsWith(\"/reference\")) {
window.location.reload();
}
});
</script>
{%- endif %}")

View file

@ -330,7 +330,7 @@
("class" "title")
(text "{{ text \"general:label.share\" }}"))
(button
("onclick" "trigger('me::repost', ['{{ post.id }}', '', '{{ config.town_square }}'])")
("onclick" "trigger('me::repost', ['{{ post.id }}', '', '{{ config.town_square }}', true])")
(text "{{ icon \"repeat-2\" }}")
(span
(text "{{ text \"communities:label.repost\" }}")))