Don't send webmentions for non-Notes

This commit is contained in:
Shadowfacts 2020-05-27 19:19:24 -04:00
parent 64b1515b46
commit de495059d5
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 0 deletions

View File

@ -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,