浏览代码

Update CustomEmojiService, only return local emoji

Daniel Supernault 1 年之前
父节点
当前提交
7f8bba4415
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 CustomEmoji::when(!$pgsql, function($q, $pgsql) {
 					return $q->groupBy('shortcode');
 					return $q->groupBy('shortcode');
 				})
 				})
+                ->whereNull('uri')
 				->get()
 				->get()
 				->map(function($emojo) {
 				->map(function($emojo) {
 					$url = url('storage/' . $emojo->media_path);
 					$url = url('storage/' . $emojo->media_path);