diff options
| author | 2026-01-25 00:30:38 +0100 | |
|---|---|---|
| committer | 2026-01-25 00:30:38 +0100 | |
| commit | a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48 (patch) | |
| tree | a8fb29437a82de7afb581dc14650d7c41514343a | |
| parent | poll-limits: added documentation to the man page (diff) | |
| download | snac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.tar.gz snac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.tar.xz snac2-a14cf4a7dbbf6ee90ef8ff4974e7fe9a023d6e48.zip | |
poll-limits: revert accidentally commited changes
| -rw-r--r-- | doc/snac.8 | 10 | ||||
| -rw-r--r-- | html.c | 3 |
2 files changed, 5 insertions, 8 deletions
| @@ -364,7 +364,7 @@ account creation, it will only get worse. | |||
| 364 | includes some (not very strong) tools for trying to survive the SPAM | 364 | includes some (not very strong) tools for trying to survive the SPAM |
| 365 | flood that will eventually happen. | 365 | flood that will eventually happen. |
| 366 | .Pp | 366 | .Pp |
| 367 | The | 367 | The |
| 368 | .Ic min_account_age | 368 | .Ic min_account_age |
| 369 | field in the main configuration file allows setting a minimum age (in | 369 | field in the main configuration file allows setting a minimum age (in |
| 370 | seconds) to consider too recently created accounts suspicious of being | 370 | seconds) to consider too recently created accounts suspicious of being |
| @@ -379,7 +379,7 @@ These weapons of mass destruction can be written into the | |||
| 379 | file in the server base directory, one per line; if this file exists, | 379 | file in the server base directory, one per line; if this file exists, |
| 380 | all posts' content will be matched (after being stripped of HTML tags) | 380 | all posts' content will be matched (after being stripped of HTML tags) |
| 381 | against these regexes, one by one, and any match will make the post to | 381 | against these regexes, one by one, and any match will make the post to |
| 382 | be rejected. Use lower case, the regex will be case insensitive by default. | 382 | be rejected. Use lower case, the regex will be case insensitive by default. |
| 383 | If you don't know about regular expressions, don't use this | 383 | If you don't know about regular expressions, don't use this |
| 384 | option (or learn about them inw some tutorial, there are gazillions of | 384 | option (or learn about them inw some tutorial, there are gazillions of |
| 385 | them out there), as you and your users may start missing posts. Also, | 385 | them 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. | |||
| 459 | There is partial support for | 459 | There is partial support for |
| 460 | .Vt OrderedCollection | 460 | .Vt OrderedCollection |
| 461 | objects in the | 461 | objects 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 |
| 464 | is supported. Intentionally, the | 464 | is supported. Intentionally, the |
| 465 | .Pa /followers | 465 | .Pa /followers |
| @@ -542,7 +542,7 @@ snac migrate $SNAC_BASEDIR origin | |||
| 542 | .Pp | 542 | .Pp |
| 543 | This process can be very long and unreliable; any destination server may be down, | 543 | This process can be very long and unreliable; any destination server may be down, |
| 544 | too busy, disconnected or gone. I recommend you to read the document I linked | 544 | too busy, disconnected or gone. I recommend you to read the document I linked |
| 545 | above to know about all the sorrows awaiting. | 545 | above to know about all the sorrows awaiting. |
| 546 | .Pp | 546 | .Pp |
| 547 | Also, please take note that the | 547 | Also, please take note that the |
| 548 | .Nm | 548 | .Nm |
| @@ -631,7 +631,7 @@ the command-line tool. See | |||
| 631 | Since version 2.67, a simple logic to avoid brute force attacks against user passwords | 631 | Since version 2.67, a simple logic to avoid brute force attacks against user passwords |
| 632 | has been implemented: if, from a given IP address, the number of failed logins reaches | 632 | has been implemented: if, from a given IP address, the number of failed logins reaches |
| 633 | a given threshold, further tries from that IP address are never successful until a timer | 633 | a given threshold, further tries from that IP address are never successful until a timer |
| 634 | expires. The maximum number of retries can be configured in the | 634 | expires. The maximum number of retries can be configured in the |
| 635 | .Pa server.json | 635 | .Pa server.json |
| 636 | file by setting the | 636 | file by setting the |
| 637 | .Ic badlogin_retries | 637 | .Ic badlogin_retries |
| @@ -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 | ||