logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 17d01869ea82e1b0ad4b78479cabe0637d04d1cf
parent: e4bc4408f934ab31fb50d161b6dcff31a1c1be38
Author: lambda <lain@soykaf.club>
Date:   Fri, 10 May 2019 09:49:46 +0000

Merge branch 'fix/retweet-language' into 'develop'

Use "repeated" instead of "retweeted" for repeated statuses in Twitter API

Closes pleroma-fe#533

See merge request pleroma/pleroma!1130

Diffstat:

Mlib/pleroma/web/twitter_api/views/activity_view.ex2+-
Mtest/web/twitter_api/views/activity_view_test.exs4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -170,7 +170,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do created_at = activity.data["published"] |> Utils.date_to_asctime() announced_activity = Activity.get_create_by_object_ap_id(activity.data["object"]) - text = "#{user.nickname} retweeted a status." + text = "#{user.nickname} repeated a status." retweeted_status = render("activity.json", Map.merge(opts, %{activity: announced_activity})) diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs @@ -295,8 +295,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do "id" => announce.id, "is_local" => true, "is_post_verb" => false, - "statusnet_html" => "shp retweeted a status.", - "text" => "shp retweeted a status.", + "statusnet_html" => "shp repeated a status.", + "text" => "shp repeated a status.", "uri" => "tag:#{announce.data["id"]}:objectType=note", "user" => UserView.render("show.json", user: other_user), "retweeted_status" => ActivityView.render("activity.json", activity: activity),