[MastoAPI] Add switching of frontend flavours
[akkoma] / lib / pleroma / web / push / push.ex
index 8fa28ee8ef6c79b149fab2681e260eec81e23fcc..ddd4fe0376fdf3a1584be21f6f5994c1a6b8066f 100644 (file)
@@ -1,7 +1,12 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Web.Push do
   use GenServer
 
-  alias Pleroma.{Repo, User}
+  alias Pleroma.Repo
+  alias Pleroma.User
   alias Pleroma.Web.Push.Subscription
 
   require Logger
@@ -32,7 +37,7 @@ defmodule Pleroma.Web.Push do
   end
 
   def init(:ok) do
-    if enabled() do
+    if !enabled() do
       Logger.warn("""
       VAPID key pair is not found. If you wish to enabled web push, please run