mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +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 posts = await Promise.all(objects.map(async (object) => {
|
||||||
const acceptedTypes = ['Note', 'Page', 'Article'];
|
const acceptedTypes = ['Note', 'Page', 'Article', 'Question'];
|
||||||
if (!acceptedTypes.includes(object.type)) {
|
if (!acceptedTypes.includes(object.type)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user