|
|
@@ -778,8 +778,11 @@ post('/add/content', function () {
|
|
|
$field[$af->name] = from($_REQUEST, $af->name);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+ // The "AI was used" flag. Unchecked means empty, so no tag is written.
|
|
|
+ $field['ai'] = from($_REQUEST, 'ai') ? 'yes' : '';
|
|
|
+
|
|
|
$is_image = from($_REQUEST, 'is_image');
|
|
|
$is_audio = from($_REQUEST, 'is_audio');
|
|
|
$is_video = from($_REQUEST, 'is_video');
|
|
|
@@ -1057,7 +1060,12 @@ post('/admin/autosave', function () {
|
|
|
$field[$af->name] = from($_REQUEST, $af->name);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ // The "AI was used" flag. Unchecked means empty, so no tag is written.
|
|
|
+ if ($posttype == 'is_post') {
|
|
|
+ $field['ai'] = from($_REQUEST, 'ai') ? 'yes' : '';
|
|
|
+ }
|
|
|
|
|
|
if (empty($url)) {
|
|
|
$url = $title;
|
|
|
@@ -4301,7 +4309,10 @@ post('/'. permalink_type() .'/:name/edit', function () {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ // The "AI was used" flag. Unchecked means empty, so no tag is written.
|
|
|
+ $field['ai'] = from($_REQUEST, 'ai') ? 'yes' : '';
|
|
|
+
|
|
|
$proper = is_csrf_proper(from($_REQUEST, 'csrf_token'));
|
|
|
$title = from($_REQUEST, 'title');
|
|
|
$is_post = from($_REQUEST, 'is_post');
|
|
|
@@ -5575,7 +5586,10 @@ post('/:year/:month/:name/edit', function () {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ // The "AI was used" flag. Unchecked means empty, so no tag is written.
|
|
|
+ $field['ai'] = from($_REQUEST, 'ai') ? 'yes' : '';
|
|
|
+
|
|
|
$proper = is_csrf_proper(from($_REQUEST, 'csrf_token'));
|
|
|
$title = from($_REQUEST, 'title');
|
|
|
$is_post = from($_REQUEST, 'is_post');
|