$platform = $account['platform'] ?? '';
$type = $account['contact-type'] ?? Contact::TYPE_PERSON;
}
-
+
if (empty($platform) && !empty($contact['uri-id'])) {
$account = DBA::selectFirst('account-user-view', ['platform', 'contact-type'], ['uri-id' => $contact['uri-id']]);
$platform = $account['platform'] ?? '';
}
switch ($platform) {
- case 'mastodon':
+ case 'corgidon':
/**
* Picture credits
* @license GNU Affero General Public License v3.0
- * @link https://github.com/mastodon/mastodon/tree/main/public/avatars/original/missing.png
+ * @link https://github.com/msdos621/corgidon/blob/main/public/avatars/original/missing.png
*/
- $default = '/images/default/mastodon.png';
+ $default = '/images/default/corgidon.png';
break;
-
- case 'pleroma':
+
+ case 'diaspora':
/**
* Picture credits
* @license GNU Affero General Public License v3.0
- * @link https://git.pleroma.social/pleroma/pleroma/-/blob/develop/priv/static/images/avi.png
+ * @link https://github.com/diaspora/diaspora/
*/
- $default = '/images/default/pleroma.png';
+ $default = '/images/default/diaspora.png';
break;
- case 'diaspora':
+ case 'gotosocial':
/**
* Picture credits
* @license GNU Affero General Public License v3.0
- * @link https://github.com/diaspora/diaspora/
+ * @link https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars/GoToSocial_icon1.svg
*/
- $default = '/images/default/diaspora.png';
+ $default = '/images/default/gotosocial.svg';
break;
- case 'peertube':
+ case 'hometown':
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://github.com/hometown-fork/hometown/blob/hometown-dev/public/avatars/original/missing.png
+ */
+ $default = '/images/default/hometown.png';
+ break;
+
+ case 'koyuspace':
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://github.com/koyuspace/mastodon/blob/main/public/avatars/original/missing.png
+ */
+ $default = '/images/default/koyuspace.png';
+ break;
+
+ case 'ecko':
+ case 'qoto':
+ case 'mastodon':
/**
* Picture credits
* @license GNU Affero General Public License v3.0
+ * @link https://github.com/mastodon/mastodon/tree/main/public/avatars/original/missing.png
*/
+ $default = '/images/default/mastodon.png';
+ break;
+
+ case 'peertube':
if ($type == Contact::TYPE_COMMUNITY) {
- // @link https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/images/default-avatar-video-channel.png
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/images/default-avatar-video-channel.png
+ */
$default = '/images/default/peertube-channel.png';
} else {
- // @link https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/images/default-avatar-account.png
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/images/default-avatar-account.png
+ */
$default = '/images/default/peertube-account.png';
}
break;
+
+ case 'pleroma':
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://git.pleroma.social/pleroma/pleroma/-/blob/develop/priv/static/images/avi.png
+ */
+ $default = '/images/default/pleroma.png';
+ break;
+
+ case 'plume':
+ /**
+ * Picture credits
+ * @license GNU Affero General Public License v3.0
+ * @link https://github.com/Plume-org/Plume/blob/main/assets/images/default-avatar.png
+ */
+ $default = '/images/default/plume.png';
+ break;
}
return DI::baseUrl() . $default;
}