summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/snac.821
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index e28c6fd..b96899e 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -230,6 +230,27 @@ for details. Further, every user can have a private CSS file in their
230that will be served instead of the server-wide one. 230that will be served instead of the server-wide one.
231It's not modifiable from the web interface to avoid users 231It's not modifiable from the web interface to avoid users
232shooting themselves in the foot by destroying everything. 232shooting themselves in the foot by destroying everything.
233.Ss Custom Emojis
234From version 2.51, support for customized Emojis in posts is available
235(previously, they were hardcoded). Emojis are read from the
236.Pa emojis.json
237file in the instance base directory, as a JSON object of key / value
238pairs (if this file does not exist, it will be created with
239the predefined set). Each key in the object contains the text to be found (e.g.,
240the :-) for a smiling face), and its associated value, the text string that
241will replace it (in this example case, the HTML entity for the Unicode codepoint
242for the smiley or the Emoji itself as text).
243.Pp
244Emoji values can also be URLs to image files; in this case, they will not be
245substituted in the post content, but added to the 'tag' array as an ActivityPub
246standard 'Emoji' object (it's recommendable that the Emoji key be enclosed in
247colons for maximum compatilibity with other ActivityPub implementations, like
248e.g. :happydoggo:). These images can be served from an external source or from the
249.Pa static
250directory of the instance admin.
251.Pp
252If you want to disable any Emoji substitution, leave it as a 0 byte file
253or with an empty JSON object ({}).
233.Ss SPAM Mitigation 254.Ss SPAM Mitigation
234There have been some SPAM attacks on the Fediverse and, as too many 255There have been some SPAM attacks on the Fediverse and, as too many
235instances and server implementations out there still allow automatic 256instances and server implementations out there still allow automatic