Skip to content

Commit

Permalink
Add static avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Apr 4, 2024
1 parent e31fd6f commit a232987
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions feed-parsers/class-feed-parser-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ public function mastodon_api_account_augment_friend_posts( $account, $user_id, $
$account->url = $account->id;
$account->note = $author->description;
$account->avatar = $author->get_avatar_url();
$account->avatar_static = $account->avatar;

$placeholder_image = 'https://files.mastodon.social/media_attachments/files/003/134/405/original/04060b07ddf7bb0b.png';
// $placeholder_image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
$account->header = $placeholder_image;
$account->header_static = $placeholder_image;
return $account;
}

Expand Down

0 comments on commit a232987

Please sign in to comment.