From a581c9cc3cf35d8a15d28ac981cf28307ee1ec8a Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 3 Dec 2023 01:13:09 +1100 Subject: [PATCH] Fix og:type for photos --- routes/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/status.cpp b/routes/status.cpp index 26aae22..e23d2bb 100644 --- a/routes/status.cpp +++ b/routes/status.cpp @@ -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;