mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Merge pull request #671 from pixelfed/frontend-ui-refactor
Update Inbox
This commit is contained in:
commit
acbd84ef11
1 changed files with 2 additions and 1 deletions
|
@ -168,9 +168,10 @@ class Inbox
|
||||||
}
|
}
|
||||||
|
|
||||||
$status = DB::transaction(function() use($activity, $actor) {
|
$status = DB::transaction(function() use($activity, $actor) {
|
||||||
|
$caption = str_limit(strip_tags($activity['content']), config('pixelfed.max_caption_length'));
|
||||||
$status = new Status;
|
$status = new Status;
|
||||||
$status->profile_id = $actor->id;
|
$status->profile_id = $actor->id;
|
||||||
$status->caption = strip_tags($activity['content']);
|
$status->caption = $caption;
|
||||||
$status->visibility = $status->scope = 'public';
|
$status->visibility = $status->scope = 'public';
|
||||||
$status->url = $url;
|
$status->url = $url;
|
||||||
$status->save();
|
$status->save();
|
||||||
|
|
Loading…
Reference in a new issue