mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:40:17 +00:00
Cast alert types to boolean in Api\Mastodon\Subscription
This commit is contained in:
parent
2f28ec7af0
commit
6685157f8a
1 changed files with 5 additions and 5 deletions
|
@ -50,11 +50,11 @@ class Subscription extends BaseDataTransferObject
|
|||
$this->id = (string)$subscription['id'];
|
||||
$this->endpoint = $subscription['endpoint'];
|
||||
$this->alerts = [
|
||||
Notification::TYPE_FOLLOW => $subscription[Notification::TYPE_FOLLOW],
|
||||
Notification::TYPE_LIKE => $subscription[Notification::TYPE_LIKE],
|
||||
Notification::TYPE_RESHARE => $subscription[Notification::TYPE_RESHARE],
|
||||
Notification::TYPE_MENTION => $subscription[Notification::TYPE_MENTION],
|
||||
Notification::TYPE_POLL => $subscription[Notification::TYPE_POLL],
|
||||
Notification::TYPE_FOLLOW => (bool)$subscription[Notification::TYPE_FOLLOW],
|
||||
Notification::TYPE_LIKE => (bool)$subscription[Notification::TYPE_LIKE],
|
||||
Notification::TYPE_RESHARE => (bool)$subscription[Notification::TYPE_RESHARE],
|
||||
Notification::TYPE_MENTION => (bool)$subscription[Notification::TYPE_MENTION],
|
||||
Notification::TYPE_POLL => (bool)$subscription[Notification::TYPE_POLL],
|
||||
];
|
||||
|
||||
$this->server_key = $vapid;
|
||||
|
|
Loading…
Reference in a new issue