Fixed edit and delete comment buttons

This commit is contained in:
James David Clarke 2023-12-23 21:12:57 +00:00
parent 0dfdba8555
commit f25961f13e
No known key found for this signature in database
GPG key ID: 9F5ECFD0E20F1C4C

View file

@ -111,8 +111,8 @@ local function show_proposal_details(player_name, proposal_index)
-- Edit and Delete buttons for the player's own comment -- Edit and Delete buttons for the player's own comment
if has_commented then if has_commented then
formspec = formspec .. "button[9,9.5;3,1;edit_my_comment;Edit Comment]" .. formspec = formspec .. "button[9,9.5;3,1;edit_comment_" .. player_name .. ";Edit Comment]" ..
"button[9,10.5;3,1;delete_my_comment;Delete Comment]" "button[9,10.5;3,1;delete_comment_" .. player_name .. ";Delete Comment]"
end end
-- Add Comment button only if the player has not commented and is not the author -- Add Comment button only if the player has not commented and is not the author