From e466466e04c6d80c7595a96fff011d1309ee3bec Mon Sep 17 00:00:00 2001 From: tianyi Date: Tue, 30 Apr 2024 06:16:22 +0000 Subject: [PATCH] added cdn url to metadata api --- backend/randpic/random_picture.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/randpic/random_picture.py b/backend/randpic/random_picture.py index 35aca28..9d4d7ed 100644 --- a/backend/randpic/random_picture.py +++ b/backend/randpic/random_picture.py @@ -9,6 +9,7 @@ def get_random_picture_url(): def get_random_picture_meta(): return { "name":pics[0].name, + "url":"https://cdn.clf3.org/tianyi-random/"+pics[0].name+".webp", "description":pics[0].description, "author":pics[0].author, "author_url":pics[0].author_url,