Skip to content

Add OpenGraph image for social media previews - #519

Merged
leoisadev1 merged 1 commit into
mainfrom
copy-og-image
Jan 20, 2026
Merged

Add OpenGraph image for social media previews#519
leoisadev1 merged 1 commit into
mainfrom
copy-og-image

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Add custom OpenGraph image for better social media link previews across Twitter, Discord, Slack, and other platforms.

Changes:

  • Added 1920x1440 og-image.png to public assets
  • Updated og:image meta tag to use new image
  • Added og:image dimensions for proper rendering
  • Changed twitter:card to summary_large_image for larger previews

🤖 Generated with Claude Code

Replace logo512.png with custom og-image.png for better social media previews. Updated og:image, twitter:card to summary_large_image, and added image dimensions for proper rendering.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@railway-app

railway-app Bot commented Jan 19, 2026

Copy link
Copy Markdown

🚅 Deployed to the openchat-pr-519 environment in OpenChat

Service Status Web Updated (UTC)
web 😴 Sleeping (View Logs) Web Jan 19, 2026 at 9:20 pm

@railway-app
railway-app Bot temporarily deployed to OpenChat / openchat-pr-519 January 19, 2026 21:09 Destroyed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment Ready

Environment URL
Frontend https://web-openchat-pr-519.up.railway.app
Convex Dashboard Dashboard

Convex Preview Backend

  • Cloud URL: https://jovial-caiman-171.convex.cloud
  • Site URL: https://jovial-caiman-171.convex.site

🤖 Deployed automatically by GitHub Actions

@greptile-apps

greptile-apps Bot commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

  • Updates OpenGraph metadata to use a new custom social media image (og-image.png) instead of the existing logo, improving social media link previews
  • Changes Twitter card type from "summary" to "summary_large_image" for larger preview thumbnails on Twitter
  • Adds explicit image dimensions (1920x1440) to OpenGraph metadata for proper rendering across platforms

Important Files Changed

Filename Overview
apps/web/src/routes/__root.tsx Updated OpenGraph and Twitter meta tags to use new og-image.png with proper dimensions

Confidence score:4/5

  • This PR is safe to merge with minor risk due to a missing file reference
  • Score lowered by one point because the code references /og-image.png but this file is not included in the PR changes, which could result in broken image links on social media platforms
  • Pay close attention to verifying that og-image.png actually exists in the apps/web/public/ directory before merging

Issues identified:

  1. Missing file reference (Score: 4/5): The code now references /og-image.png but this file is not shown as added in the PR. This could lead to a 404error when social media platforms try to fetch the OpenGraph image, resulting in no preview image being displayed. The PR description mentions "Added 1920x1440 og-image.png to public assets" but the file is not visible in the changes.

Sequence Diagram

sequenceDiagram
    participant User
    participant Browser
    participant SocialPlatform as "Social Platform"
    participant OpenGraphScraper as "OG Scraper"
    participant WebServer as "Web Server"

    User->>SocialPlatform: "Shares OpenChat URL"
    SocialPlatform->>OpenGraphScraper: "Scrape link metadata"
    OpenGraphScraper->>WebServer: "GET / (fetch HTML)"
    WebServer->>OpenGraphScraper: "HTML with og:image meta tags"
    OpenGraphScraper->>WebServer: "GET /og-image.png"
    WebServer->>OpenGraphScraper: "1920x1440 PNG image"
    OpenGraphScraper->>SocialPlatform: "Metadata with image"
    SocialPlatform->>User: "Rich preview with OpenGraph image"
Loading

@leoisadev1
leoisadev1 merged commit 5744c66 into main Jan 20, 2026
5 checks passed
@leoisadev1
leoisadev1 deleted the copy-og-image branch January 20, 2026 02:27
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.

1 participant