Update AP logger

This commit is contained in:
Daniel Supernault 2020-04-29 15:29:10 -06:00
parent 28cbadf197
commit 3063eb249a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Activity extends Model class Activity extends Model
{ {
protected $dates = ['processed_at']; protected $dates = ['processed_at'];
protected $fillable = ['*']; protected $fillable = ['data', 'to_id', 'from_id', 'object_type'];
public function toProfile() public function toProfile()
{ {

View file

@ -41,7 +41,7 @@ class Inbox
{ {
$this->handleVerb(); $this->handleVerb();
(new Activity())->save([ (new Activity())->create([
'data' => json_encode($this->payload) 'data' => json_encode($this->payload)
]); ]);
} }