]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Unfollow.php
Changes:
[friendica.git] / src / Module / Contact / Unfollow.php
index 36db688181a43cb5d4f97851a8cf7df4c97a714c..b9cdfc80d310e9555435f456772b11928c2aa9fd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -93,7 +93,7 @@ class Unfollow extends \Friendica\BaseModule
                        Strings::normaliseLink($url), Strings::normaliseLink($url), $url,
                ];
 
-               $contact = $this->database->selectFirst('contact', ['url', 'id', 'uid', 'network', 'addr', 'name'], $condition);
+               $contact = $this->database->selectFirst('contact', ['url', 'alias', 'id', 'uid', 'network', 'addr', 'name'], $condition);
                if (!$this->database->isResult($contact)) {
                        $this->systemMessages->addNotice($this->t("You aren't following this contact."));
                        $this->baseUrl->redirect($base_return_path);
@@ -135,10 +135,10 @@ class Unfollow extends \Friendica\BaseModule
 
                $this->page['aside'] = Widget\VCard::getHTML(Contact::getByURL($contact['url'], false));
 
-               $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => $this->t('Status Messages and Posts')]);
+               $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => $this->t('Posts and Replies')]);
 
                // Show last public posts
-               $o .= Contact::getPostsFromUrl($contact['url']);
+               $o .= Contact::getPostsFromUrl($contact['url'], $this->userSession->getLocalUserId());
 
                return $o;
        }