Skip to content

Commit

Permalink
refactor(model): remove fallback avatar logic from model
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz authored and juliusknorr committed Oct 31, 2023
1 parent cf953f8 commit 8e77aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Dashboard/RecentPagesWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7
$recentPage->getTitle(),
$recentPage->getCollectiveName(),
$recentPage->getPageUrl(),
'data:image/svg+xml;base64,' . base64_encode($this->getEmojiAvatar($recentPage->getEmoji())),
'data:image/svg+xml;base64,' . base64_encode($this->getEmojiAvatar($recentPage->getEmoji() ?: '🗒')),
(string)$recentPage->getTimestamp()
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/RecentPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RecentPage {
protected string $collectiveName = '';
protected string $pageUrl = '';
protected string $title = '';
protected string $emoji = '🗒';
protected string $emoji = '';
protected int $timestamp = 0;

public function getCollectiveName(): string {
Expand Down

0 comments on commit 8e77aec

Please sign in to comment.