mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Remove an "if"
This commit is contained in:
parent
5cf369c026
commit
415a3a7926
1 changed files with 3 additions and 4 deletions
|
@ -1006,10 +1006,9 @@ function builtin_activity_puller($item, &$conv_responses) {
|
|||
}
|
||||
|
||||
// Skip when the causer of the parent is the same than the author of the announce
|
||||
if ($verb == Activity::ANNOUNCE) {
|
||||
if (Item::exists(['uri' => $item['thr-parent'], 'uid' => $item['uid'], 'causer-id' => $item['author-id'], 'gravity' => GRAVITY_PARENT])) {
|
||||
continue;
|
||||
}
|
||||
if (($verb == Activity::ANNOUNCE) && Item::exists(['uri' => $item['thr-parent'],
|
||||
'uid' => $item['uid'], 'causer-id' => $item['author-id'], 'gravity' => GRAVITY_PARENT])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($conv_responses[$mode][$item['thr-parent']])) {
|
||||
|
|
Loading…
Reference in a new issue