fix(linked-doc): add feedback + cb error when href cannot be parsed

This commit is contained in:
Fabrice Mouhartem 2026-08-14 12:23:44 +02:00
parent c1b8f87e02
commit 4cf1b68830
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -674,7 +674,10 @@ const factory = (Sortify, UserObject, ProxyManager,
let l = pws.length;
const parsed = Hash.parsePadUrl(href);
if (!parsed?.hash) { return cb(); } // We cannot fixed it anyhow
if (!parsed?.hash) { // href is not parsable
Feedback.send(`ADD_MISSING_LINKED_DATA_PARSE_HREF:${href}`, true);
return cb('E_LINKED_PARSE_HREF');
}
const check = password => {
opts.password = password;
Cryptget.get(parsed.hash, (err, contentStr) => {

File diff suppressed because one or more lines are too long