mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
The "share" handling is improved
This commit is contained in:
parent
4930737cc4
commit
f54a886a5e
14 changed files with 74 additions and 111 deletions
|
@ -123,11 +123,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'], Session::getLocalUser());
|
||||
}
|
||||
$shared = Item::getShareArray($item);
|
||||
if (empty($shared['comment']) && !empty($shared['guid']) && !empty($shared['profile'])) {
|
||||
$contact = Contact::getByURLForUser($shared['profile'], Session::getLocalUser());
|
||||
}
|
||||
|
||||
if (empty($contact)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue