Improved loop detection for Google+, Pump.io, Twitter and GNU Social

This commit is contained in:
Michael Vogel 2015-03-22 08:55:45 +01:00
parent ad1afc33d0
commit 584f58e573
5 changed files with 32 additions and 16 deletions

View file

@ -230,7 +230,7 @@ function gpluspost_send(&$a,&$b) {
return;
// if post comes from Google+ don't send it back
if (!get_pconfig($b["uid"],'gpluspost','no_loop_prevention') and ($b['app'] == "Google+"))
if (!get_pconfig($b["uid"],'gpluspost','no_loop_prevention') and (($b['app'] == "Google+") OR ($b["extid"] == NETWORK_GPLUS)))
return;
if (!gpluspost_nextscripts()) {