···11+defmodule AnnotAt.Atproto do
22+ @moduledoc """
33+ atproto is the protocol that underpins all of the functionality
44+ in this service.
55+66+ https://atproto.com/
77+ """
88+99+ @inspect_site "https://pdsls.dev/"
1010+1111+ @doc """
1212+ Let users inspect their records.
1313+ """
1414+ def inspect_url(aturi) do
1515+ @inspect_site <> aturi
1616+ end
1717+end
+7
lib/annot_at/atproto/standard_site.ex
···126126 }
127127 end
128128129129+ @doc """
130130+ Construct an at-uri for a document, useful when referencing documents.
131131+ """
132132+ def document_uri(did, rkey) do
133133+ "at://#{did}/site.standard.document/#{rkey}"
134134+ end
135135+129136 defp fetch_user(user_id) do
130137 case Accounts.get_user(user_id) do
131138 nil -> {:error, :no_session}