Additional check for repeated posts
This commit is contained in:
parent
3e57954807
commit
338ad1d85f
|
@ -2615,6 +2615,10 @@ function item_is_remote_self($contact, &$datarray) {
|
||||||
if (!$contact['remote_self'])
|
if (!$contact['remote_self'])
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Prevent the forwarding of posts that are forwarded
|
||||||
|
if ($datarray["extid"] == NETWORK_DFRN)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Prevent to forward already forwarded posts
|
// Prevent to forward already forwarded posts
|
||||||
if ($datarray["app"] == $a->get_hostname())
|
if ($datarray["app"] == $a->get_hostname())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue