projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba5df1
)
activity: minor cleanups to normalization functions to align them with the object...
author
William Pitcock
<nenolod@dereferenced.org>
Sun, 25 Nov 2018 21:34:36 +0000
(21:34 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Tue, 4 Dec 2018 04:52:09 +0000
(
04:52
+0000)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 3c7e150ee308e2478ebf727fb65bd37e6220fb07..34d0a34b8e8a1c93519094d313f07823fa823ba0 100644
(file)
--- a/
lib/pleroma/activity.ex
+++ b/
lib/pleroma/activity.ex
@@
-79,8
+79,8
@@
defmodule Pleroma.Activity do
def get_create_activity_by_object_ap_id(_), do: nil
- def normalize(obj) when is_map(obj), do:
Activity.get_by_ap_id
(obj["id"])
- def normalize(ap_id) when is_binary(ap_id), do:
Activity.
get_by_ap_id(ap_id)
+ def normalize(obj) when is_map(obj), do:
normalize
(obj["id"])
+ def normalize(ap_id) when is_binary(ap_id), do: get_by_ap_id(ap_id)
def normalize(_), do: nil
defp get_in_reply_to_activity_from_object(%Object{data: %{"inReplyTo" => ap_id}}) do