소스 검색

Update AP logger

Daniel Supernault 5 년 전
부모
커밋
3063eb249a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/Activity.php
  2. 1 1
      app/Util/ActivityPub/Inbox.php

+ 1 - 1
app/Activity.php

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

+ 1 - 1
app/Util/ActivityPub/Inbox.php

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