forked from leftypol/leftypol
Enable API flags for user_flag and country_flags
This commit is contained in:
parent
742390fb41
commit
e4d36ba86a
2 changed files with 1 additions and 2 deletions
|
@ -111,7 +111,7 @@ class Api {
|
|||
if ($threadsPage) return $apiPost;
|
||||
|
||||
// Handle country field
|
||||
if (isset($post->body_nomarkup) && $this->config['country_flags']) {
|
||||
if (isset($post->body_nomarkup) && ($this->config['country_flags'] || $this->config['user_flag'])) {
|
||||
$modifiers = extract_modifiers($post->body_nomarkup);
|
||||
if (isset($modifiers['flag']) && isset($modifiers['flag alt']) && preg_match('/^[1-9a-z_-]{2,}$/', $modifiers['flag'])) {
|
||||
$country = strtolower($modifiers['flag']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue