Merge pull request #671 from pixelfed/frontend-ui-refactor

Update Inbox
This commit is contained in:
daniel 2018-12-25 00:16:02 -07:00 committed by GitHub
commit acbd84ef11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,9 +168,10 @@ class Inbox
}
$status = DB::transaction(function() use($activity, $actor) {
$caption = str_limit(strip_tags($activity['content']), config('pixelfed.max_caption_length'));
$status = new Status;
$status->profile_id = $actor->id;
$status->caption = strip_tags($activity['content']);
$status->caption = $caption;
$status->visibility = $status->scope = 'public';
$status->url = $url;
$status->save();