Change static_path on custom emojis to static_url

pull/3348/head
Shadowfacts 2022-04-01 18:40:13 -04:00 zatwierdzone przez GitHub
rodzic 620b7b944c
commit 0a7f8fd142
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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