bash-atproto v4 (massive changelog below!)
- bap_resolveDID was renamed to bap_getDID. It also no longer calls to a resolve server in favor of resolving the handle itself. (DNS and HTTPS are performed in that order)
- bap_getKeys no longer uses $savedPDS. It instead opts to resolve the PDS from the specified identifier, or from the third parameter (new!).
- bap_getKeys and bap_refreshKeys now load data from the obtained JWT after a successful login/refresh. It is unnecessary to manually manage $savedDID now. $savedPDS is only needed when working with an account on a PDS that isn't it's "blessed" one.
- bap_findPDS has been removed as it is unnecessary with the bap_getKeys changes.
- bap_postToBluesky was removed. Use bapBsky_createPost with bap-bsky.sh instead.
- $bap_dryRun variable was added. Set it to 1 to see all records that would normally be posted.
- bap_resolveDID (the new one) was split from bap_resolvePDS, and it prints the DID doc.
- The check to see if the account is active in bap_getKeys and bap_refreshKeys can be skipped by setting $bap_disableOptionalChecks to 1.
- bap_generateDatetime to get an atproto datetime of the current date and time
- bap_postRecord can set rkey and whether to validate the record against the lexicon
- bap_getDID now verifies the DID exists if it was manually specified
- bap_prepareImage now uses exiftool instead of imagemagick for calculating dimensions. It should be able to process videos under certain conditions.
- bash-atproto now depends on dig.
- Fixed issue with generating datetimes on non-GNU systems (Closes #5)
bap-bsky v2 changes:
- Removed bapBsky_cyorAddLabel as it has been replaced by bapBsky_cyorAddSelfLabels
- bapBsky_prepareVideo was renamed to bapBsky_prepareVideoIndirect, now only accepts mp4 videos, and scrubs metadata
- Removed compatibility stubs
- CYOR commands that fetch posts now require login. They also now respect threadgates and won't work if there's a block relationship.
- bapBsky_cyorGetReplyRoot was renamed to bapBskyInternal_cyorGetReplyRoot and now always runs after bapBsky_cyorAddReply
- bap-bsky now calls the AppView API set in bapBsky_bskyAppViewDID (default Bluesky) for some requests
- bapBsky_getPost fetches a Bluesky post with auth
- bapBsky_getProfile fetches a Bluesky profile with auth
- bapBsky_verifyActor creates a verification record
- bapBsky_followActor follows an actor or ensures an actor is being followed
- bapBsky_likePost likes a post or ensures it has been liked (does not use via yet)
- bapBsky_submitPost now passes through arguments for the bap_postRecord changes
- createdAt is no longer added automatically if already present in the record
- Now uses bap_generateDatetime
bap-extra v2 changes:
- New bapExt_bskyCancelActor which creates an app.bsky.graph.cancellation record (see cred.blue/canceler)
- Removed bapExt_fastLogin as bap_getKeys acts like it now
- bapExt_checkDeps now checks for dig
bap-sprk v2.1 changes:
- Now uses bap_generateDatetime
- bapSprk_submitPost now passes through arguments for the bap_postRecord changes
- bapSprk_cyorAddReply can make the post being worked on a reply