Compare commits

...

3 Commits

Author SHA1 Message Date
hyzen
0d90c97123 Update: character escape 2026-06-26 16:55:23 +05:30
hyzen
ee2f4c4114 Fix: comment post_id fix 2026-06-26 16:42:43 +05:30
hyzen
b396a8e2b0 Update: comment styling 2026-06-26 16:06:02 +05:30
4 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1006,7 +1006,8 @@
margin-bottom: 0.85rem;
padding: 0.75rem 0.75rem 0.1rem 0.75rem;
background: var(--background-color);
border-left: 1.75px solid var(--foreground-color3);
border: 0.762px solid var(--foreground-color3);
border-radius: 4px;
}
.comment--reply {

View File

@@ -20,7 +20,7 @@
<script>
(function () {
var BACKEND = 'https://backend.freedoms4.org/comments.php';
var POST_ID = {{ .RelPermalink | jsonify }};
var POST_ID = {{ .RelPermalink | jsonify | safeJS }};
var username = localStorage.getItem('f4_username');
var isAdmin = false;
@@ -28,7 +28,7 @@
// ── Helpers ──
function escHtml(s) {
return s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');
return s.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');
}
function timeAgo(iso) {

View File

@@ -1006,7 +1006,8 @@
margin-bottom: 0.85rem;
padding: 0.75rem 0.75rem 0.1rem 0.75rem;
background: var(--background-color);
border-left: 1.75px solid var(--foreground-color3);
border: 0.762px solid var(--foreground-color3);
border-radius: 4px;
}
.comment--reply {