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
This commit is contained in:
commit
17d01869ea
2 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ def render("activity.json", %{activity: %{data: %{"type" => "Announce"}} = activ
|
|||
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}))
|
||||
|
||||
|
|
|
@ -295,8 +295,8 @@ test "an announce activity" 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),
|
||||
|
|
Loading…
Reference in a new issue