Roardom
28c99c9736
refactor: cleanup workaround for creating systembot echoes/audibles
...
When the user changes the bot in the front-end (e.g. clicks the systembot button), it calls the bot pm method with an empty string and the pm method creates audibles/echoes but doesn't create the message if it's an empty string. Feels like an awfully hacky method, so I'm making the logic more explicit.
2025-09-03 03:32:14 +00:00
Roardom
94b68d5097
refactor: simplify nerdbot command parsing
2025-09-03 03:32:14 +00:00
Roardom
9093f0d2f8
refactor: remove unused $params, $clone and $y variables in Nerdbot
2025-09-03 03:32:14 +00:00
Roardom
1741a50404
refactor: remove unused status() method in ChatRepository
2025-09-03 03:32:14 +00:00
Roardom
33b6a10caf
refactor: improve eloquent usage in chatRepository
...
Don't use dependency injection in ChatRepository, no raw queries, load/with syntax improvements.
We don't follow this pattern anywhere else.
2025-09-03 03:32:14 +00:00
Roardom
f3bb05a93b
fix: eager loading of user for echo and audible eloquent resources
2025-09-03 03:32:14 +00:00
Roardom
67058a702c
refactor: inline $which in chatbox api
...
Makes the code easier to follow.
2025-09-03 03:32:14 +00:00
Roardom
27f8f51362
refactor: inline runbot in chat api
2025-09-03 03:32:14 +00:00
Roardom
7cfb4317c2
refactor: remove unused targeted variable in chat api
2025-09-03 03:32:14 +00:00
Roardom
bf1492e92a
refactor: use more readable syntax to parse chatbox /msg command
2025-09-03 03:32:14 +00:00
Roardom
b7b8e42493
refactor: remove dead branches from chat api
...
These branches are never hit because the same conditions are checked in the first 3 if statements, so they would never be hit by the time they're inside the 4th if statement.
2025-09-03 03:32:14 +00:00
Roardom
5ddbed21a3
refactor: inline trip in chat api
...
Makes it a bit easier to read and reduces variable scope.
2025-09-03 03:32:14 +00:00
Roardom
66b6eecd32
refactor: simplify system check in chat api
2025-09-03 03:32:14 +00:00
Roardom
de827aa939
refactor: remove redundant message falsey checks in chatbox api
...
The str_starts_with functions won't return true anyways if it's an empty string and it makes the code easier to read.
2025-09-03 03:32:14 +00:00
Roardom
9858fcde9f
refactor: cast message string upfront in chat api
...
Also don't cast bot command which is not nullable in the database.
2025-09-03 03:32:14 +00:00
Roardom
5fcf20ce44
refactor: simplify chatbox echo return logic
2025-09-03 03:32:14 +00:00
Roardom
dd7fa0ebd3
refactor: remove unused save variable from chatbox
2025-09-03 03:32:13 +00:00
Roardom
e89690ac0d
refactor: simplify adjusting cache in chat api
...
We don't necessarily need to refresh the cache, we only need to append to it.
2025-09-03 03:32:13 +00:00
Roardom
6b8614bc4d
refactor: remove unecessary eager loads in chat api
2025-09-03 03:32:13 +00:00
Roardom
6ff6c1a9bf
refactor: inline some single-use chat repository methods into chat api
2025-09-03 03:32:13 +00:00
HDVinnie
3f36412e35
Merge pull request #4933 from HDInnovations/helpdesk
...
(Add) Staff ticket category and priority management
2025-09-02 23:10:08 -04:00
HDVinnie
72fce40e2e
update: migration to use original colors
2025-09-02 09:05:32 -04:00
HDVinnie
4c796959bf
fix: color inputs
2025-09-01 22:36:24 -04:00
unit3d-bot
806a31835e
automation: update schema dump
2025-09-02 02:02:41 +00:00
HDVinnie
c740780c28
chore: review cleanup
2025-09-01 22:00:47 -04:00
HDVinnie
ee2fd3789d
add: staff ticket category and priority management
...
- request #4674
2025-09-01 20:58:36 -04:00
HDVinnie
271962664b
Merge pull request #4932 from AnabolicsAnonymous/custom-icon-404s
...
(Update) use x-if templates instead of x-show for chat icons
2025-09-01 20:02:10 -04:00
AnabolicsAnonymous
5a73eaab88
update: use x-if instead of x-show on user icons
2025-09-01 18:50:59 -05:00
HDVinnie
c48651ffd6
Merge pull request #4931 from AnabolicsAnonymous/request-api-controller-name
2025-09-01 19:30:41 -04:00
HDVinnie
59818a1848
Merge pull request #4930 from AnabolicsAnonymous/comparison-color
2025-09-01 19:29:08 -04:00
AnabolicsAnonymous
3ea0c97ee2
fix: correct torrent request api controller name
2025-09-01 18:13:57 -05:00
AnabolicsAnonymous
4bfa8d5711
update: set comparison colors on material themes to white
2025-09-01 17:59:29 -05:00
HDVinnie
4524d2fa87
update: bump unit3d config
2025-08-31 11:27:35 -04:00
HDVinnie
65c2576ac3
(Update) Torrent reseed request system ( #4928 )
2025-08-31 11:24:33 -04:00
HDVinnie
a505269248
Merge pull request #4920 from weblate/weblate-unit3d-common
...
Translations update from Hosted Weblate
2025-08-31 11:10:13 -04:00
HDVinnie
d27e436534
Merge pull request #4918 from AnabolicsAnonymous/torrent-request-api
...
(Add) Torrent request API
2025-08-31 11:05:38 -04:00
AnabolicsAnonymous
234e62f546
Merge branch 'torrent-request-api' of https://github.com/AnabolicsAnonymous/UNIT3D into torrent-request-api
2025-08-30 20:16:09 -05:00
AnabolicsAnonymous
53be8926ca
refactor: use unsignedInteger instead of separate unsigned function
2025-08-30 20:16:08 -05:00
unit3d-bot
6a446134a7
automation: update schema dump
2025-08-31 01:14:33 +00:00
AnabolicsAnonymous
788d958f48
update: use indexes for season and episode numbers and usigned integers
2025-08-30 20:12:52 -05:00
AnabolicsAnonymous
07b83a1cd9
update: simplify torrent request name logic
2025-08-30 18:58:35 -05:00
unit3d-bot
0e62748220
automation: laravel pint ci
2025-08-30 23:47:48 +00:00
Anabol
3df82225aa
update: simplify tmdb movie/tv id fetching
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:45:37 -05:00
Anabol
2274b56fec
update: correct season and episode number display logic
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:38:55 -05:00
Anabol
79965ee170
update: correct season and episode number display logic
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:38:41 -05:00
Anabol
6c0ddf8a7a
remove: unnecessary parentheses
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:34:25 -05:00
Anabol
2e5fa2f33b
update: only load relevent relations
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:32:26 -05:00
Anabol
62b1117a47
update: only load relevent relations
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:32:07 -05:00
Anabol
05e69dd2ec
update: consistently name bounties variable
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:31:21 -05:00
Anabol
a8a47527f0
update: consistently name bounties variable
...
Co-authored-by: Roardom <roardom@protonmail.com >
2025-08-30 18:31:02 -05:00