Skip to content

Commit

Permalink
Update LabelerServer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
puklipo committed Dec 24, 2024
1 parent f09e8ef commit 8f88dcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Labeler/LabelerServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public function start(): void
$this->createLabels($emitEvent);

// http response
$header = (string) $request->header('atproto-accept-labelers');
info('emitEvent header: '.$header);

$json = $emitEvent->toJson();
info('emitEvent json: '.$json);

Expand Down Expand Up @@ -152,7 +149,8 @@ private function createLabel(int $seq, string $uri, ?string $cid, string $val, ?
'src' => Config::string('bluesky.labeler.did'),
'cts' => now()->toISOString(),
'exp' => null,// TODO
])->reject(fn ($value) => is_null($value))
])
//->reject(fn ($value) => is_null($value))
->when($neg, fn ($collection) => $collection->put('neg', true))
->toArray();

Expand Down

0 comments on commit 8f88dcf

Please sign in to comment.