Posts without media attachments should get the Summary TwitterCard

This commit is contained in:
Mark Felder 2019-12-20 16:32:04 -06:00
commit 06ae56a3ae
2 changed files with 28 additions and 3 deletions

View file

@ -31,7 +31,7 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard do
if attachments == [] or Metadata.activity_nsfw?(object) do
[
image_tag(user),
{:meta, [property: "twitter:card", content: "summary_large_image"], []}
{:meta, [property: "twitter:card", content: "summary"], []}
]
else
attachments