Don't show content if empty or zero width space
[akkoma] / lib / pleroma / activity.ex
index 353f9f6cd7722d915369218576540e77c2efc89e..8fd0311d2c25a78fd1259c58e17acbbff64c90bc 100644 (file)
@@ -36,6 +36,10 @@ defmodule Pleroma.Activity do
     )
   end
 
+  def get_by_id(id) do
+    Repo.get(Activity, id)
+  end
+
   # TODO:
   # Go through these and fix them everywhere.
   # Wrong name, only returns create activities