post.html: comment button now opens post-feed.html like feed.html

This commit is contained in:
Laan Tungir
2026-07-01 18:55:25 -04:00
parent 7da3b7047c
commit 7d500495a7
2 changed files with 6 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
{
"VERSION": "v0.7.91",
"VERSION_NUMBER": "0.7.91",
"BUILD_DATE": "2026-07-01T21:30:39.527Z"
"VERSION": "v0.7.92",
"VERSION_NUMBER": "0.7.92",
"BUILD_DATE": "2026-07-01T22:55:25.679Z"
}

View File

@@ -491,17 +491,9 @@ import { initPostCards } from './js/post-interactions2.mjs';
}
function handleComposerCommentIntent({ postId, postPubkey }) {
const postEl = document.querySelector(`.divPostItem[data-post-id="${postId}"]`);
if (!postEl) return false;
const entry = getOrCreateInlineComposer(postId, postEl);
if (!entry) return false;
entry.tags = [
['e', postId, '', 'reply'],
['p', postPubkey]
];
if (entry.instance?.show) entry.instance.show();
return focusInlineComposer(entry.hostEl, '');
if (!postId) return false;
window.open('./post-feed.html?event=' + encodeURIComponent(postId), '_blank');
return true;
}
function handleComposerQuoteIntent({ postId, postPubkey }) {