From 5f3323529b4d4f4bcb0fca1eedacfd416af567fa Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 7 Oct 2022 11:02:41 -0700 Subject: [PATCH] Fix tags response typing --- lib/Db/TimelineQueryTags.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Db/TimelineQueryTags.php b/lib/Db/TimelineQueryTags.php index abe0a529..0990455c 100644 --- a/lib/Db/TimelineQueryTags.php +++ b/lib/Db/TimelineQueryTags.php @@ -58,6 +58,12 @@ trait TimelineQueryTags { // FETCH all tags $tags = $query->executeQuery()->fetchAll(); + + // Post process + foreach($tags as &$row) { + $row["count"] = intval($row["count"]); + } + return $tags; } } \ No newline at end of file