Skip to content

Commit ab37a86

Browse files
brandon-futomarkharding
authored andcommitted
Put reaction events in interactions collection
Changelog: fix
1 parent 647990e commit ab37a86

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/polycentric/src/features/reaction/useReactions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const useReactions = create<ReactionsState>((set, get) => ({
7373
});
7474

7575
await client.contentManager.save(content);
76-
const event = await client.buildEvent(content, COLLECTION.GRAPH);
76+
const event = await client.buildEvent(content, COLLECTION.INTERACTIONS);
7777
const signedEvent = await client.signEvent(event);
7878
if (!event.key) return;
7979
const eventId = bytesToHex(v2.EventKey.toBinary(event.key));
@@ -124,7 +124,7 @@ const useReactions = create<ReactionsState>((set, get) => ({
124124
await client.contentManager.save(deleteContent);
125125
const deleteEvent = await client.buildEvent(
126126
deleteContent,
127-
COLLECTION.GRAPH,
127+
COLLECTION.INTERACTIONS,
128128
);
129129
const signedDelete = await client.signEvent(deleteEvent);
130130

@@ -161,7 +161,7 @@ const useReactions = create<ReactionsState>((set, get) => ({
161161
const self = client.activeIdentityKey;
162162
if (!self) return;
163163

164-
const bundles = client.listValidEvents(self, COLLECTION.GRAPH);
164+
const bundles = client.listValidEvents(self, COLLECTION.INTERACTIONS);
165165

166166
// Collect the latest reaction per target.
167167
const latest = new Map<

0 commit comments

Comments
 (0)