mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: more logs
This commit is contained in:
@@ -191,12 +191,19 @@ Actors.assert = async (ids, options = {}) => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('any errors?', e.message);
|
console.log('any errors?', e.message);
|
||||||
if (e.code === 'ap_get_410') {
|
if (e.code === 'ap_get_410') {
|
||||||
|
console.log('ap_get_410 1', id);
|
||||||
|
|
||||||
const exists = await user.exists(id);
|
const exists = await user.exists(id);
|
||||||
|
console.log('ap_get_410 2 exists', exists);
|
||||||
if (exists) {
|
if (exists) {
|
||||||
try {
|
try {
|
||||||
|
console.log('ap_get_410 3', id);
|
||||||
await user.deleteAccount(id);
|
await user.deleteAccount(id);
|
||||||
|
console.log('ap_get_410 4', id);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log('ap_get_410 5', id, e.message);
|
||||||
await activitypub.actors.remove(id);
|
await activitypub.actors.remove(id);
|
||||||
|
console.log('ap_get_410 6', id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user