fix comment input
This commit is contained in:
@ -1,3 +1,3 @@
|
|||||||
<!-- OAuth Comment System - Load globally for session management -->
|
<!-- OAuth Comment System - Load globally for session management -->
|
||||||
<script type="module" crossorigin src="/assets/comment-atproto-Do1JWJCw.js"></script>
|
<script type="module" crossorigin src="/assets/comment-atproto-BuIwSgQs.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/comment-atproto-CPKYAM8U.css">
|
<link rel="stylesheet" crossorigin href="/assets/comment-atproto-CPKYAM8U.css">
|
@ -1,3 +1,3 @@
|
|||||||
<!-- OAuth Comment System - Load globally for session management -->
|
<!-- OAuth Comment System - Load globally for session management -->
|
||||||
<script type="module" crossorigin src="/assets/comment-atproto-Do1JWJCw.js"></script>
|
<script type="module" crossorigin src="/assets/comment-atproto-BuIwSgQs.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/comment-atproto-CPKYAM8U.css">
|
<link rel="stylesheet" crossorigin href="/assets/comment-atproto-CPKYAM8U.css">
|
@ -53,10 +53,10 @@ function generateCollectionNames(host: string): { comment: string; user: string;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract rkey from current URL
|
// Extract rkey from current URL
|
||||||
// /posts/xxx.html -> xxx
|
// /posts/xxx -> xxx
|
||||||
function extractRkeyFromUrl(): string | undefined {
|
function extractRkeyFromUrl(): string | undefined {
|
||||||
const pathname = window.location.pathname;
|
const pathname = window.location.pathname;
|
||||||
const match = pathname.match(/\/posts\/([^/]+)\.html$/);
|
const match = pathname.match(/\/posts\/([^/]+)\/?$/);
|
||||||
return match ? match[1] : undefined;
|
return match ? match[1] : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user