namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\Contact\Header;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
throw new NotModifiedException();
}
- Profile::addVisitorCookieForHTTPSigner();
+ Profile::addVisitorCookieForHTTPSigner($this->server);
$customsize = 0;
$square_resize = true;
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()));
}
}