Merge pull request #9521 from annando/issue-9520

Issue 9520: Fix resharer hovercard
This commit is contained in:
Hypolite Petovan 2020-11-10 15:07:01 -05:00 committed by GitHub
commit 7fcaa1f239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -756,6 +756,7 @@ function conversation_fetch_comments($thread_items, $pinned, $causer) {
break; break;
case Item::PT_ANNOUNCEMENT: case Item::PT_ANNOUNCEMENT:
if (!empty($row['causer-id']) && DI::pConfig()->get(local_user(), 'system', 'display_resharer')) { if (!empty($row['causer-id']) && DI::pConfig()->get(local_user(), 'system', 'display_resharer')) {
$row['owner-id'] = $row['causer-id'];
$row['owner-link'] = $row['causer-link']; $row['owner-link'] = $row['causer-link'];
$row['owner-avatar'] = $row['causer-avatar']; $row['owner-avatar'] = $row['causer-avatar'];
$row['owner-name'] = $row['causer-name']; $row['owner-name'] = $row['causer-name'];