From e0a0c57c44b0e083f614d90d0e7a0638553e73f1 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jun 2022 05:18:54 +0000 Subject: [PATCH 1/6] Use platform specific default avatar pictures --- images/default/diaspora.png | Bin 0 -> 1736 bytes images/default/mastodon.png | Bin 0 -> 3292 bytes images/default/peertube.png | Bin 0 -> 4024 bytes images/default/pleroma.png | 738 ++++++++++++++++++++++++++++++++++++ src/Model/Contact.php | 33 ++ src/Module/Photo.php | 2 +- 6 files changed, 772 insertions(+), 1 deletion(-) create mode 100644 images/default/diaspora.png create mode 100644 images/default/mastodon.png create mode 100644 images/default/peertube.png create mode 100644 images/default/pleroma.png diff --git a/images/default/diaspora.png b/images/default/diaspora.png new file mode 100644 index 0000000000000000000000000000000000000000..53d10ffc0371cdf94146121da55755662219df9f GIT binary patch literal 1736 zcmV;(1~>VMP)~DVD)9LZ8b$(haobM4)sl0H zA;cI{E^X}c%di!v(Mk%Rl^S9FyP`@A_ml=<$w>XL*a+)a^*tf=u0mMvsDeoA7uRxF zJqNK?8$HfJ^{!mURbiFz4aH^2YbC4}!*`WRzZ9&I!;ciR`2t%8tA+_OcKlVaa+ssk z-NPCwOj91dVg10_muCAFuu7P$INZX@VY*^>3QK|2o0>~lI;?DH!3nDnsykSEtSo5R z!YV;i-4(2+$|@vJuzFBdaRe)B!_qE9_%Qd6aOwqC4F)PcV2xlRAF#3wtmXk$vtgwh zAFN97nJma4;>z{-RrmnAFBW*XkA z@N`(2uy$*q4N@t*RpH^V3Sn)TNR>~-3}6Mq5~~}-DksCLgte`|pA9P;!^$VaN`$rJ zkkkPzV^*4@Qgv8^u=b5vnsa4!SdFmu&7?=evd*NMcSF=+Wy0DwlO7E#n!_4|MOcKj z8dg6SRv@gMVKu_q;l#ortU_2j%xE0K(#sAWVO7G~U}@jBFD%oqqolJP%NCYqj<4QeX->9=J6L*!7;pYy^^^BP z^H26^Ev@DeRyo%`l!>Whwg-c+~U0Q~gwFFi< zu`gT&YaAKh7r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8rzAybuCKP`>Ty**ZT${((y z%c8}-NAemx!CuM6>Yub}ss7}%s_{drQjpt9`vC5mrCwmlubbO%Sqoi(jG3lTcgYcB z9Q`9z&51KuZJXV%wC{53s;B|n*MkF-te14m3n;-1Ih;Xhq0j6m-}z~g5S=*u-)68x z;lz3@MPASQZSmw*-xY*qIb%LtU^QfSdRoY=?vTHt#o6b$#(K%HG{k)Ho%W3Y_V)H5 zUT>7zh`xA!z>1UoqdQaed~TX1zUPg8vL1%EFMV#G#ufkgjqJf4iK0tx84L3laVvN@ zJao6fAX>LRpvdz9)I15t);~RSjzUe;o&K7aGW4%Azs4oL3w{;pHo<1ox7ptuh){7n zip)GYBxr8in41-M22dq#!N&Jb{EsT!n+LrR(!ko%-`;@79@ZOUyT?$D za+Fibkqei&DkGIqGNSIcP0*jmr~>n4Mij-FWWo)k`I16?&fzl1jh*GxsjF_s8=L5eXnCE`?8% zcD1mg#`ScFTnpV!fqYWis6he T1m@pU{u3x2G_pqP0p|YzWF96{ literal 0 HcmV?d00001 diff --git a/images/default/peertube.png b/images/default/peertube.png new file mode 100644 index 0000000000000000000000000000000000000000..e24741815e594a8bbcb9ff63de0ae4f808942cd3 GIT binary patch literal 4024 zcmbuBRag^_8pgNLLj)wGOB6;4juZw1CN;Vn5h;Pm04b5~E@_b*-8n)S5>nEL(n$T4 z?sUggOfzhT+}m8VEmi54c@a{$d?D z+9G%;{Y?|)ma>;+?1)N6mP1Tr>-v8&OY~WO^!@s^ z-(B`2T5jze+3q8IAWBrddX+i9*fk-vZ0S9+dgas(Ij6DO3tDhrIVOABur!vSG`Uyf zd4E6XR~t%K@UpP%md#;-H34!iAv@Y8bT!{0`m#ebEGqb%zxDYT)|@`{_q+po%Y1tv z^O_-fl`DTKWHm8;16Doj?=c>e!tS-Xcs} z5j?7)JZijc-&k1gwEzCrqQXgJb;1MsOL86-p8p`E*VPiql3C;WaZE=l+Qk!a8JhXQ zruCOhsq@c*>}u@pEcUL1u*lU0)M!6~vZN|>r-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h(rfo&oqMCFXAkkSNY|9H;X!!!k?0Z?9uF+^hU5>#y<^5bt4gl}xO)gOe*I=hO%pVvenb>e zy5oJ#$)+szV`9rx)Mub!WzsttM9i@K?Zr_^5#l}H&sg`5%GeHRT8nN*&6ZA&WRSgN zKa8zdC@&4`oJf2-&9H7az6VW%i~E2V?Pya zbL+^R8ph=%K>s1zj=AX@O`oEc))O{zSe z7C7L3N6llAUP{K>cf3_p9vPpSohUZJ%Qt|Ek-8<%rgU5?;fbAJouP>a_gdGw?R-;i ztdPNT;7qJC_iJ*NYp=<5m;P;S4OO_54XNfo3)^RHX$2di8-6H`cggo$sT?6I&kF$m zSFHX!iiujBdGE2i7Ee>pJd}y(Yjf+KZNR}K;y`WNyj@eM4fGp`ymZQ;U7Qwuy}Xxf zFhzWtO4wm1SZFoFAav7`HzeE?Yg+wGdVx`ziXHU1+V((E^USDVFD$kmL0}{uNNtQvnK_i8f@%$6eLR&-0;csML z{q~*>`+KdkrMoji_;a>MJ5Sa<3ta6vOH@O|3@-#*2#nlJnH}l@cP5pa#zC`X>?1Ty s5 + + + +priv/static/images/avi.png · develop · Pleroma / pleroma · GitLab + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + +
+ +
+ + +
+
+ +
+ + +
+
+
+
+
+
+ + + +
+ + + +
+
+ + +
+
+
+
+
+
+
+ + + + + + + + + diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 59b14ad0fe..172540dd1f 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1817,6 +1817,39 @@ class Contact } if (!DI::config()->get('system', 'remote_avatar_lookup')) { + $platform = ''; + + if (!empty($contact['id'])) { + $account = DBA::selectFirst('account-user-view', ['platform'], ['id' => $contact['id']]); + $platform = $account['platform'] ?? ''; + } + + if (empty($platform) && !empty($contact['uri-id'])) { + $account = DBA::selectFirst('account-user-view', ['platform'], ['uri-id' => $contact['uri-id']]); + $platform = $account['platform'] ?? ''; + } + + switch ($platform) { + case 'mastodon': + // @see https://github.com/mastodon/mastodon/tree/main/public/avatars/original/missing.png + $default = '/images/default/mastodon.png'; + break; + + case 'pleroma': + // @see https://git.pleroma.social/pleroma/pleroma/-/blob/develop/priv/static/images/avi.png + $default = '/images/default/pleroma.png'; + break; + + case 'diaspora': + // @see https://github.com/diaspora/diaspora/ + $default = '/images/default/diaspora.png'; + break; + + case 'peertube': + // @see https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/images/default-avatar-video-channel.png + $default = '/images/default/peertube.png'; + break; + } return DI::baseUrl() . $default; } diff --git a/src/Module/Photo.php b/src/Module/Photo.php index 134cade650..86c737aa4e 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -270,7 +270,7 @@ class Photo extends BaseModule return MPhoto::createPhotoForExternalResource($link['url'], (int)local_user(), $link['mimetype']); case "contact": - $fields = ['uid', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated']; + $fields = ['uid', 'uri-id', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated']; $contact = Contact::getById($id, $fields); if (empty($contact)) { return false; From a5b5f9316dcd555ecdbe08a93f4b78809391bf58 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jun 2022 05:46:37 +0000 Subject: [PATCH 2/6] Updated database.sql and messages.po --- database.sql | 2 +- view/lang/C/messages.po | 88 ++++++++++++++++++++--------------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/database.sql b/database.sql index 38cc391548..009a20fa00 100644 --- a/database.sql +++ b/database.sql @@ -1,5 +1,5 @@ -- ------------------------------------------ --- Friendica 2022.06 (Giant Rhubarb) +-- Friendica 2022.09-dev (Giant Rhubarb) -- DB_UPDATE_VERSION 1469 -- ------------------------------------------ diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index b8d98f947d..333a0aaa66 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: 2022.06\n" +"Project-Id-Version: 2022.09-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-06 07:33+0000\n" +"POT-Creation-Date: 2022-06-13 05:45+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,7 +37,7 @@ msgstr "" msgid "User not found." msgstr "" -#: mod/cal.php:122 mod/display.php:247 src/Module/Profile/Profile.php:94 +#: mod/cal.php:122 mod/display.php:262 src/Module/Profile/Profile.php:94 #: src/Module/Profile/Profile.php:109 src/Module/Profile/Status.php:110 #: src/Module/Update/Profile.php:56 msgid "Access to this profile has been restricted." @@ -104,17 +104,17 @@ msgstr "" msgid "calendar" msgstr "" -#: mod/display.php:142 mod/photos.php:802 +#: mod/display.php:143 mod/photos.php:802 #: src/Module/Conversation/Community.php:175 src/Module/Directory.php:49 #: src/Module/Search/Index.php:50 msgid "Public access denied." msgstr "" -#: mod/display.php:198 mod/display.php:272 +#: mod/display.php:213 mod/display.php:287 msgid "The requested item doesn't exist or has been deleted." msgstr "" -#: mod/display.php:352 +#: mod/display.php:367 msgid "The feed for this item is unavailable." msgstr "" @@ -230,7 +230,7 @@ msgstr "" #: mod/editpost.php:107 mod/message.php:200 mod/message.php:358 #: mod/photos.php:1489 mod/wallmessage.php:142 src/Content/Conversation.php:368 -#: src/Content/Conversation.php:712 src/Module/Item/Compose.php:177 +#: src/Content/Conversation.php:713 src/Module/Item/Compose.php:177 #: src/Object/Post.php:528 msgid "Please wait" msgstr "" @@ -1077,11 +1077,11 @@ msgstr "" msgid "Comment" msgstr "" -#: mod/photos.php:1424 src/Content/Conversation.php:628 src/Object/Post.php:247 +#: mod/photos.php:1424 src/Content/Conversation.php:629 src/Object/Post.php:247 msgid "Select" msgstr "" -#: mod/photos.php:1425 mod/settings.php:350 src/Content/Conversation.php:629 +#: mod/photos.php:1425 mod/settings.php:350 src/Content/Conversation.php:630 #: src/Module/Admin/Users/Active.php:139 src/Module/Admin/Users/Blocked.php:140 #: src/Module/Admin/Users/Index.php:153 msgid "Delete" @@ -1942,7 +1942,7 @@ msgid "%s attends maybe." msgstr "" #: src/Content/Conversation.php:222 src/Content/Conversation.php:260 -#: src/Content/Conversation.php:872 +#: src/Content/Conversation.php:873 #, php-format msgid "%s reshared this." msgstr "" @@ -2061,92 +2061,92 @@ msgstr "" msgid "Scheduled at" msgstr "" -#: src/Content/Conversation.php:656 src/Object/Post.php:235 +#: src/Content/Conversation.php:657 src/Object/Post.php:235 msgid "Pinned item" msgstr "" -#: src/Content/Conversation.php:672 src/Object/Post.php:476 +#: src/Content/Conversation.php:673 src/Object/Post.php:476 #: src/Object/Post.php:477 #, php-format msgid "View %s's profile @ %s" msgstr "" -#: src/Content/Conversation.php:685 src/Object/Post.php:464 +#: src/Content/Conversation.php:686 src/Object/Post.php:464 msgid "Categories:" msgstr "" -#: src/Content/Conversation.php:686 src/Object/Post.php:465 +#: src/Content/Conversation.php:687 src/Object/Post.php:465 msgid "Filed under:" msgstr "" -#: src/Content/Conversation.php:694 src/Object/Post.php:490 +#: src/Content/Conversation.php:695 src/Object/Post.php:490 #, php-format msgid "%s from %s" msgstr "" -#: src/Content/Conversation.php:710 +#: src/Content/Conversation.php:711 msgid "View in context" msgstr "" -#: src/Content/Conversation.php:775 +#: src/Content/Conversation.php:776 msgid "remove" msgstr "" -#: src/Content/Conversation.php:779 +#: src/Content/Conversation.php:780 msgid "Delete Selected Items" msgstr "" -#: src/Content/Conversation.php:844 src/Content/Conversation.php:847 -#: src/Content/Conversation.php:850 src/Content/Conversation.php:853 +#: src/Content/Conversation.php:845 src/Content/Conversation.php:848 +#: src/Content/Conversation.php:851 src/Content/Conversation.php:854 #, php-format msgid "You had been addressed (%s)." msgstr "" -#: src/Content/Conversation.php:856 +#: src/Content/Conversation.php:857 #, php-format msgid "You are following %s." msgstr "" -#: src/Content/Conversation.php:859 +#: src/Content/Conversation.php:860 msgid "Tagged" msgstr "" -#: src/Content/Conversation.php:874 +#: src/Content/Conversation.php:875 msgid "Reshared" msgstr "" -#: src/Content/Conversation.php:874 +#: src/Content/Conversation.php:875 #, php-format msgid "Reshared by %s <%s>" msgstr "" -#: src/Content/Conversation.php:877 +#: src/Content/Conversation.php:878 #, php-format msgid "%s is participating in this thread." msgstr "" -#: src/Content/Conversation.php:880 +#: src/Content/Conversation.php:881 msgid "Stored" msgstr "" -#: src/Content/Conversation.php:883 +#: src/Content/Conversation.php:884 msgid "Global" msgstr "" -#: src/Content/Conversation.php:886 +#: src/Content/Conversation.php:887 msgid "Relayed" msgstr "" -#: src/Content/Conversation.php:886 +#: src/Content/Conversation.php:887 #, php-format msgid "Relayed by %s <%s>" msgstr "" -#: src/Content/Conversation.php:889 +#: src/Content/Conversation.php:890 msgid "Fetched" msgstr "" -#: src/Content/Conversation.php:889 +#: src/Content/Conversation.php:890 #, php-format msgid "Fetched because of %s <%s>" msgstr "" @@ -3625,63 +3625,63 @@ msgstr "" msgid "Forum" msgstr "" -#: src/Model/Contact.php:2517 +#: src/Model/Contact.php:2550 msgid "Disallowed profile URL." msgstr "" -#: src/Model/Contact.php:2522 src/Module/Friendica.php:81 +#: src/Model/Contact.php:2555 src/Module/Friendica.php:81 msgid "Blocked domain" msgstr "" -#: src/Model/Contact.php:2527 +#: src/Model/Contact.php:2560 msgid "Connect URL missing." msgstr "" -#: src/Model/Contact.php:2536 +#: src/Model/Contact.php:2569 msgid "" "The contact could not be added. Please check the relevant network " "credentials in your Settings -> Social Networks page." msgstr "" -#: src/Model/Contact.php:2578 +#: src/Model/Contact.php:2611 msgid "The profile address specified does not provide adequate information." msgstr "" -#: src/Model/Contact.php:2580 +#: src/Model/Contact.php:2613 msgid "No compatible communication protocols or feeds were discovered." msgstr "" -#: src/Model/Contact.php:2583 +#: src/Model/Contact.php:2616 msgid "An author or name was not found." msgstr "" -#: src/Model/Contact.php:2586 +#: src/Model/Contact.php:2619 msgid "No browser URL could be matched to this address." msgstr "" -#: src/Model/Contact.php:2589 +#: src/Model/Contact.php:2622 msgid "" "Unable to match @-style Identity Address with a known protocol or email " "contact." msgstr "" -#: src/Model/Contact.php:2590 +#: src/Model/Contact.php:2623 msgid "Use mailto: in front of address to force email check." msgstr "" -#: src/Model/Contact.php:2596 +#: src/Model/Contact.php:2629 msgid "" "The profile address specified belongs to a network which has been disabled " "on this site." msgstr "" -#: src/Model/Contact.php:2601 +#: src/Model/Contact.php:2634 msgid "" "Limited profile. This person will be unable to receive direct/personal " "notifications from you." msgstr "" -#: src/Model/Contact.php:2660 +#: src/Model/Contact.php:2693 msgid "Unable to retrieve contact information." msgstr "" From c1a64b77c06e8ceaf6549ea5e4cf193d5d765397 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jun 2022 10:03:34 +0000 Subject: [PATCH 3/6] Improved license text --- src/Model/Contact.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 172540dd1f..3ebc0e6986 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1831,22 +1831,38 @@ class Contact switch ($platform) { case 'mastodon': - // @see https://github.com/mastodon/mastodon/tree/main/public/avatars/original/missing.png + /** + * 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 'pleroma': - // @see https://git.pleroma.social/pleroma/pleroma/-/blob/develop/priv/static/images/avi.png + /** + * 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 'diaspora': - // @see https://github.com/diaspora/diaspora/ + /** + * Picture credits + * @license GNU Affero General Public License v3.0 + * @link https://github.com/diaspora/diaspora/ + */ $default = '/images/default/diaspora.png'; break; case 'peertube': - // @see 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.png'; break; } From a47f1efec3ce8c175338dcfea5e233fc7c4ac743 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jun 2022 10:18:17 +0000 Subject: [PATCH 4/6] use correct image for Pleroma --- images/default/pleroma.png | Bin 82086 -> 1036 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/images/default/pleroma.png b/images/default/pleroma.png index 886eaee54d378c99109cfa4573a541a13630f6b9..df4e2d23364c8923ffb5ac1f17d108cc36a54c45 100644 GIT binary patch literal 1036 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7xzrU~I{Bb`J1#c2+1T%1_J8No8Qr zm{>c}*5j~)%+dJZrHiKWl?fD{2w*+f6d~xo)=5ySC2C(UE)^#77mw*-IR?~m{9J$@&vaOJem=3QzGzT3}+DCwnb zTAlPjl*#FZGf%S7<{nE=uS3N(cMl)GzFXt`C%f;@UxXKnG1n-4)G_v%UC~@ob=l0~ zy>NSEU|8q*&f~tj6h10npQ^UMP;ZCMhcg>y`kfVS?>y?nt}T0}Ynhvkt4yHj+)u4O zlS9u%&)Hfub?dv6@e*fVYM+i-ZrQ^kwvmNXNhBoDNz!c5mRCz6JTBJVIc)#rmuivb z6RpOH$&8{I6JqUu$p3kF?bLC#*`5b2F8qCDA+PL^Af9nW=K1d%g;MGb|0Q=^y8X{f zcE(SYz1OZOxjSS?@7R%-eM+uiCo_+on`WN5Gga=|TVza+pyLJ2} z^MqyVCYc{NsAv$i;7w_N`S+4<-`>v*tGAzFRkSU9qL&FUTG*1j-CY=dF=Q}krR`X7 z7AV45;1O92jKS+5%;=;sy8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6] Using separate avatars for different peertube account types --- images/default/peertube-account.png | Bin 0 -> 4944 bytes .../{peertube.png => peertube-channel.png} | Bin src/Model/Contact.php | 16 ++++++++++++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 images/default/peertube-account.png rename images/default/{peertube.png => peertube-channel.png} (100%) diff --git a/images/default/peertube-account.png b/images/default/peertube-account.png new file mode 100644 index 0000000000000000000000000000000000000000..0bedaa0c87bf2071ee4170077c28c1be66931854 GIT binary patch literal 4944 zcma)8Wn9!XDgz|f6~q>QxET}q2|NjP-JP=W{w3?U7^ba!_O3=Iw?okOF50z(S} zEbni3KkV+8{c!Gmp68x(&$(aDJrP=(uSkd(hyVZ}QBhXZzTXl5+5_DC^>U`*3jh!i zzSlK`X!~EQ=nXP^8Z2-V`aXaO$2crZybhS0oNS>1Ifrl8TGVS5W z@lORceWt5;vgl)&oIM^4OVz$4g!#bz;(Q^mm zzT4L)x9Q_1n7b8U-xabjin-Ivxhu~=ThlJ7qo!9(tFiE_Z>(pnS^+!(ckHVRUDX#a z1$kr9DcPXLn@eru#*3nupYkVSXyNU@V|?|GXzyeKL@a#mxft2wGvBoxj9=9-OQAC3 zeLw2&^y^+$so?yRgc^%f=#)S$owcDPeo1h4eE>b~xVt*<{yUkyx%-(9IrS>w@9E2F z(#_q*=x?i{9oz|ru4`N9UiYj+Pkkv{8O=G*?)+`~H_i2%OM>cF@fin$M0}f-0nOJl zzBA?KltZ-fV!osEc|qR^1qP}8CEZu&=s7uT7T%dE6&3hba3pd(7t>rYM~4@F)i1LU zvnJq2s+cwP`LB8(ia@P@Ql~=V`&nW!r_{H5I|gR!Oyf;-)mO*V-VuXBHliN4!`wi` z&xmvsIM82ey$jV(noIQQeS511A~1T8LSeIcUR7i)!teW8yu85td)}a^c@u#!sv$H) zz@8f|NFGHlqYvyE@^T@8;1URkmAzP(EhSFy_vmw)!`3|QKKMFEkXGF=qNosTDE15u zZKY7iq(YV%PdDH@FRDRW?YR0Q6HS|~7N#Rp^&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if (!empty($contact['id'])) { - $account = DBA::selectFirst('account-user-view', ['platform'], ['id' => $contact['id']]); + $account = DBA::selectFirst('account-user-view', ['platform', 'contact-type'], ['id' => $contact['id']]); $platform = $account['platform'] ?? ''; + $type = $account['contact-type'] ?? Contact::TYPE_PERSON; } if (empty($platform) && !empty($contact['uri-id'])) { - $account = DBA::selectFirst('account-user-view', ['platform'], ['uri-id' => $contact['uri-id']]); + $account = DBA::selectFirst('account-user-view', ['platform', 'contact-type'], ['uri-id' => $contact['uri-id']]); $platform = $account['platform'] ?? ''; + $type = $account['contact-type'] ?? Contact::TYPE_PERSON; } switch ($platform) { @@ -1861,9 +1864,14 @@ class Contact /** * 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.png'; + if ($type == Contact::TYPE_COMMUNITY) { + // @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 + $default = '/images/default/peertube-account.png'; + } break; } return DI::baseUrl() . $default; From 70b9a8114db958ccdbfafad5ebc2329c7900c981 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jun 2022 10:30:21 +0000 Subject: [PATCH 6/6] Improve license comment --- src/Model/Contact.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 6ee4582bcf..fedf6c839a 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1861,15 +1861,19 @@ class Contact break; case 'peertube': - /** - * Picture credits - * @license GNU Affero General Public License v3.0 - */ 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;