projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ef237f
)
Add a guard to fetching reply activity
author
rinpatch
<rinpatch@sdf.org>
Thu, 18 Apr 2019 18:40:40 +0000
(21:40 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Thu, 18 Apr 2019 18:40:40 +0000
(21:40 +0300)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 9043530c9caebfb5fbdc93cc937464210a145a5a..4a2ded51819f7dde23a89905609622735262fbb5 100644
(file)
--- a/
lib/pleroma/activity.ex
+++ b/
lib/pleroma/activity.ex
@@
-204,12
+204,14
@@
defmodule Pleroma.Activity do
def create_by_object_ap_id_with_object(_), do: nil
def create_by_object_ap_id_with_object(_), do: nil
- def get_create_by_object_ap_id_with_object(ap_id) do
+ def get_create_by_object_ap_id_with_object(ap_id)
when is_binary(ap_id)
do
ap_id
|> create_by_object_ap_id_with_object()
|> Repo.one()
end
ap_id
|> create_by_object_ap_id_with_object()
|> Repo.one()
end
+ def get_create_by_object_ap_id_with_object(_), do: nil
+
defp get_in_reply_to_activity_from_object(%Object{data: %{"inReplyTo" => ap_id}}) do
get_create_by_object_ap_id_with_object(ap_id)
end
defp get_in_reply_to_activity_from_object(%Object{data: %{"inReplyTo" => ap_id}}) do
get_create_by_object_ap_id_with_object(ap_id)
end