mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 00:05:29 +00:00
Add digest to Admin DomainBlockResource, coming in Mastodon 4.3
This commit is contained in:
parent
fcdfc73eaf
commit
2d34e86f26
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ class DomainBlockResource extends JsonResource
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'domain' => $this->domain,
|
'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,
|
'severity' => $severity,
|
||||||
// Using the updated_at value as this is going to be the closest to
|
// Using the updated_at value as this is going to be the closest to
|
||||||
// when the domain was banned
|
// when the domain was banned
|
||||||
|
|
Loading…
Reference in a new issue