╭ changed ───────────────╮ │src/event/Attachment.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │129 if (!nameValid(blob.name)) return error.InvalidFields; │ │130 if (blob.size == 0 or blob.size > max_size) return error.InvalidFields; │ │131 │ │132 - const parent_id_bytes = evt.parseEventId(parent_id) catch return error.InvalidFields; │ │133 - if (!try evt.threadHolds(repo_kind, repo_opts, io, allocator, repo, parent_kind, &parent_id_bytes, null)) return error.ParentNotFound;│ │132 + const target_id_bytes = evt.parseEventId(target_id) catch return error.InvalidFields; │ │133 + if (!try evt.threadHolds(repo_kind, repo_opts, io, allocator, repo, target_kind, &target_id_bytes, null)) return error.TargetNotFound;│ │134 │ │135 var id_bytes: [evt.event_id_size]u8 = undefined; │ │136 io.random(&id_bytes); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │140 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()),│ │141 .author = author, │ │142 .tree_entries = &.{.{ .blob = blob }}, │ │143 - .event = .{ .attach = .{ .parent_id = parent_id.* } }, │ │143 + .event = .{ .attach = .{ .target_id = target_id.* } }, │ │144 }}); │ │145 return event_id; │ │146 } │ ╰────────────────────────────────────────────────────────────────────────────────╯