Browse Source

better slugify support for api

pull/40/head
czaks 9 years ago
parent
commit
5a9af83ba6
  1. 5
      inc/api.php

5
inc/api.php

@ -34,7 +34,6 @@ class Api {
'locked' => 'locked',
'bump' => 'last_modified',
'embed' => 'embed',
'slug' => 'semantic_url',
);
$this->threadsPageFields = array(
@ -117,6 +116,10 @@ class Api {
}
}
if ($config['slugify'] && !$post->thread) {
$apiPost['semantic_url'] = $post->slug;
}
// Handle files
// Note: 4chan only supports one file, so only the first file is taken into account for 4chan-compatible API.
if (isset($post->files) && $post->files && !$threadsPage) {

Loading…
Cancel
Save