Skip to content

Probably og:description is not working

Environment

  • Installation type:
    • OTP
    • From source
  • Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): v2.0.5
  • Elixir version (elixir -v for from source installations, N/A for OTP):
    • Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1]
    • Elixir 1.10.3 (compiled with Erlang/OTP 21)
  • Operating system: Ubuntu 18.04
  • PostgreSQL version (postgres -V): psql (PostgreSQL) 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)

Bug description

Probably the OG:description is not working.

I often include Mastodon's or Misskey's post URLs in my posts. Then I noticed that the body of Misskey's post had not been expanded.

I've heard from Misskey users that they have an OG:description. After that exchange, @kPherox examined the source code for me. The result is that it doesn't seem to expand the description when the twitter:card is included.

Card-expanded example of a Misskey post: https://pl.komittee.net/notice/9vcmn2otYcDazbP6Ia

https://git.pleroma.social/pleroma/pleroma/-/blob/develop/lib/pleroma/web/rich_media/parsers/meta_tags_parser.ex#L39-53

In the case of Mastodon and Pleroma's posts, the text is transcribed in the title, so there is (fortunately) no effect of card expansion.

Edited by kunimi komichi