Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
puklipo committed Dec 24, 2024
1 parent 32d15ec commit ccd5eb2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Labeler/AbstractLabeler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ abstract public function labels(): array;

/**
* @return iterable<null|LabelMessage>
*
* @throw LabelerException
*/
abstract public function subscribeLabels(?int $cursor): iterable;
Expand Down
1 change: 1 addition & 0 deletions src/Labeler/Labeler.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static function getLabelDefinitions(): array

/**
* @return iterable<null|LabelMessage>
*
* @throws LabelerException
*/
public static function subscribeLabels(?int $cursor): iterable
Expand Down
1 change: 1 addition & 0 deletions src/Labeler/LabelerException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace Revolution\Bluesky\Labeler;
Expand Down
5 changes: 2 additions & 3 deletions src/Labeler/LabelerServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Revolution\Bluesky\Labeler;

use Illuminate\Support\Arr;
use Illuminate\Http\Request as LaravelRequest;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
use Revolution\AtProto\Lexicon\Contracts\Tools\Ozone\Moderation as OzoneModeration;
Expand All @@ -15,7 +15,6 @@
use Workerman\Protocols\Websocket;
use Workerman\Timer;
use Workerman\Worker;
use Illuminate\Http\Request as LaravelRequest;

final class LabelerServer
{
Expand Down Expand Up @@ -150,7 +149,7 @@ private function createLabel(int $seq, string $uri, ?string $cid, string $val, ?
'val' => $val,
'src' => Config::string('bluesky.labeler.did'),
'cts' => now()->toISOString(),
'exp' => null,// TODO
'exp' => null, // TODO
])
//->reject(fn ($value) => is_null($value))
->when($neg, fn ($collection) => $collection->put('neg', true))
Expand Down
1 change: 0 additions & 1 deletion src/Providers/BlueskyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Revolution\AtProto\Lexicon\Contracts\App\Bsky\Feed;
use Revolution\AtProto\Lexicon\Contracts\Com\Atproto\Label;
use Revolution\AtProto\Lexicon\Contracts\Com\Atproto\Moderation;
use Revolution\AtProto\Lexicon\Contracts\Tools\Ozone\Moderation as OzoneModeration;
use Revolution\Bluesky\BlueskyManager;
use Revolution\Bluesky\Console\DownloadBlobsCommand;
use Revolution\Bluesky\Console\DownloadRecordCommand;
Expand Down
1 change: 1 addition & 0 deletions workbench/app/Labeler/ArtisanLabeler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function labels(): array

/**
* @return iterable<null|LabelMessage>
*
* @throw LabelerException
*/
public function subscribeLabels(?int $cursor): iterable
Expand Down

0 comments on commit ccd5eb2

Please sign in to comment.