mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
new users: do not show bailey news (#12693)
This commit is contained in:
@@ -12,6 +12,9 @@ import {
|
||||
import {
|
||||
model as Tag,
|
||||
} from '../tag';
|
||||
import {
|
||||
model as NewsPost,
|
||||
} from '../newsPost';
|
||||
import { // eslint-disable-line import/no-cycle
|
||||
userActivityWebhook,
|
||||
} from '../../libs/webhook';
|
||||
@@ -129,6 +132,12 @@ function pinBaseItems (user) {
|
||||
}
|
||||
|
||||
function _setUpNewUser (user) {
|
||||
// Mark the last news post as read
|
||||
const lastNewsPost = NewsPost.lastNewsPost();
|
||||
if (lastNewsPost) {
|
||||
user.flags.lastNewStuffRead = lastNewsPost._id;
|
||||
}
|
||||
|
||||
let taskTypes;
|
||||
const iterableFlags = user.flags.toObject();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user