bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.31k stars 1.44k forks source link

Posts with hashtag show “Translate this post” #1018

Closed hensonb3 closed 1 year ago

hensonb3 commented 1 year ago

Describe the bug Posts with hashtag show “Translate this post” message.

Expected behavior

“Translate this post” should not appear

Screenshots IMG_8688

Details

pfrazee commented 1 year ago

@hensonb3 are you creating these posts with a bot or similar? This can be solved by correctly setting the language value on the post.

BrandonHenson-KR commented 1 year ago

@pfrazee I am indeed posting with a bot. Do you have a quick/handy example? Here is a snippet of my Python code:

from atproto import Client

Set up Bluesky Social API

bluesky_client = Client()
bluesky_client.login('mlbscores.bsky.social', 'REMOVED)
bluesky_client.send_post(text=final_score_text)
pfrazee commented 1 year ago

I dont know which API you're using so I can't say for sure. The relevant schema is here:

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

So you ultimately want something like this:

{
  text: "Hello!",
  langs: ["en"],
  ...
}

This is a recent update so if your python client doesnt have a parameter for it yet, you'll need to ask them for the addition!

pfrazee commented 1 year ago

Going to close this issue to keep things clean but feel free to reply

BrandonHenson-KR commented 1 year ago

Thanks, I have asked the Discord for: https://github.com/MarshalX/atproto