Merge pull request 'purge scrobbling' (#90) from purge/scrobbling into develop
[akkoma] / lib / pleroma / web / rich_media / parsers / ogp.ex
index 0e1a0e7199452e3763b5320fafd0c54c1b99c3b6..d0edf1c88e2f63da9b6dd7c7ebb39c2d68f8fc1b 100644 (file)
@@ -1,11 +1,10 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Web.RichMedia.Parsers.OGP do
-  def parse(html, data) do
-    Pleroma.Web.RichMedia.Parsers.MetaTagsParser.parse(
-      html,
-      data,
-      "og",
-      "No OGP metadata found",
-      "property"
-    )
+  @deprecated "OGP parser is deprecated. Use TwitterCard instead."
+  def parse(_html, _data) do
+    %{}
   end
 end