Skip to content

Commit

Permalink
EMA: Fix fatal when account is invalid (#1014)
Browse files Browse the repository at this point in the history
* EMA: Fix fatal when account is invalid

* Add changelog

* Add readme.txt entry
  • Loading branch information
akirk authored Nov 25, 2024
1 parent 9f1df53 commit 129ea69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

* Fediverse preview showing `preferredUsername` instead of `name`
* Fixed a potential fatal error in Enable Mastodon Apps

## 4.2.1 - 2024-11-20

Expand Down
2 changes: 1 addition & 1 deletion integration/class-enable-mastodon-apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ private static function activity_to_status( $item, $account, $post_id = null ) {
$object = $item;
}

if ( ! isset( $object['type'] ) || 'Note' !== $object['type'] ) {
if ( ! isset( $object['type'] ) || 'Note' !== $object['type'] || ! $account ) {
return null;
}

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ For reasons of data protection, it is not possible to see the followers of other
* Improved: Outsource Constants to a separate file
* Improved: Better handling of `readme.txt` and `README.md`
* Fixed: Fediverse preview showing `preferredUsername` instead of `name`
* Fixed: Potential fatal error in Enable Mastodon Apps

= 4.2.1 =

Expand Down

0 comments on commit 129ea69

Please sign in to comment.