Add URL detection to inbox processing service (#942)

* fixup! Fix date format inconsistency in Defer Until field

* fixup! fixup! Fix date format inconsistency in Defer Until field

* fixup! fixup! fixup! Fix date format inconsistency in Defer Until field
This commit is contained in:
Chris 2026-03-14 08:43:41 +02:00 committed by GitHub
parent f1ea7843a7
commit 1d5de49b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 185 additions and 17 deletions

View file

@ -289,6 +289,11 @@ const generateSuggestion = (content, tags, projects, cleanedContent) => {
const textStartsWithVerb = startsWithVerb(cleanedContent);
const hasUrl = containsUrl(content);
// Detect URLs even without a project (for bookmark tag display)
if (hasUrl && !hasProject) {
return { type: null, reason: 'url_detected' };
}
if (!hasProject) {
return { type: null, reason: null };
}