Fix og:type for photos

This commit is contained in:
blankie 2023-12-03 01:13:09 +11:00
parent 5e1efca040
commit a581c9cc3c
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ static inline Nodes generate_ogp_nodes(const httplib::Request& req, const Post&
const char* type = !post.sensitive && has_video
? "video"
: !post.sensitive && has_image ? "image" : "article";
: !post.sensitive && has_image ? "photo" : "article";
nodes.push_back(Element("meta", {{"property", "og:type"}, {"content", type}}, {}));
return nodes;