logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 83cd7f2b5f269adf53b66b851fcea187cb914e28
parent afc68a052c384adffc7040df9e1faeb2ffacf6e4
Author: FiveYellowMice <hkz85825915@gmail.com>
Date:   Fri, 18 Dec 2020 13:48:38 +0000

WebFinger: add subscribe_address in return data of JSON responses

Diffstat:

Mlib/pleroma/web/web_finger.ex3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/web/web_finger.ex b/lib/pleroma/web/web_finger.ex @@ -116,6 +116,9 @@ defmodule Pleroma.Web.WebFinger do {"application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", "self"} -> Map.put(data, "ap_id", link["href"]) + {nil, "http://ostatus.org/schema/1.0/subscribe"} -> + Map.put(data, "subscribe_address", link["template"]) + _ -> Logger.debug("Unhandled type: #{inspect(link["type"])}") data