]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Photo.php
Replace remaining references to default banner image by api.mastodon_banner configura...
[friendica.git] / src / Module / Photo.php
index 954b3f3eecca60dab3911b439eab9a08fea4d734..c8e0656d2df62ac9014697cdabd14a636ad73526 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\Contact\Header;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
@@ -482,6 +483,6 @@ class Photo extends BaseApi
                if (!empty($photo)) {
                        return $photo;
                }
-               return MPhoto::createPhotoForImageData(file_get_contents(DI::basePath() . '/images/friendica-banner.jpg'));
+               return MPhoto::createPhotoForImageData(file_get_contents(DI::basePath() . (new Header(DI::config()))->getMastodonBannerPath()));
        }
 }