Commit Graph

267 Commits

Author SHA1 Message Date
Vari
a0e2e321cc Created a middleware for checking permissions in admin controllers, so I cannot forget to add permission checks.
Changed some descriptions of the admin tools for Miraak.

Aded some more Permissions and added a moderator role.
2024-08-11 16:34:59 +02:00
Vari
a07e7710d0
Merge pull request #25 from Deathgarden-Rebirth/match-history-and-quitter-state
Match history and quitter state
2024-08-10 19:15:48 +02:00
Vari
29582fa9e7 Small fixes for handling strike refreshing and a case of endless loop when refreshing strikes to the lumit. 2024-08-09 00:01:25 +02:00
Vari
5afb932527 Small fixes to getQuitterState 2024-08-08 23:20:13 +02:00
Vari
bfbfccf2cc Fixed QuitterState using wrong cast for datetime 2024-08-08 23:10:37 +02:00
Vari
a9020cf844 Added Handling of Quitter state streak and rewards. 2024-08-07 00:12:45 +02:00
Vari
8fbc0ff864 Added Start Micro timestamp to see when exaclty request entered the server. 2024-08-06 22:11:17 +02:00
Vari
120e691d1d Small hotfix for when saving an inbox message. the default value in the $attributes array in the model for a json field should not be an array, but a string. 2024-08-06 21:59:04 +02:00
Vari
179adc7518 Added Game and Player match history. Also adjusted how players get deleted from a match. 2024-07-31 22:14:48 +02:00
Vari
2887872316
Merge pull request #24 from Deathgarden-Rebirth/player_reports
Player reports
2024-07-29 19:09:33 +02:00
Vari
7b1735fc89 Added notification for unhandled Player Reports 2024-07-28 22:06:10 +02:00
Vari
ca6fbc389b Small fix of player reports 2024-07-28 21:55:54 +02:00
Vari
101688399f Added Report admin Tool with frontend to handle Player Reports. Similar to the Chat Message handling. 2024-07-28 21:50:59 +02:00
Vari
6fce73e3f2 Added feedback endpoint for Player Reports and saving them in the Backend. 2024-07-28 06:32:47 +02:00
Vari
0d44b991ed
Merge pull request #22 from Deathgarden-Rebirth/profanity-filter
Chat Profanity Filter
2024-07-27 19:28:11 +02:00
Vari
16bb5d88d5 Added Created Ad Timestamp to chat message list 2024-07-27 19:11:53 +02:00
Vari
b483513064 Added some more links to the chat messages list to easer go to the message users profile, inbox, bans etc. 2024-07-27 19:07:09 +02:00
Vari
45cb45b8cc Added Admin UI for handling bad chat messages. 2024-07-27 18:25:02 +02:00
Vari
b411a34189 Added Database Table for detected bad chat messages and add them automatically if the profanity filter detects something. 2024-07-23 20:54:34 +02:00
Vari
4e81dec317 Added moderation check chat message endpoint. 2024-07-21 00:47:45 +02:00
MiraakDG
2a40f7cc6d
Merge pull request #20 from Deathgarden-Rebirth/player_inbox
Player Inbox + Mailer
2024-07-20 21:49:16 +02:00
Vari
acc1674c36 Fix missing correctet where query in InboxController list method like it is in count method. 2024-07-20 21:34:44 +02:00
Vari
660c745d96 Fix expire_at always bing the current timestamp when mailing an inbox message with no expire Date 2024-07-11 22:07:11 +02:00
Vari
4bc7c16a33 Fix delete messages using old naming 2024-07-11 21:56:17 +02:00
Vari
4cb61c1c2a Add default value to timestamp because it defaults to ON UPDATE CURRENT_TIMESTAMP() and messes with the timestampIds 2024-07-11 21:56:17 +02:00
Vari
e86a347920 Add DB Query log 2024-07-11 21:56:17 +02:00
Vari
0555a6b6f4 Player inbox: Try to fix stuff. 2024-07-11 21:56:17 +02:00
Vari
7a389832d9 Player inbox: rename rewardType to type because game expects that. 2024-07-11 21:56:17 +02:00
Vari
b86ac5e1ec Player inbox: rename rewardType to type because game expects that. 2024-07-11 20:52:32 +02:00
Vari
644a6ffcf8 Player inbox: fix reward id wrong format. 2024-07-09 18:41:04 +02:00
Vari
c9c8022b39 Some bugfixes + now added showing the deleted messages in the user inbox. 2024-07-09 01:43:59 +02:00
Vari
8a9ec5cf19 Fixed recevied timestamp being send back as datetime string and not MS timestamp in mark messages endpoint. 2024-07-09 00:53:39 +02:00
Vari
332b127e21 Fix old timestamp format being used to find an inbox message with 'received'.
Also fixed message count not working when expire_at is null.
2024-07-08 00:00:32 +02:00
Vari
06248ffe26 Fix created_at and updated_at not being send when sending inbox messages because of the bulk insert. 2024-07-07 23:29:38 +02:00
Vari
1093e11250 Hopefully finished Inbox Messages! 2024-07-07 23:24:48 +02:00
Vari
e51cbce906 Fixed template and Js of the item-selector because it only worked if it was only one time on the page.
Added user-selector dropdown with data fetching from the backend.

Fix a null error in the inbox-message component.
2024-07-06 21:17:24 +02:00
Vari
b975170b55 Almost Finished the inbox messages adminpage. Now the only thing missing is the creation of new messages and the mailer. 2024-07-02 23:45:02 +02:00
Vari
16e1ab191d Inbox Message:
- Changed 'received' column type to timestamp.
- Implemented Soft deletes and Prunable job for InboxMessage Model.
2024-05-28 07:52:13 +02:00
Vari
68c0d6f130 Fixed inbox Message MarkAs endpoint using logif of old table structure 2024-05-27 07:08:24 +02:00
Vari
49bc120a21 Fixed Inbox message wrong field for received. 2024-05-27 06:49:49 +02:00
Vari
ca2f379238 Allow null claimable to catch some cases of wrong database entries for the claimable field. 2024-05-27 06:48:28 +02:00
Vari
81f5d5f54c Added Login and Endpoint for claiming message rewards. 2024-05-26 19:19:19 +02:00
Vari
34fd1e0ac7 Fixed Delete Message endpoint always deleting all messages. 2024-05-26 07:09:35 +02:00
Vari
beed8d7e37 Fixed Delete Message endpoint always deleting all messages. 2024-05-26 06:42:36 +02:00
Vari
c1bba9dbdb Fixed Messages being marked as read too early because there were missing endpoints. 2024-05-26 06:34:28 +02:00
Vari
f25401c77e Implemented Mark Messages As endpoint (POST api/v1/messages/v2/markAs) 2024-05-26 06:19:02 +02:00
Vari
5b50c75646 Implemented Delete message list endpoint (DELETE /api/v1/messages/list) 2024-05-26 05:55:02 +02:00
Vari
365ba978c0 Implemented Model,logic and response for inbox messages. 2024-05-26 05:07:13 +02:00
Vari
eea8a235d8 Deleted Insomnium Collection and Moved into a Bruno Collection. 2024-05-25 06:20:48 +02:00
Vari
58294c0c77 Started working on player inbox 2024-05-20 23:52:21 +02:00