Explorar el Código

Update Inbox, fixes #3314

Daniel Supernault hace 3 años
padre
commit
dfcd2e6d2a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Util/ActivityPub/Inbox.php

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

@@ -182,6 +182,9 @@ class Inbox
 		if(!$actor || $actor->domain == null) {
 			return;
 		}
+		if(!isset($activity['to'])) {
+			return;
+		}
 		$to = $activity['to'];
 		$cc = isset($activity['cc']) ? $activity['cc'] : [];