mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Comment to Twitter post is posted to AP instead
Fixes friendica/friendica#9712
This commit is contained in:
parent
97bbe3ae96
commit
152daaabfb
1 changed files with 5 additions and 0 deletions
|
@ -766,6 +766,11 @@ class Notifier
|
||||||
*/
|
*/
|
||||||
private static function activityPubDelivery($cmd, array $target_item, array $parent, array $thr_parent, $priority, $created, $owner)
|
private static function activityPubDelivery($cmd, array $target_item, array $parent, array $thr_parent, $priority, $created, $owner)
|
||||||
{
|
{
|
||||||
|
// Don't deliver via AP when the starting post isn't from a federated network
|
||||||
|
if (!in_array($parent['network'], Protocol::FEDERATED)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Don't deliver via AP when the starting post is delivered via Diaspora
|
// Don't deliver via AP when the starting post is delivered via Diaspora
|
||||||
if ($parent['network'] == Protocol::DIASPORA) {
|
if ($parent['network'] == Protocol::DIASPORA) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue