diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index a79e464a..8a110794 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -49,7 +49,7 @@ class AppServiceProvider extends ServiceProvider }); // Request AS macro - Request::macro('wantsActivityStream', function() { + Request::macro('wantsActivityStream', function () { return str_contains(mb_strtolower($this->header('Accept')), 'application/activity+json'); }); } diff --git a/app/Services/ActivityStreamsService.php b/app/Services/ActivityStreamsService.php index 51806ebd..e3d88aae 100644 --- a/app/Services/ActivityStreamsService.php +++ b/app/Services/ActivityStreamsService.php @@ -41,7 +41,7 @@ class ActivityStreamsService 'id' => $note->longurl, 'type' => 'Note', 'url' => $note->longurl, - 'name' => strip_tags($note->note) + 'name' => strip_tags($note->note), ], ]); diff --git a/changelog.md b/changelog.md index 4c35cb98..9299217d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.7.3 (2017-09-13) + - Fix a test + ## Version 0.7.2 (2017-09-13) - Small AS2.0 improvements diff --git a/tests/Feature/ActivityStreamTest.php b/tests/Feature/ActivityStreamTest.php index 5d7b2c24..41ae1a75 100644 --- a/tests/Feature/ActivityStreamTest.php +++ b/tests/Feature/ActivityStreamTest.php @@ -20,7 +20,7 @@ class ActivityStreamTest extends TestCase '@context' => 'https://www.w3.org/ns/activitystreams', 'id' => config('app.url'), 'type' => 'Person', - 'name' => config('app.display_name'), + 'name' => config('user.displayname'), ]); }