From 5cfc0f0d9a4775014e705c85faf3d0f3fc1eb547 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 13 Sep 2017 17:56:47 +0100 Subject: [PATCH 1/3] Fix test --- tests/Feature/ActivityStreamTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ]); } From 9718aea8f7543549ac81a4f6f9892291ebca5d3a Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 13 Sep 2017 17:02:31 +0000 Subject: [PATCH 2/3] Apply fixes from StyleCI --- app/Providers/AppServiceProvider.php | 2 +- app/Services/ActivityStreamsService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), ], ]); From 741af787c0cd016a5ba8b0dbcdd3047c0959efc8 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 13 Sep 2017 18:06:55 +0100 Subject: [PATCH 3/3] Bump version number to 0.7.3 --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) 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