Commit graph

103 commits

Author SHA1 Message Date
Sam
6009c81aff
fix: validate webhook urls via create webhooks endpoint (#3736)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2026-06-27 13:09:43 +01:00
tadhgboyle
fba4cb051c
Convert punishments to Notification system (#3660) 2025-06-07 11:48:08 -07:00
tadhgboyle
b2b7a60867
Update Avatar config to use Settings system rather than Cache (#3664)
* Update Avatar config to use Settings system rather than Cache

* wip

* wip

* wip

* wip

* 🔥 built in avatar source

* fix Visage source

* lint

* Update 230.php
2025-05-23 16:55:55 -07:00
tadhgboyle
145c8bc1c2
Remove internal deprecations (#3630)
* Remove internal deprecations

* add convert profile posts task + remove dead lang_charset references

* guard og_image usages

* fix

* add note about mailhog

* revert group sync manager for time being

* review amendments

* fox
2025-05-04 14:08:21 -07:00
Partydragen
370430256f
Remove deprecated event system (#3631)
* Remove old event system & Convert renderPost event

* Remove old event system

* Misc

* Convert Custom Pages to use new event system

* Change RenderPost to RenderContent

* Convert profile posts and messaging

* All events converted

* Fixes

* Fixes

* Add tag support in Profile Posts & Messaging

* Execute rendercreate for profile post reply

* Update webhooks

* Remove return function

* Remove array response

* Remove more array response

* Remove fallback webhooks

* Test phpstan

* Fix phpdoc

* Remove name() & description()
2025-05-02 10:19:52 -07:00
tadhgboyle
d983be65ec
Convert Mentions to Notification system (#3628)
* Convert reports to Notification system

* fix unused term check for LanguageKey class

* simplify language#get

* remove n+1

* fix for multiple

* Convert Forum topic replies with Notifications

* review amendments

* fixes

* Apply fixes from StyleCI (#3627)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* add back existing_alerts

* remove unneeded exception

* add migrations

* fix

* lint

* Convert Mentions to Notification system

* fixes

* wip

* wip - code comments + fix mention parsing for custom page editing

* rename variable

* cleanup MentionsHook

* cleanup

* remove unused term

* Apply fixes from StyleCI (#3634)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* don't notify blocked users, but still tag them

* undo changes to DB class

* trailing comma

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2025-04-29 12:51:01 -07:00
tadhgboyle
85ac6db474
Convert Forum topic replies to Notification system (#3622) 2025-04-29 07:43:09 -07:00
tadhgboyle
d9fae243de
Remove floating includes files (#3629) 2025-04-28 05:39:51 -07:00
tadhgboyle
b53f3f23ed
Convert Reports to Notification system (#3620)
* Convert reports to Notification system

* fix unused term check for LanguageKey class

* simplify language#get

* remove n+1

* fix for multiple

* fix email content

* add migration to insert missing rows

* needless exception

* needless

* lint
2025-04-27 13:15:52 -07:00
Sam
26a2e5846d
feat: default notification preferences (#3590)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 14:22:14 +00:00
Sam
fbcb279b53
Add queue task to purge inactive users (#3525)
* feat: add queue task to purge inactive users

* fix: only purge inactive users that are not currently banned
2024-12-09 19:02:44 +00:00
tadhgboyle
ab6a0331cb
Add user sessions page (#3278)
* Save device information on login

* Users sessions page

* PR comments & device detection improvements

* Fix code-style

* Store IP in session & display on the user sessions page

* Don't show session hash, add last seen

* Fix last seen translation, ...

* Unnecesary Output::getClean() - Partydragen

* Apparently I did use admin/sessions language term

* Show location of ip

* Update custom/panel_templates/Default/core/users_sessions.tpl

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update custom/languages/en_UK.json

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* use country the second time

* wip

* wip usercp sessions view

* wip

* wip - show ip to user

* wip

* wip

* chore: fix build issues

* feat: add token expiry to sessions table and increase default expiry to 1 month

* feat: prevent access to geoip database

* feat: correct migrations for user sessions columns

* feat: add missing localisation terms to sessions page

* chore: purify agent info

---------

Co-authored-by: Supercrafter100 <58982133+supercrafter100@users.noreply.github.com>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-10-17 23:21:27 -07:00
Sam
070478cca9
fix: custom page url incorrectly encoded in sitemap (#3512) 2024-06-13 16:55:53 +01:00
Sam
9ce7b650df
Mass message rework (#3494)
* wip: mass messaging rework

* WIP notifications

* feat: mass messaging

* chore: tidy force migration

* chore: remove dev template

* style: styleci fixes

* fix: mass message bypass notification settings + mass message bypass purification

* fix: typo in alerts page
2024-03-31 20:19:43 +01:00
Partydragen
95d4a440e2
Merging of OAuth + Connections (#3460)
* Beginning merging of OAuth2 + Connections

* Add Google Integration

* Remove oauth language terms

* Move OAuth settings to Integration settings

* Make OAuth optional for register/login

* Beginning merging of OAuth2 + Connections

Add Google Integration

Remove oauth language terms

Move OAuth settings to Integration settings

Make OAuth optional for register/login

* Fixes

---------

Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-03-09 20:40:13 +00:00
tadhgboyle
fcaa51708c
Use Symfony Response HTTP status code constants (#3472) 2023-12-16 09:23:59 -08:00
Tadhg Boyle
b13c29e5e4
Reactions revamp & profile widgets (#3272)
* Initial work on reactions revamp and profile widgets

* Remove unneeded changes

* Remove unneeded change

* fix style

* Render emojis in reaction list StaffCP

* wip minecraft account profile widget, sticky widgets on profile page

* Add server name and IP to last seen

* remove

* rename to reaction score to match member list

* align reactions table contents center

* fix

* wip - nicer abstraction, widgets never query db, skin 3d viewer (undecided)

* wip - make reaction modals ajax, copy new reaction bar to profile posts

* wip reaction modals

* wip proper sorting

* wip modals

* wip get reaction submission working on profile wall posts

* add back helpful and creative default reactions

* reduce query amount on view topic

* remove debug statement

* wip

* wip

* simplify ProfileWidget pages

* Revert forum dropdown

* fix css syntax

* fix emoji title and alt being strange

* add back order input

* sort widgets by order in list

* fix settings link always showing

* phpdoc

* add widget name to exception

* insert default widget data if not found

* missing end if

* properly cache forum news per-group

* fix

* fix cache key, news permission check

* fix styling

* wip

* respect reaction ordering

* wip

* wip

* support custom reaction scores, update member list to properly calculate

* don't hardcode words

* wip

* allow multiple reactions

* redirect to post

* code style

* phpstan

* wip

* remove hardcoded terms + fix copy

* use npm for skinview3d

* create ReactionContext and refactor

* fix cache

* docblocks

* fix spelling

* pr amendments
2023-06-21 18:19:46 +01:00
Tadhg Boyle
d0fba0cbe9
Replace Util::getSetting/Util::setSetting usages (#3387) 2023-06-12 10:30:49 -06:00
Robin
c555b4197b
Remove unable to update groups catch (#3360) 2023-05-10 16:52:32 +02:00
Sam
50a431ffb7
Add dependency injection library + task to generate sitemap (#3332)
* Add dependency injection library and task to generate sitemap

* Add default value for queue runner

* Fix assigning data and output to class variables

---------

Co-authored-by: Partydragen <adrian_kili@outlook.com>
2023-04-30 20:07:37 +01:00
Tadhg Boyle
3966a8c343
Create HasWebhookParams interface (#3281)
Co-authored-by: Partydragen <admin@partydragen.com>
2023-04-10 13:34:29 -07:00
Partydragen
aa6c2d3b65
Revert validateToken (#3307) 2023-04-03 21:22:11 -07:00
Tadhg Boyle
8d09a86cb8
Misc fixes + improvements (#3270) 2023-03-23 20:01:23 -07:00
Tadhg Boyle
550b98a82c
Fix member module issues (#3282) 2023-03-23 07:35:33 -07:00
Tadhg Boyle
9cecbe2301
Create Members module with member list page (#3106) 2023-03-07 08:26:53 -08:00
Tadhg Boyle
e2130be87a
Event system DX improvements (#3226)
Co-authored-by: Partydragen <admin@partydragen.com>
Co-authored-by: Robin Slot <robin+github@rkslot.nl>
2023-03-01 11:35:10 -08:00
Tadhg Boyle
60a7ceff57
Rewrite Discord group sync to use v5 Nameless-Link API (#3222)
* Rewrite Discord group sync

* fix param

* Create new endpoint for plugin to use

* wip

* wip (will work after https://github.com/NamelessMC/Nameless-Java-API/pull/61)

* wip

* Undo hardcoded version

* Style

* Style

* Style

* Fix nickname sync

* UNDO UNDO UNDO
2023-01-28 19:02:27 +01:00
Tadhg Boyle
26ac376a2d
Remove MCAssoc 🔥 (#3220) 2023-01-26 14:08:11 -08:00
Partydragen
e93b91ea57 Make sure integration verify code is not null 2023-01-14 00:59:14 +01:00
Supercrafter100
c924e29839
Fix captcha validation (#3175)
* Update Recaptcha2.php

* Remove site key and secret validation

* Don't forget validateKey!
2023-01-13 21:08:27 +01:00
Supercrafter100
c2069b7e11
Add createWebhookEndpoint (#3096)
* Add createWebhookEndpoint

* Add more comments

* Validation improvements

* Update modules/Core/includes/endpoints/CreateWebhooksEndpoint.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/includes/endpoints/CreateWebhooksEndpoint.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Remove redundant check

* Better validation for webhook type & events

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-11-06 19:03:59 +00:00
Partydragen
21c222850e
Add Integrations settings system & Setting to turn off mc username requirement (#3109)
* Add integrations settings system

* Move discord link method to integrations settings

* Add option to disable minecraft username on registration

Closes https://github.com/NamelessMC/Nameless/issues/3043

* Add error if integration settings does not exist
2022-10-19 14:14:53 +02:00
Partydragen
f1f059da18 Add add/remove integration endpoints 2022-09-30 17:52:14 +02:00
Tadhg Boyle
5b996f3767
Allow selecting an MC server to use for group sync options (#2991) 2022-08-12 07:02:34 -07:00
Robin
46fd4b4b80 Fix API error name 2022-08-07 10:34:19 +02:00
Partydragen
6a7a168b3b
Fix verification_code typo 2022-07-17 17:41:41 +02:00
Tadhg Boyle
2f817c3b0d Add api error code for already verified integration 2022-07-09 10:58:36 -06:00
Robin
9de500467e Use strict equality for null checking 2022-07-03 20:56:15 +02:00
Partydragen
45fe41af10 Re-add format uuid function and relocate getOfflineModeUuid 2022-07-03 01:00:51 +02:00
Robin
27e0a80d5e
Allow server to send correct verify command (#2881) 2022-06-21 22:41:34 -06:00
PadowYT2
bf23040247
Dark/light mode for Captcha (#2852)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-06-12 20:15:20 -06:00
Supercrafter100
a0a8df5612
Update hCaptcha.php (#2849) 2022-06-11 10:30:42 -06:00
Robin
4be06eabe2 New API error for missing API key
This makes troubleshooting easier if a web server or proxy strips the Authorization header
2022-06-09 20:14:12 +02:00
Partydragen
a83047d2f4 const integration errors 2022-06-02 20:28:45 +02:00
Robin
48b8bdb406 Remove home type cache 2022-06-01 23:00:39 +02:00
Robin
01355dcc54 Replace insecure RNG 2022-06-01 22:15:07 +02:00
Robin
75637c29c5 Handle empty query results properly
Fixes:
`/data/modules/Core/classes/Group_Sync/MinecraftGroupSyncInjector.php(34) 2: Attempt to read property "groups" on null`
and
`/data/modules/Core/classes/Group_Sync/MinecraftGroupSyncInjector.php(35) 8192: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated`
2022-06-01 19:37:25 +02:00
Robin
67ee4bd17b Remove more queries usage 2022-06-01 11:09:17 +02:00
Robin
f1ab385e47 Update more settings usage 2022-06-01 10:30:09 +02:00
Robin
0126159a6e Remove all manual settings usage 2022-05-31 23:23:26 +02:00