FIX: Show same username or name for post notices. (#7862)

This commit is contained in:
Bianca Nenciu
2019-07-19 11:05:48 +03:00
committed by GitHub
parent eb9155f3fe
commit 9f500a4ff4
6 changed files with 19 additions and 16 deletions

View File

@ -875,6 +875,7 @@ widgetTest("post notice - with username", {
beforeEach() {
const twoDaysAgo = new Date();
twoDaysAgo.setDate(twoDaysAgo.getDate() - 2);
this.siteSettings.display_name_on_posts = false;
this.siteSettings.prioritize_username_in_ux = true;
this.siteSettings.old_post_notice_days = 14;
this.set("args", {
@ -901,6 +902,7 @@ widgetTest("post notice - with username", {
widgetTest("post notice - with name", {
template: '{{mount-widget widget="post" args=args}}',
beforeEach() {
this.siteSettings.display_name_on_posts = true;
this.siteSettings.prioritize_username_in_ux = false;
this.siteSettings.old_post_notice_days = 14;
this.set("args", {