X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fadmin.php;h=ee1526468a30659fbb0165565f484aded8984b5b;hb=bf0b98017decf73123891e935993f2921d3b0acf;hp=468c72da7dcfd648690ee8ced4bef1ff464f74cf;hpb=b0fe83216d6247511ea9d27cf1d66a3264cb7303;p=friendica.git diff --git a/mod/admin.php b/mod/admin.php index 468c72da7d..ee1526468a 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -384,7 +384,7 @@ function admin_page_contactblock_post(App $a) check_form_security_token_redirectOnErr('/admin/contactblock', 'admin_contactblock'); if (x($_POST, 'page_contactblock_block')) { - $contact_id = Contact::getIdForURL($contact_url, 0); + $contact_id = Contact::getIdForURL($contact_url); if ($contact_id) { Contact::block($contact_id); notice(L10n::t('The contact has been blocked from the node')); @@ -539,7 +539,7 @@ function admin_page_federation(App $a) // off one % two of them are needed in the query // Add more platforms if you like, when one returns 0 known nodes it is not // displayed on the stats page. - $platforms = ['Friendi%%a', 'Diaspora', '%%red%%', 'Hubzilla', 'BlaBlaNet', 'GNU Social', 'StatusNet', 'Mastodon', 'Pleroma', 'socialhome']; + $platforms = ['Friendi%%a', 'Diaspora', '%%red%%', 'Hubzilla', 'BlaBlaNet', 'GNU Social', 'StatusNet', 'Mastodon', 'Pleroma', 'socialhome', 'ganggo']; $colors = [ 'Friendi%%a' => '#ffc018', // orange from the logo 'Diaspora' => '#a1a1a1', // logo is black and white, makes a gray @@ -550,7 +550,8 @@ function admin_page_federation(App $a) 'StatusNet' => '#789240', // the green from the logo (red and blue have already others 'Mastodon' => '#1a9df9', // blue from the Mastodon logo 'Pleroma' => '#E46F0F', // Orange from the text that is used on Pleroma instances - 'socialhome' => '#52056b' // lilac from the Django Image used at the Socialhome homepage + 'socialhome' => '#52056b' , // lilac from the Django Image used at the Socialhome homepage + 'ganggo' => '#69d7e2' // from the favicon ]; $counts = []; $total = 0; @@ -1567,7 +1568,7 @@ function admin_page_users(App $a) if ($a->argc > 2) { $uid = $a->argv[3]; $user = dba::selectFirst('user', ['username', 'blocked'], ['uid' => $uid]); - if (DBM::is_result($user)) { + if (!DBM::is_result($user)) { notice('User not found' . EOL); goaway('admin/users'); return ''; // NOTREACHED