mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
fix(desktop): derive default clone URL for relay-hosted repos (#2166)
Signed-off-by: Tyler <109685178+tlongwell-block@users.noreply.github.com> Co-authored-by: npub1hwqy0rnujtl25dzmlhn8qwux4kr8sjhas3ugltx9j5dm5dwkp2dsqjhytw <bb80478e7c92feaa345bfde6703b86ad86784afd84788facc5951bba35d60a9b@pending-seed.communities.buzz.xyz>
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
projectsQueryKey,
|
||||
} from "@/features/projects/hooks";
|
||||
import { relayClient } from "@/shared/api/relayClient";
|
||||
import { getCachedRelayOrigin } from "@/shared/lib/mediaUrl";
|
||||
import { signRelayEvent } from "@/shared/api/tauri";
|
||||
import { getIdentity } from "@/shared/api/tauriIdentity";
|
||||
import { KIND_REPO_ANNOUNCEMENT } from "@/shared/constants/kinds";
|
||||
@@ -77,7 +78,7 @@ async function createProject(input: CreateProjectInput): Promise<Project> {
|
||||
"Failed to create project.",
|
||||
);
|
||||
|
||||
return eventToProject(event);
|
||||
return eventToProject(event, getCachedRelayOrigin());
|
||||
}
|
||||
|
||||
/** Mutation that creates a project and inserts it into the projects cache. */
|
||||
|
||||
Reference in New Issue
Block a user