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..8b74412 100644 --- a/fediembedi.php +++ b/fediembedi.php @@ -3,7 +3,7 @@ * Plugin Name: FediEmbedi * Plugin URI: https://git.feneas.org/mediaformat/fediembedi * Description: Widgets and shortcodes to show your Fediverse profile timeline - * Version: 0.10.1 + * Version: 0.10.2 * Author: mediaformat * Author URI: https://mediaformat.org * License: GPLv3 @@ -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' ); diff --git a/readme.md b/readme.md index ad4edbf..e9dc704 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ >Display your Fediverse timeline in a widget -FediEmbedi will display your Mastodon, Pleroma, or Pixelfed timeline in a widget, with various display options. +FediEmbedi will display your Mastodon, Pleroma, Pixelfed, PeerTube timeline with various display options. ### How to use shortcodes * `[mastodon exclude_reblogs="true"]` @@ -53,6 +53,9 @@ and redirected to your site with a secure token. Similar to how you would connec ## Changelog +### 0.10.2 +* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly + ### 0.10.0 * Service shortcodes diff --git a/readme.txt b/readme.txt index 6fb6aab..89449f9 100644 --- a/readme.txt +++ b/readme.txt @@ -15,7 +15,7 @@ Display your Fediverse timeline in a widget > FediEmbedi is beta software. -FediEmbedi will display your Mastodon, Pleroma, or Pixelfed timeline in a widget or with a shortcode, with various display options. +FediEmbedi will display your Mastodon, Pleroma, Pixelfed, PeerTube timeline with various display options. = How to use shortcodes = * `[mastodon exclude_reblogs="true"]` @@ -64,6 +64,9 @@ and redirected to your site with a secure token. Similar to how you would connec == Changelog == += 0.10.2 = +* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly + = 0.10.0 = * Service shortcodes