Add ability to set a default post expiry (#321)
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index 929641b8454f0d6fcafe0cf0dd336831a221eb78..cc58f803e6b2c7773c96f6b1ad21d7ce0f7830ee 100644 (file)
@@ -65,7 +65,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
   # This should be removed in a future version of Pleroma. Pleroma-FE currently
   # depends on this field, as well.
   defp get_context_id(%{data: %{"context" => context}}) when is_binary(context) do
-    use Bitwise
+    import Bitwise
 
     :erlang.crc32(context)
     |> band(bnot(0x8000_0000))