From abef6e5c35bcabab3586310ee7333c0c891d119b Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 29 May 2016 12:38:47 +0200 Subject: [PATCH] server/info: return who featured the post and when --- API.md | 8 ++++++-- server/szurubooru/api/info_api.py | 10 +++++++--- server/szurubooru/func/posts.py | 7 +++++-- server/szurubooru/tests/api/test_info.py | 6 ++++++ 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/API.md b/API.md index 79c67ab3..ab7a9b41 100644 --- a/API.md +++ b/API.md @@ -858,7 +858,9 @@ data. Retrieves the post that is currently featured on the main page in web client. If no post is featured, `` is null and `snapshots` array is - empty. + empty. Note that this method exists mostly for compatibility with setting + featured post - most of times, you'd want to use query global info which + contains more information. ## Featuring post - **Request** @@ -1351,7 +1353,9 @@ data. { "postCount": , "diskUsage": , // in bytes - "featuredPost": + "featuredPost": , + "featuringTime":