mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-30 16:30:45 +00:00
Update AP ProfileOutbox transformer
This commit is contained in:
parent
0462b0a364
commit
985938b662
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ class ProfileOutbox extends Fractal\TransformerAbstract
|
||||||
$count = $profile->statuses()->count();
|
$count = $profile->statuses()->count();
|
||||||
$statuses = $profile->statuses()->has('media')->orderBy('id','desc')->take(20)->get()->map(function($i, $k) {
|
$statuses = $profile->statuses()->has('media')->orderBy('id','desc')->take(20)->get()->map(function($i, $k) {
|
||||||
$item = [
|
$item = [
|
||||||
'id' => $i->url(),
|
'id' => $i->permalink(),
|
||||||
// TODO: handle other types
|
// TODO: handle other types
|
||||||
'type' => 'Create',
|
'type' => 'Create',
|
||||||
'actor' => $i->profile->url(),
|
'actor' => $i->profile->url(),
|
||||||
|
@ -47,7 +47,7 @@ class ProfileOutbox extends Fractal\TransformerAbstract
|
||||||
// TODO: add cc's
|
// TODO: add cc's
|
||||||
//"{$notice->getProfile()->getUrl()}/subscribers",
|
//"{$notice->getProfile()->getUrl()}/subscribers",
|
||||||
],
|
],
|
||||||
'sensitive' => null,
|
'sensitive' => (bool) $i->is_nsfw,
|
||||||
'atomUri' => $i->url(),
|
'atomUri' => $i->url(),
|
||||||
'inReplyToAtomUri' => null,
|
'inReplyToAtomUri' => null,
|
||||||
'conversation' => $i->url(),
|
'conversation' => $i->url(),
|
||||||
|
|
Loading…
Reference in a new issue