mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Don't try to fetch from ActivityPub instances if no bridge is configured
This commit is contained in:
parent
ff315af230
commit
aae99c804a
1 changed files with 4 additions and 0 deletions
|
|
@ -305,6 +305,10 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
|
|||
}
|
||||
|
||||
if (instance.data.protocol === "activitypub") {
|
||||
if (!config.federation.bridge.enabled) {
|
||||
throw new Error("ActivityPub bridge is not enabled");
|
||||
}
|
||||
|
||||
const bridgeUri = new URL(
|
||||
`/apbridge/lysand/query?${new URLSearchParams({
|
||||
user_url: uri,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue