Merge branch 'release/0.7.3'

This commit is contained in:
Jonny Barnes 2017-09-13 18:07:00 +01:00
commit d5ebe9bcd3
4 changed files with 6 additions and 3 deletions

View file

@ -49,7 +49,7 @@ class AppServiceProvider extends ServiceProvider
}); });
// Request AS macro // Request AS macro
Request::macro('wantsActivityStream', function() { Request::macro('wantsActivityStream', function () {
return str_contains(mb_strtolower($this->header('Accept')), 'application/activity+json'); return str_contains(mb_strtolower($this->header('Accept')), 'application/activity+json');
}); });
} }

View file

@ -41,7 +41,7 @@ class ActivityStreamsService
'id' => $note->longurl, 'id' => $note->longurl,
'type' => 'Note', 'type' => 'Note',
'url' => $note->longurl, 'url' => $note->longurl,
'name' => strip_tags($note->note) 'name' => strip_tags($note->note),
], ],
]); ]);

View file

@ -1,5 +1,8 @@
# Changelog # Changelog
## Version 0.7.3 (2017-09-13)
- Fix a test
## Version 0.7.2 (2017-09-13) ## Version 0.7.2 (2017-09-13)
- Small AS2.0 improvements - Small AS2.0 improvements

View file

@ -20,7 +20,7 @@ class ActivityStreamTest extends TestCase
'@context' => 'https://www.w3.org/ns/activitystreams', '@context' => 'https://www.w3.org/ns/activitystreams',
'id' => config('app.url'), 'id' => config('app.url'),
'type' => 'Person', 'type' => 'Person',
'name' => config('app.display_name'), 'name' => config('user.displayname'),
]); ]);
} }