Merge branch 'bugfix/web-notification-special-char' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / mastodon_api_controller.ex
index 811a45c794623cf6f56aa76db9e1ddb2612330f8..ed585098a7b520253e1ce8a258e3670d6d261d31 100644 (file)
@@ -1653,7 +1653,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
               x,
               "id",
               case User.get_or_fetch(x["acct"]) do
-                %{id: id} -> id
+                {:ok, %User{id: id}} -> id
                 _ -> 0
               end
             )