event: remove time in title attribute
time is already shown as an entry in the content areapull/84/head
parent
5a31d78a07
commit
f9fc0162ff
|
@ -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…
Reference in New Issue