mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-12 01:05:47 +00:00

- get avatar and cover urls from entity: if no image exists, retrieve the default ones. - always set icon and image in actor object: set the default ones if podcast hasn't set them. fixes #111
34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @copyright 2021 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace ActivityPub\Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
class ActivityPub extends BaseConfig
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* ActivityPub Objects
|
|
* --------------------------------------------------------------------
|
|
*/
|
|
public $actorObject = 'ActivityPub\Objects\ActorObject';
|
|
public $noteObject = 'ActivityPub\Objects\NoteObject';
|
|
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* Default avatar and cover images
|
|
* --------------------------------------------------------------------
|
|
*/
|
|
public $defaultAvatarImagePath = 'assets/images/avatar-default.jpg';
|
|
public $defaultAvatarImageMimetype = 'image/jpeg';
|
|
|
|
public $defaultCoverImagePath = 'assets/images/cover-default.jpg';
|
|
public $defaultCoverImageMimetype = 'image/jpeg';
|
|
}
|