Commit Graph

682 Commits

Author SHA1 Message Date
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
HDVinnie
77b9754e4d Merge pull request #3569 from Roardom/system-user-id
(Refactor) Use system user id constant in more places
2024-02-25 18:36:12 -05:00
Roardom
6e5b3d9e3b refactor: use scope for forum authorization 2024-02-25 10:23:56 +00:00
Roardom
4311507870 refactor: rename permissions to forum_permissions 2024-02-25 06:21:41 +00:00
Roardom
580da7022d refactor: rename permissions to forum_permissions 2024-02-25 00:19:04 +00:00
Roardom
f8d6e73902 refactor: use system user id constant in more places 2024-02-24 05:08:58 +00:00
HDVinnie
4918799072 Merge pull request #3567 from Roardom/many-internals
(Update) Allow users to be part of multiple internal groups
2024-02-23 21:02:02 -05:00
Roardom
c3c95c2d41 update: allow users to be part of multiple internal groups 2024-02-23 23:57:12 +00:00
Roardom
3847bde266 update: swap sleep in command for confirm
Will speed up some test cases too.
2024-02-23 13:55:22 +00:00
HDVinnie
221b9e4dee remove: joypixel emojis 2024-02-22 17:44:53 -05:00
Roardom
686f1560ca update: separate forum categories into their own model 2024-02-12 07:39:52 +00:00
Roardom
f30dec4a0c update: remove show_forum permission
This permission is used the same as the `read_topic` permission.
2024-02-10 19:50:05 +00:00
Roardom
4422222a4b add: automatic torrent freeleeches
Automatically set torrents to freeleech if they match the given criteria.
2024-02-07 11:14:39 +00:00
Roardom
6bcdb71bde fix: group order in various locations 2024-02-01 12:27:50 +00:00
Roardom
4b3583fff0 add: torrent leak search 2024-01-28 10:54:12 +00:00
Roardom
c6f220bf84 add: email logging
Don't log the email addresses themselves to maintain user privacy.
2024-01-21 10:59:26 +00:00
Roardom
d613092ed8 update: allow empty peer id prefix for client blacklist
Simple way to block all clients in emergencies.
2024-01-12 11:50:01 +00:00