mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix: support reporting remote content in Flag
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user