mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🚚 Rename statuses to correct name, Notes
This commit is contained in:
parent
627afffdb2
commit
7563315750
|
|
@ -69,7 +69,7 @@ export default (app: Hono) =>
|
||||||
where: (like, { eq, and }) =>
|
where: (like, { eq, and }) =>
|
||||||
and(
|
and(
|
||||||
eq(like.id, id),
|
eq(like.id, id),
|
||||||
sql`EXISTS (SELECT 1 FROM statuses WHERE statuses.id = ${like.likedId} AND statuses.visibility IN ('public', 'unlisted'))`,
|
sql`EXISTS (SELECT 1 FROM "Notes" WHERE "Notes"."id" = ${like.likedId} AND "Notes"."visibility" IN ('public', 'unlisted'))`,
|
||||||
),
|
),
|
||||||
})) ?? null;
|
})) ?? null;
|
||||||
apiObject = foundObject ? likeToLysand(foundObject) : null;
|
apiObject = foundObject ? likeToLysand(foundObject) : null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue