Browse Source

Update AP Inbox

Daniel Supernault 3 năm trước cách đây
mục cha
commit
1f45580f18
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      app/Util/ActivityPub/Inbox.php

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

@@ -63,7 +63,6 @@ class Inbox
 		switch ($verb) {
 
 			case 'Add':
-				if(AddValidator::validate($this->payload) == false) { return; }
 				$this->handleAddActivity();
 				break;
 
@@ -167,7 +166,7 @@ class Inbox
 
 		switch($obj['type']) {
 			case 'Story':
-				StoryFetch::dispatch($this->payload)->onQueue('story');
+				StoryFetch::dispatchNow($this->payload);
 			break;
 		}
 	}