]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
The item notifications now are based upon the "user-item" field
[friendica.git] / mod / unfollow.php
index c7ad413d225e34eda1cac94a99244043da3d1d41..280ca164e6b7c3efb62dca042804fea50f1eb6c6 100644 (file)
@@ -7,7 +7,6 @@ use Friendica\App;
 use Friendica\Core\L10n;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
@@ -101,7 +100,7 @@ function unfollow_content(App $a)
                // NOTREACHED
        }
 
-       $request = System::baseUrl() . '/unfollow';
+       $request = DI::baseUrl() . '/unfollow';
        $tpl = Renderer::getMarkupTemplate('auto_request.tpl');
 
        $self = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
@@ -142,7 +141,7 @@ function unfollow_content(App $a)
                '$keywords_label'=> ''
        ]);
 
-       $a->page['aside'] = '';
+       DI::page()['aside'] = '';
        Profile::load($a, '', 0, Contact::getDetailsByURL($contact['url']));
 
        $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => L10n::t('Status Messages and Posts')]);