Fixed error in title for post dialogs present in walls

This commit is contained in:
Manuel Cortez 2019-01-03 13:52:13 -06:00
parent 86c9ac93d5
commit c64ca0c814

View File

@ -109,7 +109,7 @@ class postController(object):
# Translators: {0} will be replaced with an user.
title = _("repost from {0}").format(from_,)
else:
if "from_id" in self.post and "owner_id" in self.post:
if ("from_id" in self.post and "owner_id" in self.post) and (self.post["from_id"] != self.post["owner_id"]):
# Translators: {0} will be replaced with the user who is posting, and {1} with the wall owner.
title = _("Post from {0} in the {1}'s wall").format(self.session.get_user_name(self.post["from_id"]), self.session.get_user_name(self.post["owner_id"]))
else: