Don't send webmentions for non-Notes
This commit is contained in:
parent
64b1515b46
commit
de495059d5
|
@ -33,6 +33,8 @@ defmodule Clacks.Worker.SendWebmention do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def enqueue_for_activity(_), do: :ok
|
||||||
|
|
||||||
@spec maybe_enqueue_for_candidate(Activity.t(), [String.t()], String.t()) :: boolean()
|
@spec maybe_enqueue_for_candidate(Activity.t(), [String.t()], String.t()) :: boolean()
|
||||||
defp maybe_enqueue_for_candidate(
|
defp maybe_enqueue_for_candidate(
|
||||||
%Activity{data: %{"object" => %{"in_reply_to" => in_reply_to}}} = activity,
|
%Activity{data: %{"object" => %{"in_reply_to" => in_reply_to}}} = activity,
|
||||||
|
|
Loading…
Reference in New Issue