Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#40)
Browse files Browse the repository at this point in the history
* chore: prep for flarum/gdpr

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
imorland and StyleCIBot authored Nov 3, 2024
1 parent d38f8f9 commit ee093fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"optional-dependencies": [
"fof/user-directory",
"blomstra/gdpr"
"flarum/gdpr"
]
},
"flagrow": {
Expand All @@ -64,7 +64,7 @@
"flarum/testing": "*",
"flarum/approval": "*",
"fof/user-directory": "*",
"blomstra/gdpr": "@beta"
"flarum/gdpr": "dev-main"
},
"autoload-dev": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace IanM\FollowUsers;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Controller\ListUsersController;
use Flarum\Api\Controller\ShowForumController;
use Flarum\Api\Controller\ShowUserController;
Expand All @@ -23,6 +22,7 @@
use Flarum\Discussion\Event as DiscussionEvent;
use Flarum\Discussion\Filter\DiscussionFilterer;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Http\RequestUtil;
use Flarum\User\Event\Saving;
use Flarum\User\Filter\UserFilterer;
Expand Down Expand Up @@ -106,7 +106,7 @@
->serializeToForum('ianm-follow-users.stats-on-profile', 'ianm-follow-users.stats-on-profile', 'boolVal'),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\FollowUser::class),
]),
Expand Down
2 changes: 1 addition & 1 deletion resources/locale/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
blomstra-gdpr:
flarum-gdpr:
lib:
data:
followuser:
Expand Down
2 changes: 1 addition & 1 deletion src/Data/FollowUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace IanM\FollowUsers\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;
use IanM\FollowUsers\FollowState;
use Illuminate\Support\Arr;

Expand Down

0 comments on commit ee093fa

Please sign in to comment.