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

Configure Feed

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

bsky: handle null dates

Ducky 5165f5a1 9f36df90

+8 -2
+8 -2
src/commands/bsky_profile.sh
··· 7 7 [[ $_output_json == 1 ]] && atfile.die "Command not available as JSON" 8 8 9 9 function atfile.bsky_profile.get_pretty_date() { 10 - # shellcheck disable=SC2317 11 - atfile.util.get_date "$1" "%Y-%m-%d %H:%M:%S" 10 + date="$1" 11 + 12 + if [[ $date == "null" ]]; then 13 + echo "(Unknown)" 14 + else 15 + # shellcheck disable=SC2317 16 + atfile.util.get_date "$1" "%Y-%m-%d %H:%M:%S" 17 + fi 12 18 } 13 19 14 20 if [[ -z "$actor" ]]; then