aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-10 13:49:34 +0300
committerrinpatch <rinpatch@sdf.org>2019-05-10 13:49:34 +0300
commit1d78e42fd4ca73402c4101ac01b9abb44f4f8cf6 (patch)
treea798d0e9ddb648c8510947b98e3a32aee8e533e0 /lib
parente4523c301023de0d4cff5ca0168094fea25955a2 (diff)
downloadpleroma-1d78e42fd4ca73402c4101ac01b9abb44f4f8cf6.tar.gz
Remove get_in_reply_to calls in some functions because the result is unused and it does not have any side-effects
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/ostatus/activity_representer.ex2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/pleroma/web/ostatus/activity_representer.ex b/lib/pleroma/web/ostatus/activity_representer.ex
index a7832a3d9..95037125d 100644
--- a/lib/pleroma/web/ostatus/activity_representer.ex
+++ b/lib/pleroma/web/ostatus/activity_representer.ex
@@ -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"])