From d187f1eee9651aae96334fcb9cadc71f52e09b03 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Mon, 19 Aug 2024 23:17:33 +0800 Subject: [PATCH] add simple filter. --- Server/Application.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Server/Application.cpp b/Server/Application.cpp index c7ad7a1..177e1e3 100644 --- a/Server/Application.cpp +++ b/Server/Application.cpp @@ -129,9 +129,8 @@ Application::Application(const std::string &path) if (root.contains("url")) { url = root["url"].as_string(); } - auto database = Amass::Singleton::instance(); - if (std::filesystem::exists("amass_blog" + url)) { + if (std::filesystem::exists("amass_blog" + url) && url.find("/我的博客/page") != 0) { std::string visitorUuid; if (root.contains("visitor_uuid")) { visitorUuid = root["visitor_uuid"].as_string();