1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Merge pull request #5056 from pixelfed/staging

Update CustomEmojiService, only return local emoji
This commit is contained in:
daniel 2024-04-23 05:55:10 -06:00 committed by GitHub
commit 74a3d5c6c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,6 +133,7 @@ class CustomEmojiService
return CustomEmoji::when(!$pgsql, function($q, $pgsql) {
return $q->groupBy('shortcode');
})
->whereNull('uri')
->get()
->map(function($emojo) {
$url = url('storage/' . $emojo->media_path);