···11# Fediscuss
2233-Embed and aggregate Bluesky and Mastodon replies as blog or static-site comments.
33+Embed and aggregate Bluesky and Mastodon replies as comments on static-site.
4455```html
66<!-- assign the corresponding i18n in #comments element -->
···2424 </article>
2525 <!-- assign the corresponding data-url here -->
2626 <ul id="mstd-comments" aria-busy="true" aria-label="Discussion on Mastodon"
2727- data-url="https://infosec.exchange/@foxx/113979609651534969"></ul>
2727+ data-url="https://instance.domain/@username/123456789012345678"></ul>
2828 <ul id="bsky-comments" aria-busy="true" aria-label="Discussion on Bluesky"
2929- data-url="https://bsky.app/profile/808.foxx.ink/post/3lknem6ci2s2h"></ul>
2929+ data-url="https://bsky.app/profile/username/post/0123456789abc"></ul>
3030 <!-- if both Mastodon & Bluesky posts exist please add #fed-comments -->
3131 <ul id="fed-comments" aria-busy="false" aria-label="Aggregated Discussion"></ul>
3232</div>
···3434<script src="index.js" defer></script>
3535```
36363737-see the `index.html` or on [this Hugo theme's exampleSite](https://foxihd.github.io/hugo-brewm/en/post/configure-discussion/) for demo.
3838-3937## License and Atrribution
40384139Copyleft --- Legal advice needed!
42404343-This code originally forked from:
4141+This code is originally forked from:
4442- [dpecos/mastodon-comments](https://github.com/dpecos/mastodon-comments) - ([GPLv3 License](https://github.com/dpecos/mastodon-comments/blob/master/LICENSE))
4543- [nsideras/bluesky-js-comments](https://github.com/nsideras/bluesky-js-comments) - ([MIT Licence](https://github.com/nsideras/bluesky-js-comments/blob/main/LICENSE))
+10-15
index.html
···109109 <!-- for demo reason element above is replaced with this instead -->
110110 <div style="margin: 1rem;">
111111 This is example of discussion starter.
112112+ The comment threads bellow will return error,
113113+ Please enter valid Bluesky & Mastodon URL.
112114 <br />
113115 <noscript>
114116 <div id=comments-error role=alert>Uh-oh... Javascript is disabled! No comments to display.</div>
115117 </noscript>
116118 </div>
117119 <nav aria-label="Join Discussion">
118118- <a id="join-discussion" href="https://infosec.exchange/@foxx/113979609651534969" rel="nofollow" aria-label="Join Discussion">
119119- <i class="icon">mastodon</i>
120120+ <a id="join-discussion" href="https://instance.domain/@username/123456789012345678" rel="nofollow" aria-label="Join Discussion">
121121+ <i class="icon mastodon"></i>
120122 <span>Join Discussion</span>
121123 </a>
122122- <a id="join-discussion-bluesky" href="https://bsky.app/profile/808.foxx.ink/post/3lknem6ci2s2h" rel="nofollow" aria-label="Reply with bluesky" title="Reply with bluesky">
124124+ <a id="join-discussion-bluesky" href="https://bsky.app/profile/username/post/0123456789abc" rel="nofollow" aria-label="Reply with bluesky" title="Reply with bluesky">
123125 <i class="icon">bluesky</i>
124126 </a>
125127 </nav>
126128 </article>
127129 <!-- assign the corresponding data-url here -->
128128- <ul id="mstd-comments" aria-busy="true" aria-label="Discussion"
129129- data-url="https://infosec.exchange/@foxx/113979609651534969"></ul>
130130- <ul id="bsky-comments" aria-busy="true" aria-label="Discussion"
131131- data-url="https://bsky.app/profile/808.foxx.ink/post/3lknem6ci2s2h"></ul>
132132- <ul id="fed-comments" aria-busy="false" aria-label="Discussion"></ul>
130130+ <ul id="mstd-comments" aria-busy="true" aria-label="Discussion on Mastodon"
131131+ data-url="https://instance.domain/@username/123456789012345678"></ul>
132132+ <ul id="bsky-comments" aria-busy="true" aria-label="Discussion on Bluesky"
133133+ data-url="https://bsky.app/profile/username/post/0123456789abc"></ul>
134134+ <ul id="fed-comments" aria-busy="false" aria-label="Aggregated Discussion"></ul>
133135 <script src="https://cdn.jsdelivr.net/npm/dompurify@3.2.6/dist/purify.min.js" referrerpolicy="no-referrer" integrity="sha256-ieH6dkfLSVNw06mXrOQ4f10V2fTFrxI1LFPapACVYoc=" crossorigin="anonymous" defer=""></script>
134136 <script src="index.min.js" defer></script>
135135- <!-- post moderation by css example -->
136136- <style>
137137- #bafyreigkkrppdb2ecncu32mtybmnhntvb4dijl374yln5k7jiboewcevdq,
138138- #bafyreia2bifitj6j25aeo42btshgvt23rzaw4rda3olipztrhzrpgu4doq {
139139- filter: blur(10px);
140140- }
141141- </style>
142137</main>
143138</body>
144139</html>