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:
parent
f1ea7843a7
commit
1d5de49b48
5 changed files with 185 additions and 17 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue