13 Mar 2024 |
carl | Working now? | 22:24:10 |
charlie137 | not yet, let me purge the cache | 22:24:59 |
charlie137 | wasn't page string either | 22:26:41 |
charlie137 | <div id="comment-section"></div>
<div id="cactus-site-id">charlesrocket.homepage</div>
<div id="cactus-page-addr">https://halve-z.netlify.app/posts/information/</div>
<script type="text/javascript" src="/cactus-init.js" integrity="sha512-528mJr3wazhf+iQkZuCcnGtRaDJUR9HXpfrt0YOmd1p0rNBg0G00rH2Gkj8JRiSyAckxS4sZpqdiMIn/305rBw=="></script>
| 22:27:08 |
charlie137 | all looks good, CSP coudn't be any tighter but theres no errors in the console | 22:27:36 |
charlie137 | test deployment https://comments--halve-z.netlify.app/posts/information/ | 22:29:00 |
charlie137 | source https://github.com/charlesrocket/halve-z/tree/comments | 22:30:28 |
charlie137 | maybe my id is bad cause i sent the second message with <> cause i thought this is the required format due bot not responding | 22:31:17 |
charlie137 | but followed with proper site name | 22:31:29 |
charlie137 | tho maybe x.x is a bad string format but this makes no sense since using site url for site name would be a common move | 22:32:13 |
charlie137 | oh i forgot to prettify the js | 22:34:11 |
charlie137 | o man nothing is helping | 22:40:31 |
charlie137 | daamn, i got sooooooooooooooooo close | 22:40:59 |
charlie137 | thought it needs a map or pretty js but still #comments_undefined_undefined:cactus.chat not found | 22:41:50 |
charlie137 | trying with halve-z-theme site name now, just in case 😞 | 23:24:03 |
14 Mar 2024 |
charlie137 | still zero positive results | 00:43:53 |
charlie137 | for some reason it keeps looking for an undefined section, tho site name is registered and post url is valid | 00:48:39 |
charlie137 | checked ID syntax just in case and both site names are valid https://spec.matrix.org/v1.6/appendices/#common-namespaced-identifier-grammar | 01:04:42 |
charlie137 | just realized i used page permalink and not the slug as sectionid | 05:06:51 |
charlie137 | huh, still the same error | 05:27:00 |
charlie137 | tried to redeploy on test branch but now its a little different error
Error: M_NOT_FOUND Room alias #comments_halve-z-theme_information:cactus.chat not found
| 15:41:33 |
charlie137 | still does not explain why its different tho
tried to reschedule script executions but no results as well | 16:29:36 |
charlie137 | i feel like i got somewhere | 16:37:19 |
charlie137 | managed to get the "official" error now | 16:37:42 |
charlie137 | cactus.html:
{% set cactus_hash = get_hash(path="/cactus.js", base64=true, sha_type=512) %}
<script type="text/javascript" src="/cactus.js" integrity="sha512-{{ cactus_hash | safe }}" crossorigin="anonymous"></script>
<link rel="stylesheet" href="/cactus.css" type="text/css">
<div id="cactus-comment-section"></div>
<script type="text/javascript" src="/cactus-init.js"
integrity="sha512-{{ cactus_init_hash | safe }}"
site_name="{{ config.extra.comments.cactus.site | safe }}"
page_section="{{ page.slug | safe }}"
crossorigin="anonymous">
</script>
cactus-init.js:
let site_name = new String(document.currentScript.getAttribute('site_name'));
let page_section = new String(document.currentScript.getAttribute('page_section'));
initComments({
node: document.getElementById("cactus-comment-section"),
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
serverName: "cactus.chat",
siteName: site_name,
commentSectionId: page_section
});
| 16:39:18 |
charlie137 | and now im getting Error: M_NOT_FOUND Room alias #comments_halve-z-theme_information:cactus.chat not found | 16:41:00 |
charlie137 | this is the exact error i am getting when dropping CSP and following the Quick Start guide | 16:41:58 |
charlie137 | so maybe i resolved it all on my end | 16:42:07 |
charlie137 | will try to register the deploy branch | 16:52:59 |
charlie137 | how could one delete a registration/sitename record? | 16:53:33 |