Normaize reactions / NIP26
This commit is contained in:
@ -83,7 +83,7 @@ export default function useEventPublisher() {
|
||||
}
|
||||
return await signEvent(ev);
|
||||
},
|
||||
like: async (evRef, content = "+") => {
|
||||
react: async (evRef, content = "+") => {
|
||||
let ev = Event.ForPubKey(pubKey);
|
||||
ev.Kind = EventKind.Reaction;
|
||||
ev.Content = content;
|
||||
@ -91,14 +91,6 @@ export default function useEventPublisher() {
|
||||
ev.Tags.push(new Tag(["p", evRef.PubKey], 1));
|
||||
return await signEvent(ev);
|
||||
},
|
||||
dislike: async (evRef) => {
|
||||
let ev = Event.ForPubKey(pubKey);
|
||||
ev.Kind = EventKind.Reaction;
|
||||
ev.Content = "-";
|
||||
ev.Tags.push(new Tag(["e", evRef.Id], 0));
|
||||
ev.Tags.push(new Tag(["p", evRef.PubKey], 1));
|
||||
return await signEvent(ev);
|
||||
},
|
||||
addFollow: async (pkAdd) => {
|
||||
let ev = Event.ForPubKey(pubKey);
|
||||
ev.Kind = EventKind.ContactList;
|
||||
|
Reference in New Issue
Block a user