Merge pull request #9309 from annando/reshare-info

Improve resharer information
This commit is contained in:
Tobias Diekershoff 2020-09-28 16:52:31 +02:00 committed by GitHub
commit 41b4d23853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1006,11 +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 // Skip when the causer of the parent is the same than the author of the announce
if ($verb == Activity::ANNOUNCE) { if (($verb == Activity::ANNOUNCE) && Item::exists(['uri' => $item['thr-parent'],
$parent = Item::selectFirst(['causer-id', 'gravity'], ['uri' => $item['thr-parent']]); 'uid' => $item['uid'], 'causer-id' => $item['author-id'], 'gravity' => GRAVITY_PARENT])) {
if (($parent['causer-id'] == $item['author-id']) && ($parent['gravity'] == GRAVITY_PARENT)) { continue;
continue;
}
} }
if (!isset($conv_responses[$mode][$item['thr-parent']])) { if (!isset($conv_responses[$mode][$item['thr-parent']])) {