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

@@ -177,6 +177,20 @@ Helpers.resolveActivity = async (activity, data, id, resolved) => {
}
};
Helpers.mapToLocalType = (type) => {
if (type === 'Person') {
return 'user';
}
if (type === 'Group') {
return 'category';
}
if (type === 'Hashtag') {
return 'tag';
}
if (activitypub._constants.acceptedPostTypes.includes(type)) {
return 'post';
}
};
Helpers.resolveObjects = async (ids) => {
if (!Array.isArray(ids)) {