Commit Graph

376 Commits

Author SHA1 Message Date
Roardom ea1bdca818 update: store null for metadata id if they do not exist
And make it difficult / encourage users to submit the ids instead of leaving them empty.
2025-03-25 23:19:10 +00:00
Roardom ae33c74f2b refactor: prefix tmdb metadata models with tmdb
Will help for when there exists other metadata sources available (such as already done for igdb)

Step 4 in cleaner meta fetching code.
2025-03-17 20:41:01 +00:00
Roardom 32cf8da4db refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
2025-03-16 22:55:24 +00:00
Roardom 7e4ae4a5fc fix: notification comment tag tests
Tagging a user while creating a comment will both create a notification for the tag, as well as create a notification to the user who made the torrent/request. We only want to assert that the count of notifications created during the test is 1 only for the tag notifications and not count the other notification created.
2025-03-09 06:35:07 +00:00
HDVinnie a364cf3954 Merge branch '8.x.x' into stream-sd 2025-03-09 00:14:06 -05:00
Roardom 5a6259cea7 remove: sd content and stream optimized flags
SD content is represented by the resolutions table now instead of this flag. Most people prefer web-dls over stream-optimized encodes these days.
2025-03-09 03:33:32 +00:00
Roardom 933efb785b update: inline client stats query
The query only takes 6 seconds on my local untuned machine. Caching it for an hour is probably fine, we have worse queries out there, and indexing isn't an option since this table is write-heavy. Reduces overall complexity and prevents blank page after cache is reset.
2025-03-06 16:53:06 +00:00
HDVinnie 6e2c8f569d Merge pull request #4492 from Roardom/moderation-status-enum
(Refactor) Use moderation status enum and cast
2025-03-05 06:16:23 -05:00
Jay 1b1e8399c4 Code cleanup & improvements
Co-authored-by: Roardom <78790963+Roardom@users.noreply.github.com>
2025-02-27 13:09:23 +00:00
Jay Sizzla bf479ec455 Use shouldSend for NewPostTag notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla 19eb2819ba Use shouldSend for NewCommentTag notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla 3f91b00747 Use shouldSend for NewTopic notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla 6e34a86388 Use shouldSend for NewBounty notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla c1771dc65c Use shouldSend for NewComment notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla 29c144a931 Use shouldSend for NewRequestUnclaim notifications 2025-02-27 13:09:23 +00:00
Jay Sizzla a3524f9092 Use shouldSend for NewRequestClaim notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla 034fecac9f Use shouldSend for NewRequestFillApprove notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla 9e1dd2acf7 Use shouldSend for NewRequestFillReject notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla 1942d9f13b Use shouldSend for NewRequestFill notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla aa8cefe803 Use shouldSend for NewPost notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla c2ad50f230 Use shouldSend for NewBon notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla 66fc82f6d7 Use shouldSend for NewUnfollow notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla e52a635f7c Use shouldSend for NewFollow notifications 2025-02-27 13:08:43 +00:00
Jay Sizzla 54a9541240 Use shouldSend for NewUpload notifications 2025-02-27 13:08:43 +00:00
Roardom a447269552 refactor: use moderation status enum and cast
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +00:00
HDVinnie 740a0603d4 Merge pull request #4454 from Roardom/fix-sync-queue-tests
(Fix) Use sync for the connection queue in tests
2025-01-28 12:02:49 -05:00
HDVinnie d2452f478f Merge pull request #4447 from Roardom/spellcheck
(Add) Spell check ci
2025-01-28 12:00:43 -05:00
Roardom 2967cc5d9d fix: use sync for the connection queue in tests
Tests more accurately as we can ensure jobs finish successfully.
2025-01-26 21:59:59 +00:00
Roardom 604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
Roardom 868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
Roardom 1e342d98fe add: edit forum permissions when creating/editing group 2024-12-16 11:04:27 +00:00
HDVinnie a56c0cf73d (Add) New torrent moderator group (#4351)
* add: new torrent moderator group

- this group is limited to moderating and editing torrents via is_editor and is_torrent_modo group permissions
2024-11-26 20:17:49 -05:00
Ion Bazan 9d89eaa05f Replace Markdown engine 2024-11-04 12:00:07 +08:00
Ion Bazan 4df1b977e3 Test with CommonMark too 2024-11-03 19:11:32 +08:00
Ion Bazan 55a569a259 revert MarkdownExtra changes 2024-11-03 17:53:55 +08:00
Ion Bazan 4ebbfbd0f5 Cover Markdown with tests 2024-11-02 13:57:32 +08:00
Ion Bazan 4c40916f9d fix test 2024-11-01 16:39:12 +08:00
Ion Bazan 5574dfdee4 fix CreateNewUserTest.php 2024-11-01 15:59:37 +08:00
Ion Bazan 67a34a4283 Update Pest tests 2024-11-01 15:28:28 +08:00
Ion Bazan 19488c45d8 Improve registration tests 2024-11-01 02:01:41 +08:00
Ion Bazan b5d6b316ef Add test 2024-10-31 02:47:46 +08:00
HDVinnie 25031dcf76 chore: pint ci 2024-10-30 07:29:13 -04:00
Ion Bazan 87e547b444 Add internal note for staff invitations 2024-10-30 11:14:48 +08:00
HDVinnie d363acc3bd Merge pull request #4196 from Roardom/remove-unneccessary-home-page-queries
(Update) Remove unncessary home page queries
2024-10-01 10:47:56 -04:00
Roardom a199eec068 update: remove unncessary home page queries
The data from these queries were originally used directly in the views to avoid n+1, but now the TopTorrents Livewire component includes the appropriate queries.
2024-10-01 08:46:31 +00:00
Jay 6e721e5cb3 Catch empty cache error
Catch the empty cache error instead of showing error 500
2024-09-30 19:12:58 +01:00
Roardom 5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
HDVinnie a295c81fe9 Merge pull request #4046 from HDInnovations/Staff-Audit-Activity
(Add) Staff Audit Activity
2024-08-15 15:55:01 -04:00
HDVinnie f92194281c refactor: release years
- remove the release_year column from the torrents table and just search the movie/tv tables instead
2024-08-13 22:18:38 -04:00