summaryrefslogtreecommitdiff
path: root/src/emote.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/emote.php')
-rw-r--r--src/emote.php10
1 files changed, 9 insertions, 1 deletions
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)