]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_poll.php
Force avatar update for Contact Advanced page
[friendica.git] / mod / dfrn_poll.php
index bce7bf0cbf72395d874b93c03a1f93dd18b6dd2f..bc0100bfa4756613cbbd7810345765073e573135 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 use Friendica\App;
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Core\Session;
@@ -49,7 +48,7 @@ function dfrn_poll_init(App $a)
        $hidewall = false;
 
        if (($dfrn_id === '') && empty($_POST['dfrn_id'])) {
-               if (Config::get('system', 'block_public') && !Session::isAuthenticated()) {
+               if (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) {
                        throw new \Friendica\Network\HTTPException\ForbiddenException();
                }
 
@@ -539,7 +538,7 @@ function dfrn_poll_content(App $a)
 
                        switch ($destination_url) {
                                case 'profile':
-                                       DI::baseUrl()->redirect('profile/' . $profile . '?tab=profile');
+                                       DI::baseUrl()->redirect('profile/' . $profile . '/profile');
                                        break;
                                case 'photos':
                                        DI::baseUrl()->redirect('photos/' . $profile);