╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1433 │ │1434 const draft_user_id = if (parts.thread_kind == .patch) request_author.user_id else null; │ │1435 if (draft_user_id) |user_id| { │ │1441 - const remote = switch (host) { │ │1442 - .remote => |remote| remote, │ │1436 + const server = switch (host) { │ │1437 + .server => |server| server, │ │1438 .local => unreachable, │ │1439 }; │ │1440 const request_repo = (try requestRepoSource(io, allocator, host, parts.repo_base)) orelse return respondRemoveNotFound(request);│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1445 return respondThreadFormFailure(request, allocator, host, form_location, invalidTargetBranchFeedback(title, tags, description, target_branch));│ │1446 } │ │1447 const repo_id = evt.parseEventId(std.fs.path.basename(request_repo.source.path)) catch return respondRemoveNotFound(request); │ │1453 - var admin_repo = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = remote.admin_repo_path }); │ │1448 + var admin_repo = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = server.admin_repo_path }); │ │1449 defer admin_repo.deinit(io, allocator); │ │1450 const id = std.fmt.bytesToHex(parts.thread_id, .lower); │ │1456 - const repos_dir = try std.fs.path.join(allocator, &.{ std.fs.path.dirname(remote.admin_repo_path) orelse ".", "repos" }); │ │1451 + const repos_dir = try std.fs.path.join(allocator, &.{ std.fs.path.dirname(server.admin_repo_path) orelse ".", "repos" }); │ │1452 defer allocator.free(repos_dir); │ │1453 const fork_path = try fork.forkPath(allocator, repos_dir, &id); │ │1454 defer allocator.free(fork_path); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │1672 var page_arena = std.heap.ArenaAllocator.init(allocator); │ │1673 defer page_arena.deinit(); │ │1674 │ │1680 - // the remote admin repo must outlive the page build, since the session's│ │1675 + // the server admin repo must outlive the page build, since the session's│ │1676 // moment reads from it. │ │1677 var repo_maybe: ?rp.Repo(.xit, evt.admin_repo_opts) = null; │ │1678 defer if (repo_maybe) |*repo| repo.deinit(io, allocator); │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1679 │ │1680 var session = switch (host) { │ │1686 - .remote => |remote| blk: { │ │1681 + .server => |server| blk: { │ │1682 // open the admin repo to read live user/repo data. │ │1688 - repo_maybe = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = remote.admin_repo_path });│ │1683 + repo_maybe = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = server.admin_repo_path });│ │1684 const repo = if (repo_maybe) |*repo| repo else unreachable; │ │1685 var session = try ui.Session.init(&page_arena, repo, session_data); │ │1686 // give the page builders filesystem access to the on-disk repos (a │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1687 // sibling "repos" dir next to the admin repo) so the Repo page can │ │1688 // read its files. │ │1694 - session.repos_dir = try std.fs.path.join(page_arena.allocator(), &.{ std.fs.path.dirname(remote.admin_repo_path) orelse ".", "repos" });│ │1689 + session.repos_dir = try std.fs.path.join(page_arena.allocator(), &.{ std.fs.path.dirname(server.admin_repo_path) orelse ".", "repos" });│ │1690 break :blk session; │ │1691 }, │ │1692 .local => |local| ui.Session{ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯