Toot toooooooot (Bluesky-Mastodon cross-poster)

post links to quoted posts in RE: format

Changed files
+8 -2
app
+8 -2
app/tootify.rb
··· 274 274 end 275 275 276 276 def append_link(text, link) 277 - text << ' ' unless text.end_with?(' ') 278 - text << link 277 + if link =~ /^https:\/\/bsky\.app\/profile\/.+\/post\/.+/ 278 + text << "\n" unless text.end_with?("\n") 279 + text << "\n" 280 + text << "RE: " + link 281 + else 282 + text << ' ' unless text.end_with?(' ') 283 + text << link 284 + end 279 285 end 280 286 281 287 def bsky_post_link(repo, rkey)