[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URL

未关闭 适合新手
#378 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@CreatorguyS 已经在做这个了。

开始于 2026年10月31日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend

调研方向

从src/components/preview/FixItButton.tsx开始,追踪 Preview Checker 如何获取检测到的图片 URL 并将其传递给元数据生成器。检查页面有og:image和没有og:image时生成的标签;完成的标准是复制的元数据不再包含不可用的占位符YOUR_IMAGE_URL,且其图片值符合 issue 预期的行为。

由索引模型根据 Issue 内容生成。

描述

bug enhancement

Describe the bug

The Copy Recommended Meta Tags action generates an unusable placeholder image URL instead of a real image URL.

To Reproduce

  1. Open the Preview Checker.
  2. Analyze any webpage.
  3. Scroll to the Create a Better OG Image section.
  4. Click Copy Recommended Meta Tags.
  5. Paste the copied tags into a text editor.

Expected behavior

The copied tags should contain a usable image URL, such as the detected Open Graph image or a generated OGCOPS image URL.

Actual behavior

The copied tags contain the literal placeholder:

<meta property="og:image" content="YOUR_IMAGE_URL" />

Using this metadata directly will not generate a valid social preview.

Screenshots

Not applicable. A screenshot of the copied metadata may be added if available.

Environment

  • Browser: Chrome
  • OS: Windows 11
  • Node version: 22.x
  • npm version: 10.x
  • URL: Local Preview Checker or the relevant preview page URL

Additional context

In src/components/preview/FixItButton.tsx, the metadata generator is called with:

imageUrl: 'YOUR_IMAGE_URL'

The feature should use the detected og:image, generate an OGCOPS image URL, or clearly indicate that the placeholder must be replaced before use.

主要语言
TypeScript
星标
8
派生
4
平均合并
8 小时 44 分钟
30 天内合并 PR
158

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codercops/ogcops 的其他 Issue

查看 codercops/ogcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。