mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Change static_path on custom emojis to static_url
This commit is contained in:
parent
620b7b944c
commit
0a7f8fd142
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
];
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue