From 3545626950a03f662a16ff3c1b589f2901c9948e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 12 Oct 2015 19:49:06 -0700 Subject: attach_list_files had some problems - wasn't used until now apparently --- include/api.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/api.php') diff --git a/include/api.php b/include/api.php index 027779558..8d50e8eea 100644 --- a/include/api.php +++ b/include/api.php @@ -8,6 +8,7 @@ require_once("html2plain.php"); require_once('include/security.php'); require_once('include/photos.php'); require_once('include/items.php'); +require_once('include/attach.php'); /* * @@ -619,6 +620,13 @@ require_once('include/items.php'); } api_register_func('api/red/channel/stream','api_channel_stream', true); + function api_attach_list(&$a,$type) { + logger('api_user: ' . api_user()); + json_return_and_die(attach_list_files(api_user(),get_observer_hash())); + } + api_register_func('api/red/files','api_attach_list', true); + + function api_albums(&$a,$type) { json_return_and_die(photos_albums_list($a->get_channel(),$a->get_observer())); -- cgit v1.2.3