Skip to content

Commit

Permalink
Fix Mastodon requests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelthomas2774 committed Aug 28, 2019
1 parent e3f9802 commit bb1b4ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/Mastodon/Mastodon.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function setInstanceUrl(string $instance_url, bool $update_session_prefix
*/
public function getUserProfile(): UserProfile
{
$response = $this->api('GET', 'account/verify_credentials');
$response = $this->api('GET', 'accounts/verify_credentials');

$user = new MastodonUserProfile(isset($response->id) ? $response->id : '');

Expand All @@ -96,7 +96,7 @@ public function getUserProfile(): UserProfile
*/
public function getUserPictureUrl(int $size = 50): ?string
{
$response = $this->api('GET', 'account/verify_credentials');
$response = $this->api('GET', 'accounts/verify_credentials');

if (!isset($response->avatar)) return null;

Expand Down

0 comments on commit bb1b4ee

Please sign in to comment.