Allow adding app default servers/relays to personal lists
This commit is contained in:
@@ -83,16 +83,6 @@ export function BlossomSettings() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent adding an app server to the user list
|
||||
if (APP_BLOSSOM_SERVERS.servers.some((s) => s === normalized)) {
|
||||
toast({
|
||||
title: 'App server',
|
||||
description: 'This is an app default server. Enable "App Blossom Servers" to use it.',
|
||||
variant: 'destructive',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const newServers = [...servers, normalized];
|
||||
setServers(newServers);
|
||||
setNewServerUrl('');
|
||||
|
||||
@@ -102,16 +102,6 @@ export function RelayListManager() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if it's an app relay
|
||||
if (APP_RELAYS.relays.some(r => r.url === normalized)) {
|
||||
toast({
|
||||
title: 'App relay',
|
||||
description: 'This is an app default relay. Enable "App Relays" to use it.',
|
||||
variant: 'destructive',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const newRelays = [...relays, { url: normalized, read: true, write: true }];
|
||||
setRelays(newRelays);
|
||||
setNewRelayUrl('');
|
||||
|
||||
Reference in New Issue
Block a user