summaryrefslogtreecommitdiff
path: root/cli_util.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli_util.php')
-rwxr-xr-xcli_util.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli_util.php b/cli_util.php
index 97885ff..0c42bb5 100755
--- a/cli_util.php
+++ b/cli_util.php
@@ -57,6 +57,14 @@ function posts_html(): void {
}
}
+function posts_images(): void {
+ $kw = ['include_hidden' => true];
+ $posts = posts::getPosts(0, posts::getPostsCount(...$kw), ...$kw);
+ foreach ($posts as $p) {
+ $p->updateImagePreviews(true);
+ }
+}
+
function pages_html(): void {
$pages = pages::getAll();
foreach ($pages as $p) {