mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Use the user's store in a few places where it matters
This commit is contained in:
parent
33786d2e5d
commit
8a978b088b
2 changed files with 4 additions and 2 deletions
|
|
@ -107,8 +107,9 @@ async function renderNotifications(
|
|||
params: DittoPagination,
|
||||
c: AppContext,
|
||||
) {
|
||||
const { conf, relay, user, signal } = c.var;
|
||||
const { conf, user, signal } = c.var;
|
||||
|
||||
const relay = user!.relay;
|
||||
const pubkey = await user!.signer.getPublicKey();
|
||||
const opts = { signal, limit: params.limit, timeout: conf.db.timeouts.timelines };
|
||||
|
||||
|
|
|
|||
|
|
@ -103,8 +103,9 @@ const suggestedTimelineController: AppController = async (c) => {
|
|||
|
||||
/** Render statuses for timelines. */
|
||||
async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
|
||||
const { conf, relay, user, signal } = c.var;
|
||||
const { conf, user, signal } = c.var;
|
||||
|
||||
const relay = user?.relay ?? c.var.relay;
|
||||
const opts = { signal, timeout: conf.db.timeouts.timelines };
|
||||
|
||||
const events = await relay
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue