common api: set directMessage flag on our own posts
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 15:26:07 +0000 (15:26 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 20 Jan 2019 02:27:48 +0000 (02:27 +0000)
lib/pleroma/web/common_api/common_api.ex

index 5046704398cfe44ad2ed60c9a16087e56d043f44..7084da6deca42948351e1fe5547cdda9bb91e3ed 100644 (file)
@@ -143,7 +143,7 @@ defmodule Pleroma.Web.CommonAPI do
           actor: user,
           context: context,
           object: object,
-          additional: %{"cc" => cc}
+          additional: %{"cc" => cc, "directMessage" => visibility == "direct"}
         })
 
       res