From de495059d55d969dc5c3562c2235806f09ba1d19 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 27 May 2020 19:19:24 -0400 Subject: [PATCH] Don't send webmentions for non-Notes --- lib/clacks/worker/send_webmention.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clacks/worker/send_webmention.ex b/lib/clacks/worker/send_webmention.ex index 4065a97..4d77149 100644 --- a/lib/clacks/worker/send_webmention.ex +++ b/lib/clacks/worker/send_webmention.ex @@ -33,6 +33,8 @@ defmodule Clacks.Worker.SendWebmention do end end + def enqueue_for_activity(_), do: :ok + @spec maybe_enqueue_for_candidate(Activity.t(), [String.t()], String.t()) :: boolean() defp maybe_enqueue_for_candidate( %Activity{data: %{"object" => %{"in_reply_to" => in_reply_to}}} = activity,