diff --git a/images/default/corgidon.png b/images/default/corgidon.png new file mode 100644 index 0000000000..389719b66e Binary files /dev/null and b/images/default/corgidon.png differ diff --git a/images/default/gotosocial.svg b/images/default/gotosocial.svg new file mode 100644 index 0000000000..9b4e7665ef --- /dev/null +++ b/images/default/gotosocial.svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/default/hometown.png b/images/default/hometown.png new file mode 100644 index 0000000000..29b27183b7 Binary files /dev/null and b/images/default/hometown.png differ diff --git a/images/default/koyuspace.png b/images/default/koyuspace.png new file mode 100644 index 0000000000..231e48b202 Binary files /dev/null and b/images/default/koyuspace.png differ diff --git a/images/default/plume.png b/images/default/plume.png new file mode 100644 index 0000000000..126558136a Binary files /dev/null and b/images/default/plume.png differ diff --git a/src/Model/Contact.php b/src/Model/Contact.php index fedf6c839a..3ed2785cfa 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1825,7 +1825,7 @@ class Contact $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'] ?? ''; @@ -1833,22 +1833,13 @@ class Contact } 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'; - 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'; + $default = '/images/default/corgidon.png'; break; case 'diaspora': @@ -1860,6 +1851,44 @@ class Contact $default = '/images/default/diaspora.png'; break; + case 'gotosocial': + /** + * Picture credits + * @license GNU Affero General Public License v3.0 + * @link https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars/GoToSocial_icon1.svg + */ + $default = '/images/default/gotosocial.svg'; + break; + + 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) { /** @@ -1877,6 +1906,24 @@ class Contact $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; }