diff options
author | default <nobody@localhost> | 2022-10-16 20:06:19 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-16 20:06:19 +0200 |
commit | 2143e6869935fb1edbff9aa603866886dc6f3c97 (patch) | |
tree | 49b6e236222a91a5054421144ecd0395fbb69d60 /html.c | |
parent | 01ffb92e5ef90743b02d3ea1062719406373c6d8 (diff) |
Also allow image attachments from reply posts.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -388,20 +388,20 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg) xs *s1 = xs_fmt( "<p><div class=\"snac-note\" style=\"display: none\" id=\"%s_reply\">\n" - "<form method=\"post\" action=\"%s/admin/note\" id=\"%s_reply_form\">\n" + "<form method=\"post\" action=\"%s/admin/note\" " + "enctype=\"multipart/form-data\" id=\"%s_reply_form\">\n" "<textarea class=\"snac-textarea\" name=\"content\" " "rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n" "<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n" - "<input type=\"submit\" class=\"button\" value=\"%s\">\n" - "<input type=\"text\" name=\"attach_url\"> %s<p>" + "<p><input type=\"file\" name=\"attach\">\n" + "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" "</form><p></div>\n", md5, snac->actor, md5, ct, id, - L("Post"), - L("Image to attach (URL)") + L("Post") ); s = xs_str_cat(s, s1); |