📦➔🦋 Store and retrieve files on the Atmosphere

remove DISABLE_PBC_FALLBACK

+8 -33
+1 -7
src/commands/help.sh
··· 155 155 ${_envvar_prefix}_ENDPOINT_PLC_DIRECTORY <url> (default: ${_endpoint_plc_directory_default}$([[ $_endpoint_plc_directory_default == *"zio.blue" ]] && echo "²")) 156 156 Endpoint of the PLC directory 157 157 ${_envvar_prefix}_ENDPOINT_SOCIAL_APP <url> (default: ${_endpoint_social_app_default}) 158 - Endpoint of the Bluesky (or compatible) social app 159 - ${_envvar_prefix}_DISABLE_PBC_FALLBACK <bool¹> (default: $_disable_pbc_fallback) 160 - Disable the (hardcoded) usage of various Bluesky PBC-hosted fallbacks 161 - if/when required. Currently, there are fallbacks for: 162 - * ${_envvar_prefix}_ENDPOINT_APPVIEW ($_endpoint_appview_fallback) 163 - * ${_envvar_prefix}_ENDPOINT_JETSTREAM ($_endpoint_jetstream_fallback) 164 - * ${_envvar_prefix}_ENDPOINT_PLC_DIRECTORY ($_endpoint_plc_directory_fallback)\n 158 + Endpoint of the Bluesky (or compatible) social app\n 165 159 ${_envvar_prefix}_DEBUG <bool¹> (default: 0) 166 160 Print debug outputs 167 161 ⚠️ When output is JSON (${_envvar_prefix}_OUTPUT_JSON=1), sets to 0
-1
src/commands/something_broke.sh
··· 73 73 $(for s in "${ATFILE_DEVEL_INCLUDES[@]}"; do echo " ↳ $s"; done) 74 74 $(atfile.something_broke.print_envvar "DEVEL_SOURCE") 75 75 $(atfile.something_broke.print_envvar "DEVEL_PUBLISH" "$_devel_publish_default") 76 - $(atfile.something_broke.print_envvar "DISABLE_PBC_FALLBACK" "$_disable_pbc_fallback_default") 77 76 $(atfile.something_broke.print_envvar "DISABLE_SETUP_DIR_CREATION" "$_disable_setup_dir_creation_default") 78 77 $(atfile.something_broke.print_envvar "DISABLE_UPDATE_CHECKING" "$_disable_update_checking_default") 79 78 $(atfile.something_broke.print_envvar "DISABLE_UPDATE_COMMAND" "$_disable_update_command_default")
+3 -4
src/entry.sh
··· 132 132 133 133 ### Fallbacks 134 134 135 - _endpoint_appview_fallback="https://api.bsky.app" 136 - _endpoint_jetstream_fallback="$(atfile.util.get_random_pbc_jetstream)" 137 - _endpoint_plc_directory_fallback="https://plc.directory" 138 135 _max_list_fallback=100 139 136 140 137 ### Defaults ··· 150 147 #_endpoint_appview_default="https://bsky.zio.blue" 151 148 _endpoint_appview_default="https://api.bsky.app" 152 149 #_endpoint_jetstream_default="wss://stream.zio.blue" 153 - _endpoint_jetstream_default="$_endpoint_jetstream_fallback" 150 + _endpoint_jetstream_default="$(atfile.util.get_random_pbc_jetstream)" 154 151 _endpoint_plc_directory_default="https://plc.zio.blue" 155 152 _endpoint_social_app_default="https://bsky.app" 156 153 _fmt_blob_url_default="[server]/xrpc/com.atproto.sync.getBlob?did=[did]&cid=[cid]" ··· 209 206 _endpoint_social_app_name="Bluesky" 210 207 211 208 case "$_endpoint_social_app" in 209 + "https://blacksky.community") _endpoint_social_app_name="Blacksky" ;; 212 210 "https://deer.social") _endpoint_social_app_name="Deer" ;; 211 + "https://zeppelin.social/") _endpoint_social_app_name="Zeppelin" ;; 213 212 esac 214 213 215 214 # Setup
-14
src/lexi/app_bsky.sh
··· 6 6 7 7 function app.bsky.actor.getProfile() { 8 8 actor="$1" 9 - 10 - # NOTE: AppViewLite does not fully support app.bsky.actor.getProfile 11 - # shellcheck disable=SC2154 12 - appview="$_endpoint_appview_fallback" 13 - # shellcheck disable=SC2154 14 - [[ $_disable_pbc_fallback == 1 ]] && unset appview 15 - 16 9 atfile.xrpc.bsky.get "app.bsky.actor.getProfile" "actor=$actor" "" "$appview" 17 10 } 18 11 19 12 function app.bsky.labeler.getServices() { 20 13 did="$1" 21 - 22 - # NOTE: AppViewLite does not fully support app.bsky.labeler.getServices 23 - # shellcheck disable=SC2154 24 - appview="$_endpoint_appview_fallback" 25 - # shellcheck disable=SC2154 26 - [[ $_disable_pbc_fallback == 1 ]] && unset appview 27 - 28 14 atfile.xrpc.bsky.get "app.bsky.labeler.getServices" "dids=$did" 29 15 }
+4 -7
src/shared/util.sh
··· 269 269 didplc_endpoint="$_endpoint_plc_directory" 270 270 didplc_doc="$(atfile.util.get_didplc_doc.request_doc "$didplc_endpoint" "$actor")" 271 271 272 - # shellcheck disable=SC2154 273 - if [[ $_disable_pbc_fallback == 0 ]]; then 274 - if [[ "$didplc_doc" != "{"* ]]; then 275 - # shellcheck disable=SC2154 276 - didplc_endpoint="$_endpoint_plc_directory_fallback" 277 - didplc_doc="$(atfile.util.get_didplc_doc.request_doc "$didplc_endpoint" "$actor")" 278 - fi 272 + if [[ "$didplc_doc" != "{"* ]]; then 273 + # shellcheck disable=SC2154 274 + didplc_endpoint="https://plc.directory" 275 + didplc_doc="$(atfile.util.get_didplc_doc.request_doc "$didplc_endpoint" "$actor")" 279 276 fi 280 277 281 278 echo "$didplc_doc" | jq ". += {\"directory\": \"$didplc_endpoint\"}"