Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OGPが存在しないページのOGP取得に対して、typeがemptyのOGP情報をStatusOKで返すように #1833

Merged
merged 2 commits into from
Jun 15, 2023

Conversation

logica0419
Copy link
Member

@logica0419 logica0419 commented Jun 3, 2023

fix #1443
swaggerもそれに合わせて更新した

traPtitech/traQ_S-UI#3994 と同時に適用する必要がある

Comment on lines +36 to +38
return c.JSON(http.StatusOK, model.Ogp{
Type: "empty",
})
Copy link
Member

Choose a reason for hiding this comment

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

[memo] 他のフィールドも空の値が入るがスキーマ通り
その方が楽そうかな

Copy link
Member Author

Choose a reason for hiding this comment

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

どうせクライアントで処理なので、わざわざ別スキーマ用意するまでもない気がしてます

@logica0419 logica0419 merged commit 83a9afe into master Jun 15, 2023
10 checks passed
@logica0419 logica0419 deleted the fix/ogp-empty-404 branch June 15, 2023 10:37
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.

OGPの読み込みで404が多発する
2 participants