summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/rich_media/parsers/ogp.ex
blob: 3e90125882e2f2d58799584bd6be4b726f4b311b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 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"
    )
  end
end