mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Remove temp logging
This commit is contained in:
parent
d4e17f75b4
commit
a6f96b4bb3
2 changed files with 0 additions and 8 deletions
|
@ -35,12 +35,9 @@ 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,19 +1211,14 @@ 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