Replaced direct calls to App->user #1152

Merged
annando merged 5 commits from app-user into develop 2021-08-09 23:00:24 +02:00
Showing only changes of commit 752602f5f5 - Show all commits

View file

@ -146,7 +146,7 @@ function twitter_follow(App $a, array &$contact)
$nickname = preg_replace("=https?://twitter.com/(.*)=ism", "$1", $contact["url"]); $nickname = preg_replace("=https?://twitter.com/(.*)=ism", "$1", $contact["url"]);
$nickname = str_replace("@twitter.com", "", $nickname); $nickname = str_replace("@twitter.com", "", $nickname);
$uid = $a->getUserId(); $uid = $a->getLoggedInUserId();
$ckey = DI::config()->get('twitter', 'consumerkey'); $ckey = DI::config()->get('twitter', 'consumerkey');
$csecret = DI::config()->get('twitter', 'consumersecret'); $csecret = DI::config()->get('twitter', 'consumersecret');