mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-31 20:00:07 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -202,6 +202,13 @@ Mocks.post = async (objects) => {
|
||||
image = null;
|
||||
}
|
||||
}
|
||||
if (image) {
|
||||
const parsed = new URL(image);
|
||||
if (!mime.getType(parsed.pathname).startsWith('image/')) {
|
||||
activitypub.helpers.log(`[activitypub/mocks.post] Received image not identified as image due to MIME type: ${image}`);
|
||||
image = null;
|
||||
}
|
||||
}
|
||||
|
||||
const payload = {
|
||||
uid,
|
||||
|
||||
Reference in New Issue
Block a user