mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 02:49:18 +00:00
WebFinger: add subscribe_address in return data of JSON responses
This commit is contained in:
parent
afc68a052c
commit
83cd7f2b5f
|
@ -116,6 +116,9 @@ defp webfinger_from_json(doc) do
|
||||||
{"application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", "self"} ->
|
{"application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", "self"} ->
|
||||||
Map.put(data, "ap_id", link["href"])
|
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"])}")
|
Logger.debug("Unhandled type: #{inspect(link["type"])}")
|
||||||
data
|
data
|
||||||
|
|
Loading…
Reference in a new issue