Skip to content

[#631] Replace direct Neynar calls with DB-first lookup#647

Merged
realproject7 merged 1 commit intomainfrom
task/631-neynar-db-first
Mar 30, 2026
Merged

[#631] Replace direct Neynar calls with DB-first lookup#647
realproject7 merged 1 commit intomainfrom
task/631-neynar-db-first

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • WriterIdentity.tsx: Replaced lookupByAddress() with getFarcasterProfile() which checks DB cache before hitting external APIs.
  • OG image route: Same replacement — avoids unnecessary paid Neynar API calls when profile data is already in DB.

Fixes #631
Tracks realproject7/agent-os#310

Test plan

  • Writer identity still resolves correctly on story pages
  • OG image route (/story/<id>/og) still renders author name
  • No direct lookupByAddress imports remain in components (only in lib/ and API routes)
  • Build passes

🤖 Generated with Claude Code

WriterIdentity.tsx and OG image route were calling lookupByAddress()
directly, bypassing the DB cache and hitting paid Neynar API every time.
Now uses getFarcasterProfile() which checks DB first.

Fixes #631

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 30, 2026 6:27pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR cleanly replaces the two remaining component-level direct lookupByAddress() call sites with the DB-first getFarcasterProfile() wrapper and stays within the requested scope.

Findings

  • None.

Decision

Approving on code review. The lookup path change matches the issue requirements and no additional component-level direct lookupByAddress usage remains under src/.

@realproject7 realproject7 merged commit 56cab5e into main Mar 30, 2026
5 checks passed
@realproject7 realproject7 deleted the task/631-neynar-db-first branch March 30, 2026 18:30
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.

Replace direct Neynar calls with DB-first lookup in WriterIdentity and OG image

2 participants