mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Add temp logging
This commit is contained in:
parent
aad4259a47
commit
b0634bfd8f
2 changed files with 8 additions and 0 deletions
|
@ -33,9 +33,12 @@ class StatusRemoteUpdatePipeline implements ShouldQueue
|
|||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$ts = (string) microtime(true);
|
||||
\Log::info('AP:inbox Update:Job invoked ' . $ts);
|
||||
$activity = $this->activity;
|
||||
$status = Status::with('media')->whereObjectUrl($activity['id'])->first();
|
||||
if(!$status) {
|
||||
\Log::info('AP:inbox Update:Job notFound ' . $ts . ' activity: ' . $activity);
|
||||
return;
|
||||
}
|
||||
$this->createPreviousEdit($status);
|
||||
|
|
|
@ -1211,14 +1211,19 @@ class Inbox
|
|||
|
||||
public function handleUpdateActivity()
|
||||
{
|
||||
$ts = (string) microtime(true);
|
||||
\Log::info('AP:inbox Update ' . $ts);
|
||||
$activity = $this->payload['object'];
|
||||
|
||||
if(!isset($activity['type'], $activity['id'])) {
|
||||
\Log::info('AP:inbox Update ma ' . $ts);
|
||||
return;
|
||||
}
|
||||
|
||||
if($activity['type'] === 'Note') {
|
||||
\Log::info('AP:inbox Update at:Note ' . $ts);
|
||||
if(Status::whereObjectUrl($activity['id'])->exists()) {
|
||||
\Log::info('AP:inbox Update at:Note:exists ' . $ts);
|
||||
StatusRemoteUpdatePipeline::dispatch($activity);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue