codu-code / codu

Codú's open-source codebase. A space for coders. Visit our community!
https://codu.co/
Apache License 2.0
140 stars 146 forks source link

Fix Twitter( X.com ) card previews not displaying correctly when sharing links. #1041

Closed John-Paul-Larkin closed 1 month ago

John-Paul-Larkin commented 1 month ago

Context

When sharing an article link from codu.co on x.com, the preview image does not appear in the card. Instead, a placeholder for an image is shown. This issue seems to be related to the Open Graph (OG) metadata tags on the website, which might not be set up properly or are being misread.

Expected Behavior

The social media post should display the relevant image from the Open Graph metadata on the article page.

Screenshots

Screenshot 2024-09-28 at 15 18 18

Additional info

Verify that the correct Open Graph tags, particularly og:image, are set in the HTML of the page. Ensure that the image being referenced is publicly accessible and the URL is correct.

Sidopolis commented 1 month ago

Hi @John-Paul-Larkin I would like to work on this issue

John-Paul-Larkin commented 1 month ago

Awesome Sidopolis. I have assigned you.

John-Paul-Larkin commented 1 month ago

Hi @Sidopolis How are you getting on with this? Or will I reopen the issue for someone else?

Sidopolis commented 1 month ago

Sir you can give to someone else

Due to my semester exams

MichaelMoyles commented 1 month ago

Hi @John-Paul-Larkin, I would like to work on this issue

John-Paul-Larkin commented 1 month ago

Thanks @MichaelMoyles I assigned you