From 53a2e84af1ef1f35d835ef439260157038c70a46 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 15 May 2025 01:44:01 +0500 Subject: feat: tags --- src/emote.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/emote.php') diff --git a/src/emote.php b/src/emote.php index 8e7da38..ce3b930 100644 --- a/src/emote.php +++ b/src/emote.php @@ -12,7 +12,9 @@ class Emote public string|null $source; - function __construct($id, $code, $ext, $created_at, $uploaded_by, $is_in_user_set, $rating, $visibility, $source) + public array $tags; + + function __construct($id, $code, $ext, $created_at, $uploaded_by, $is_in_user_set, $rating, $visibility, $source, $tags) { $this->id = $id; $this->code = $code; @@ -23,6 +25,7 @@ class Emote $this->rating = $rating; $this->visibility = $visibility; $this->source = $source; + $this->tags = $tags; } function get_id() @@ -69,6 +72,11 @@ class Emote { return $this->source; } + + function get_tags(): array + { + return $this->tags; + } } function html_random_emote(PDO &$db) -- cgit v1.2.3