fix(federation): 🐛 Fix new notes being federated to ALL remote users, regardless of visibility

This commit is contained in:
Jesse Wierzbinski 2024-07-26 19:21:03 +02:00
parent 2f823317c2
commit 558ae72c82
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -2,9 +2,6 @@ import type { Undo } from "@lysand-org/federation/types";
import { config } from "config-manager";
import type { User } from "~/packages/database-interface/user";
export const localObjectUri = (id: string) =>
new URL(`/objects/${id}`, config.http.base_url).toString();
export const undoFederationRequest = (undoer: User, uri: string): Undo => {
const id = crypto.randomUUID();
return {