mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Render hearts instead of thumbs as default actions
This commit is contained in:
parent
887e00a14b
commit
2c61049d33
@ -133,10 +133,15 @@ export interface ThreadEntry {
|
||||
}
|
||||
|
||||
export enum EmojiEnum {
|
||||
[`👍`] = `👍`,
|
||||
[`👎`] = `👎`,
|
||||
[`❤️`] = `❤️`,
|
||||
[`💔`] = `💔`,
|
||||
}
|
||||
|
||||
// export enum EmojiEnum {
|
||||
// [`👍`] = `👍`,
|
||||
// [`👎`] = `👎`,
|
||||
// }
|
||||
|
||||
export interface NostrNoteDocument extends NostrEventDocument {
|
||||
/** The timestamp when the note was saved. */
|
||||
saved: number;
|
||||
|
@ -342,8 +342,10 @@ export class RelayService {
|
||||
if (event.kind == Kind.Reaction) {
|
||||
let content = event.content;
|
||||
|
||||
if (content === '+') {
|
||||
content = '👍';
|
||||
if (content === '+' || content === '') {
|
||||
content = '❤️';
|
||||
} else if (content === '-') {
|
||||
content = '💔';
|
||||
}
|
||||
|
||||
msg = `reacted with ${content} to your post.`;
|
||||
|
Loading…
Reference in New Issue
Block a user