Browse Source

fix(webmention): Drop tuple in target.

jackyalcine 8 months ago
parent
commit
45f1d9c4bc
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/webmention.ex

+ 2
- 2
lib/webmention.ex View File

@@ -38,7 +38,7 @@ defmodule Koype.Webmention do
38 38
         fn approach, acc ->
39 39
           case approach.(target_url) do
40 40
             {:error, _} -> {:cont, acc}
41
-            {:ok, _} = result -> {:halt, result}
41
+            {:ok, result} -> {:halt, result}
42 42
           end
43 43
         end
44 44
       )
@@ -145,7 +145,7 @@ defmodule Koype.Webmention do
145 145
     {:ok, :gone}
146 146
   end
147 147
 
148
-  defp do_upsertion_of_webmention(target_url: target_url, source: source, target: {:ok, _}) do
148
+  defp do_upsertion_of_webmention(target_url: target_url, source: source, target: _) do
149 149
     with(
150 150
       {:ok, mf2} when is_map(mf2) <- IndieWeb.MF2.Remote.fetch(source),
151 151
       entry_mf2 when is_map(entry_mf2) <- IndieWeb.MF2.get_format(mf2, "entry")

Loading…
Cancel
Save