Metadata/Utils: use summary as description if set
authorHélène <pleroma-dev@helene.moe>
Tue, 23 Aug 2022 12:49:05 +0000 (14:49 +0200)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 11 Sep 2022 18:55:38 +0000 (19:55 +0100)
commit8683252fc556f31896687aeaad387a2f2a85ada6
tree5554eb3761063be0ef265bfbb60382c7e340d005
parent0b14f02ed20173c03dada9edcdfa55dc98cc2420
Metadata/Utils: use summary as description if set

When generating OpenGraph and TwitterCard metadata for a post, the
summary field will be used first if it is set to generate the post
description.
lib/pleroma/web/metadata/utils.ex
test/pleroma/web/metadata/providers/twitter_card_test.exs
test/pleroma/web/metadata/utils_test.exs