OFF0 2 years ago
parent c3eaef56ca
commit e8a08e2a23
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -442,10 +442,7 @@ function createTextNote(evt, relay) {
...content, ...content,
(firstLink && validatePow(evt)) ? linkPreview(firstLink, evt.id, relay) : '', (firstLink && validatePow(evt)) ? linkPreview(firstLink, evt.id, relay) : '',
]), ]),
elem('button', { elem('button', {className: 'btn-inline', name: 'star', type: 'button'}, [
className: 'btn-inline', name: 'star', type: 'button',
data: {'eventId': evt.id, relay},
}, [
elem('img', { elem('img', {
alt: didReact ? '✭' : '✩', // ♥ alt: didReact ? '✭' : '✩', // ♥
height: 24, width: 24, height: 24, width: 24,
@ -454,10 +451,9 @@ function createTextNote(evt, relay) {
}), }),
elem('small', {data: {reactions: evt.id}}, hasReactions ? reactionMap[evt.id].length : ''), elem('small', {data: {reactions: evt.id}}, hasReactions ? reactionMap[evt.id].length : ''),
]), ]),
elem('button', { elem('button', {className: 'btn-inline', name: 'reply', type: 'button'}, [
className: 'btn-inline', name: 'reply', type: 'button', elem('img', {height: 24, width: 24, src: 'assets/comment.svg'})
data: {'eventId': evt.id, relay}, ]),
}, [elem('img', {height: 24, width: 24, src: 'assets/comment.svg'})]),
// replies[0] ? elem('div', {className: 'mobx-replies'}, replyFeed.reverse()) : '', // replies[0] ? elem('div', {className: 'mobx-replies'}, replyFeed.reverse()) : '',
]); ]);
if (restoredReplyTo === evt.id) { if (restoredReplyTo === evt.id) {

Loading…
Cancel
Save