]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
Fix notice "Undefined offset: 1"
[friendica.git] / mod / unfollow.php
index c754b384d33f20ba76a3ab680cc82c3ca0bfa218..5ccc9c859af35382b5923dfa786cb8f2cf12a665 100644 (file)
@@ -79,7 +79,6 @@ function unfollow_post(App $a)
                $return_path = $base_return_path . '/' . $contact['id'];
        }
 
-       info(DI::l10n()->t('Contact unfollowed'));
        DI::baseUrl()->redirect($return_path);
        // NOTREACHED
 }
@@ -146,7 +145,7 @@ function unfollow_content(App $a)
        ]);
 
        DI::page()['aside'] = '';
-       Profile::load($a, '', Contact::getDetailsByURL($contact['url']));
+       Profile::load($a, '', Contact::getByURL($contact['url'], false));
 
        $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => DI::l10n()->t('Status Messages and Posts')]);