Render hearts instead of thumbs as default actions

This commit is contained in:
SondreB 2023-02-07 16:09:03 +01:00
parent 887e00a14b
commit 2c61049d33
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 11 additions and 4 deletions

View File

@ -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;

View File

@ -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.`;