From 637690e476ed45eb1e3f7a332aff8829db362782 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 14 Aug 2026 09:29:59 -0500 Subject: [PATCH] Fix TikTok verify file path outside gitignored data dir Co-authored-by: Cursor --- backend/app/main.py | 2 +- .../tiktok_verify/tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 backend/tiktok_verify/tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt diff --git a/backend/app/main.py b/backend/app/main.py index fe948a0..a74167f 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -887,7 +887,7 @@ async def tiktok_url_prefix_verify_file() -> FileResponse: """TikTok URL prefix ownership verification.""" from pathlib import Path - path = Path(__file__).resolve().parent.parent / "data" / "tiktok_verify" / "tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt" + path = Path(__file__).resolve().parent.parent / "tiktok_verify" / "tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt" if not path.is_file(): raise HTTPException(404, "verification file missing") return FileResponse(path, media_type="text/plain") diff --git a/backend/tiktok_verify/tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt b/backend/tiktok_verify/tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt new file mode 100644 index 0000000..213ecd1 --- /dev/null +++ b/backend/tiktok_verify/tiktokSac63LUYsqRR1brRHZ2v2hw9x0RjXR9L.txt @@ -0,0 +1 @@ +tiktok-developers-site-verification=Sac63LUYsqRR1brRHZ2v2hw9x0RjXR9L