Fix og:type for photos
This commit is contained in:
parent
5e1efca040
commit
a581c9cc3c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue