Compare commits

...

2 Commits

Author SHA1 Message Date
default 27816a974b Updated RELEASE_NOTES. 2024-04-03 09:02:18 +02:00
default 0f9a859f73 Added some error logging regarding the emojis.json file. 2024-04-03 08:58:44 +02:00
3 changed files with 10 additions and 3 deletions

View File

@ -6,7 +6,7 @@ Support for custom Emojis has been added; they are no longer hardcoded, but read
Fixed a bug that caused some notifications to be lost when coming from a user in the same instance.
Added an additional check for blocked instances.
Added an additional check for blocked instances (sometimes, posts from blocked sites that were ancestors of legit posts were 'leaking' into the timeline).
On OpenBSD, if the `disable_email_notifications` server flag is set to `true`, `unveil()` is not called for the execution of the `/usr/sbin/sendmail` binary and `pledge()` doesn't set the `exec` promise.

View File

@ -249,8 +249,8 @@ e.g. :happydoggo:). These images can be served from an external source or from t
.Pa static
directory of the instance admin.
.Pp
If you want to disable any Emoji substitution, leave it as a 0 byte file
or with an empty JSON object ({}).
If you want to disable any Emoji substitution, change the file to contain
just an empty JSON object ({}).
.Ss SPAM Mitigation
There have been some SPAM attacks on the Fediverse and, as too many
instances and server implementations out there still allow automatic

View File

@ -58,6 +58,8 @@ xs_dict *emojis(void)
xs_json_dump(d, 4, f);
fclose(f);
}
else
srv_log(xs_fmt("Error creating '%s'", fn));
}
xs_dict *d = NULL;
@ -65,7 +67,12 @@ xs_dict *emojis(void)
if ((f = fopen(fn, "r")) != NULL) {
d = xs_json_load(f);
fclose(f);
if (d == NULL)
srv_log(xs_fmt("JSON parse error in '%s'", fn));
}
else
srv_log(xs_fmt("Error opening '%s'", fn));
return d;
}