From 92c1ee26c862f2de0a1a9bf18b9419b479ff8273 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 6 May 2015 11:24:02 +0930 Subject: [PATCH] Fix content attribute decoding into an object --- src/Core/Models/ActivityPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Models/ActivityPost.php b/src/Core/Models/ActivityPost.php index 0b0413979..2f14e740a 100755 --- a/src/Core/Models/ActivityPost.php +++ b/src/Core/Models/ActivityPost.php @@ -12,7 +12,7 @@ abstract class ActivityPost extends Post implements MergeableInterface */ public function getContentAttribute($value) { - return json_decode($value); + return json_decode($value, true); } /**