X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=35ca4e49eb8106d0ef106d566d402b4945e9425e;hb=f2c1ecd19bb344137a91faab58d9a2524e0c8893;hp=c6001ebb443fde9a074b8ef388b58a3de44734f2;hpb=5d7985dcff4bc0a4ca1c3b76076e43de771de4bb;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index c6001ebb44..35ca4e49eb 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -22,6 +22,7 @@ namespace Friendica\Model; use Friendica\Contact\Avatar; +use Friendica\Contact\Header; use Friendica\Contact\Introduction\Exception\IntroductionNotFoundException; use Friendica\Contact\LocalRelationship\Entity\LocalRelationship; use Friendica\Content\Conversation as ConversationContent; @@ -787,10 +788,10 @@ class Contact /** * Updates the self-contact for the provided user id * - * @param int $uid - * @param bool $update_avatar Force the avatar update + * @param int $uid + * @param bool $update_avatar Force the avatar update * @return bool "true" if updated - * @throws HTTPException\InternalServerErrorException + * @throws \Exception */ public static function updateSelfFromUserID(int $uid, bool $update_avatar = false): bool { @@ -1899,7 +1900,7 @@ class Contact switch ($platform) { case 'friendica': case 'friendika': - $header = DI::baseUrl() . '/images/friendica-banner.jpg'; + $header = DI::baseUrl() . (new Header(DI::config()))->getMastodonBannerPath(); break; case 'diaspora': /**