mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09: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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue