From 3bc6ef04feea3345062a57d507374ec32fd6bd29 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 25 Dec 2018 00:15:06 -0700 Subject: [PATCH] Update Inbox --- app/Util/ActivityPub/Inbox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 1fd79226..7791fe97 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -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();