From 0a7f8fd142ef22558ea3df1796378c3a06e5ffca Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 1 Apr 2022 18:40:13 -0400 Subject: [PATCH] Change static_path on custom emojis to static_url --- app/Models/CustomEmoji.php | 4 ++-- app/Services/CustomEmojiService.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/CustomEmoji.php b/app/Models/CustomEmoji.php index 720ea136b..45e26121d 100644 --- a/app/Models/CustomEmoji.php +++ b/app/Models/CustomEmoji.php @@ -47,7 +47,7 @@ class CustomEmoji extends Model return [ 'shortcode' => $match, 'url' => $url, - 'static_path' => $url, + 'static_url' => $url, 'visible_in_picker' => $tag->disabled == false ]; } @@ -57,7 +57,7 @@ class CustomEmoji extends Model if($activitypub == true) { return $tag && isset($tag['icon']); } else { - return $tag && isset($tag['static_path']); + return $tag && isset($tag['static_url']); } }) ->values() diff --git a/app/Services/CustomEmojiService.php b/app/Services/CustomEmojiService.php index 72615884b..74957e28e 100644 --- a/app/Services/CustomEmojiService.php +++ b/app/Services/CustomEmojiService.php @@ -118,7 +118,7 @@ class CustomEmojiService return [ 'shortcode' => str_replace(':', '', $emojo->shortcode), 'url' => $url, - 'static_path' => $url, + 'static_url' => $url, 'visible_in_picker' => $emojo->disabled == false ]; })