Posts without media attachments should get the Summary TwitterCard
This commit is contained in:
parent
a54aa5af43
commit
06ae56a3ae
2 changed files with 28 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue