Commit Graph

11667 Commits

Author SHA1 Message Date
HDVinnie 4286b5f891 update: dependencies 2024-07-17 21:26:36 -04:00
HDVinnie 9d537dd3ee remove: dead code 2024-07-17 21:24:59 -04:00
HDVinnie ded7b0808e Merge pull request #3986 from Roardom/unneccessary-commands
(Update) Don't run redundant commands when external tracker is used
2024-07-17 20:55:07 -04:00
Roardom e584349eb3 update: don't run redundant commands when external tracker is used
The external tracker handles the upserts (`auto:upsert_peers`,
`auto:upsert_histories`, and `auto:upsert_announces`), handles
incrementing/decrementing the seeders/leeches/times_completed
(`auto:sync_peers`), and handles incrementing/decrementing the
balance (`auto:torrent_balance`).

The external tracker keeps track of leech slots internally, so
the leech slot caching isn't needed and as a result, shouldn't
be touched inside the `auto:flush_peers` command either.

There's no inaccurate stats issues that could happen if these
commands are run, but a normal 200 ms 3000-record upsert from
the external tracker takes 2-3 seconds if they happen at the
same time as the `auto:sync_peers` or `auto:torrent_balance`
commands are being run.
2024-07-17 13:01:16 +00:00
HDVinnie 69de9f889f Merge pull request #3985 from Roardom/bug-report-error-500
(Update) Amend issue template to require stack trace for error 500s
2024-07-17 02:43:36 -04:00
HDVinnie fd5ec29e6f Merge pull request #3983 from Roardom/peers-composite-primary-key
(Update) Use composite primary key for peers
2024-07-17 02:43:04 -04:00
Roardom c571d61376 update: amend issue template to require stack trace for error 500s 2024-07-16 12:47:31 +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 4a0cccf735 Merge pull request #3981 from Roardom/torrent-filters-dto
(Refactor) Use DTO to modularize torrent searching
2024-07-14 22:23:50 -04:00
HDVinnie c70980e64b Merge pull request #3978 from Roardom/fix-tracker-errors
(Fix) Type error in tracker exception
2024-07-14 22:22:48 -04:00
HDVinnie 2edd1741a4 Merge pull request #3977 from Roardom/facet-links
(Fix) Pre-generated links to torrent search facets
2024-07-14 22:22:27 -04:00
HDVinnie dc02756218 Merge pull request #3975 from Roardom/bladestan
(Add) Phpstan bladestan static analysis
2024-07-14 22:22:01 -04:00
Roardom 4b3b864fa4 refactor: use DTO to modularize torrent searching 2024-07-12 14:40:27 +00:00
Roardom 40a68dda9b fix: type error in tracker exception
Some values passed are integers.
2024-07-11 10:33:07 +00:00
Roardom 7c896935f5 fix: pre-generated links to torrent search facets 2024-07-11 10:29:57 +00:00
Roardom bd9f820153 fix: phpstan livewire pagination types 2024-07-09 12:24:34 +00:00
Roardom f25311534f add: phpstan bladestan static analysis
Allows static analysis of blade templates.

I had to add semi-colons to the end of `@php` directives, and swap `@json` for `{{ @JS::from }}` otherwise bladestan would crash.
2024-07-09 11:59:42 +00:00
HDVinnie 86d0c326f4 Merge pull request #3974 from HDInnovations/Request-Search-Cache
(Refactor) Move request search facet queries to computed properties
2024-07-09 02:09:41 -04:00
HDVinnie 236c4ec776 Merge pull request #3967 from Roardom/torrent-search-cache
(Refactor) Move torrent search facet queries to computed properties
2024-07-09 02:09:24 -04:00
HDVinnie a1592b2841 fix: phpstan errors 2024-07-09 01:56:45 -04:00
Roardom 9cbfe6c315 refactor: move torrent search facet queries to computed properties 2024-07-09 05:19:44 +00:00
HDVinnie 24e0ee1e6b Merge pull request #3968 from Roardom/cache-user-relations
(Fix) Cache null values for user settings/notifications/privacy relations
2024-07-08 20:53:52 -04:00
HDVinnie 130aca4ca1 refactor: move request search facet queries to computed properties
- continues off PR #3967
2024-07-08 20:53:15 -04:00
HDVinnie ab7efdd361 Merge pull request #3966 from Roardom/conversation-sort
(Update) Sort conversations by most recently updated
2024-07-08 19:50:06 -04: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 42407e085a Merge pull request #3971 from HDInnovations/Active-Inactive-Internals
(Add) Internals Stats
2024-07-08 19:39:20 -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
Roardom 62799be78a fix: cache null values for user settings/notifications/privacy relations 2024-07-06 07:49:47 +00:00
Roardom 947bd45955 update: sort conversations by most recently updated 2024-07-06 05:59:42 +00:00
HDVinnie 1c57301562 Merge pull request #3965 from Roardom/fix-prewarn
(Fix) Sorting by prewarned_at on user torrent history
2024-07-06 00:37:02 -04:00
Roardom b2a664806f fix: sorting by prewarned_at on user torrent history 2024-07-04 05:51:49 +00:00
HDVinnie 19b172f397 update: transaction controller
- Like the logic for sending invites. If invites are in restricted mode, dont allow a non whitelisted group to buy invites from the store.
2024-07-03 21:31:52 -04:00
HDVinnie a590766ac1 Merge pull request #3961 from Roardom/safer-whitelisted-urls
(Update) don't match `.` with `*` using whitelisted image domain syntax
2024-07-03 21:26:23 -04:00
HDVinnie 76b50f05f0 Merge pull request #3962 from Roardom/faster-quick-search
(Update) Make quick search faster
2024-07-03 21:26:11 -04:00
HDVinnie 2ab4cb977c Merge pull request #3960 from Roardom/fix-comparison-double-html-encoding
(Fix) Double url encoding in bbcode comparison
2024-07-03 21:25:44 -04:00
HDVinnie a1b97c8364 Merge pull request #3959 from Roardom/fix-new-request-bounty-notification
(Fix) `bounty->request` relationship
2024-07-03 21:25:27 -04:00
HDVinnie 29e0678983 Merge pull request #3958 from Roardom/fix-playlist-filter
(Fix) Torrent search playlist filter
2024-07-03 11:40:16 -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 9c920440b5 update: make quick search faster
Reduce the debounce time when searching. Cache the results for the first 3 characters typed (searches with few characters seem to take mysql longer compared to searches with more characters).
2024-07-03 11:35:15 +00:00
Roardom b73f1d5a6f update: don't match . with * using whitelisted image domain syntax
It's too easy for sysops to add `https://*imgur.com/**` instead of properly adding `https://*.imgur.com/**` or even better, `https://i.imgur.com/**`. This makes it easier to spot errors in the syntax errored since the intended whitelisted domain won't work. Add some more documentation to encourage safe practices and add example evil URLs that are permitted by the bypass for visual feedback of what is allowed.
2024-07-03 06:35:35 +00:00
Roardom e5bcf106d9 fix: double url encoding in bbcode comparison
The url is already sanitized and ran through `htmlspecialchars` at the end of the `sanitizeUrl` function. When using `{{ }}`, laravel runs the url through `htmlspecialchars` a second time, which breaks the url. Since the url is already properly sanitized, we can safely display the data without escaping in blade a second time.
2024-07-03 05:19:48 +00:00
Roardom 44240d81fb fix: bounty->request relationship
The foreign key isn't the standard name, so we have to customize it, otherwise our relations return `null`.
2024-07-02 21:57:57 +00:00
Roardom fdf272122c fix: torrent search playlist filter
We need to filter the given columns on the `playlists` table, not the `playlist_torrent` table.
2024-07-02 21:42:49 +00:00
Roardom 11257ae7a0 fix: mark staff report replies as read automatically 2024-07-02 21:14:03 +00:00
HDVinnie ddea582f1f Merge pull request #3956 from Roardom/fix-system-messages
(Fix) Send system messages from system instead of user
2024-07-02 17:13:18 -04:00
HDVinnie 4094572c46 (Add) Request #3646 (#3954) 2024-07-02 17:12:22 -04:00