- signature = generate_scrubber_signature(scrubbers)
-
- {new_scrubber_cache, scrubbed_html} =
- Enum.map_reduce(scrubber_cache, nil, fn
- entry, _content ->
- if Map.keys(entry["scrubbers"]) == Map.keys(signature) do
- if entry["scrubbers"] == signature do
- {entry, entry["content"]}
- else
- # Remove the entry if scrubber version is outdated
- {nil, nil}
- end
- end
- end)
+ def maybe_notify_mentioned_recipients(
+ recipients,
+ %Activity{data: %{"to" => _to, "type" => type} = data} = _activity
+ )
+ when type == "Create" do
+ object = Object.normalize(data["object"])