diff options
author | lain <lain@soykaf.club> | 2021-01-04 13:38:31 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-04 13:38:31 +0100 |
commit | e1e7e4d379a67779a799049728d143eee2b88a7e (patch) | |
tree | 7506ca5b79a1eb8437a9f5f125f428532aa074b1 /lib/pleroma/web/embed_controller.ex | |
parent | afe9c152ab757237313cc15d97855ae39768ddc1 (diff) | |
download | pleroma-e1e7e4d379a67779a799049728d143eee2b88a7e.tar.gz |
Object: Rework how Object.normalize works
Now it defaults to not fetching, and the option is named.
Diffstat (limited to 'lib/pleroma/web/embed_controller.ex')
-rw-r--r-- | lib/pleroma/web/embed_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/embed_controller.ex b/lib/pleroma/web/embed_controller.ex index f6b8a5ee1..f8623d4d6 100644 --- a/lib/pleroma/web/embed_controller.ex +++ b/lib/pleroma/web/embed_controller.ex @@ -31,7 +31,7 @@ defmodule Pleroma.Web.EmbedController do end defp get_counts(%Activity{} = activity) do - %Object{data: data} = Object.normalize(activity) + %Object{data: data} = Object.normalize(activity, fetch: false) %{ likes: Map.get(data, "like_count", 0), |