Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#411)
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 c1d1623 commit 3cd6cdc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"require-dev": {
"league/flysystem-aws-s3-v3": "^1.0",
"overtrue/flysystem-qiniu": "1.0.4",
"blomstra/gdpr": "@beta",
"flarum/gdpr": "dev-main",
"flarum/phpstan": "*",
"flarum/testing": "^1.0.0"
},
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 FoF\Upload;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Controller\ListDiscussionsController;
use Flarum\Api\Controller\ListPostsController;
use Flarum\Api\Controller\ShowForumController;
Expand All @@ -21,6 +20,7 @@
use Flarum\Api\Serializer\ForumSerializer;
use Flarum\Api\Serializer\UserSerializer;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\Post\Event\Posted;
use Flarum\Post\Event\Revised;
use Flarum\Settings\Event\Deserializing;
Expand Down Expand Up @@ -129,7 +129,7 @@
->modelPolicy(File::class, Access\FilePolicy::class),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\Uploads::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:
uploads:
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Uploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace FoF\Upload\Data;

use Blomstra\Gdpr\Data\Type;
use Flarum\Gdpr\Data\Type;
use FoF\Upload\Adapters\Manager;
use FoF\Upload\Downloader\DefaultDownloader;
use FoF\Upload\File;
Expand Down

0 comments on commit 3cd6cdc

Please sign in to comment.