Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#76)
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 <bot@styleci.io>
  • Loading branch information
imorland and StyleCIBot authored Nov 3, 2024
1 parent ee39d27 commit 9b2052f
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 @@ -54,7 +54,7 @@
"flarum/subscriptions",
"flarum/approval",
"flarum/mentions",
"blomstra/gdpr"
"flarum/gdpr"
]
},
"flagrow": {
Expand All @@ -71,7 +71,7 @@
"flarum/subscriptions": "*",
"flarum/phpstan": "*",
"flarum/mentions": "*",
"blomstra/gdpr": "@beta"
"flarum/gdpr": "dev-main"
},
"scripts": {
"analyse:phpstan": "phpstan analyse",
Expand Down
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\FollowTags;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Serializer\DiscussionSerializer;
use Flarum\Discussion\Event as Discussion;
use Flarum\Discussion\Filter\DiscussionFilterer;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Post\Event as Post;
use Flarum\Tags\Api\Serializer\TagSerializer;
use Flarum\Tags\TagState;
Expand Down Expand Up @@ -69,7 +69,7 @@
->beforeSending(Listeners\PreventMentionNotificationsFromIgnoredTags::class),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\TagSubscription::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 @@ -105,7 +105,7 @@ fof-follow-tags:
none: Followed Discussions
tags: Followed Tags

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

namespace FoF\FollowTags\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;
use Flarum\Tags\Tag;
use Flarum\Tags\TagState;
use Illuminate\Support\Arr;
Expand Down

0 comments on commit 9b2052f

Please sign in to comment.