mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
Rejig formatting API. closes flarum/core#85
It works but it’s not the most pretty thing in the world. @franzliedke Would be great if you could take a look at the whole formatting API and work your magic on it sometime… my brain is fried!
This commit is contained in:
@@ -25,7 +25,7 @@ class PostBasicSerializer extends BaseSerializer
|
||||
];
|
||||
|
||||
if ($post->type === 'comment') {
|
||||
$attributes['excerpt'] = str_limit($post->contentPlain, 200);
|
||||
$attributes['contentHtml'] = $post->content_html;
|
||||
} else {
|
||||
$attributes['content'] = $post->content;
|
||||
}
|
||||
|
Reference in New Issue
Block a user