diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 8bda6b5393e..e80f7316d04 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -496,7 +496,10 @@ class WebsiteForum(http.Controller): posts_ids = Post.browse(cr, uid, posts.keys(), context=context) posts = dict(map(lambda x: (x.id, (x.parent_id or x, x.parent_id and x or False)), posts_ids)) - post['users'] = 'True' + if user.id is uid: + post['my_profile'] = 'True' + else: + post['users'] = 'True' values.update({ 'uid': uid, diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index c40b2eac00b..5fa5c6530ca 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -72,7 +72,7 @@ Badges