From 57795f73323820d9c67184b9c383b77b8d6c6fbd Mon Sep 17 00:00:00 2001 From: dtluna Date: Sat, 8 Apr 2017 17:19:57 +0300 Subject: [PATCH] Refactor lib/pleroma/web/twitter_api/twitter_api.ex --- lib/pleroma/web/twitter_api/twitter_api.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 932bef5ef..0d9a491da 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -25,6 +25,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do content_html = add_user_links(content, mentions) + date = make_date + activity = %{ "type" => "Create", "to" => to, @@ -33,11 +35,11 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do "type" => "Note", "to" => to, "content" => content_html, - "published" => make_date, + "published" => date, "context" => context, "attachment" => attachments }, - "published" => make_date, + "published" => date, "context" => context } -- 2.45.2