mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
FIX: Show same username or name for post notices. (#7862)
This commit is contained in:
@ -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", {
|
||||
|
Reference in New Issue
Block a user