mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
fix: support reporting remote content in Flag
This commit is contained in:
@@ -78,8 +78,7 @@ Mocks.post = async (objects) => {
|
||||
}
|
||||
|
||||
const posts = await Promise.all(objects.map(async (object) => {
|
||||
const acceptedTypes = ['Note', 'Page', 'Article', 'Question'];
|
||||
if (!acceptedTypes.includes(object.type)) {
|
||||
if (!activitypub._constants.acceptedPostTypes.includes(object.type)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user