myConsciousness / atproto.dart

🦋 AT Protocol and Bluesky things for Dart and Flutter.
https://atprotodart.com
BSD 3-Clause "New" or "Revised" License
156 stars 15 forks source link

Bug Report: @foo in message doesn't tag someone #291

Closed lukepighetti closed 1 year ago

lukepighetti commented 1 year ago

If you send a message with @lukepighetti.bsky.social hello! with bluesky_cli it will not actually link, it just comes in as plain text

myConsciousness commented 1 year ago

Hey @lukepighetti !

Interestingly, it does not interpret automatically like Twitter or Mastodon! We need to set facet parameter to make the mentions work, but this CLI does not support this param yet.

https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/feed/post.json

https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/richtext/facet.json

I will support it with other parameters soon, but if you want to try it out right away, please use the bluesky package! :)

https://pub.dev/packages/bluesky

myConsciousness commented 1 year ago

Or, I would automatically extract the mentions from the text and tie them to the profile. Perhaps this is easier to use :)

myConsciousness commented 1 year ago

Hi @lukepighetti ,

Fixed to automatically extract and resolve mention and link from text, and already released as v0.1.2 :)