mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-10 12:39:38 +02: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
26 lines
911 B
PHP
26 lines
911 B
PHP
<?php namespace Config;
|
|
|
|
use ActivityPub\Config\ActivityPub as ActivityPubBase;
|
|
|
|
class ActivityPub extends ActivityPubBase
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* ActivityPub Objects
|
|
* --------------------------------------------------------------------
|
|
*/
|
|
public $actorObject = 'App\Libraries\PodcastActor';
|
|
public $noteObject = 'App\Libraries\NoteObject';
|
|
|
|
/**
|
|
* --------------------------------------------------------------------
|
|
* Default avatar and cover images
|
|
* --------------------------------------------------------------------
|
|
*/
|
|
public $defaultAvatarImagePath = 'assets/images/castopod-avatar-default.jpg';
|
|
public $defaultAvatarImageMimetype = 'image/jpeg';
|
|
|
|
public $defaultCoverImagePath = 'assets/images/castopod-cover-default.jpg';
|
|
public $defaultCoverImageMimetype = 'image/jpeg';
|
|
}
|