mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 17:29:47 +08:00
Don't show the user expansion on mobile
This commit is contained in:
parent
094b5eccca
commit
75aaafc06e
|
@ -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});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user