summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar green2026-01-25 00:30:38 +0100
committerGravatar green2026-01-25 00:30:38 +0100
commita14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48 (patch)
treea8fb29437a82de7afb581dc14650d7c41514343a
parentpoll-limits: added documentation to the man page (diff)
downloadsnac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.tar.gz
snac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.tar.xz
snac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.zip
poll-limits: revert accidentally commited changes
-rw-r--r--doc/snac.810
-rw-r--r--html.c3
2 files changed, 5 insertions, 8 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index 760d54c..b5ec33c 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -364,7 +364,7 @@ account creation, it will only get worse.
364includes some (not very strong) tools for trying to survive the SPAM 364includes some (not very strong) tools for trying to survive the SPAM
365flood that will eventually happen. 365flood that will eventually happen.
366.Pp 366.Pp
367The 367The
368.Ic min_account_age 368.Ic min_account_age
369field in the main configuration file allows setting a minimum age (in 369field in the main configuration file allows setting a minimum age (in
370seconds) to consider too recently created accounts suspicious of being 370seconds) to consider too recently created accounts suspicious of being
@@ -379,7 +379,7 @@ These weapons of mass destruction can be written into the
379file in the server base directory, one per line; if this file exists, 379file in the server base directory, one per line; if this file exists,
380all posts' content will be matched (after being stripped of HTML tags) 380all posts' content will be matched (after being stripped of HTML tags)
381against these regexes, one by one, and any match will make the post to 381against these regexes, one by one, and any match will make the post to
382be rejected. Use lower case, the regex will be case insensitive by default. 382be rejected. Use lower case, the regex will be case insensitive by default.
383If you don't know about regular expressions, don't use this 383If you don't know about regular expressions, don't use this
384option (or learn about them inw some tutorial, there are gazillions of 384option (or learn about them inw some tutorial, there are gazillions of
385them out there), as you and your users may start missing posts. Also, 385them out there), as you and your users may start missing posts. Also,
@@ -459,7 +459,7 @@ The rest of activities and objects are dropped on input.
459There is partial support for 459There is partial support for
460.Vt OrderedCollection 460.Vt OrderedCollection
461objects in the 461objects in the
462.Pa /outbox 462.Pa /outbox
463(with the last 20 entries of the local timeline shown). No pagination 463(with the last 20 entries of the local timeline shown). No pagination
464is supported. Intentionally, the 464is supported. Intentionally, the
465.Pa /followers 465.Pa /followers
@@ -542,7 +542,7 @@ snac migrate $SNAC_BASEDIR origin
542.Pp 542.Pp
543This process can be very long and unreliable; any destination server may be down, 543This process can be very long and unreliable; any destination server may be down,
544too busy, disconnected or gone. I recommend you to read the document I linked 544too busy, disconnected or gone. I recommend you to read the document I linked
545above to know about all the sorrows awaiting. 545above to know about all the sorrows awaiting.
546.Pp 546.Pp
547Also, please take note that the 547Also, please take note that the
548.Nm 548.Nm
@@ -631,7 +631,7 @@ the command-line tool. See
631Since version 2.67, a simple logic to avoid brute force attacks against user passwords 631Since version 2.67, a simple logic to avoid brute force attacks against user passwords
632has been implemented: if, from a given IP address, the number of failed logins reaches 632has been implemented: if, from a given IP address, the number of failed logins reaches
633a given threshold, further tries from that IP address are never successful until a timer 633a given threshold, further tries from that IP address are never successful until a timer
634expires. The maximum number of retries can be configured in the 634expires. The maximum number of retries can be configured in the
635.Pa server.json 635.Pa server.json
636file by setting the 636file by setting the
637.Ic badlogin_retries 637.Ic badlogin_retries
diff --git a/html.c b/html.c
index 77ffda9..0ee4d71 100644
--- a/html.c
+++ b/html.c
@@ -3213,7 +3213,6 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
3213 xs_html *add_hashtags = xs_html_tag("ul", 3213 xs_html *add_hashtags = xs_html_tag("ul",
3214 xs_html_attr("class", "snac-more-hashtags")); 3214 xs_html_attr("class", "snac-more-hashtags"));
3215 3215
3216 // todo: wafrn hashtags
3217 xs_list_foreach(tags, tag) { 3216 xs_list_foreach(tags, tag) {
3218 const char *type = xs_dict_get(tag, "type"); 3217 const char *type = xs_dict_get(tag, "type");
3219 3218
@@ -3864,8 +3863,6 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
3864 xs_free(xs_html_render(snac_metadata)); 3863 xs_free(xs_html_render(snac_metadata));
3865 } 3864 }
3866 3865
3867 // todo: add metadata from "attachemnt"->"PropertyValue"
3868
3869 /* buttons */ 3866 /* buttons */
3870 xs *btn_form_action = xs_fmt("%s/admin/action", user->actor); 3867 xs *btn_form_action = xs_fmt("%s/admin/action", user->actor);
3871 3868