From 490c6499e2f2aac0a97ec44fbfc5bac8adbc991e Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Tue, 19 Sep 2023 18:34:59 +0200 Subject: [PATCH] Fix sms settings check on api --- controllers/publics/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/publics/Api.php b/controllers/publics/Api.php index 57a4b44..8bcaab7 100644 --- a/controllers/publics/Api.php +++ b/controllers/publics/Api.php @@ -426,7 +426,7 @@ namespace controllers\publics; $at = (string) $at; $text = (string) $text; - if (($this->user['settings']['mms'] ?? false) && $mms) + if ($mms && !(int)($this->user['settings']['mms'] ?? false)) { $return = self::DEFAULT_RETURN; $return['error'] = self::ERROR_CODES['INVALID_PARAMETER'];