Add likes to activitypub object representation
authorsxsdv1 <sxsdv1@gmail.com>
Wed, 9 Jan 2019 08:22:00 +0000 (09:22 +0100)
committersxsdv1 <sxsdv1@gmail.com>
Sat, 12 Jan 2019 19:24:41 +0000 (20:24 +0100)
commit868034375c5122175f872967e49559dafed9403c
tree373da9d1a6089ede161e76601ec96df4e76811a0
parent581edd5a91189e6fb2a94a277b96f9c8197617b8
Add likes to activitypub object representation

Top level of the likes OrderedCollection is inlined to get immediate
access to totalItems. Because the count can be returned without scanning
the database for like activities the extra query is saved when the
client only wants to display the total.
lib/pleroma/web/activity_pub/transmogrifier.ex
test/web/activity_pub/transmogrifier_test.exs