17 Commits

Author SHA1 Message Date
Tetrakern
d145405955 Fix missing thumbnail in Discord story embed 2025-01-18 20:14:15 +01:00
Tetrakern
4b41dc825c Add helper to get chapter story ID
This would be useful if I ever decide to use the parent ID field instead if meta.
2024-10-26 02:03:23 +02:00
Tetrakern
d319025dbb Replace fictioneer_deleted_by_user with user_deleted comment type
One meta field less.
2024-09-23 03:01:53 +02:00
Tetrakern
a007d20f76 Refactor Discord post trigger handling (again)
I didn't like storing all these IDs in an array after all, because I know some cases where this would end up with tens of thousands. New plan: check for both the meta and time since publishing, but delete the meta after a day. The post will then be too old to trigger.
2024-09-16 18:28:49 +02:00
Tetrakern
2227a27917 Improve check for old posts in Discord messages 2024-09-16 14:06:27 +02:00
Tetrakern
4f23b4364b Refactor Discord post message memory
Use a single option array instead of a meta field per post. This information is only required when a post is saved for the first time, so there is no need to bloat the post meta table.
2024-09-10 13:07:38 +02:00
Tetrakern
c5b73165f5 Make Discord messages non-blocking outside debug mode 2024-09-10 12:36:39 +02:00
Tetrakern
ffaf30e10c Make type and status in comment Discord message translatable 2024-09-10 12:36:29 +02:00
Tetrakern
e2319511d8 Fix Discord notification for private guest comments 2024-09-10 12:27:33 +02:00
Tetrakern
f5e6e2bf3a Fix doc comment 2024-09-10 12:05:10 +02:00
Tetrakern
3f65c2b883 Fix missing story ID in discord chapter message 2024-09-10 11:52:18 +02:00
Tetrakern
202292778e Refactor and fix Discord webhook functions 2024-07-29 17:13:28 +02:00
Tetrakern
6a00b5f983 Simplify conditions 2024-07-29 14:29:13 +02:00
Tetrakern
60279af03a Add filters to Discord channel webhooks 2024-06-10 17:09:59 +02:00
Tetrakern
5db10bb6ec Add guard clause to discord message function
With the new filter, this allows to stop it without throwing errors.
2024-05-12 19:11:41 +02:00
Tetrakern
1d309886f6 Add message filters to Discord webhooks 2024-05-12 16:08:07 +02:00
Tetrakern
5df5bc696f Rename files for clarity, move some functions
Bringing order to the mess, one commit at a time.
2024-04-13 16:54:33 +02:00