📦➔🦋 Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

resolve: remove apps

Yeah, that's gonna get messy fast

Ducky 1caeee9b d6c2abe8

-31
-31
atfile.sh
··· 1883 1883 atfile.say.debug "Getting PDS version for '$pds'..." 1884 1884 pds_version="$(curl -s -l -X GET "$pds/xrpc/_health" | jq -r '.version')" 1885 1885 1886 - # TODO: Check if the actor has records for these where appropriate? 1887 - app_bluesky="https://bsky.app/profile/$handle" 1888 - app_bridgyfed="https://fed.brid.gy/bsky/$handle" 1889 - app_frontpage="https://frontpage.fyi/profile/$handle" 1890 - app_internect="" 1891 - app_pdsls="https://pdsls.dev/at/$did" 1892 - app_whitewind="https://whtwnd.com/$handle" 1893 - 1894 1886 case "$did_type" in 1895 - "did:plc") 1896 - app_internect="https://internect.info/did/$did" 1897 - ;; 1898 1887 "did:web") 1899 1888 did_doc="$(atfile.util.get_didweb_doc_url "$actor")" 1900 1889 ;; 1901 1890 esac 1902 - 1903 - atfile.say.debug "Resolving actor on Bridgy Fed..." 1904 - if [[ $(atfile.util.is_url_okay "$app_bridgyfed") == 0 ]]; then 1905 - unset app_bridgyfed 1906 - fi 1907 1891 1908 1892 if [[ $_output_json == 1 ]]; then 1909 1893 echo -e "{ 1910 1894 \"alias\": \"$alias\", 1911 - \"apps\": { 1912 - \"Bluesky\": \"$app_bluesky\", 1913 - \"BridgyFed\": $(if [[ -z $app_bridgyfed ]]; then echo "null"; else echo "\"$app_bridgyfed\""; fi), 1914 - \"Frontpage\": \"$app_frontpage\", 1915 - \"Internect\": $(if [[ -z $app_internect ]]; then echo "null"; else echo "\"$app_internect\""; fi), 1916 - \"PDSls\": \"$app_pdsls\", 1917 - \"Whitewind\": \"$app_whitewind\" 1918 - }, 1919 1895 \"did\": \"$did\", 1920 1896 \"doc\": \"$did_doc\", 1921 1897 \"pds\": { ··· 1933 1909 echo "↳ PDS: $pds_name" 1934 1910 echo " ↳ Endpoint: $pds" 1935 1911 echo " ↳ Version: $pds_version" 1936 - echo "↳ Apps" 1937 - echo " ↳ Bluesky: $app_bluesky" 1938 - [[ -n $app_bridgyfed ]] && echo " ↳ Bridgy Fed: $app_bridgyfed" 1939 - echo " ↳ Frontpage: $app_frontpage" 1940 - [[ -n $app_internect ]] && echo " ↳ Internect: $app_internect" 1941 - echo " ↳ PDSls: $app_pdsls" 1942 - echo " ↳ Whitewind: $app_whitewind" 1943 1912 fi 1944 1913 } 1945 1914