mrf_vocabulary: add describe API support
authorAriadne Conill <ariadne@dereferenced.org>
Tue, 13 Aug 2019 22:39:26 +0000 (22:39 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Tue, 13 Aug 2019 22:39:26 +0000 (22:39 +0000)
lib/pleroma/web/activity_pub/mrf/vocabulary_policy.ex

index de00b23da459009e4bf1cbba0fdece569b5e48b0..74da8d57ec5b7db71320890398153470b33f25eb 100644 (file)
@@ -31,4 +31,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicy do
   end
 
   def filter(message), do: {:ok, message}
+
+  def describe, do: {:ok, %{mrf_vocabulary: Pleroma.Config.get(:mrf_vocabulary)}}
 end