]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Unfollow.php
Merge pull request #13314 from MrPetovan/bug/13311-removeme-delegate
[friendica.git] / src / Module / Contact / Unfollow.php
index 36db688181a43cb5d4f97851a8cf7df4c97a714c..670fe57e6907ecca51b8d13f636d1744a1589719 100644 (file)
@@ -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,7 +135,7 @@ 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']);