Commit Graph

698 Commits

Author SHA1 Message Date
HDVinnie 6f3a2a6c17 add: daily + monthly donations charts 2024-10-03 20:52:25 -04:00
Roardom 3878bb85d7 update: add indexes to audits to speed up staff activity counts
Speeds up the queries from 1.1 s to 75 ms.
2024-09-27 07:39:25 +00:00
HDVinnie f629f8d3f0 update: donation controller 2024-09-15 19:04:51 -04:00
HDVinnie 9c61d724b6 update: donation system 2024-09-14 23:05:13 -04:00
HDVinnie f37067a4a8 update: DonationController.php 2024-09-14 10:55:23 -04:00
HDVinnie 428bf63910 add: base donation system 2024-09-12 13:03:38 -04:00
Roardom f51bfab180 add: option to snooze reports 2024-09-03 01:36:07 +00:00
Roardom b36639db54 update: make reports searchable, filterable and sortable 2024-09-02 22:34:11 +00:00
Roardom 9ab8ba18e5 refactor: reduce usage of numeric strings 2024-08-26 10:14:52 +00:00
HDVinnie ea83b46d09 Merge pull request #4054 from Roardom/eloquent-relations
(Refactor) Use eloquent relations directly
2024-08-18 01:17:23 -04:00
Roardom a0299daa16 refactor: use eloquent relations directly 2024-08-18 03:26:41 +00:00
HDVinnie ec32982755 Merge pull request #4063 from Roardom/password-reset-history
(Add) Password reset history logging
2024-08-17 12:02:11 -04:00
Roardom 5f28892153 add: password reset history logging 2024-08-17 15:05:47 +00:00
Roardom 7af1a9963c refactor: don't call ->toDateTimeString() on carbon instances
Eloquent already does this for us automatically by calling __toString() on Carbon instances with the default format being the same as the mysql timestamp format.
2024-08-17 09:20:08 +00:00
HDVinnie 784e783af7 update: AuditController 2024-08-15 15:52:18 -04:00
HDVinnie 66b82e6ae1 add: staff audit activity 2024-08-13 20:57:06 -04:00
Roardom ee55abcd3b refactor: use relational upserts
New feature added to laravel 11.18-11.19 that results in cleaner code.
2024-08-10 09:43:58 +00:00
HDVinnie 0b23f629af Merge pull request #4031 from Roardom/fix-larastan-relations 2024-08-09 23:07:04 -04:00
Roardom 64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom d4b05d3961 fix: don't save non-existant can_download state
This value isn't sent in the form and shouldn't be here.
2024-08-06 01:40:57 +00:00
Roardom 2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
HDVinnie b0ed0263fb Merge pull request #4009 from Obi-Wana/add-poll-expiry-date 2024-07-24 13:28:10 -04:00
Jay Sizzla 6894cca148 Allow polls to expire after a certain date 2024-07-24 16:23:06 +02:00
Roardom e9fe52ac6d update: use composite primary key for history 2024-07-23 06:24:57 +00:00
Roardom 10fc1b2368 update: use composite primary key for peers
The same as was done in #2446 and reverted in ace8dcb but this time using workarounds for Eloquent when it tries to use the non-existing `id` column.
2024-07-16 09:45:03 +00:00
HDVinnie 1ad3e82d9b Merge pull request #3972 from HDInnovations/Uploader-Stats
(Update) Uploader Stats
2024-07-08 19:47:10 -04:00
HDVinnie bcb2cbcc35 update: internal controller 2024-07-08 19:46:46 -04:00
HDVinnie 3e5471924f update: uploader controller 2024-07-08 19:43:45 -04:00
HDVinnie 622d2cebbf update: uploader stats
- recent PR #3824
- route name and prefix should be plural
- a site may have many is_uploader groups so lets use whereIntegerInRaw and orderBY group_id
2024-07-08 00:14:54 -04:00
HDVinnie 16e6ef4fb5 add: internal stats 2024-07-08 00:08:28 -04:00
HDVinnie 516895097b Merge pull request #3957 from Roardom/fix-report-staff-read
(Fix) Mark staff report replies as read automatically
2024-07-03 11:39:48 -04:00
Jay 2ac770746a (Add) Active and inactive uploader staff view (#3824)
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-07-03 11:38:11 -04:00
Roardom 11257ae7a0 fix: mark staff report replies as read automatically 2024-07-02 21:14:03 +00:00
MiM-MiM af3c6e4ed3 Update: Moderation comment
- Removed app.url handled by bbcode parser.
- Changed to single quote strings for parts without escape characters (newlines).
2024-07-01 16:11:03 -04:00
MiM-MiM 1dce66e5d9 Update: Moderation Private Message
- Fix: Spacing typo.
- Fix: Set sender as read=true.
- Update: Add the URL to the message.
- Update: Add a quote tag around the staff message.
2024-07-01 12:03:03 -04:00
Roardom 6d729fee16 fix: consistently upsert user into external announce on group change 2024-06-24 02:50:33 +00:00
Roardom c33376608b fix: properly remove receiver_id column from private_messages 2024-06-19 09:41:05 +00:00
Roardom 8b9b038701 fix: conversation creation
Should use `sender_id`, not `user_id`. Also need to create conversations for all non-system pms.
2024-06-15 01:55:03 +00:00
Roardom 2f48eba1be fix: chatroom deletion only comparing name
Also remove the chat repository usage as it's unneeded and will be removed completely soon.
2024-06-09 05:57:37 +00:00
Roardom 2e57262e97 fix: strict types phpstan errors 2024-05-23 15:38:35 +00:00
Roardom b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie 3762d6eb11 (Add) Request #3792 (#3795)
* add: #3792

- closes #3792
2024-04-30 14:10:06 -04:00
HDVinnie e73ade1a81 fix: forum create bug 2024-03-13 15:00:54 -04:00
HDVinnie 378af760f2 add: #3636
- closes #3636
2024-03-12 10:42:31 -04:00
Roardom eda5f28d4c update: set default topic state filter per forum
Useful for forums dedicated to fixing bugs or adding suggestions. This way, topics can be closed when bugs are fixed or suggestions are implemented, and opening the forum only shows relevant bugs/suggestions by default. Topics with different states can be accessed by changing the filter back to `Any`.
2024-03-06 12:02:23 +00:00
Roardom 336c70dd73 update: combine staff wiki and wiki category pages 2024-03-01 06:35:47 +00:00
Roardom f2dbdd324c fix: whitelisted image url domain matching
Use wildcards on the full url instead of just the hostname.
2024-02-28 22:54:47 +00:00
Roardom 829101f093 add: bbcode image domain whitelist 2024-02-26 09:11:59 +00:00
HDVinnie 0dcf021039 Merge branch '7.x.x' into forum-permission-scopes 2024-02-25 18:39:29 -05:00
HDVinnie 194e761169 Merge pull request #3573 from Roardom/forum-permissions
(Refactor) Rename permissions to forum_permissions
2024-02-25 18:36:59 -05:00