fix: support reporting remote content in Flag

This commit is contained in:
Opliko
2024-04-14 02:42:30 +02:00
parent a1a7fb77da
commit 026449dc4a
4 changed files with 20 additions and 4 deletions

View File

@@ -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;
}