mirror of
https://github.com/friendica/friendica
synced 2025-04-22 15:10:12 +00:00
Merge remote-tracking branch 'upstream/develop' into restricted-access
This commit is contained in:
commit
15eb840792
7 changed files with 95 additions and 15 deletions
|
@ -42,9 +42,9 @@ class Federation extends BaseAdmin
|
|||
'akkoma' => ['name' => 'Akkoma', 'color' => '#9574cd'], // Color from the page
|
||||
'birdsitelive' => ['name' => 'BirdsiteLIVE', 'color' => '#1b6ec2'], // Color from the page
|
||||
'bookwyrm' => ['name' => 'BookWyrm', 'color' => '#00d1b2'], // Color from the page
|
||||
'calckey' => ['name' => 'Calckey', 'color' => '#286983'], // Color from the page
|
||||
'castopod' => ['name' => 'Castopod', 'color' => '#00564a'], // Background color from the page
|
||||
'diaspora' => ['name' => 'Diaspora', 'color' => '#a1a1a1'], // logo is black and white, makes a gray
|
||||
'calckey' => ['name' => 'firefish (Calckey)', 'color' => '#1c4a5c'], // Color from the page
|
||||
'foundkey' => ['name' => 'Foundkey', 'color' => '#609926'], // Some random color from the repository
|
||||
'funkwhale' => ['name' => 'Funkwhale', 'color' => '#4082B4'], // From the homepage
|
||||
'gancio' => ['name' => 'Gancio', 'color' => '#7253ed'], // Fontcolor from the page
|
||||
|
@ -116,6 +116,8 @@ class Federation extends BaseAdmin
|
|||
$version['version'] = $gserver['platform'] . ' ' . $version['version'];
|
||||
} elseif (in_array($gserver['platform'], ['activityrelay', 'pub-relay', 'selective-relay', 'aoderelay'])) {
|
||||
$version['version'] = $gserver['platform'] . '-' . $version['version'];
|
||||
} elseif (in_array($gserver['platform'], ['calckey', 'firefish'])) {
|
||||
$version['version'] = $gserver['platform'] . '-' . $version['version'];
|
||||
}
|
||||
|
||||
$versionCounts[] = $version;
|
||||
|
@ -126,6 +128,8 @@ class Federation extends BaseAdmin
|
|||
|
||||
if ($platform == 'friendika') {
|
||||
$platform = 'friendica';
|
||||
} elseif (in_array($platform, ['calckey', 'firefish'])) {
|
||||
$platform = 'calckey';
|
||||
} elseif (in_array($platform, ['red matrix', 'redmatrix', 'red'])) {
|
||||
$platform = 'hubzilla';
|
||||
} elseif (in_array($platform, ['osada', 'mistpark', 'roadhouse', 'streams', 'zap'])) {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Content\Widget;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -146,8 +147,6 @@ class Circle extends BaseModule
|
|||
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||
}
|
||||
|
||||
$a = DI::app();
|
||||
|
||||
DI::page()['aside'] = Model\Circle::sidebarWidget('contact', 'circle', 'extended', ((DI::args()->getArgc() > 1) ? DI::args()->getArgv()[1] : 'everyone'));
|
||||
|
||||
// With no circle number provided we jump to the unassigned contacts as a starting point
|
||||
|
@ -319,11 +318,13 @@ class Circle extends BaseModule
|
|||
if ($nocircle) {
|
||||
$contacts = Model\Contact\Circle::listUncircled(DI::userSession()->getLocalUserId());
|
||||
} else {
|
||||
$contacts_stmt = DBA::select('contact', [],
|
||||
['rel' => [Model\Contact::FOLLOWER, Model\Contact::FRIEND, Model\Contact::SHARING],
|
||||
'uid' => DI::userSession()->getLocalUserId(), 'pending' => false, 'blocked' => false, 'failed' => false, 'self' => false],
|
||||
['order' => ['name']]
|
||||
);
|
||||
$networks = Widget::unavailableNetworks();
|
||||
$query = "`uid` = ? AND NOT `self` AND NOT `deleted` AND NOT `blocked` AND NOT `pending` AND NOT `failed`
|
||||
AND `rel` IN (?, ?, ?)
|
||||
AND NOT `network` IN (" . substr(str_repeat('?, ', count($networks)), 0, -2) . ")";
|
||||
$condition = array_merge([$query], [DI::userSession()->getLocalUserId(), Model\Contact::FOLLOWER, Model\Contact::FRIEND, Model\Contact::SHARING], $networks);
|
||||
|
||||
$contacts_stmt = DBA::select('contact', [], $condition, ['order' => ['name']]);
|
||||
$contacts = DBA::toArray($contacts_stmt);
|
||||
$context['$desc'] = DI::l10n()->t('Click on a contact to add or remove.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue