浏览代码

Update Inbox

Daniel Supernault 4 年之前
父节点
当前提交
cc47243733
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Util/ActivityPub/Inbox.php

+ 5 - 0
app/Util/ActivityPub/Inbox.php

@@ -435,9 +435,14 @@ class Inbox
 		if(!$actor || !$target) {
 			return;
 		}
+
 		$actor = Helpers::profileFetch($actor);
 		$target = Helpers::profileFetch($target);
 
+		if(!$actor || !$target) {
+			return;
+		}
+
 		$request = FollowRequest::whereFollowerId($actor->id)
 			->whereFollowingId($target->id)
 			->whereIsRejected(false)