]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
Merge pull request #8888 from annando/rename-keywordlist
[friendica.git] / mod / display.php
index d3c0e024996d95fb37b512c339671b03e768c0eb..1a429948a9d8de8ae2342c03da49910bf4ec47a0 100644 (file)
@@ -164,7 +164,7 @@ function display_fetchauthor($a, $item)
                $profiledata["about"] = "";
        }
 
-       $profiledata = Contact::getDetailsByURL($profiledata["url"], local_user(), $profiledata);
+       $profiledata = Contact::getByURLForUser($profiledata["url"], local_user()) ?: $profiledata;
 
        if (!empty($profiledata["photo"])) {
                $profiledata["photo"] = DI::baseUrl()->remove($profiledata["photo"]);
@@ -183,6 +183,8 @@ function display_content(App $a, $update = false, $update_uid = 0)
 
        $item = null;
 
+       $force = (bool)($_REQUEST['force'] ?? false);
+
        if ($update) {
                $item_id = $_REQUEST['item_id'];
                $item = Item::selectFirst(['uid', 'parent', 'parent-uri'], ['id' => $item_id]);
@@ -281,7 +283,7 @@ function display_content(App $a, $update = false, $update_uid = 0)
        }
 
        // We need the editor here to be able to reshare an item.
-       if ($is_owner) {
+       if ($is_owner && !$update) {
                $x = [
                        'is_owner' => true,
                        'allow_location' => $a->user['allow_location'],
@@ -304,7 +306,7 @@ function display_content(App $a, $update = false, $update_uid = 0)
                $unseen = false;
        }
 
-       if ($update && !$unseen) {
+       if ($update && !$unseen && !$force) {
                return '';
        }