From 6f3818a8bb44c5be2fdaa960b9ee51627f8f3708 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 24 Apr 2024 03:02:24 +0200 Subject: [PATCH] [backend/masto-client] Correctly set meId in FTS query helper --- packages/backend/src/server/api/mastodon/helpers/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/helpers/search.ts b/packages/backend/src/server/api/mastodon/helpers/search.ts index 32c5bbb2e..b1f259895 100644 --- a/packages/backend/src/server/api/mastodon/helpers/search.ts +++ b/packages/backend/src/server/api/mastodon/helpers/search.ts @@ -174,7 +174,7 @@ export class SearchHelpers { generateBlockedUserQuery(query, user); } - query.setParameter("meId", user); + query.setParameter("meId", user.id); return query.skip(offset ?? 0).take(limit).getMany().then(p => minId ? p.reverse() : p); }