From c64ca0c814c534c4c5eed1686641356a77cfe494 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 3 Jan 2019 13:52:13 -0600 Subject: [PATCH] Fixed error in title for post dialogs present in walls --- src/controller/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/posts.py b/src/controller/posts.py index 2d5bac7..5369306 100644 --- a/src/controller/posts.py +++ b/src/controller/posts.py @@ -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: