Dragory
2d13f88ccc
Add `fallbackRoleName` option. Don't include "Moderator" in role-less anonymous replies unless `fallbackRoleName` is set.
2020-10-21 23:24:45 +03:00
Dragory
5b0f9d31b7
Create new message types for staff reply edits/deletions
...
This has backwards-compatibility-breaking changes to the formatters
of staff reply edits/deletions, which now only receive the
thread message for the edit/deletion with the original data in
the thread message's metadata.
2020-10-12 20:54:54 +03:00
Dragory
f9671c385d
Add formatters for system messages
...
This has backwards-compatibility-breaking changes to the signature
of thread.postSystemMessage() and thread.sendSystemMessageToUser().
2020-10-12 20:33:49 +03:00
Dragory
aff119549e
Removed some leftover brackets around message numbers
2020-08-17 01:58:20 +03:00
Dragory
adc54909fa
Tidy up edit/deletion styles
2020-08-17 01:53:21 +03:00
Dragory
6a8ecfed8a
Small extra tweak to thread message numbers
2020-08-17 01:46:51 +03:00
Dragory
3aa74f2cbf
Hide message numbers from non-verbose logs
2020-08-17 01:45:45 +03:00
Dragory
c7b49b5484
Tweaks to default message number formatting
2020-08-17 01:43:36 +03:00
Dragory
d5219556a7
Add full JSDocs for the plugin API
2020-08-16 23:26:04 +03:00
Dragory
7c96d71efe
Tweak edit/delete formatting
2020-08-14 01:19:01 +03:00
Dragory
296d1304a7
Reproducible formatters, add full log formatter
...
Format-specific parts of replies, including the role name and
attachments, are now stored in separate columns. This allows us to
store only one version of the actual message body and, by keeping
format-specific data separate, reproduce formatter results regardless
of when they are called. This cleans up code around message formats
significantly and was required to support !edit/!delete properly.
2020-08-14 00:42:32 +03:00
Dragory
86a060410f
Apply code style from .eslintrc
2020-08-13 00:08:37 +03:00
Dragory
e74363a55c
Show staff reply numbers in threads/logs
2020-07-19 14:24:24 +03:00
Dragory
4e9e347b04
Add internal support for editing/deleting staff replies
2020-07-19 14:11:38 +03:00
Dragory
6b8c7e1bdf
Rename config.js to cfg.js
...
So people don't accidentally edit the config source file rather than
their own config file.
2020-07-19 13:36:07 +03:00
Dragory
662c6b0c21
Allow message formatters to return full message content objects as well as strings
2020-07-14 01:31:50 +03:00
Dragory
8a975d7da4
Add message formatters. Expose message formatters to plugins.
2020-07-14 01:11:48 +03:00