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 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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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),
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue