fix(plaza): correct similar recall query params

This commit is contained in:
john
2026-07-07 16:55:38 +08:00
parent ea4c6b707c
commit fd364dbbeb
2 changed files with 53 additions and 2 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ export function createPlazaRecommendService(
const recallSimilar = async (profile, userId, categorySlug) => {
const seeds = [...profile.likedPostIds].slice(0, 12);
if (seeds.length === 0) return [];
const params = ['published', ...seeds];
const params = [...seeds];
let filter = ` AND r1.post_id IN (${seeds.map(() => '?').join(',')})`;
if (userId) {
filter += ' AND r2.user_id <> ?';