Add digest to Admin DomainBlockResource, coming in Mastodon 4.3

pull/5021/head
Emelia Smith 2024-03-30 00:26:26 +01:00
rodzic fcdfc73eaf
commit 2d34e86f26
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -24,6 +24,9 @@ class DomainBlockResource extends JsonResource
return [
'id' => $this->id,
'domain' => $this->domain,
// This property is coming in Mastodon 4.3, although it'll only be
// useful if Pixelfed supports obfuscating domains:
'digest' => hash('sha256', $this->domain),
'severity' => $severity,
// Using the updated_at value as this is going to be the closest to
// when the domain was banned