diff --git a/dump.rdb b/dump.rdb index beaa2cf96e..3a5d383c59 100644 Binary files a/dump.rdb and b/dump.rdb differ diff --git a/nodebb-theme-slackers/templates/partials/topic/post-menu-list.tpl b/nodebb-theme-slackers/templates/partials/topic/post-menu-list.tpl index ceb32ca8a1..655bc7dfac 100644 --- a/nodebb-theme-slackers/templates/partials/topic/post-menu-list.tpl +++ b/nodebb-theme-slackers/templates/partials/topic/post-menu-list.tpl @@ -36,7 +36,8 @@ Verify Message -{{{ else }}} +{{{ end }}} +{{{ if posts.verify }}}
  • Un-Verify Message diff --git a/test/posts.js b/test/posts.js index 063c341b96..501a9f0eed 100644 --- a/test/posts.js +++ b/test/posts.js @@ -289,6 +289,14 @@ describe('Post\'s', () => { }); }); + describe('unverifying', async () => { + it('should mark post unverified', async () => { + await apiPosts.unverify({ uid: voterUid }, { pid: postData.pid, room_id: `topic_${postData.tid}` }); + const isVerified = await posts.getPostField(postData.pid, 'verify'); + assert.strictEqual(isVerified, 0); + }); + }); + describe('answering', async () => { it('should mark post answered', async () => { const data = await apiPosts.answer({ uid: voterUid }, { pid: postData.pid, room_id: `topic_${postData.tid}` });