Merge branch 'bugfix/content_nil_lenght_check' into 'develop'
[akkoma] / lib / pleroma / web / push / subscription.ex
index 82b30950ce7d7102d95573e2aae493fb0493b8b8..bd9d9f3a75e2acc9844da61139cff9abf2f197ce 100644 (file)
@@ -10,7 +10,7 @@ defmodule Pleroma.Web.Push.Subscription do
   alias Pleroma.Web.Push.Subscription
 
   schema "push_subscriptions" do
-    belongs_to(:user, User)
+    belongs_to(:user, User, type: Pleroma.FlakeId)
     belongs_to(:token, Token)
     field(:endpoint, :string)
     field(:key_p256dh, :string)