mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: messaging hostname
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
[submodule "app/console"]
|
||||
path = app/console
|
||||
url = https://github.com/appwrite/console
|
||||
branch = 1.5.x
|
||||
branch = 4.0.0
|
||||
|
||||
+1
-1
Submodule app/console updated: 4769c50189...c1e6264eb2
@@ -2935,13 +2935,8 @@ App::post('/v1/messaging/messages/push')
|
||||
}
|
||||
|
||||
$host = App::getEnv('_APP_DOMAIN', 'localhost');
|
||||
$domain = new Domain(\parse_url($host, PHP_URL_HOST));
|
||||
$protocol = App::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
|
||||
if (!$domain->isKnown()) {
|
||||
throw new Exception(Exception::STORAGE_FILE_NOT_PUBLIC);
|
||||
}
|
||||
|
||||
$scheduleTime = $currentScheduledAt ?? $scheduledAt;
|
||||
if (!\is_null($scheduleTime)) {
|
||||
$expiry = (new \DateTime($scheduleTime))->add(new \DateInterval('P15D'))->format('U');
|
||||
@@ -3777,13 +3772,8 @@ App::patch('/v1/messaging/messages/push/:messageId')
|
||||
}
|
||||
|
||||
$host = App::getEnv('_APP_DOMAIN', 'localhost');
|
||||
$domain = new Domain(\parse_url($host, PHP_URL_HOST));
|
||||
$protocol = App::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
|
||||
if (!$domain->isKnown()) {
|
||||
throw new Exception(Exception::STORAGE_FILE_NOT_PUBLIC);
|
||||
}
|
||||
|
||||
$scheduleTime = $currentScheduledAt ?? $scheduledAt;
|
||||
if (!\is_null($scheduleTime)) {
|
||||
$expiry = (new \DateTime($scheduleTime))->add(new \DateInterval('P15D'))->format('U');
|
||||
|
||||
Reference in New Issue
Block a user