event: remove time in title attribute

time is already shown as an entry in the content area
pull/84/head
OFF0 10 months ago
parent 5a31d78a07
commit f9fc0162ff
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -131,7 +131,6 @@ export const renderRecommendServer = (evt: Event, relay: string) => {
export const renderEventDetails = (evt: Event, relay: string) => {
const {img, name, userName} = getMetadata(evt.pubkey);
const time = new Date(evt.created_at * 1000);
const npub = nip19.npubEncode(evt.pubkey);
let content = parseJSON(evt.content)
@ -142,7 +141,7 @@ export const renderEventDetails = (evt: Event, relay: string) => {
default:
content = `${evt.content}`;
}
const body = elem('div', {className: 'mbox-body', title: dateTime.format(time)}, [
const body = elem('div', {className: 'mbox-body'}, [
elem('header', {className: 'mbox-header'}, [
elem('a', {
className: `mbox-username${name ? ' mbox-kind0-name' : ''}`,

Loading…
Cancel
Save