╭ changed ──────────────╮ │src/ui/Repo/Patches.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │182 return id; │ │183 } │ │184 │ │185 -pub fn postDraft(data: *const Self, session: *ui.Session, allocator: std.mem.Allocator, id: []const u8) !void { │ │185 +pub fn publishDraft(data: *const Self, session: *ui.Session, allocator: std.mem.Allocator, id: []const u8) !void {│ │186 const io = session.io orelse return error.NotFound; │ │187 const repos_dir = session.repos_dir orelse return error.NotFound; │ │188 const admin_repo = session.admin_repo orelse return error.NotFound; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │201 │ │202 var target_repo = try rp.Repo(.xit, .{}).open(io, allocator, repo_source.localInitOpts());│ │203 defer target_repo.deinit(io, allocator); │ │204 - try pch.post(.{}, io, allocator, admin_repo, &target_repo, fork_path, .{ │ │204 + try pch.publish(.{}, io, allocator, admin_repo, &target_repo, fork_path, .{ │ │205 .id = id_hex, │ │206 .user_id = user_id, │ │207 .repo_id = repo_id, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │332 empty.drafts = drafts_window; │ │333 if (draft_selected and view != .remove) empty.view = .drafts; │ │334 │ │335 - // an explicitly named posted patch that doesn't exist is a bad url │ │335 + // an explicitly named published patch that doesn't exist is a bad url │ │336 // (NotFound -> 404); drafts, tags, and bare routes can use the empty fallback.│ │337 const strict = rooted and !draft_selected; │ │338 │ ╰────────────────────────────────────────────────────────────────────────────────────────╯