Hide muted users from threads

This commit is contained in:
Alex Gleason
2024-06-05 11:00:16 -05:00
parent 358a6f02a1
commit c5c4f47bc2
3 changed files with 18 additions and 10 deletions

View File

@@ -203,6 +203,7 @@ const deleteStatusController: AppController = async (c) => {
const contextController: AppController = async (c) => {
const id = c.req.param('id');
const store = c.get('store');
const event = await getEvent(id, { kind: 1, relations: ['author', 'event_stats', 'author_stats'] });
const viewerPubkey = await c.get('signer')?.getPublicKey();
@@ -215,8 +216,8 @@ const contextController: AppController = async (c) => {
if (event) {
const [ancestors, descendants] = await Promise.all([
getAncestors(event).then(renderStatuses),
getDescendants(event.id).then(renderStatuses),
getAncestors(store, event).then(renderStatuses),
getDescendants(store, event.id).then(renderStatuses),
]);
return c.json({ ancestors, descendants });