end)
end
- # Only federate user icon if not nil
- # Prevents federating instance default avatars
- def maybe_make_icon(user) do
- if User.avatar_url_ap(user) do
- %{
- "icon" => %{
- "type" => "Image",
- "url" => User.avatar_url_ap(user)
- }
- }
- else
- %{}
- end
- end
-
#### Like-related helpers
@doc """
[state, actor, object]
)
- activity = Repo.get(Activity, activity.id)
+ activity = Activity.get_by_id(activity.id)
{:ok, activity}
rescue
e ->