fix(federation): 🐛 Fix profile edits not being federated

This commit is contained in:
Jesse Wierzbinski 2024-06-05 19:08:34 -10:00
parent 4c22b0edcc
commit 32cb0ea733
No known key found for this signature in database
4 changed files with 21 additions and 39 deletions

View file

@ -521,7 +521,7 @@ export class User {
) {
// Get followers
const followers = await User.manyFromSql(
sql`EXISTS (SELECT 1 FROM "Relationships" WHERE "Relationships"."subjectId" = ${Users.id} AND "Relationships"."ownerId" = ${this.id} AND "Relationships"."following" = true)`,
sql`EXISTS (SELECT 1 FROM "Relationships" WHERE "Relationships"."subjectId" = ${this.id} AND "Relationships"."ownerId" = ${Users.id} AND "Relationships"."following" = true)`,
);
for (const follower of followers) {