╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2288 return switch (try authorizeUser(io, moment, self.page_arena, users_dir, user_id, identity, min_role)) {│ │2289 .actor => |actor| actor, │ │2290 .login_required, .repo_not_found, .forbidden => null, │ │2291 + }; │ │2292 + } │ │2293 + │ │2294 + // where this session's event writes go. a server session always has a users dir │ │2295 + pub fn eventHost(self: *const Self) evt.Host { │ │2296 + return switch (self.data.host_kind) { │ │2297 + .local => .local, │ │2298 + .server => .{ .server = .{ .users_dir = self.users_dir orelse unreachable } }, │ │2299 }; │ │2300 } │ │2301 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2331 self.apply(action); │ │2332 switch (action) { │ │2333 .toggle_ansi => if (self.data.user_id) |user_id| { │ │2326 - try evt.User.toggleAnsi(evt.admin_repo_opts, io, allocator, repo, user_id); │ │2334 + try evt.User.toggleAnsi(evt.admin_repo_opts, io, allocator, repo, self.users_dir orelse unreachable, user_id);│ │2335 }, │ │2336 } │ │2337 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯