mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: parse questions like a post
This commit is contained in:
@@ -77,7 +77,7 @@ Mocks.post = async (objects) => {
|
||||
}
|
||||
|
||||
const posts = await Promise.all(objects.map(async (object) => {
|
||||
const acceptedTypes = ['Note', 'Page', 'Article'];
|
||||
const acceptedTypes = ['Note', 'Page', 'Article', 'Question'];
|
||||
if (!acceptedTypes.includes(object.type)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user