mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 14:05:15 +02:00
Merge pull request #9323 from annando/notice
Fix notice "Undefined index: author-network"
This commit is contained in:
commit
9684ce4eb5
1 changed files with 2 additions and 2 deletions
|
@ -629,12 +629,12 @@ class Notifier
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip the delivery to Diaspora if the item is from an ActivityPub author
|
// Skip the delivery to Diaspora if the item is from an ActivityPub author
|
||||||
if ($item['author-network'] == Protocol::ACTIVITYPUB) {
|
if (!empty($item['author-network']) && ($item['author-network'] == Protocol::ACTIVITYPUB)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip the delivery to Diaspora if the thread parent is from an ActivityPub author
|
// Skip the delivery to Diaspora if the thread parent is from an ActivityPub author
|
||||||
if ($thr_parent['author-network'] == Protocol::ACTIVITYPUB) {
|
if (!empty($thr_parent['author-network']) && ($thr_parent['author-network'] == Protocol::ACTIVITYPUB)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue