From: FiveYellowMice Date: Fri, 18 Dec 2020 13:48:38 +0000 (+0000) Subject: WebFinger: add subscribe_address in return data of JSON responses X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=83cd7f2b5f269adf53b66b851fcea187cb914e28;p=akkoma WebFinger: add subscribe_address in return data of JSON responses --- diff --git a/lib/pleroma/web/web_finger.ex b/lib/pleroma/web/web_finger.ex index 6629f5356..ca200588a 100644 --- 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