Added reposts to the list of handled post in buffers

This commit is contained in:
2016-02-22 05:53:37 -06:00
parent 3b2322f56b
commit 4e72a54d0d
3 changed files with 12 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ class baseBuffer(object):
if event != None:
try:
getattr(self, event)()
except KeyError:
except AttributeError:
pass
def volume_down(self):

View File

@@ -36,7 +36,10 @@ class postController(object):
if self.post.has_key("type"):
if self.post["type"] == "post":
from_ = self.session.get_user_name(self.post["source_id"])
title = _(u"Post from {0}").format(from_,)
if self.post.has_key("copy_owner_id"):
title = _(u"repost from {0}").format(from_,)
else:
title = _(u"Post from {0}").format(from_,)
self.dialog.set_title(title)
message = u""
if self.post.has_key("text"):