Removed unneeded code

This commit is contained in:
Manuel Cortez 2022-12-08 16:11:25 -06:00
parent 3450e0d38f
commit c9b75925b9
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 2 additions and 2 deletions

View File

@ -489,7 +489,7 @@ class BaseBuffer(base.Buffer):
post = self.get_item() post = self.get_item()
# Update object so we can retrieve newer stats # Update object so we can retrieve newer stats
post = self.session.api.status(id=post.id) post = self.session.api.status(id=post.id)
print(post) # print(post)
msg = messages.viewPost(post, offset_hours=self.session.db["utc_offset"], item_url=self.get_item_url()) msg = messages.viewPost(post, offset_hours=self.session.db["utc_offset"], item_url=self.get_item_url())
def ocr_image(self): def ocr_image(self):

View File

@ -457,7 +457,7 @@ class BaseBuffer(base.Buffer):
def _retweet_with_comment(self, tweet, id): def _retweet_with_comment(self, tweet, id):
if hasattr(tweet, "retweeted_status"): if hasattr(tweet, "retweeted_status"):
tweet = tweet.retweeted_status tweet = tweet.retweeted_status
retweet = messages.tweet(session=self.session, title=_("Quote"), caption=_("Add your comment to the tweet"), max=256, thread_mode=False) retweet = messages.tweet(session=self.session, title=_("Quote"), caption=_("Add your comment to the tweet"), thread_mode=False)
if retweet.message.ShowModal() == widgetUtils.OK: if retweet.message.ShowModal() == widgetUtils.OK:
text = retweet.message.text.GetValue() text = retweet.message.text.GetValue()
tweet_data = dict(text=text, attachments=retweet.attachments, poll_period=retweet.poll_period, poll_options=retweet.poll_options) tweet_data = dict(text=text, attachments=retweet.attachments, poll_period=retweet.poll_period, poll_options=retweet.poll_options)