From 2664a849748d8d1f44c9ccd23ab6429e5e8a8940 Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 28 Dec 2013 22:24:54 +0100 Subject: [PATCH] 4chan api: add missing `tim` field --- inc/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/api.php b/inc/api.php index 4053d055..55272e0d 100644 --- a/inc/api.php +++ b/inc/api.php @@ -90,6 +90,8 @@ class Api { $dotPos = strrpos($post->filename, '.'); $apiPost['filename'] = substr($post->filename, 0, $dotPos); $apiPost['ext'] = substr($post->filename, $dotPos); + $dotPos = strrpos($post->file, '.'); + $apiPost['tim'] = substr($post->file, 0, $dotPos); } // Handle country field