mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Fix error when rendering deleted user
This commit is contained in:
@@ -34,4 +34,10 @@ export default function(app) {
|
||||
near: post.number()
|
||||
});
|
||||
};
|
||||
|
||||
app.route.user = function(user) {
|
||||
return app.route('user', {
|
||||
username: user.username()
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user