Skip to content

Commit 5709580

Browse files
author
jeremyd
committed
update brainstorm link to straycat; fix external domain links on landing
1 parent 917a9a9 commit 5709580

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

app/curator/wizard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function Wizard(
6868
const [aclSourceUrl, setAclSourceUrl] = useState("");
6969
const [aclSourceType, setAclSourceType] = useState("brainstorm"); // can be "brainstorm" or "nip05"
7070
const [brainstormObserverPubkey, setBrainstormObserverPubkey] = useState<string>("");
71-
const [brainstormBaseUrl, setBrainstormBaseUrl] = useState("https://cloudfodder.brainstorm.social/api/get-whitelist");
71+
const [brainstormBaseUrl, setBrainstormBaseUrl] = useState("https://straycat.brainstorm.social/api/get-whitelist");
7272
const [showAdvancedBrainstorm, setShowAdvancedBrainstorm] = useState(false);
7373

7474
// Handle session data and auto-fill user pubkey
@@ -1628,7 +1628,7 @@ export default function Wizard(
16281628
</label>
16291629
<input
16301630
type="text"
1631-
placeholder="https://cloudfodder.brainstorm.social/api/get-whitelist"
1631+
placeholder="https://straycat.brainstorm.social/api/get-whitelist"
16321632
className="input input-bordered w-full"
16331633
value={brainstormBaseUrl}
16341634
onChange={(e) => setBrainstormBaseUrl(e.target.value)}

app/relays/[slug]/page.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ export default async function RelayPage({
9393
const profileImage = relay.profile_image && relay.profile_image.trim() !== '' ?
9494
relay.profile_image : bannerImage;
9595

96+
let useRelayUrl = 'wss://' + relay.name + '.' + relay.domain
97+
98+
if(relay.is_external) {
99+
useRelayUrl = 'wss://' + relay.domain
100+
}
101+
96102
return (
97103
<RelayPageClient relay={relay}>
98104
<div className="container mx-auto p-4">
@@ -130,7 +136,7 @@ export default async function RelayPage({
130136
<h1 className="text-2xl sm:text-3xl font-bold text-white text-center sm:text-left">{relay.name}</h1>
131137
<p className="text-xs sm:text-sm flex items-center justify-center sm:justify-start gap-1 text-white/90 mt-1">
132138
<FaGlobe className="text-primary" />
133-
<span className="font-mono overflow-hidden text-ellipsis">{'wss://' + relay.name + '.' + relay.domain}</span>
139+
<span className="font-mono overflow-hidden text-ellipsis">{useRelayUrl}</span>
134140
</p>
135141
</div>
136142

@@ -246,10 +252,10 @@ export default async function RelayPage({
246252
<div className="divider my-1"></div>
247253
<div className="flex items-center justify-between bg-base-200 p-3 rounded-md">
248254
<div className="font-mono text-xs break-all">
249-
{'wss://' + relay.name + '.' + relay.domain}
255+
{useRelayUrl}
250256
</div>
251257
<CopyUrlButton
252-
url={'wss://' + relay.name + '.' + relay.domain}
258+
url={useRelayUrl}
253259
className="btn btn-sm btn-ghost ml-2"
254260
/>
255261
</div>
@@ -258,7 +264,7 @@ export default async function RelayPage({
258264
<h3 className="text-sm font-medium mb-2">Recommended clients:</h3>
259265
<div className="flex flex-wrap gap-2">
260266
<a
261-
href={`https://jumble.social/?r=${encodeURIComponent('wss://' + relay.name + '.' + relay.domain)}`}
267+
href={`https://jumble.social/?r=${encodeURIComponent(useRelayUrl)}`}
262268
target="_blank"
263269
rel="noopener noreferrer"
264270
className="btn btn-xs btn-outline"

0 commit comments

Comments
 (0)