Browse Source

Merge pull request #5056 from pixelfed/staging

Update CustomEmojiService, only return local emoji
daniel 1 year ago
parent
commit
74a3d5c6c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Services/CustomEmojiService.php

+ 1 - 0
app/Services/CustomEmojiService.php

@@ -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);