Skip to content

(Release) v8.3.0 #4207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 358 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
9624546
add: advanced search to similar page
Roardom Aug 27, 2024
2093d3b
Merge pull request #4096 from Roardom/similar-search
HDVinnie Aug 27, 2024
b123761
fix: removal of years from tv torrent groups
Roardom Aug 27, 2024
e777671
imgbb upload 350 width
frenchcutgreenbean Aug 27, 2024
36e1784
fix: similar page select all button
Roardom Aug 27, 2024
46d3eb2
update: button margin inside panel headings
Roardom Aug 27, 2024
07be795
fix: Prevent Password Manager and Search History Interference
EkoNesLeg Aug 27, 2024
f3c21c8
Merge pull request #4098 from Roardom/fix-tv-range-torrent-group
HDVinnie Aug 27, 2024
a6522c2
add: expand all button to similar page
Roardom Aug 27, 2024
b99b920
update: move imgbb.js to vendor dir
HDVinnie Aug 28, 2024
0ad4597
Merge pull request #4100 from Roardom/expand-all-similar
HDVinnie Aug 28, 2024
a6c9a98
Merge pull request #4101 from Roardom/fix-similar-select-all-button
HDVinnie Aug 28, 2024
bbfc193
Merge pull request #4102 from Roardom/update-panel-heading-buttons
HDVinnie Aug 28, 2024
ccdbcc5
Merge pull request #4099 from frenchcutgreenbean/master
HDVinnie Aug 28, 2024
0de2b74
fix: use same download icon for groupings and list
Roardom Aug 28, 2024
8ae95f9
fix: system users not included in conversation
Roardom Aug 28, 2024
b3cdc34
fix: new users not receiving default stylesheet defined in config
Roardom Aug 23, 2024
666361a
fix: prevent users from replying to deleted system user
Roardom Aug 28, 2024
b5f76ff
fix: change mal logo; align meta icons; crop blu-ray.com logo
Roardom Aug 28, 2024
7492adb
Merge pull request #4106 from Roardom/same-dl-icon
HDVinnie Aug 28, 2024
e3aa4ad
Merge pull request #4107 from Roardom/fix-system-pms
HDVinnie Aug 28, 2024
c8ea7ee
Merge pull request #4108 from Roardom/fix-system-with-trashed
HDVinnie Aug 28, 2024
49929dd
Merge pull request #4109 from Roardom/mal-logo
HDVinnie Aug 28, 2024
4fa470e
Merge pull request #4078 from Roardom/fix-default-styles
HDVinnie Aug 28, 2024
ec31764
fix: order of operations in user settings current setting selection
Roardom Aug 28, 2024
3fb5e26
Merge pull request #4110 from Roardom/fix-settings-order-of-operations
HDVinnie Aug 28, 2024
34a4436
fix: topic starters not receiving notifications
Roardom Aug 28, 2024
3efbc03
Merge branch 'HDInnovations:8.x.x' into 8.x.x
EkoNesLeg Aug 29, 2024
6a48f20
Added type="search" to properly classify the input field and autocomp…
Aug 29, 2024
4f641ad
fix: remove redundant input types; revert `type="numeric"` change
Roardom Aug 29, 2024
7b965b0
fix: cast relevant values to boolean before updating meilisearch
Roardom Aug 29, 2024
1240a8a
Merge pull request #4103 from EkoNesLeg/8.x.x
HDVinnie Aug 29, 2024
4a9714b
Merge pull request #4111 from Roardom/fix-topic-starter-notifications
HDVinnie Aug 29, 2024
7c07e2e
update: remove nesting of season pack if no single episodes exist
Roardom Aug 30, 2024
1c6410e
Merge pull request #4114 from Roardom/unnest-single-packs
HDVinnie Aug 30, 2024
9764ef3
update: only remove media name and year in groupings view
Roardom Aug 30, 2024
a6be766
Merge pull request #4115 from Roardom/keep-sxxeyy
HDVinnie Aug 30, 2024
9bc9588
Merge branch '8.x.x' into pr/4029
HDVinnie Aug 30, 2024
62b49a4
update: order by season/episode descending
Roardom Aug 30, 2024
dff9f69
Merge pull request #4116 from Roardom/episode-season-order-desc
HDVinnie Aug 30, 2024
7b82ec2
fix: quick search movie/tv meta search boolean
Roardom Aug 30, 2024
7e516a9
fix: groupings dropdown and odd/even row colors
Roardom Aug 30, 2024
5854780
fix: search filter width on groupings view
Roardom Aug 30, 2024
43bf366
fix: torrent name overflowing panel on low resolutions
Roardom Aug 30, 2024
105e8a1
update: hide filled requests by default on similar page
Roardom Aug 30, 2024
82e0c26
fix: checkbox styles on similar page
Roardom Aug 30, 2024
5faf32e
update: swap order of select all checkbox and expand all button
Roardom Aug 30, 2024
bc957b4
update: swap tick/x for context-specific icons on user actives
Roardom Aug 31, 2024
62fb95f
update: make wikis auditable
Roardom Aug 31, 2024
fe2c9e9
update: use universal date format for tickets
Roardom Aug 31, 2024
3b34151
update: add indexes to torrents table
Roardom Aug 31, 2024
dbb3a7b
fix: null download slots added to external tracker
Roardom Aug 31, 2024
798f049
Merge pull request #4117 from Roardom/fix-grouping-dropdown-color
HDVinnie Aug 31, 2024
50814a9
Merge pull request #4118 from Roardom/fix-grouping-filters-width
HDVinnie Aug 31, 2024
6288c87
Merge pull request #4119 from Roardom/fix-groupings-overflow
HDVinnie Aug 31, 2024
6b07248
Merge pull request #4120 from Roardom/similar-requests
HDVinnie Aug 31, 2024
798633f
Merge pull request #4029 from Roardom/meilisearch-3
HDVinnie Aug 31, 2024
a5e1814
Merge pull request #4070 from Roardom/offload-console-to-db
HDVinnie Aug 31, 2024
45d3e51
fix: similar page movie column header styles
Roardom Aug 31, 2024
44d7120
Define trump_exists for similar page
Obi-Wana Sep 1, 2024
d66eff1
update: allow searching for no regions/distributors
Roardom Sep 1, 2024
3183a5e
Merge pull request #4121 from Roardom/similar-checkbox-styles
HDVinnie Sep 1, 2024
71729fa
Merge pull request #4122 from Roardom/similar-checkbox-vs-button
HDVinnie Sep 1, 2024
fef6f35
Merge pull request #4124 from Roardom/audit-wikis
HDVinnie Sep 1, 2024
67f94d9
Merge pull request #4125 from Roardom/ticket-format
HDVinnie Sep 1, 2024
ddd35b2
Merge pull request #4126 from Roardom/torrent-name-index
HDVinnie Sep 1, 2024
bd514ac
Merge pull request #4127 from Roardom/fix-adding-group-to-external-tr…
HDVinnie Sep 1, 2024
6ff2c6a
Merge pull request #4128 from Roardom/fix-similar-movie-column-header…
HDVinnie Sep 1, 2024
2da16ae
Merge pull request #4129 from Obi-Wana/fix-trump-icon-similar-view
HDVinnie Sep 1, 2024
8149351
Merge pull request #4130 from Roardom/search-no-region-distributor
HDVinnie Sep 1, 2024
cbcf34f
update: don't query database in filter api
Roardom Sep 2, 2024
c2ccc4c
fix: grouping name trimming regex again
Roardom Sep 2, 2024
b36639d
update: make reports searchable, filterable and sortable
Roardom Sep 2, 2024
f51bfab
add: option to snooze reports
Roardom Sep 3, 2024
33b2144
refactor: alpinejs components
HDVinnie Sep 3, 2024
0da12c1
Blade Style Change (Prettier Blade CI)
HDVinnie Sep 3, 2024
489c9d5
cleanup: post like and dislike logic
HDVinnie Sep 3, 2024
5cb3500
Blade Style Change (Prettier Blade CI)
HDVinnie Sep 3, 2024
bc7c8a4
fix: show both torrent and media tmdb and imdb in meta partial
Roardom Sep 3, 2024
0b3bf12
fix: set maximum image size limit in comments
Roardom Sep 3, 2024
b9eb454
Merge pull request #4131 from Roardom/meilisearch-array
HDVinnie Sep 3, 2024
973343f
Merge pull request #4132 from Roardom/fix-similar-grouping-regex
HDVinnie Sep 3, 2024
0d29dd6
Merge pull request #4133 from Roardom/livewire-reports
HDVinnie Sep 3, 2024
a0e95fc
PHP Style Change (Laravel Pint CI)
HDVinnie Sep 3, 2024
6325973
Merge pull request #4134 from Roardom/snoozable-reports
HDVinnie Sep 3, 2024
015aea8
update: alpinejs logic
HDVinnie Sep 4, 2024
c51a937
PHP Style Change (Laravel Pint CI)
HDVinnie Sep 4, 2024
12f0f22
Merge pull request #4135 from HDInnovations/Alpine-Components
HDVinnie Sep 4, 2024
b551d4e
Merge pull request #4137 from Roardom/show-torrent-imdb-tmdb
HDVinnie Sep 4, 2024
febf2e4
Merge pull request #4138 from Roardom/max-comment-img-size
HDVinnie Sep 4, 2024
e043b34
update: dependencies
HDVinnie Sep 4, 2024
f546ea1
update: don't shorten date format in torrent downloads search
Roardom Sep 4, 2024
4c10b0f
add: peers search filter to find shared sockets
Roardom Sep 4, 2024
49d4ece
fix: null coalesce if torrent is missing category/type/resolution
Roardom Sep 5, 2024
a2d0e69
fix: genres array should be string
Roardom Sep 5, 2024
ffe74b3
Merge pull request #4140 from Roardom/peers-search-shared-sockets
HDVinnie Sep 5, 2024
46fe31d
Merge pull request #4141 from Roardom/downloaded-date-format
HDVinnie Sep 5, 2024
09e7c10
Merge pull request #4142 from Roardom/nullable-res-type-cat
HDVinnie Sep 5, 2024
70c0a3e
Merge pull request #4143 from Roardom/fix-genre-array-string
HDVinnie Sep 5, 2024
1bd9fba
revert: #4131
HDVinnie Sep 5, 2024
9f36c7a
Stats show total seedtime, not avg
Obi-Wana Sep 5, 2024
f27b24a
Add toggle to filter for self assigned tickets
Obi-Wana Sep 5, 2024
f9fa241
PHP Style Change (Laravel Pint CI)
HDVinnie Sep 5, 2024
8d567fa
fix: torrent/request showing two imdb links when leading zeroes
Roardom Sep 8, 2024
53b58fa
fix: comparison image size override
Roardom Sep 8, 2024
2933baa
Merge pull request #4144 from Obi-Wana/fix-home-stats-seedtime-total
HDVinnie Sep 8, 2024
22f9547
Merge pull request #4145 from Obi-Wana/show-my-tickets
HDVinnie Sep 8, 2024
6d4d82a
Merge pull request #4148 from Roardom/imdb-leading-zero-fix
HDVinnie Sep 8, 2024
0fa6421
Merge pull request #4149 from Roardom/fix-comparison-max-size
HDVinnie Sep 8, 2024
ae8a7a0
fix: app.js
HDVinnie Sep 8, 2024
ee578bc
fix: order of operations in movie/tv meta imdb null coalesce
Roardom Sep 9, 2024
1dd7849
fix: invite tree receiver timestamps
Roardom Sep 9, 2024
80db04b
fix: only delete audit log entries newer than unix epoch
Roardom Sep 9, 2024
0f0cfeb
Merge pull request #4151 from Roardom/fix-meta-unset-variable
HDVinnie Sep 10, 2024
ce189c9
Merge pull request #4152 from Roardom/fix-invite-tree-null
HDVinnie Sep 10, 2024
2c55729
Merge pull request #4153 from Roardom/fix-audits-too-old
HDVinnie Sep 10, 2024
428bf63
add: base donation system
HDVinnie Sep 12, 2024
95183f1
PHP Style Change (Laravel Pint CI)
HDVinnie Sep 12, 2024
6a79315
chore: prettier
HDVinnie Sep 12, 2024
e5abad4
fix: AnnounceUserDTO type
HDVinnie Sep 12, 2024
08c9127
chore: phpstan baseline
HDVinnie Sep 12, 2024
7406a56
add: missing icon column
HDVinnie Sep 12, 2024
cdebd55
chore: phpstan baseline
HDVinnie Sep 12, 2024
af7a2d3
fix: old table class
HDVinnie Sep 13, 2024
5c43200
fix: hiding show name when a season range is not given
Roardom Sep 13, 2024
9cebc7f
update: report search usability improvements
Roardom Sep 13, 2024
d665730
(Update) user.php Spanish fix
Deci8BelioS Sep 13, 2024
3e67df0
(Update) torrent.php Spanish fix
Deci8BelioS Sep 13, 2024
6b6568b
(Update) Spanish fix
Deci8BelioS Sep 13, 2024
e40570f
Merge branch 'HDInnovations:8.x.x' into 8.x.x
Deci8BelioS Sep 13, 2024
f37067a
update: DonationController.php
HDVinnie Sep 14, 2024
9c61d72
update: donation system
HDVinnie Sep 15, 2024
4f52eeb
Blade Style Change (Prettier Blade CI)
HDVinnie Sep 15, 2024
5fa0b93
refactor: use livewire model to sync checkbox state
Roardom Sep 13, 2024
7dd5626
add: user login count stats
Roardom Sep 15, 2024
f629f8d
update: donation controller
HDVinnie Sep 15, 2024
f5b6e01
update: ticket search
HDVinnie Sep 15, 2024
22d3044
update: user search
HDVinnie Sep 15, 2024
4e63959
update: warning search
HDVinnie Sep 15, 2024
e5f2e91
add: Torrent folder to API
Audionut Aug 29, 2024
3a05059
Merge branch '8.x.x' into fix-tv-regex
HDVinnie Sep 15, 2024
91ffa39
Merge branch '8.x.x' into report-status
HDVinnie Sep 15, 2024
8c6cec3
Merge branch '8.x.x' into 8.x.x
HDVinnie Sep 15, 2024
e30fd06
Merge branch '8.x.x' into user-login-stats
HDVinnie Sep 15, 2024
c9f91f3
Merge pull request #4158 from Roardom/fix-tv-regex
HDVinnie Sep 15, 2024
9c887c5
Merge pull request #4160 from Roardom/ticket-checkbox
HDVinnie Sep 15, 2024
3916f20
Merge pull request #4163 from Roardom/user-login-stats
HDVinnie Sep 15, 2024
d20f7e7
Merge pull request #4113 from Audionut/8.x.x
HDVinnie Sep 16, 2024
6772f9a
fix: package and gateway is_active
HDVinnie Sep 16, 2024
a48e292
fix: only show donation tool on frontend if config('donation.is_enabl…
HDVinnie Sep 16, 2024
3858242
Merge pull request #4161 from Deci8BelioS/8.x.x
HDVinnie Sep 16, 2024
c9bb2fb
Merge branch '8.x.x' into Donation-System
HDVinnie Sep 16, 2024
74e4920
chore: phpstan baseline
HDVinnie Sep 16, 2024
3f5849e
chore: bump dependencies
HDVinnie Sep 16, 2024
c749ce2
update: AutoRemoveExpiredDonors Command
HDVinnie Sep 16, 2024
50d4a12
chore: phpstan baseline
HDVinnie Sep 16, 2024
f890a61
add: donation scss and package descriptions
HDVinnie Sep 17, 2024
0934d38
Blade Style Change (Prettier Blade CI)
HDVinnie Sep 17, 2024
0dc5b21
update: donation system ui
HDVinnie Sep 17, 2024
676148d
update: _galactic.scss
HDVinnie Sep 17, 2024
1320805
add: donation transaction encryption
HDVinnie Sep 17, 2024
166e4b2
Merge pull request #4157 from HDInnovations/Donation-System
HDVinnie Sep 18, 2024
e322d7e
Fix warning actions on wrong warning
Obi-Wana Aug 24, 2024
827792c
Blade Style Change (Prettier Blade CI)
HDVinnie Aug 24, 2024
85bc933
Use x-data for every row
Obi-Wana Sep 19, 2024
6807bdf
Create DonationGatewayFactory
Obi-Wana Sep 21, 2024
9df2ac3
Create DonationPackageFactory
Obi-Wana Sep 21, 2024
85360e9
Use boolean for active state
Obi-Wana Sep 22, 2024
ecff1c9
Use boolean for active state
Obi-Wana Sep 22, 2024
b313751
Revert "revert: #4131"
Roardom Sep 15, 2024
f8b31e2
fix: auth caching api between users
Roardom Sep 15, 2024
d9f834d
fix: fix backwards compatibility of api datetime format
Roardom Sep 15, 2024
94174bf
Use root and remove data-warning-id on buttons
Obi-Wana Sep 22, 2024
54f823b
update: allow reopening tickets
Roardom Sep 22, 2024
11208a6
Merge pull request #4079 from Obi-Wana/fix-livewire-warnings
HDVinnie Sep 22, 2024
12dc0e8
Merge pull request #4159 from Roardom/report-status
HDVinnie Sep 22, 2024
ddd3375
Merge pull request #4166 from Obi-Wana/add-donation-gateway-factory
HDVinnie Sep 22, 2024
694d3ff
Merge pull request #4167 from Obi-Wana/add-donation-package-factory
HDVinnie Sep 22, 2024
69998da
Merge pull request #4123 from Roardom/actives-icons
HDVinnie Sep 22, 2024
3649c27
Merge pull request #4170 from Roardom/reopen-tickets
HDVinnie Sep 22, 2024
ede8c56
fix: condition check
HDVinnie Sep 22, 2024
563ceeb
update: color connectable status red/green in peers list
Roardom Sep 22, 2024
8243e7d
Merge pull request #4171 from HDInnovations/Post-Like-Dislike
HDVinnie Sep 22, 2024
a8232d3
Merge pull request #4172 from Roardom/colored-connectable
HDVinnie Sep 22, 2024
53be4b9
PHP Style Change (Laravel Pint CI)
HDVinnie Sep 23, 2024
203f020
add: shortcuts to bbcode editor for bold/italic/underline
Roardom Sep 24, 2024
041e6ba
update: remove bbcode tags if selection already contains tags
Roardom Sep 24, 2024
20beba1
add: channelKey to enable bot to join protected IRC channels
costaht Sep 23, 2024
98e3e72
fix: history search aggregation
Roardom Sep 26, 2024
0ffab10
add: inactive/active ratio to peer search aggregate
Roardom Sep 27, 2024
3878bb8
update: add indexes to audits to speed up staff activity counts
Roardom Sep 27, 2024
9886acb
fix: wrap notifications with words longer than table width
Roardom Sep 28, 2024
80aea2b
Merge pull request #4173 from costaht/master
HDVinnie Sep 29, 2024
1e977b6
Merge pull request #4174 from Roardom/bold-italic-underline-shortcut
HDVinnie Sep 29, 2024
79676ac
Merge pull request #4175 from Roardom/undo-bbcode
HDVinnie Sep 29, 2024
cacb091
Merge pull request #4179 from Roardom/fix-history-search
HDVinnie Sep 29, 2024
f55c605
Merge pull request #4180 from Roardom/peer-active-inactive-ratio
HDVinnie Sep 29, 2024
72be3e8
Merge pull request #4181 from Roardom/faster-audits
HDVinnie Sep 29, 2024
4a24b44
Merge pull request #4183 from Roardom/fix-long-notifications
HDVinnie Sep 29, 2024
ad48d9b
fix: check message existence before deletion
Roardom Sep 29, 2024
9c97dd0
update: improve db performance when calculating top movie/tv statistics
Roardom Sep 29, 2024
a444c0c
fixup! update: add indexes to audits to speed up staff activity counts
Roardom Sep 29, 2024
d3d8287
fix: lag in Chrome when meta has lots of credits
Roardom Sep 29, 2024
7e53e5d
fix: audit model name search input styles
Roardom Sep 29, 2024
855e4ab
fix: return 404 when numeric route parameter isn't numeric
Roardom Sep 29, 2024
f86f323
Merge pull request #4185 from Roardom/destroy-deleted-message
HDVinnie Sep 29, 2024
b302ce1
Merge pull request #4186 from Roardom/speed-up-top10
HDVinnie Sep 29, 2024
a256f0a
Merge pull request #4187 from Roardom/fixup-audits-query
HDVinnie Sep 29, 2024
edc8577
Merge pull request #4188 from Roardom/fix-meta-lag
HDVinnie Sep 29, 2024
8d42037
Merge pull request #4189 from Roardom/fix-audit-search-style
HDVinnie Sep 29, 2024
deec9cb
Merge pull request #4190 from Roardom/regex-route-ids
HDVinnie Sep 30, 2024
6e721e5
Catch empty cache error
Obi-Wana Sep 21, 2024
dd3adfe
add: show external tracker user rate limits on profile page
Roardom Sep 30, 2024
9f28b1c
Merge pull request #4191 from Roardom/external-tracker-rate-limits
HDVinnie Oct 1, 2024
abc31be
update: css normalization
Roardom Oct 1, 2024
f3c631a
update: add emphasis to global site alerts titles
Roardom Oct 1, 2024
1b55a62
fix: include imdb id in link to request/upload similar torrent
Roardom Oct 1, 2024
a199eec
update: remove unncessary home page queries
Roardom Oct 1, 2024
d2cf17a
Merge pull request #4168 from Obi-Wana/add-catch-invite-cache-error
HDVinnie Oct 1, 2024
e99271f
update: format numbers and add lists/s in user rate limits
Roardom Oct 1, 2024
73c4cdf
Merge pull request #4193 from Roardom/update-rate-limits
HDVinnie Oct 1, 2024
e9a06dd
Merge pull request #4194 from Roardom/update-normalize-css
HDVinnie Oct 1, 2024
2acfd32
Merge pull request #4195 from Roardom/bolder-alerts
HDVinnie Oct 1, 2024
d363acc
Merge pull request #4196 from Roardom/remove-unneccessary-home-page-q…
HDVinnie Oct 1, 2024
a23c8fd
Merge pull request #4197 from Roardom/imdb-id-request
HDVinnie Oct 1, 2024
e66cf9e
update: improve footer performance
Roardom Oct 2, 2024
31ef752
fix: bbcode input insert size button
Roardom Oct 2, 2024
3a4dc1a
fix: claimed requests showing pending
Roardom Oct 2, 2024
33b85ea
fix: allow refreshing metadata of requests when no torrent exists
Roardom Oct 2, 2024
850d659
fix: don't remove name from torrent grouping if contains ` / `
Roardom Oct 2, 2024
ad6d542
Merge pull request #4198 from Roardom/improve-footer-performance
HDVinnie Oct 2, 2024
6717461
Merge pull request #4199 from Roardom/fix-bbcode-input-size
HDVinnie Oct 2, 2024
7ecc290
Merge pull request #4200 from Roardom/fix-request-claimed-regression
HDVinnie Oct 2, 2024
c7601ad
Merge pull request #4201 from Roardom/fix-tmdb-request-refresh
HDVinnie Oct 2, 2024
ac83e39
Merge pull request #4202 from Roardom/slash-in-grouping
HDVinnie Oct 2, 2024
7a2250f
fix: show tvdb on similar page
Roardom Oct 2, 2024
64107b3
Merge pull request #4164 from Roardom/revert-api-torrent-resources
HDVinnie Oct 2, 2024
6f3a2a6
add: daily + monthly donations charts
HDVinnie Oct 4, 2024
c5be864
Blade Style Change (Prettier Blade CI)
HDVinnie Oct 4, 2024
0e58d81
update: donation charts
HDVinnie Oct 4, 2024
b6add4c
fix: link to peers with full user agent on client stats page
Roardom Oct 6, 2024
9eec279
update: donation controller
HDVinnie Oct 6, 2024
b346207
Merge pull request #4205 from HDInnovations/Staff-Donation-Charts
HDVinnie Oct 6, 2024
f1fb1c6
Merge pull request #4203 from Roardom/fix-tvdb-similar
HDVinnie Oct 6, 2024
cf60ab6
update: torrent model
HDVinnie Oct 7, 2024
49c982b
update: secure-headers config
HDVinnie Oct 7, 2024
161d184
update: _playlist.scss
HDVinnie Oct 7, 2024
0637a54
update: footer
HDVinnie Oct 7, 2024
93ea3de
Merge pull request #4206 from Roardom/fix-client-stats-search
HDVinnie Oct 7, 2024
f31ee83
update: unit3d config
HDVinnie Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ DEFAULT_OWNER_PASSWORD=UNIT3D
TMDB_API_KEY=
TWITCH_CLIENT_ID=
TWITCH_CLIENT_SECRET=

MEILISEARCH_HOST=http://127.0.0.1:7700
MEILISEARCH_KEY=
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
resources/views/emails
resources/views/rss/show.blade.php
resources/views/vendor
resources/views/components/user_tag.blade.php
4 changes: 1 addition & 3 deletions app/Actions/Fortify/CreateNewUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function create(array $input): RedirectResponse | User
'code' => [
Rule::when(config('other.invite-only') === true, [
'required',
Rule::exists('invites', 'code')->whereNull('accepted_by'),
Rule::exists('invites', 'code')->withoutTrashed()->whereNull('accepted_by'),
]),
]
])->validate();
Expand All @@ -83,8 +83,6 @@ public function create(array $input): RedirectResponse | User
'rsskey' => md5(random_bytes(60)),
'uploaded' => config('other.default_upload'),
'downloaded' => config('other.default_download'),
'style' => config('other.default_style', 0),
'locale' => config('app.locale'),
'group_id' => $validatingGroup[0],
]);

Expand Down
2 changes: 2 additions & 0 deletions app/Actions/Fortify/ResetUserPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ public function reset(User $user, array $input): void

$user->active = true;
$user->save();

$user->passwordResetHistories()->create();
}
}
2 changes: 2 additions & 0 deletions app/Actions/Fortify/UpdateUserPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ public function update(User $user, array $input): void
$user->forceFill([
'password' => Hash::make($input['password']),
])->save();

$user->passwordResetHistories()->create();
}
}
7 changes: 4 additions & 3 deletions app/Bots/IRCAnnounceBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ private function send(string $data): void
public function to(string $recipient): self
{
$this->recipient = $recipient;
$channelKey = config('irc-bot.channel_key', '');

if (config('irc-bot.joinchannel')) {
if ($this->isValidChannelName($recipient)) {
$this->join($recipient);
$this->join($recipient, $channelKey);
$this->isInChannel = true;
} else {
Log::error('Tried to channel with invalid name.', [
Expand Down Expand Up @@ -192,15 +193,15 @@ private function user(string $username, string $hostname, string $servername, st
/**
* @see https://www.rfc-editor.org/rfc/rfc1459#section-4.2.1
*/
private function join(string $channel, string $key = ''): void
private function join(string $channel, string $channelKey = ''): void
{
if (!$this->isValidChannelName($channel)) {
Log::error('Tried to join a channel with invalid name.', ['name' => $channel]);

return;
}

$this->send("JOIN {$channel} {$key}");
$this->send("JOIN {$channel} {$channelKey}");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Bots/SystemBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SystemBot

public function __construct(private readonly ChatRepository $chatRepository)
{
$this->bot = Bot::where('is_systembot', '=', '1')->sole();
$this->bot = Bot::where('is_systembot', '=', true)->sole();
}

public function replaceVars(string $output): string
Expand Down
78 changes: 41 additions & 37 deletions app/Console/Commands/AutoBanDisposableUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,51 +50,55 @@ class AutoBanDisposableUsers extends Command
*/
final public function handle(): void
{
if (!cache()->has(config('email-blacklist.cache-key'))) {
$this->comment('Email Blacklist Cache Key Not Found. Skipping!');

return;
}

$bannedGroup = cache()->rememberForever('banned_group', fn () => Group::where('slug', '=', 'banned')->pluck('id'));

if (cache()->has(config('email-blacklist.cache-key'))) {
User::where('group_id', '!=', $bannedGroup[0])->chunkById(100, function ($users) use ($bannedGroup): void {
foreach ($users as $user) {
$v = validator([
'email' => $user->email,
], [
'email' => [
'required',
'string',
'email',
'max:70',
new EmailBlacklist(),
],
User::where('group_id', '!=', $bannedGroup[0])->chunkById(100, function ($users) use ($bannedGroup): void {
foreach ($users as $user) {
$v = validator([
'email' => $user->email,
], [
'email' => [
'required',
'string',
'email',
'max:70',
new EmailBlacklist(),
],
]);

if ($v->fails()) {
// If User Is Using A Disposable Email Set The Users Group To Banned
$user->update([
'group_id' => $bannedGroup[0],
'can_download' => 0,
]);

if ($v->fails()) {
// If User Is Using A Disposable Email Set The Users Group To Banned
$user->group_id = $bannedGroup[0];
$user->can_download = 0;
$user->save();
// Log The Ban To Ban Log
$domain = substr((string) strrchr((string) $user->email, '@'), 1);

// Log The Ban To Ban Log
$domain = substr((string) strrchr((string) $user->email, '@'), 1);
$logban = new Ban();
$logban->owned_by = $user->id;
$logban->created_by = User::SYSTEM_USER_ID;
$logban->ban_reason = 'Detected disposable email, '.$domain.' not allowed.';
$logban->unban_reason = '';
$logban->save();
$ban = Ban::create([
'owned_by' => $user->id,
'created_by' => User::SYSTEM_USER_ID,
'ban_reason' => 'Detected disposable email, '.$domain.' not allowed.',
'unban_reason' => '',
]);

// Send Email
$user->notify(new UserBan($logban));
}
// Send Email
$user->notify(new UserBan($ban));
}

cache()->forget('user:'.$user->passkey);
cache()->forget('user:'.$user->passkey);

Unit3dAnnounce::addUser($user);
}
});
Unit3dAnnounce::addUser($user);
}
});

$this->comment('Automated User Banning Command Complete');
} else {
$this->comment('Email Blacklist Cache Key Not Found. Skipping!');
}
$this->comment('Automated User Banning Command Complete');
}
}
20 changes: 11 additions & 9 deletions app/Console/Commands/AutoBonAllocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ class AutoBonAllocation extends Command
*/
public function handle(ByteUnits $byteUnits): void
{
$now = now();

$dyingTorrent = DB::table('peers')
->select(DB::raw('count(DISTINCT(peers.torrent_id)) as value'), 'peers.user_id')
->join('torrents', 'torrents.id', 'peers.torrent_id')
->where('torrents.seeders', 1)
->where('torrents.times_completed', '>', 2)
->where('peers.seeder', 1)
->where('peers.active', 1)
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand All @@ -62,8 +64,8 @@ public function handle(ByteUnits $byteUnits): void
->join('torrents', 'torrents.id', 'peers.torrent_id')
->where('peers.seeder', 1)
->where('peers.active', 1)
->whereRaw('torrents.created_at < date_sub(now(), interval 12 month)')
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('torrents.created_at', '<', $now->copy()->subMonths(12))
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand All @@ -73,9 +75,9 @@ public function handle(ByteUnits $byteUnits): void
->join('torrents', 'torrents.id', 'peers.torrent_id')
->where('peers.seeder', 1)
->where('peers.active', 1)
->whereRaw('torrents.created_at < date_sub(now(), Interval 6 month)')
->whereRaw('torrents.created_at > date_sub(now(), interval 12 month)')
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('torrents.created_at', '<', $now->copy()->subMonths(6))
->where('torrents.created_at', '>', $now->copy()->subMonths(12))
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand All @@ -86,7 +88,7 @@ public function handle(ByteUnits $byteUnits): void
->where('peers.seeder', 1)
->where('peers.active', 1)
->where('torrents.size', '>=', $byteUnits->bytesFromUnit('100GiB'))
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand All @@ -98,7 +100,7 @@ public function handle(ByteUnits $byteUnits): void
->where('peers.active', 1)
->where('torrents.size', '>=', $byteUnits->bytesFromUnit('25GiB'))
->where('torrents.size', '<', $byteUnits->bytesFromUnit('100GiB'))
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand All @@ -110,7 +112,7 @@ public function handle(ByteUnits $byteUnits): void
->where('peers.active', 1)
->where('torrents.size', '>=', $byteUnits->bytesFromUnit('1GiB'))
->where('torrents.size', '<', $byteUnits->bytesFromUnit('25GiB'))
->whereRaw('date_sub(peers.created_at,interval 30 minute) < now()')
->where('peers.created_at', '<', $now->copy()->subMinutes(30))
->groupBy('peers.user_id')
->get()
->toArray();
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoCorrectHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final public function handle(): void
{
History::query()
->where('active', '=', 1)
->where('updated_at', '<', Carbon::now()->subHours(2)->toDateTimeString())
->where('updated_at', '<', Carbon::now()->subHours(2))
->update([
'active' => 0,
'updated_at' => DB::raw('updated_at'),
Expand Down
54 changes: 32 additions & 22 deletions app/Console/Commands/AutoDeactivateWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,37 +54,47 @@ final public function handle(): void
->where('active', '=', 1)
->get();

foreach ($warnings as $warning) {
if ($warning->expires_on <= $current || ($warning->torrenttitle && $warning->torrenttitle->history()->where('user_id', '=', $warning->warneduser->id)->first()->seedtime >= config('hitrun.seedtime'))) {
// Set Records Active To 0 in warnings table
$warning->active = false;
$warning->save();
Warning::query()
->where('active', '=', true)
->where(
fn ($query) => $query
->where('expires_on', '<=', $current)
->orWhereHas(
'torrenttitle.history',
fn ($query) => $query
->whereColumn('history.user_id', '=', 'warnings.user_id')
->where('history.seedtime', '>=', config('hitrun.seedtime'))
)
)
->chunkById(100, function ($warnings): void {
foreach ($warnings as $warning) {
// Set Records Active To 0 in warnings table
$warning->update(['active' => false]);

// Send Notifications
if ($warning->torrenttitle) {
$warning->warneduser->notify(new UserWarningExpire($warning->warneduser, $warning->torrenttitle));
} else {
$warning->warneduser->notify(new UserManualWarningExpire($warning->warneduser, $warning));
// Send Notifications
if ($warning->torrenttitle) {
$warning->warneduser->notify(new UserWarningExpire($warning->warneduser, $warning->torrenttitle));
} else {
$warning->warneduser->notify(new UserManualWarningExpire($warning->warneduser, $warning));
}
}
}
}
});

// Calculate User Warning Count and Enable DL Priv If Required.
$warnings = Warning::with('warneduser')
Warning::with('warneduser')
->select(DB::raw('user_id, SUM(active = 1) as value'))
->groupBy('user_id')
->having('value', '<', config('hitrun.max_warnings'))
->get();
->whereRelation('warneduser', 'can_download', '=', false)
->chunkById(100, function ($warnings): void {
foreach ($warnings as $warning) {
$warning->warneduser->update(['can_download' => 1]);

foreach ($warnings as $warning) {
if ($warning->warneduser->can_download === false) {
$warning->warneduser->can_download = 1;
$warning->warneduser->save();
cache()->forget('user:'.$warning->warneduser->passkey);

cache()->forget('user:'.$warning->warneduser->passkey);
Unit3dAnnounce::addUser($warning->warneduser);
}
}
Unit3dAnnounce::addUser($warning->warneduser);
}
}, 'user_id');

$this->comment('Automated Warning Deativation Command Complete');
}
Expand Down
34 changes: 18 additions & 16 deletions app/Console/Commands/AutoDisableInactiveUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,26 @@ class AutoDisableInactiveUsers extends Command
*/
final public function handle(): void
{
if (config('pruning.user_pruning')) {
$disabledGroup = cache()->rememberForever('disabled_group', fn () => Group::where('slug', '=', 'disabled')->pluck('id'));

$current = Carbon::now();
if (!config('pruning.user_pruning')) {
return;
}

$matches = User::whereIntegerInRaw('group_id', config('pruning.group_ids'))->get();
$disabledGroup = cache()->rememberForever('disabled_group', fn () => Group::where('slug', '=', 'disabled')->pluck('id'));

$users = $matches->where('created_at', '<', $current->copy()->subDays(config('pruning.account_age'))->toDateTimeString())
->where('last_login', '<', $current->copy()->subDays(config('pruning.last_login'))->toDateTimeString())
->all();
$current = Carbon::now();

foreach ($users as $user) {
if ($user->seedingTorrents()->doesntExist()) {
$user->group_id = $disabledGroup[0];
$user->can_download = false;
$user->disabled_at = Carbon::now();
$user->save();
User::query()
->whereIntegerInRaw('group_id', config('pruning.group_ids'))
->where('created_at', '<', $current->copy()->subDays(config('pruning.account_age')))
->where('last_login', '<', $current->copy()->subDays(config('pruning.last_login')))
->whereDoesntHave('seedingTorrents')
->chunk(100, function ($users) use ($disabledGroup): void {
foreach ($users as $user) {
$user->update([
'group_id' => $disabledGroup[0],
'can_download' => false,
'disabled_at' => Carbon::now(),
]);

cache()->forget('user:'.$user->passkey);

Expand All @@ -73,8 +76,7 @@ final public function handle(): void
// Send Email
dispatch(new SendDisableUserMail($user));
}
}
}
});

$this->comment('Automated User Disable Command Complete');
}
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoFlushPeers.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final public function handle(): void
{
$carbon = new Carbon();
$peers = Peer::select(['torrent_id', 'user_id', 'peer_id', 'seeder', 'updated_at'])
->where('updated_at', '<', $carbon->copy()->subHours(2)->toDateTimeString())
->where('updated_at', '<', $carbon->copy()->subHours(2))
->where('active', '=', 1)
->get();

Expand Down
Loading
Loading