diff options
| author | patrick-scho | 2025-04-08 20:48:22 +0200 |
|---|---|---|
| committer | patrick-scho | 2025-04-08 20:48:22 +0200 |
| commit | 355355f8305852a609d3960fb9e9b07177cf8f1f (patch) | |
| tree | 07474c92e4a2ba57e8f574e4e91e5fd6826197f2 | |
| parent | b30a60adbaae5f6af46d32b3a45195fd8664662c (diff) | |
| download | chirp-355355f8305852a609d3960fb9e9b07177cf8f1f.tar.gz chirp-355355f8305852a609d3960fb9e9b07177cf8f1f.zip | |
<input></input> -> <input />
| -rw-r--r-- | src/main.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 9411261..8cabda6 100644 --- a/src/main.zig +++ b/src/main.zig @@ -699,8 +699,8 @@ fn write_post(res: *http.Response, txn: lmdb.Txn, logged_in: ?Login, post_id: Po try res.write("<option value=\"{x}\">{s}{s}</option>", .{ id, name.constSlice(), if (list_view.has(post_id) catch false) " *" else "" }); } try res.write("</select>", .{}); - try res.write("<input type=\"hidden\" name=\"post_id\" value=\"{x}\"></input>", .{@intFromEnum(post_id)}); - try res.write("<input type=\"submit\" value=\"Save\"></input>", .{}); + try res.write("<input type=\"hidden\" name=\"post_id\" value=\"{x}\" />", .{@intFromEnum(post_id)}); + try res.write("<input type=\"submit\" value=\"Save\" />", .{}); try res.write("</form>", .{}); } @@ -780,8 +780,8 @@ fn write_profile(res: *http.Response, txn: lmdb.Txn, logged_in: ?Login, user: Us try res.write("<option value=\"{x}\">{s}{s}</option>", .{ id, name.constSlice(), if (list_view.has(user.id) catch false) " *" else "" }); } try res.write("</select>", .{}); - try res.write("<input type=\"hidden\" name=\"user_id\" value=\"{x}\"></input>", .{@intFromEnum(user.id)}); - try res.write("<input type=\"submit\" value=\"Add to feed\"></input>", .{}); + try res.write("<input type=\"hidden\" name=\"user_id\" value=\"{x}\" />", .{@intFromEnum(user.id)}); + try res.write("<input type=\"submit\" value=\"Add to feed\" />", .{}); try res.write("</form>", .{}); } try res.write( |
