summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RELEASE_NOTES.md4
-rw-r--r--TODO.md4
-rw-r--r--doc/snac.117
-rw-r--r--html.c8
4 files changed, 32 insertions, 1 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index bd78e6c..909b968 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,5 +1,9 @@
# Release Notes
+## 2.47
+
+The *New Post...* option now includes an optional field to set the URL of an ActivityPub post to be a reply to.
+
## 2.46
Added support for Peertube videos.
diff --git a/TODO.md b/TODO.md
index 794e6f1..2904859 100644
--- a/TODO.md
+++ b/TODO.md
@@ -6,7 +6,7 @@ Unfollowing lemmy groups gets rejected with an http status of 400.
Unfollowing guppe groups seems to work (http status of 200), but messages continue to arrive as if it didn't.
-Fix `timeline_request_replies()` issues (more info there).
+Fix duplicate mentions, see https://codeberg.org/grunfink/snac2/issues/115
Post edits should preserve the image and the image description somewhat.
@@ -20,6 +20,8 @@ Integrate "Ability to federate with hidden networks" see https://codeberg.org/gr
Integrate "Added handling for International Domain Names" PR https://codeberg.org/grunfink/snac2/pulls/104
+Change HTML metadata information to the post info instead of user info, see https://codeberg.org/grunfink/snac2/issues/116
+
Add more CSS classes according to https://comam.es/snac/grunfink/p/1705598619.090050
Add support for /share?text=tt&website=url (whatever it is).
diff --git a/doc/snac.1 b/doc/snac.1
index cb8462f..7f5a897 100644
--- a/doc/snac.1
+++ b/doc/snac.1
@@ -52,6 +52,23 @@ enter plain text, @user@host mentions and other things. See the
.Xr snac 5
manual for more information on the allowed markup.
.Pp
+Other fields immediately below the big text one allow some control
+about the post to be sent:
+.Bl -tag -offset indent
+.It Sensitive content
+If you set this checkbox, your post will be marked with a
+content warning. The immediately following, optional text box
+allows you to write a description about why your content is
+so sensitive.
+.It Only for mentioned people
+If you set this checkbox, your text will not be public, but only
+sent to those people you mention in the post body.
+.It Reply to (URL)
+If you fill this optional text field with the URL of another one's
+post, your text will be considered as a reply to it, not a
+standalone one.
+.El
+.Pp
More options are hidden under a toggle control. They are the
following:
.Bl -tag -offset indent
diff --git a/html.c b/html.c
index 86ec3c6..1d46970 100644
--- a/html.c
+++ b/html.c
@@ -344,6 +344,14 @@ xs_html *html_note(snac *user, char *summary,
xs_html_attr("type", "hidden"),
xs_html_attr("name", "in_reply_to"),
xs_html_attr("value", in_reply_to)));
+ else
+ xs_html_add(form,
+ xs_html_tag("p", NULL),
+ xs_html_text(L("Reply to (URL): ")),
+ xs_html_sctag("input",
+ xs_html_attr("type", "text"),
+ xs_html_attr("name", "in_reply_to"),
+ xs_html_attr("placeholder", "Optional URL to reply to")));
if (edit_id)
xs_html_add(form,