diff --git a/fediembedi-client.php b/fediembedi-client.php index 7fec66c..908b655 100644 --- a/fediembedi-client.php +++ b/fediembedi-client.php @@ -173,7 +173,7 @@ class FediClient $account_id = self::$acct_id; - $response = $this->_get("/api/v1/accounts/{$account_id}", null, $headers); + $response = $this->_get("/api/v1/accounts/{$account_id}", null, null); return $response; } diff --git a/fediembedi.php b/fediembedi.php index 7d64a15..e04d5da 100644 --- a/fediembedi.php +++ b/fediembedi.php @@ -174,7 +174,7 @@ class FediConfig //getStatus from remote instance $status = $client->getStatus($atts['only_media'], $atts['pinned'], $atts['exclude_replies'], null, null, null, $atts['limit'], $atts['exclude_reblogs']); - //if(WP_DEBUG_DISPLAY === true): echo '
Mastodon
'; var_dump($client->getStatus($atts['only_media'], $atts['pinned'], $atts['exclude_replies'], null, null, null, $atts['limit'], $atts['exclude_reblogs'])); echo '
'; endif; + //if(WP_DEBUG_DISPLAY === true): echo '
Mastodon
'; var_dump($status); echo '
'; endif; $show_header = $atts['show_header']; $account = $status[0]->account; include(plugin_dir_path(__FILE__) . 'templates/mastodon.tpl.php' );