Compare commits

...

4 Commits

Author SHA1 Message Date
default 5daab81d01 Added the default 'protocol' field to 'server.json'. 2024-04-19 09:26:34 +02:00
default 040c43fb08 Updated RELEASE_NOTES. 2024-04-19 09:11:28 +02:00
default 922c94ce3c Updated documentation. 2024-04-19 09:09:46 +02:00
default 64adb173cc Only add Emoji tags when needed. 2024-04-19 08:56:03 +02:00
4 changed files with 11 additions and 1 deletions

View File

@ -6,6 +6,8 @@ Posts that were liked or boosted can now be unliked and unboosted.
Added a header to avoid over-zealous caching in some browsers (contributed by louis77).
Added support for running and federating inside hidden networks like Tor, I2P or Loki (contributed by iwojima).
## 2.51
Support for custom Emojis has been added; they are no longer hardcoded, but read from the `emojis.json` file at the server base directory. Also, they are no longer limited to string substitutions, but images as external URLs are also supported (see `snac(8)` for more information).

View File

@ -209,6 +209,13 @@ with a large number of users.
If this numeric value (in seconds) is set, any activity coming from an account
that was created more recently than that will be rejected. This may be used
to mitigate spam from automatically created accounts.
.It Ic protocol
This string value contains the protocol (schema) to be used in URLs. If not
set, it defaults to "https". If you run
.Nm
as part of a hidden network like Tor or I2P that doesn't have a TLS /
Certificate infrastructure, you need to set it to "http". Don't change it
unless you know what you are doing.
.El
.Pp
You must restart the server to make effective these changes.

View File

@ -241,7 +241,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
/* is it an URL to an image? */
if (xs_startswith(v, "https:/" "/") && xs_startswith((t = xs_mime_by_ext(v)), "image/")) {
if (tag) {
if (tag && xs_str_in(s, k) != -1) {
/* add the emoji to the tag list */
xs *e = xs_dict_new();
xs *i = xs_dict_new();

View File

@ -34,6 +34,7 @@ static const char *default_srv_config = "{"
"\"admin_account\": \"\","
"\"title\": \"\","
"\"short_description\": \"\","
"\"protocol\": \"https\","
"\"fastcgi\": false"
"}";