Toot toooooooot (Bluesky-Mastodon cross-poster)

use newer didkit api

Changed files
+2 -4
app
+1 -3
app/bluesky_account.rb
··· 17 17 exit 1 18 18 end 19 19 20 - pds = did.get_document.pds_endpoint.gsub('https://', '') 21 - 22 - @sky.host = pds 20 + @sky.host = did.document.pds_host 23 21 @sky.user.id = handle 24 22 @sky.user.pass = password 25 23
+1 -1
app/tootify.rb
··· 211 211 212 212 def fetch_record_by_at_uri(quote_uri) 213 213 repo, collection, rkey = quote_uri.split('/')[2..4] 214 - pds = DID.new(repo).get_document.pds_endpoint 214 + pds = DID.new(repo).document.pds_host 215 215 sky = Minisky.new(pds, nil) 216 216 resp = sky.get_request('com.atproto.repo.getRecord', { repo: repo, collection: collection, rkey: rkey }) 217 217 resp['value']