Remove get_in_reply_to calls in some functions because the result is unused and it...
authorrinpatch <rinpatch@sdf.org>
Fri, 10 May 2019 10:49:34 +0000 (13:49 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 10 May 2019 10:49:34 +0000 (13:49 +0300)
lib/pleroma/web/ostatus/activity_representer.ex

index a7832a3d903bb377086f60057d84e054d5e8c7d5..95037125dc94821ff4a61520b8fab30ed45d8f47 100644 (file)
@@ -149,7 +149,6 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
     updated_at = activity.data["published"]
     inserted_at = activity.data["published"]
 
-    _in_reply_to = get_in_reply_to(activity.data)
     author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
     mentions = activity.recipients |> get_mentions
 
@@ -180,7 +179,6 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
     updated_at = activity.data["published"]
     inserted_at = activity.data["published"]
 
-    _in_reply_to = get_in_reply_to(activity.data)
     author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
 
     retweeted_activity = Activity.get_create_by_object_ap_id(activity.data["object"])