๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere

entry: add overrides for _ENDPOINT_SOCIAL_APP when default but _ENDPOINT_APPVIEW is set

+13 -6
+13 -6
src/entry.sh
··· 205 205 _nsid_upload="${_nsid_prefix}.atfile.upload" 206 206 _endpoint_social_app_name="Bluesky" 207 207 208 - case "$_endpoint_social_app" in 209 - "https://blacksky.community") _endpoint_social_app_name="Blacksky" ;; 210 - "https://deer.social") _endpoint_social_app_name="Deer" ;; 211 - "https://zeppelin.social/") _endpoint_social_app_name="Zeppelin" ;; 212 - esac 213 - 214 208 # Setup 215 209 216 210 ## Envvar correction ··· 239 233 [[ -n $_force_version ]] && \ 240 234 _version="$_force_version" &&\ 241 235 atfile.util.print_override_envvar_debug "Version" "_version" 236 + 237 + if [[ $_endpoint_appview != "$_endpoint_appview_default" ]] &&\ 238 + [[ $_endpoint_social_app == "$_endpoint_social_app_default" ]]; then 239 + case "$_endpoint_appview" in 240 + "https://bsky.zeppelin.social") _endpoint_social_app="https://zeppelin.social" ;; 241 + esac 242 + fi 243 + 244 + case "$_endpoint_social_app" in 245 + "https://blacksky.community") _endpoint_social_app_name="Blacksky" ;; 246 + "https://deer.social") _endpoint_social_app_name="Deer" ;; 247 + "https://zeppelin.social") _endpoint_social_app_name="Zeppelin" ;; 248 + esac 242 249 243 250 ### Validation 244 251