mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-18 11:03:17 +00:00
Add logging
This commit is contained in:
parent
ef297f3e64
commit
5fb5054d64
1 changed files with 3 additions and 0 deletions
|
@ -70,14 +70,17 @@ class ProcessMovePipeline implements ShouldQueue
|
|||
public function handle(): void
|
||||
{
|
||||
if (config('app.env') !== 'production' || (bool) config_cache('federation.activitypub.enabled') == false) {
|
||||
Log::info('pmp: AP not enabled');
|
||||
throw new Exception('Activitypub not enabled');
|
||||
}
|
||||
|
||||
if (! self::checkTarget()) {
|
||||
Log::info('pmp: invalid target');
|
||||
throw new Exception('Invalid target');
|
||||
}
|
||||
|
||||
if (! self::checkActor()) {
|
||||
Log::info('pmp: invalid actor');
|
||||
throw new Exception('Invalid actor');
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue