mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-26 17:54:28 +01:00
Hide muted users from threads
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user