Skip to content

feat(import): opt-in auto-categorization after import#24

Closed
rafaelreis-r wants to merge 1 commit intoviperrcrypto:mainfrom
rafaelreis-r:pr/auto-categorize-on-import
Closed

feat(import): opt-in auto-categorization after import#24
rafaelreis-r wants to merge 1 commit intoviperrcrypto:mainfrom
rafaelreis-r:pr/auto-categorize-on-import

Conversation

@rafaelreis-r
Copy link
Copy Markdown
Contributor

Adds a fire-and-forget call to POST /api/categorize after a successful Twitter/X import.

Controlled by an environment variable so users can opt in:

AUTO_CATEGORIZE_AFTER_IMPORT=true

Off by default. Documented in .env.example.

viperrcrypto added a commit that referenced this pull request Apr 8, 2026
Based on PR #24 by rafaelreis-r, fixed:
- Use request.nextUrl.origin instead of hardcoded localhost:3000
- Works on any port and in deployed environments

Set AUTO_CATEGORIZE_AFTER_IMPORT=true to enable.

Co-Authored-By: rafaelreis-r <57492577+rafaelreis-r@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@viperrcrypto
Copy link
Copy Markdown
Owner

Superseded by #70 which fixes the hardcoded localhost:3000 by using request.nextUrl.origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants