summaryrefslogtreecommitdiff
path: root/lib/posts.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
commitc2f382aba86aaebb9806ff1b43c1af69992e9a10 (patch)
treeaee205721fd675926c5e7163eec0dddc448f7813 /lib/posts.php
parent24982a48f570b89e537850dda4a4d1ac33ea919f (diff)
support dark mode for images with alpha channel
Diffstat (limited to 'lib/posts.php')
-rw-r--r--lib/posts.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/posts.php b/lib/posts.php
index bf8d149..1537749 100644
--- a/lib/posts.php
+++ b/lib/posts.php
@@ -23,6 +23,9 @@ class posts {
return (int)$db->result($db->query($sql, $tag_id));
}
+ /**
+ * @return Post[]
+ */
public static function getPosts(int $offset = 0, int $count = -1, bool $include_hidden = false): array {
$db = getDb();
$sql = "SELECT * FROM posts";