Fixed focus movement in tweets. Needs tests

This commit is contained in:
2016-07-27 11:56:38 -05:00
parent d50e8e2798
commit 45263732b8
5 changed files with 12 additions and 5 deletions

View File

@@ -80,8 +80,6 @@ def compose_quoted_tweet(quoted_tweet, original_tweet):
original_text = StripChars(original_tweet["message"])
else:
original_text = StripChars(original_tweet["text"])
try: original_text = "rt @%s: %s" % (original_tweet["retweeted_status"]["user"]["screen_name"], StripChars(original_tweet["retweeted_status"]["text"]))
except KeyError: original_text = "%s" % (StripChars(original_tweet["text"]))
quoted_tweet["message"] = _(u"{0}. Quoted tweet from @{1}: {2}").format( quoted_tweet["text"], original_user, original_text)
quoted_tweet = tweets.clear_url(quoted_tweet)
return quoted_tweet