Skip to content

Commit

Permalink
Merge branch 'main' into async_php
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastix committed Sep 16, 2024
2 parents 6fa578d + 058c3cf commit a3f45b3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swentel/nostr-php",
"description": "Nostr helper library for PHP",
"keywords": ["nostr", "library", "dev"],
"keywords": ["nostr", "library"],
"homepage": "https://nostr-php.dev",
"license": "MIT",
"authors": [
Expand Down
13 changes: 13 additions & 0 deletions maintainers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
identifier: nostr-php
maintainers:
- npub1qe3e5wrvnsgpggtkytxteaqfprz0rgxr8c3l34kk3a9t7e2l3acslezefe
relays:
- wss://nostr.sebastix.dev/
- wss://offchain.pub/
- wss://relay.damus.io/
- wss://nos.lol/
- wss://nostr.wine/
- wss://nostr.fmt.wiz.biz/
- wss://nostr.sebastix.social/
- wss://nostr.mutinywallet.com/
- wss://pyramid.fiatjaf.com/
2 changes: 1 addition & 1 deletion src/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function getContent(): string
*/
public function setTags(array $tags): static
{
foreach($tags as $tag) {
foreach ($tags as $tag) {
$this->tags[] = $tag;
}
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function getResponseFromRelay(Relay $relay): array | RelayResponse
return $result;
} elseif ($response instanceof WebSocket\Message\Text) {
$relayResponse = RelayResponse::create(json_decode($response->getContent()));
if($relayResponse->type === 'EOSE') {
if ($relayResponse->type === 'EOSE') {
break;
}

Expand Down

0 comments on commit a3f45b3

Please sign in to comment.