forked from leftypol/leftypol
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Conflicts: templates/themes/catalog/catalog.html templates/themes/catalog/theme.php
This commit is contained in:
commit
855618b2a0
6 changed files with 184 additions and 2526 deletions
|
@ -40,9 +40,14 @@
|
|||
while ($post = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id']));
|
||||
$post['board_name'] = $board['name'];
|
||||
|
||||
if ($post['embed'] && preg_match('/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', $post['embed'], $matches)) {
|
||||
$post['youtube'] = $matches[2];
|
||||
}
|
||||
|
||||
if (isset($post['files']))
|
||||
$files = json_decode($post['files']);
|
||||
if ($files[0]->file == 'deleted') continue;
|
||||
if ($files[0]->file == 'deleted') continue;
|
||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||
|
||||
if ($settings['use_tooltipster']) {
|
||||
|
@ -52,7 +57,6 @@
|
|||
$post['last_reply_difference'] = ago(time() - $post['last_reply']);
|
||||
}
|
||||
|
||||
|
||||
$recent_posts[] = $post;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue