Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#37)
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 801634f commit d1933a9
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 @@ -52,7 +52,7 @@
"flarum/flags",
"flarum/tags",
"flarum/approval",
"blomstra/gdpr"
"flarum/gdpr"
]
},
"flagrow": {
Expand Down Expand Up @@ -91,6 +91,6 @@
"require-dev": {
"flarum/testing": "^1.0.0",
"flarum/phpstan": "*",
"blomstra/gdpr": "@beta"
"flarum/gdpr": "dev-main"
}
}
4 changes: 2 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

namespace FoF\BanIPs;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Controller;
use Flarum\Api\Serializer;
use Flarum\Api\Serializer\AbstractSerializer;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Post\Post;
use Flarum\User\User;
use FoF\BanIPs\Api\Controllers\CheckIPsController;
Expand Down Expand Up @@ -111,7 +111,7 @@
->addFilter(Search\NxGambit::class),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\BannedIPData::class),
]),
Expand Down
2 changes: 1 addition & 1 deletion resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fof-ban-ips:
address_label: IP Address
reason_label: Reason

blomstra-gdpr:
flarum-gdpr:
lib:
data:
bannedipdata:
Expand Down
2 changes: 1 addition & 1 deletion src/Data/BannedIPData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace FoF\BanIPs\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;
use FoF\BanIPs\BannedIP;
use Illuminate\Support\Arr;

Expand Down

0 comments on commit d1933a9

Please sign in to comment.