diff options
| author | 2024-03-26 18:56:33 +0100 | |
|---|---|---|
| committer | 2024-03-26 18:56:33 +0100 | |
| commit | fd424dc46f08f796771a5a0ea56ba4ce414a38fd (patch) | |
| tree | 31d523981221e62e4fe2ee7c184f3ccad9f0461a /doc | |
| parent | Some software return a list of icons instead of one, because why not. (diff) | |
| download | snac2-fd424dc46f08f796771a5a0ea56ba4ce414a38fd.tar.gz snac2-fd424dc46f08f796771a5a0ea56ba4ce414a38fd.tar.xz snac2-fd424dc46f08f796771a5a0ea56ba4ce414a38fd.zip | |
Updated documentation.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/snac.8 | 21 |
1 files changed, 21 insertions, 0 deletions
| @@ -230,6 +230,27 @@ for details. Further, every user can have a private CSS file in their | |||
| 230 | that will be served instead of the server-wide one. | 230 | that will be served instead of the server-wide one. |
| 231 | It's not modifiable from the web interface to avoid users | 231 | It's not modifiable from the web interface to avoid users |
| 232 | shooting themselves in the foot by destroying everything. | 232 | shooting themselves in the foot by destroying everything. |
| 233 | .Ss Custom Emojis | ||
| 234 | From 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 | ||
| 237 | file in the instance base directory, as a JSON object of key / value | ||
| 238 | pairs (if this file does not exist, it will be created with | ||
| 239 | the predefined set). Each key in the object contains the text to be found (e.g., | ||
| 240 | the :-) for a smiling face), and its associated value, the text string that | ||
| 241 | will replace it (in this example case, the HTML entity for the Unicode codepoint | ||
| 242 | for the smiley or the Emoji itself as text). | ||
| 243 | .Pp | ||
| 244 | Emoji values can also be URLs to image files; in this case, they will not be | ||
| 245 | substituted in the post content, but added to the 'tag' array as an ActivityPub | ||
| 246 | standard 'Emoji' object (it's recommendable that the Emoji key be enclosed in | ||
| 247 | colons for maximum compatilibity with other ActivityPub implementations, like | ||
| 248 | e.g. :happydoggo:). These images can be served from an external source or from the | ||
| 249 | .Pa static | ||
| 250 | directory of the instance admin. | ||
| 251 | .Pp | ||
| 252 | If you want to disable any Emoji substitution, leave it as a 0 byte file | ||
| 253 | or with an empty JSON object ({}). | ||
| 233 | .Ss SPAM Mitigation | 254 | .Ss SPAM Mitigation |
| 234 | There have been some SPAM attacks on the Fediverse and, as too many | 255 | There have been some SPAM attacks on the Fediverse and, as too many |
| 235 | instances and server implementations out there still allow automatic | 256 | instances and server implementations out there still allow automatic |