Merge remote-tracking branch 'upstream/develop' into share-rework
authorMichael <heluecht@pirati.ca>
Tue, 25 Oct 2022 08:31:01 +0000 (08:31 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 25 Oct 2022 08:31:01 +0000 (08:31 +0000)
1  2 
mod/display.php
mod/share.php
src/Content/Item.php
src/Model/Contact.php
src/Model/Item.php

diff --cc mod/display.php
@@@ -123,9 -122,11 +122,9 @@@ function display_init(App $a
  
  function display_fetchauthor($item)
  {
 -      if (Diaspora::isReshare($item['body'], true)) {
 -              $shared = Item::getShareArray($item);
 -              if (!empty($shared['profile'])) {
 -                      $contact = Contact::getByURLForUser($shared['profile'], DI::userSession()->getLocalUserId());
 -              }
 +      $shared = Item::getShareArray($item);
 +      if (empty($shared['comment']) && !empty($shared['guid']) && !empty($shared['profile'])) {
-               $contact = Contact::getByURLForUser($shared['profile'], Session::getLocalUser());
++              $contact = Contact::getByURLForUser($shared['profile'], DI::userSession()->getLocalUserId());
        }
  
        if (empty($contact)) {
diff --cc mod/share.php
Simple merge
Simple merge
Simple merge
Simple merge