Remove temp logging

This commit is contained in:
Daniel Supernault 2023-05-25 01:50:15 -06:00
parent d4e17f75b4
commit a6f96b4bb3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 0 additions and 8 deletions

View file

@ -35,12 +35,9 @@ class StatusRemoteUpdatePipeline implements ShouldQueue
*/ */
public function handle(): void public function handle(): void
{ {
$ts = (string) microtime(true);
\Log::info('AP:inbox Update:Job invoked ' . $ts);
$activity = $this->activity; $activity = $this->activity;
$status = Status::with('media')->whereObjectUrl($activity['id'])->first(); $status = Status::with('media')->whereObjectUrl($activity['id'])->first();
if(!$status) { if(!$status) {
\Log::info('AP:inbox Update:Job notFound ' . $ts . ' activity: ' . $activity);
return; return;
} }
$this->createPreviousEdit($status); $this->createPreviousEdit($status);

View file

@ -1211,19 +1211,14 @@ class Inbox
public function handleUpdateActivity() public function handleUpdateActivity()
{ {
$ts = (string) microtime(true);
\Log::info('AP:inbox Update ' . $ts);
$activity = $this->payload['object']; $activity = $this->payload['object'];
if(!isset($activity['type'], $activity['id'])) { if(!isset($activity['type'], $activity['id'])) {
\Log::info('AP:inbox Update ma ' . $ts);
return; return;
} }
if($activity['type'] === 'Note') { if($activity['type'] === 'Note') {
\Log::info('AP:inbox Update at:Note ' . $ts);
if(Status::whereObjectUrl($activity['id'])->exists()) { if(Status::whereObjectUrl($activity['id'])->exists()) {
\Log::info('AP:inbox Update at:Note:exists ' . $ts);
StatusRemoteUpdatePipeline::dispatch($activity); StatusRemoteUpdatePipeline::dispatch($activity);
} }
} }