mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-06 15:14:23 +01:00
renderStatus: don't fetch the author, expect it to be passed in
This commit is contained in:
@@ -34,7 +34,10 @@ const hashtagTimelineController: AppController = (c) => {
|
||||
|
||||
/** Render statuses for timelines. */
|
||||
async function renderStatuses(c: AppContext, filters: DittoFilter<1>[]) {
|
||||
const events = await mixer.getFilters(filters, { timeout: Time.seconds(1) });
|
||||
const events = await mixer.getFilters(
|
||||
filters.map((filter) => ({ ...filter, relations: ['author'] })),
|
||||
{ timeout: Time.seconds(1) },
|
||||
);
|
||||
|
||||
if (!events.length) {
|
||||
return c.json([]);
|
||||
|
||||
Reference in New Issue
Block a user