require_once('include/redir.php');
-function videos_init(App &$a) {
+function videos_init(App $a) {
if($a->argc > 1)
auto_redir($a, $a->argv[1]);
-function videos_post(App &$a) {
+function videos_post(App $a) {
$owner_uid = $a->data['user']['uid'];
-function videos_content(App &$a) {
+function videos_content(App $a) {
// URLs (most aren't currently implemented):
// videos/name
$r = q("SELECT hash, `id`, `filename`, filetype FROM `attach`
WHERE `uid` = %d AND filetype LIKE '%%video%%'
- $sql_extra GROUP BY hash ORDER BY `created` DESC LIMIT %d , %d",
+ $sql_extra GROUP BY hash, `id` ORDER BY `created` DESC LIMIT %d , %d",
intval($a->data['user']['uid']),
intval($a->pager['start']),
intval($a->pager['itemspage'])