fixed PHP warnings

This commit is contained in:
Matthias Pfefferle 2019-08-21 15:06:48 +02:00
parent 2e91ce11de
commit 453acb7329
5 changed files with 12 additions and 4 deletions

View file

@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
### 0.8.1 ###
* fixed PHP warnings
### 0.8.0 ### ### 0.8.0 ###
* Moved followers list to user-menu * Moved followers list to user-menu

View file

@ -3,7 +3,7 @@
* Plugin Name: ActivityPub * Plugin Name: ActivityPub
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/ * Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. * Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
* Version: 0.8.0 * Version: 0.8.1
* Author: Matthias Pfefferle * Author: Matthias Pfefferle
* Author URI: https://notiz.blog/ * Author URI: https://notiz.blog/
* License: MIT * License: MIT

View file

@ -188,7 +188,7 @@ function get_follower_inboxes( $user_id ) {
foreach ( $followers as $follower ) { foreach ( $followers as $follower ) {
$inbox = \Activitypub\get_inbox_by_actor( $follower ); $inbox = \Activitypub\get_inbox_by_actor( $follower );
if ( ! $inbox ) { if ( ! $inbox || is_wp_error( $inbox ) ) {
continue; continue;
} }
// init array if empty // init array if empty

View file

@ -2,10 +2,10 @@
# This file is distributed under the MIT. # This file is distributed under the MIT.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: ActivityPub 0.8.0\n" "Project-Id-Version: ActivityPub 0.8.1\n"
"Report-Msgid-Bugs-To: " "Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/wordpress-activitypub\n" "https://wordpress.org/support/plugin/wordpress-activitypub\n"
"POT-Creation-Date: 2019-08-21 08:37:52+00:00\n" "POT-Creation-Date: 2019-08-21 13:03:57+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"

View file

@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.
Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
= 0.8.1 =
* fixed PHP warnings
= 0.8.0 = = 0.8.0 =
* Moved followers list to user-menu * Moved followers list to user-menu