|
|
@ -31,9 +31,10 @@ class CreateNote extends Fractal\TransformerAbstract
|
|
|
|
'https://www.w3.org/ns/activitystreams',
|
|
|
|
'https://www.w3.org/ns/activitystreams',
|
|
|
|
'https://w3id.org/security/v1',
|
|
|
|
'https://w3id.org/security/v1',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
|
|
|
|
'sc' => 'http://schema.org#',
|
|
|
|
'Hashtag' => 'as:Hashtag',
|
|
|
|
'Hashtag' => 'as:Hashtag',
|
|
|
|
'sensitive' => 'as:sensitive',
|
|
|
|
'sensitive' => 'as:sensitive',
|
|
|
|
'commentsDisabled' => 'as:commentsDisabled',
|
|
|
|
'commentsEnabled' => 'sc:Boolean',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'id' => $status->permalink(),
|
|
|
|
'id' => $status->permalink(),
|
|
|
@ -63,7 +64,7 @@ class CreateNote extends Fractal\TransformerAbstract
|
|
|
|
];
|
|
|
|
];
|
|
|
|
})->toArray(),
|
|
|
|
})->toArray(),
|
|
|
|
'tag' => $tags,
|
|
|
|
'tag' => $tags,
|
|
|
|
'commentsDisabled' => (bool) $status->comments_disabled,
|
|
|
|
'commentsEnabled' => (bool) !$status->comments_disabled,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|