Return maps in node_info
authorIlja <domainepublic@spectraltheorem.be>
Fri, 23 Oct 2020 18:27:13 +0000 (20:27 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 6 Aug 2021 05:59:53 +0000 (07:59 +0200)
commit7fdc3cde065ce20257e0e03e416ca18775b18943
treeaad59b525691c3bf7a423b5677c6c64d96bce0be
parent1f52246a026a81f216ebf761b2bda5a2035abbbc
Return maps in node_info

It's easiest (and imo most proper) to use tuples {"instance, "reason"} in BE,
but for FE maps like %{"instance": "instance", "reason", "reason"} are better.
I changed it so that node_info returns maps now for simple_policy and quarantined instances.
lib/pleroma/web/activity_pub/mrf/simple_policy.ex
lib/pleroma/web/mastodon_api/views/instance_view.ex
test/pleroma/web/node_info_test.exs