aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/twitter_api/twitter_api.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/twitter_api/twitter_api.ex')
-rw-r--r--lib/pleroma/web/twitter_api/twitter_api.ex12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex
index 16e05ded3..9e3251df6 100644
--- a/lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/lib/pleroma/web/twitter_api/twitter_api.ex
@@ -6,15 +6,15 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
def create_status(user = %User{}, data = %{}) do
activity = %{
- type: "Create",
- to: [
+ "type" => "Create",
+ "to" => [
User.ap_followers(user),
"https://www.w3.org/ns/activitystreams#Public"
],
- actor: User.ap_id(user),
- object: %{
- type: "Note",
- content: data.status
+ "actor" => User.ap_id(user),
+ "object" => %{
+ "type" => "Note",
+ "content" => data["status"]
}
}