1
0
mirror of https://github.com/flarum/core.git synced 2025-08-20 15:21:49 +02:00

change value of subscribed from false to null in the JSON API (#37)

This commit is contained in:
sl-kr
2021-03-18 12:38:21 -04:00
committed by GitHub
parent c1c47e81aa
commit e783a7603d
4 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ class SaveSubscriptionToDatabase
$discussion = $event->discussion;
$data = $event->data;
if (isset($data['attributes']['subscription'])) {
if (array_key_exists('subscription', $data['attributes'])) {
$actor = $event->actor;
$subscription = $data['attributes']['subscription'];