Skip to content

Commit

Permalink
Prevent interferring with already resolved users
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Apr 14, 2024
1 parent 77c0859 commit 92d82b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,9 @@ public function delete_user_option( $option_name, $is_global = false ) {
}

public static function mastodon_api_account( $account, $user_id, $request, $post ) {
if ( $account instanceof \Enable_Mastodon_Apps\Entity\Account ) {
return $account;
}
$user = false;
if ( is_string( $user_id ) ) {
$user = self::get_by_username( $user_id );
Expand Down

0 comments on commit 92d82b5

Please sign in to comment.