move to 2.5.5
[anni] / lib / pleroma / web / common_api / activity_draft.ex
old mode 100644 (file)
new mode 100755 (executable)
index 9af635d..63ed48a
@@ -111,7 +111,7 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do
   end
 
   defp attachments(%{params: params} = draft) do
-    attachments = Utils.attachments_from_ids(params)
+    attachments = Utils.attachments_from_ids(params, draft.user)
     draft = %__MODULE__{draft | attachments: attachments}
 
     case Utils.validate_attachments_count(attachments) do