fix clicking of quoted post

This commit is contained in:
Martti Malmi 2023-02-13 13:08:55 +02:00
parent 35b5cbde58
commit 8f8354f42d

View File

@ -311,6 +311,7 @@ class PublicMessage extends Message {
if (window.getSelection().toString()) {
return;
}
event.stopPropagation();
if (this.state.msg?.event?.kind === 7) {
const likedId = this.state.msg.event.tags.reverse().find((t) => t[0] === 'e')[1];
return route(`/post/${likedId}`);