Merge branch 'release/0.7.3'
This commit is contained in:
commit
d5ebe9bcd3
4 changed files with 6 additions and 3 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class ActivityStreamsService
|
|||
'id' => $note->longurl,
|
||||
'type' => 'Note',
|
||||
'url' => $note->longurl,
|
||||
'name' => strip_tags($note->note)
|
||||
'name' => strip_tags($note->note),
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue