allow authenticated find_posts in danbooru api

This commit is contained in:
Shish 2009-11-10 03:54:03 +00:00
parent 7a46a9a962
commit 3dccde13d1

View File

@ -267,6 +267,7 @@ class DanbooruApi implements Extension
*/
if(($event->get_arg(1) == 'find_posts') || (($event->get_arg(1) == 'post') && ($event->get_arg(2) == 'index.xml')))
{
$this->authenticate_user();
if(isset($_GET['md5']))
{
$md5list = explode(",",$_GET['md5']);