diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d4e19b4..79e28c0ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1)) - Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24)) - Add trusted proxies flag to admin dashboard diagnostics ([#3450](https://github.com/pixelfed/pixelfed/pull/3450)) +- Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1)) +- Update exp config, enforce mastoapi compatibility by default ([a160b233](https://github.com/pixelfed/pixelfed/commit/a160b233)) ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3) diff --git a/app/Transformer/ActivityPub/Verb/CreateNote.php b/app/Transformer/ActivityPub/Verb/CreateNote.php index e7d542414..6a1a0e67b 100644 --- a/app/Transformer/ActivityPub/Verb/CreateNote.php +++ b/app/Transformer/ActivityPub/Verb/CreateNote.php @@ -60,10 +60,10 @@ class CreateNote extends Fractal\TransformerAbstract 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', 'commentsEnabled' => 'sc:Boolean', - 'capabilities' => [ - 'announce' => ['@type' => '@id'], - 'like' => ['@type' => '@id'], - 'reply' => ['@type' => '@id'] + '@capabilities' => [ + '@announce' => '@id', + '@like' => '@id', + '@reply' => '@id', ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji' diff --git a/app/Transformer/ActivityPub/Verb/CreateQuestion.php b/app/Transformer/ActivityPub/Verb/CreateQuestion.php index a1aaccdc2..1ef2efc43 100644 --- a/app/Transformer/ActivityPub/Verb/CreateQuestion.php +++ b/app/Transformer/ActivityPub/Verb/CreateQuestion.php @@ -23,11 +23,11 @@ class CreateQuestion extends Fractal\TransformerAbstract 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', 'commentsEnabled' => 'sc:Boolean', - 'capabilities' => [ - 'announce' => ['@type' => '@id'], - 'like' => ['@type' => '@id'], - 'reply' => ['@type' => '@id'] - ] + '@capabilities' => [ + '@announce' => '@id', + '@like' => '@id', + '@reply' => '@id', + ], ] ], 'id' => $status->permalink(), diff --git a/app/Transformer/ActivityPub/Verb/DeleteNote.php b/app/Transformer/ActivityPub/Verb/DeleteNote.php index 01a2704f2..d34673aae 100644 --- a/app/Transformer/ActivityPub/Verb/DeleteNote.php +++ b/app/Transformer/ActivityPub/Verb/DeleteNote.php @@ -10,10 +10,7 @@ class DeleteNote extends Fractal\TransformerAbstract public function transform(Status $status) { return [ - '@context' => [ - 'https://www.w3.org/ns/activitystreams', - 'https://w3id.org/security/v1', - ], + '@context' => 'https://www.w3.org/ns/activitystreams', 'id' => $status->permalink('#delete'), 'type' => 'Delete', 'actor' => $status->profile->permalink(), @@ -24,4 +21,4 @@ class DeleteNote extends Fractal\TransformerAbstract ]; } -} \ No newline at end of file +} diff --git a/app/Transformer/ActivityPub/Verb/Note.php b/app/Transformer/ActivityPub/Verb/Note.php index 2c34412f5..464bf6df4 100644 --- a/app/Transformer/ActivityPub/Verb/Note.php +++ b/app/Transformer/ActivityPub/Verb/Note.php @@ -61,10 +61,10 @@ class Note extends Fractal\TransformerAbstract 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', 'commentsEnabled' => 'sc:Boolean', - 'capabilities' => [ - 'announce' => ['@type' => '@id'], - 'like' => ['@type' => '@id'], - 'reply' => ['@type' => '@id'], + '@capabilities' => [ + '@announce' => '@id', + '@like' => '@id', + '@reply' => '@id', ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji' diff --git a/app/Transformer/ActivityPub/Verb/Question.php b/app/Transformer/ActivityPub/Verb/Question.php index fd78ce2ff..32898d138 100644 --- a/app/Transformer/ActivityPub/Verb/Question.php +++ b/app/Transformer/ActivityPub/Verb/Question.php @@ -40,11 +40,11 @@ class Question extends Fractal\TransformerAbstract 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', 'commentsEnabled' => 'sc:Boolean', - 'capabilities' => [ - 'announce' => ['@type' => '@id'], - 'like' => ['@type' => '@id'], - 'reply' => ['@type' => '@id'] - ] + '@capabilities' => [ + '@announce' => '@id', + '@like' => '@id', + '@reply' => '@id', + ], ] ], 'id' => $status->url(), diff --git a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php index a9196249c..3467654af 100644 --- a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php @@ -38,7 +38,6 @@ class StatusTransformer extends Fractal\TransformerAbstract 'website' => null ], 'mentions' => [], - 'tags' => [], 'emojis' => [], 'card' => null, 'poll' => null, diff --git a/config/exp.php b/config/exp.php index 181c49f47..0c9f83706 100644 --- a/config/exp.php +++ b/config/exp.php @@ -32,6 +32,5 @@ return [ 'spa' => true, // Enforce Mastoapi Compatibility (alpha) - // Note: this may break 3rd party apps who use non-mastodon compliant fields - 'emc' => env('EXP_EMC', false), + 'emc' => env('EXP_EMC', true), ];