mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(federation): 🐛 Fix new notes being federated to ALL remote users, regardless of visibility
This commit is contained in:
parent
2f823317c2
commit
558ae72c82
3 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { idValidator } from "@/api";
|
||||
import { localObjectUri } from "@/constants";
|
||||
import { proxyUrl } from "@/response";
|
||||
import { sanitizedHtmlStrip } from "@/sanitization";
|
||||
import { sentry } from "@/sentry";
|
||||
|
|
@ -29,7 +30,6 @@ import {
|
|||
type Application,
|
||||
applicationToApi,
|
||||
} from "~/classes/functions/application";
|
||||
import { localObjectUri } from "~/classes/functions/federation";
|
||||
import {
|
||||
type StatusWithRelations,
|
||||
contentToHtml,
|
||||
|
|
@ -230,7 +230,7 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
|
|||
relationships: {
|
||||
where: (relationship, { eq, and }) =>
|
||||
and(
|
||||
eq(relationship.subjectId, Users.id),
|
||||
eq(relationship.subjectId, this.data.authorId),
|
||||
eq(relationship.following, true),
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue