Skip to content

Commit

Permalink
Update BlueskyClient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Feb 20, 2024
1 parent 30f130b commit f9f5a2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/BlueskyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public function login(string $identifier, string $password): static
public function feed(string $filter = 'posts_with_replies'): Collection
{
return Http::baseUrl($this->baseUrl())
->withToken($this->session->get('accessJwt'))
->withToken($this->session('accessJwt'))
->get(AtProto::getAuthorFeed->value, [
'actor' => $this->session->get('did'),
'actor' => $this->session('did'),
'filter' => $filter,
])
->throw()
Expand All @@ -74,7 +74,7 @@ public function feed(string $filter = 'posts_with_replies'): Collection
public function timeline(string $cursor = ''): Collection
{
return Http::baseUrl($this->baseUrl())
->withToken($this->session->get('accessJwt'))
->withToken($this->session('accessJwt'))
->get(AtProto::getTimeline->value, [
'cursor' => $cursor,
])
Expand All @@ -88,9 +88,9 @@ public function timeline(string $cursor = ''): Collection
public function post(string $text): Collection
{
return Http::baseUrl($this->baseUrl())
->withToken($this->session->get('accessJwt'))
->withToken($this->session('accessJwt'))
->post(AtProto::createRecord->value, [
'repo' => $this->session->get('did'),
'repo' => $this->session('did'),
'collection' => 'app.bsky.feed.post',
'record' => [
'text' => $text,
Expand Down

0 comments on commit f9f5a2e

Please sign in to comment.