@anthusai/papyrus 5.41.7 → 5.41.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,7 +138,10 @@ export function EmailSubmissions({ items, detail, onOpen, onResolveArticleLink,
|
|
|
138
138
|
const result = await onResolveArticleLink(requestReceiptId, index);
|
|
139
139
|
if (!isCurrentEmailSubmissionAction(activeReceiptId.current, requestReceiptId)) return;
|
|
140
140
|
if (!("url" in result)) {
|
|
141
|
-
|
|
141
|
+
const reason = "reason" in result && typeof result.reason === "string"
|
|
142
|
+
&& /^(?:redirect_[a-z_]+|resolution_record_invalid|resolution_not_recorded)$/.test(result.reason)
|
|
143
|
+
? ` (${result.reason})` : "";
|
|
144
|
+
setNoticeByReceipt((current) => ({ ...current, [requestReceiptId]: `The article destination could not be resolved safely${reason}. The original link remains private and unchanged.` }));
|
|
142
145
|
return;
|
|
143
146
|
}
|
|
144
147
|
const candidate = detail && "submission" in detail ? detail.candidateLinks[index] : null;
|
package/package.json
CHANGED
package/routes.manifest.json
CHANGED