82 Commits

Author SHA1 Message Date
Roardom
5f60ce6b77 refactor: enforce view filenames to use kebab case
Also had to use `@style` directives inside /resources/views/components/user-tag.blade.php. Prettier was erroring when the `@if` directive was inside the html attribute otherwise. Seems to have always been an issue, but the CI must only be formatting files that changed and because the file was only just changed now, it never discovered it until now.
2025-05-07 08:28:46 +00:00
Jay Sizzla
3f91b00747 Use shouldSend for NewTopic notifications 2025-02-27 13:09:23 +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
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
340122755c update: sort pinned topics by priority
resolves #3989
2024-07-19 16:56:54 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
6e5b3d9e3b refactor: use scope for forum authorization 2024-02-25 10:23:56 +00:00
Roardom
7490a7a39e refactor: forum notification triggers 2024-02-13 22:50:57 +00:00
Roardom
686f1560ca update: separate forum categories into their own model 2024-02-12 07:39:52 +00:00
Roardom
f30dec4a0c update: remove show_forum permission
This permission is used the same as the `read_topic` permission.
2024-02-10 19:50:05 +00:00
Roardom
834d438281 update: normalize forums a little more
We already make most of these queries anyways, and we'll need these foriegn keys when implementing future forum features like 'catch up'.
2024-02-09 16:44:52 +00:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
HDVinnie
8992fe1956 update: TopicController 2023-09-29 07:18:19 -04:00
Roardom
2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom
88e0c4e1cb update: use foreign key constraints for forum and topics ids 2023-08-18 05:27:02 +00:00
Roardom
7180f33edb add: forum category breadcrumb 2023-07-29 08:36:39 +00:00
Roardom
f9db4c6c46 add: forum link to latest post 2023-07-21 10:32:54 +00:00
Roardom
84d8f1d665 add: group forum categories on topic editing page 2023-07-20 08:08:32 +00:00
Roardom
9ba5c7e7c3 update: lazily compute forum post permalink page number 2023-07-15 23:24:26 +00:00
Roardom
abc4bcafc7 fix: editing topic's forum not updating forum's last replied topic 2023-07-07 20:03:20 +00:00
Roardom
3b46c7819b refactor: use route model binding for user routes 2023-07-07 00:28:47 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
fb35e4039d update: forums
Co-Authored-By: Roardom <78790963+Roardom@users.noreply.github.com>
2023-05-07 22:21:18 -04:00
Roardom
8824abd9d5 update: forums 2023-05-08 01:30:43 +00:00
Roardom
a0429ca442 fix: achievement unlock
The unlock() function only takes a single argument
2023-04-12 03:19:22 +00:00
HDVinnie
40db300774 fix: multiple bugs 2023-03-19 19:11:46 -04:00
HDVinnie
fa66fee208 Merge pull request #2602 from Roardom/fix-forums-perms
(Fix) forum permissions
2023-02-14 04:41:32 -05:00
Roardom
b63ea97510 fix: forum permissions 2023-02-14 03:27:33 -06:00
HDVinnie
332b9f2b43 fix: TopicController 2023-02-10 13:02:32 -05:00
HDVinnie
e3a6c22197 chore: linting 2023-02-08 21:15:39 -05:00
Roardom
f3297917bb update: use livewire for forums 2023-02-08 18:14:14 -06:00
HDVinnie
f4ebee885c update: lint 2023-02-03 22:23:00 -05:00
HDVinnie
3650900c97 update: lint
- not_operator_with_space to false
2023-02-03 16:01:29 -05:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
1dd60acb6d PSR12 Linting 2023-01-07 04:44:46 +00:00
Roardom
54220dcfc8 remove: slugs 2023-01-06 16:05:53 -06:00
HDVinnie
35bfa41b97 refactor: user tagging
- simplify user tagging for posts and comments
2022-12-26 20:50:38 -05:00
HDVinnie
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
StyleCI Bot
2725397734 Apply fixes from StyleCI 2022-08-25 23:17:20 +00:00
HDVinnie
33494ca5ce refactor: simplify pointless boolean expressions in ifs 2022-08-25 19:17:06 -04:00
Roardom
212dd5c1d4 update: restrict users from deleting forum topics 2022-08-10 21:43:18 -05:00
HDVinnie
594b7864d9 refactor: adopt new helpers in laravel 9 2022-03-06 17:20:05 -05:00
HDVinnie
bdd63aa816 update: controllers 2022-02-28 05:06:55 -05:00
HDVinnie
ee32debd2a fix: type hint 2022-01-08 16:37:19 -05:00
HDVinnie
d3abd28925 update: type hints 2022-01-08 15:35:53 -05:00
HDVinnie
a2cdb5f5ff update: type hints 2022-01-08 14:37:50 -05:00
HDVinnie
77ec35bea5 chore: apply the laravel code style linter 2022-01-08 00:03:12 -05:00
HDVinnie
97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
HDVinnie
8c96dae0de fix: forum/topic/post permissions
- this system to be cleaned up and refactored a bit
2021-10-26 13:06:26 -04:00