https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c08e0f
)
Fixes notice: "Undefined index: type"
author
Michael
<heluecht@pirati.ca>
Wed, 10 Mar 2021 14:40:57 +0000
(14:40 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 10 Mar 2021 14:40:57 +0000
(14:40 +0000)
src/Protocol/ActivityPub/Receiver.php
patch
|
blob
|
history
diff --git
a/src/Protocol/ActivityPub/Receiver.php
b/src/Protocol/ActivityPub/Receiver.php
index
519d91a
..
62a583d
100644
(file)
--- a/
src/Protocol/ActivityPub/Receiver.php
+++ b/
src/Protocol/ActivityPub/Receiver.php
@@
-101,7
+101,8
@@
class Receiver
$apcontact = APContact::getByURL($actor);
if (empty($apcontact)) {
- Logger::notice('Unable to retrieve AP contact for actor', ['actor' => $actor]);
+ Logger::notice('Unable to retrieve AP contact for actor - message is discarded', ['actor' => $actor]);
+ return;
} elseif ($apcontact['type'] == 'Application' && $apcontact['nick'] == 'relay') {
self::processRelayPost($ldactivity, $actor);
return;