add nip-94 to newsfeed

This commit is contained in:
Ren Amamiya
2023-05-08 12:18:48 +07:00
parent 841e8def88
commit 09380e4fef
15 changed files with 60 additions and 50 deletions

View File

@@ -59,7 +59,7 @@ export function Page() {
// kind 1 (notes) query
query.push({
kinds: [1, 6],
kinds: [1, 6, 1063],
authors: follows,
since: sinceNotes,
until: dateToUnix(now.current),
@@ -140,6 +140,18 @@ export function Page() {
addToBlacklist(account.id, event.tags[0][1], 44, 1);
}
break;
case 1063:
createNote(
event.id,
account.id,
event.pubkey,
event.kind,
event.tags,
event.content,
event.created_at,
''
);
break;
// long post
case 30023:
// insert event to local database