Commit Graph

2657 Commits

Author SHA1 Message Date
Roardom 09f6747741 fix: prevent comment parent deleting comment chain 2023-07-30 04:50:56 +00:00
Roardom bb5255d968 Revert "update: cache personal freeleech existence instead of its value"
This reverts commit b48a9222d1.
2023-07-28 06:08:55 +00:00
Roardom b5246a0e80 Revert "fix: redundant fetching of records from the database"
This reverts commit 7d3a9e244e.
2023-07-28 05:21:31 +00:00
Roardom 2392da1310 Revert "fix: laravel default job model serialization"
This reverts commit 55d03d3819.
2023-07-28 05:20:33 +00:00
HDVinnie 10bc704891 Merge pull request #2964 from Roardom/fix-request-approval-notification
(Fix) Request approval notification
2023-07-27 10:24:07 -04:00
HDVinnie ca39959192 Merge pull request #2969 from Roardom/fix-peers-status
(Fix) Status on torrent peers page
2023-07-27 10:23:35 -04:00
HDVinnie 122d67e781 Merge pull request #2967 from Roardom/fix-announce-model-serialization
(Fix) laravel default job model serialization
2023-07-27 10:22:29 -04:00
Roardom da7571859f fix: ci 2023-07-27 04:45:41 +00:00
Roardom 9e932619ef fix: status on torrent peers page 2023-07-27 03:47:43 +00:00
Roardom 55d03d3819 fix: laravel default job model serialization
laravel by default automatically serializes models in a custom way when inserted into a job queue and fetches the model from the database again when the job is ran. We would rather not have these extra queries, so we can't pass in models, or data that is already serialized (as laravel will try to deserailize our serialization too and fail), so we opted for arrays, and filling in the properties into a new model again once the job is handled.
2023-07-27 03:11:04 +00:00
Roardom b1fb3b958e fix: request approval notification 2023-07-26 23:45:24 +00:00
HDVinnie 0d31d20d8a Merge branch '7.x.x' into fix-process-announce-selects 2023-07-26 00:22:46 -04:00
Roardom 7d3a9e244e fix: redundant fetching of records from the database
The `SerializesModels` trait fetches a new copy of the record from the database, causing 4 more queries than we thought we were using. This change reduces the query time in the ProcessAnnounce job by 55%.
2023-07-26 02:18:20 +00:00
Roardom b48a9222d1 update: cache personal freeleech existence instead of its value
We only cache it if it exists, so let's not query it every single time it doesn't exist.
We don't remove it from the hourly run command yet so that currently existing freeleeches can be deleted.
2023-07-25 22:48:56 +00:00
HDVinnie f8b9b3c80c Merge branch '7.x.x' into active-peers 2023-07-24 13:04:12 -04:00
HDVinnie 0932df01e0 Merge pull request #2952 from Roardom/update-person-page-perf
(Fix) Slow queries on person page
2023-07-23 22:39:58 -04:00
HDVinnie 06ff54fd18 Merge pull request #2951 from Roardom/rename-graveyard-to-resurrections
(Refactor) Rename `graveyard` to `resurrections`
2023-07-23 22:39:36 -04:00
HDVinnie 9a4bc1ff1f Merge pull request #2942 from Roardom/add-bon-store-transaction
(Fix) Wrap bon store purchases within a transaction
2023-07-23 22:38:22 -04:00
Roardom cd01f84d91 fix: slow queries on person page
From 3 seconds to 75ms.
2023-07-24 01:33:08 +00:00
Roardom 9c0c474a9a refactor: rename graveyard to resurrections
Make everything consistent with the "plural noun" style
2023-07-24 01:07:35 +00:00
Roardom f885dd4715 fix: bad mime detection
Many users often remove the announce url from uploaded torrents (since other tracker codebases are known to log urls of uploaded torrents to breach user accounts on other sites). This unfortunately causes the mime detection to sometimes (not all the time) fail preventing the user from uploading. Now that we're validating by file extension, it should still prevent the case of users accidentally uploading an unrelated file which was the main issue to be solved.
2023-07-24 00:22:01 +00:00
Roardom 995677bb4a fix: wrap bon store purchases within a transaction 2023-07-23 22:19:35 +00:00
HDVinnie 82122817dc Merge pull request #2941 from Roardom/fix-request-rejection-permissions
(Fix) Allow users to reject request fills
2023-07-23 15:21:43 -04:00
HDVinnie 9d57322143 Merge pull request #2940 from Roardom/fix-request-filler-anon
(Fix) Anon username in request fill rejections
2023-07-23 15:21:19 -04:00
HDVinnie 5a558543c7 Merge pull request #2938 from Roardom/update-quick-search
(Update) Quick search by imdb and tmdb
2023-07-23 15:20:25 -04:00
HDVinnie 74c2252cf3 Merge pull request #2937 from Roardom/rename-sender-receiver
(Refactor) Use `_id` suffix on bon_transactions foreign keys
2023-07-23 15:19:01 -04:00
HDVinnie cb71ab898f Merge pull request #2936 from Roardom/validate-file-upload-extension
(Fix) Validate nfo and torrent file extensions on upload
2023-07-23 15:18:15 -04:00
HDVinnie 3456fb2f28 Merge pull request #2933 from Roardom/fix-html-entity-double-encoding
(Fix) Html entity double encoding
2023-07-23 15:16:17 -04:00
HDVinnie e0056b29ca Merge pull request #2931 from Roardom/subtitles-search-by-uploader
(Add) Subtitle search by uploader
2023-07-23 15:14:34 -04:00
HDVinnie b117a01fd0 Merge pull request #2930 from Roardom/redirect-to-appropriate-person-tab
(Add) Redirect to appropriate person tab from torrent meta
2023-07-23 15:14:08 -04:00
HDVinnie 1c085223c1 Merge pull request #2944 from Roardom/announce-prepared-statement
(Update) Use prepared statement instead of eager loading peers
2023-07-23 11:50:06 -04:00
HDVinnie 2880c1e8c9 Merge pull request #2928 from Roardom/fix-resurrections
(Fix) User resurrection creation
2023-07-23 11:48:48 -04:00
HDVinnie cfd4f05ab5 Merge pull request #2927 from Roardom/add-view-latest-post
(Add) Forum link to latest post
2023-07-23 11:48:29 -04:00
Roardom 4f95933797 update: use eager loading in torrent api 2023-07-23 10:49:28 +00:00
Roardom eca50b5224 update: use prepared statement instead of eager loading peers 2023-07-23 09:16:44 +00:00
Roardom f818cbee35 fix: allow users to reject request fills 2023-07-23 01:01:06 +00:00
Roardom 73cc757ea8 fix: anon username in request fill rejections 2023-07-23 00:59:06 +00:00
Roardom 10c146d217 add: peer active status
Mark peers for deletion via this column so that they can be mass deleted later. This allows for combining peer inserts, updates and deletions into a single bulk peer upsert queue. Otherwise, when a user stops and starts a torrent before the bulk peer updates are collected in the queue, the peer may be deleted immediately after it gets inserted.
2023-07-23 00:42:45 +00:00
Roardom 83e2de4fb8 update: quick search by imdb and tmdb
If a valid imdb is entered into quick search, return movies/tv matching it. If only a number is entered into quick search, return movies/tv with matching tmdb. If wanting to override these shortcuts, add a space to the end of the search.
2023-07-22 21:55:15 +00:00
Roardom 229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom 61122c0d84 fix: validate nfo and torrent file extensions on upload 2023-07-22 05:39:43 +00:00
Roardom f4642c0baa fix: html entity double encoding
Bbcode is always sanitized first before being saved, which causes html entities. However, when content is edited again, the html entities aren't decoded before the user edits them, which causes the user to remove the html entities before updating the content. This commit now decodes the html back to text and will resanitize again upon save.
2023-07-22 04:55:15 +00:00
Roardom 8eda5e0a58 add: subtitle search by uploader 2023-07-21 21:29:43 +00:00
Roardom 11247b58cd add: redirect to appropriate person tab from torrent meta 2023-07-21 11:14:11 +00:00
Roardom 8b08bdfd6d fix: user resurrection creation
This value needs to be nullable if it doesn't exist so that the seeditme can be set to 0 if there exists no history.
2023-07-21 10:39:43 +00:00
Roardom f9db4c6c46 add: forum link to latest post 2023-07-21 10:32:54 +00:00
HDVinnie dd2fc02a4b Merge pull request #2925 from Roardom/remove-distributor-position
(Update) Drop position column on distributors
2023-07-20 15:58:18 -04:00
HDVinnie e67363e7f5 Merge pull request #2923 from Roardom/add-optgroups
(Add) Group forum categories on topic editing page
2023-07-20 15:57:40 -04:00
Roardom 5ec59675c4 update: drop position column on distributors
With almost 1000 distributors, it's a nightmare trying to add a new distributor and having to change its position. All the distributors are ordered alphabetically anyways so just order based on the `name` field instead.
2023-07-20 10:30:07 +00:00
Roardom 84d8f1d665 add: group forum categories on topic editing page 2023-07-20 08:08:32 +00:00