mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-30 16:30:45 +00:00
fix null values on capabilities
This commit is contained in:
parent
b4bc9fe31c
commit
23e2f111b7
3 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ class CreateNote extends Fractal\TransformerAbstract
|
||||||
'capabilities' => [
|
'capabilities' => [
|
||||||
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'reply' => $status->comments_disabled == true ? null : 'https://www.w3.org/ns/activitystreams#Public'
|
'reply' => $status->comments_disabled == true ? '[]' : 'https://www.w3.org/ns/activitystreams#Public'
|
||||||
],
|
],
|
||||||
'location' => $status->place_id ? [
|
'location' => $status->place_id ? [
|
||||||
'type' => 'Place',
|
'type' => 'Place',
|
||||||
|
|
|
@ -109,7 +109,7 @@ class Note extends Fractal\TransformerAbstract
|
||||||
'capabilities' => [
|
'capabilities' => [
|
||||||
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'reply' => $status->comments_disabled == true ? null : 'https://www.w3.org/ns/activitystreams#Public'
|
'reply' => $status->comments_disabled == true ? '[]' : 'https://www.w3.org/ns/activitystreams#Public'
|
||||||
],
|
],
|
||||||
'location' => $status->place_id ? [
|
'location' => $status->place_id ? [
|
||||||
'type' => 'Place',
|
'type' => 'Place',
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Question extends Fractal\TransformerAbstract
|
||||||
'capabilities' => [
|
'capabilities' => [
|
||||||
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
'announce' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
'like' => 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
'reply' => $status->comments_disabled == true ? null : 'https://www.w3.org/ns/activitystreams#Public'
|
'reply' => $status->comments_disabled == true ? '[]' : 'https://www.w3.org/ns/activitystreams#Public'
|
||||||
],
|
],
|
||||||
'location' => $status->place_id ? [
|
'location' => $status->place_id ? [
|
||||||
'type' => 'Place',
|
'type' => 'Place',
|
||||||
|
|
Loading…
Reference in a new issue