1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 18:26:07 +02:00

Rename post.hideUser

This commit is contained in:
Toby Zerner
2018-08-24 21:30:06 +09:30
parent 8248ba2f7a
commit ca93c8c609
7 changed files with 9 additions and 9 deletions

View File

@@ -123,7 +123,7 @@ export default {
* @return {Promise}
*/
hideAction() {
this.pushAttributes({ hiddenAt: new Date(), hideUser: app.session.user });
this.pushAttributes({ hiddenAt: new Date(), hiddenUser: app.session.user });
return this.save({ isHidden: true }).then(() => m.redraw());
},
@@ -134,7 +134,7 @@ export default {
* @return {Promise}
*/
restoreAction() {
this.pushAttributes({ hiddenAt: null, hideUser: null });
this.pushAttributes({ hiddenAt: null, hiddenUser: null });
return this.save({ isHidden: false }).then(() => m.redraw());
},