Merge pull request #9309 from annando/reshare-info
Improve resharer information
This commit is contained in:
commit
41b4d23853
|
@ -1006,12 +1006,10 @@ 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) {
|
||||
$parent = Item::selectFirst(['causer-id', 'gravity'], ['uri' => $item['thr-parent']]);
|
||||
if (($parent['causer-id'] == $item['author-id']) && ($parent['gravity'] == GRAVITY_PARENT)) {
|
||||
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']])) {
|
||||
$conv_responses[$mode][$item['thr-parent']] = 1;
|
||||
|
|
Loading…
Reference in a new issue