Don't show the user expansion on mobile

This commit is contained in:
Robin Ward 2013-10-07 14:32:15 -04:00
parent 094b5eccca
commit 75aaafc06e

View File

@ -15,6 +15,12 @@ Discourse.PosterExpansionController = Discourse.ObjectController.extend({
show: function(post) {
// Don't show on mobile
if (Discourse.Mobile.mobileView) {
Discourse.URL.routeTo(post.get('usernameUrl'));
return;
}
var currentUsername = this.get('username');
this.setProperties({model: post, visible: true});