summaryrefslogtreecommitdiff
path: root/internal/api/model/tag.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-07-29 11:26:31 -0700
committerLibravatar GitHub <noreply@github.com>2024-07-29 19:26:31 +0100
commita237e2b295fee71bdf7266520b0b6e0fb79b565c (patch)
treec522adc47019584b60de9420595505820635bb11 /internal/api/model/tag.go
parent[bugfix] take into account rotation when generating thumbnail (#3147) (diff)
downloadgotosocial-a237e2b295fee71bdf7266520b0b6e0fb79b565c.tar.xz
[feature] Implement following hashtags (#3141)
* Implement followed tags API * Insert statuses with followed tags into home timelines * Test following and unfollowing tags * Correct Swagger path params * Trim conversation caches * Migration for followed_tags table * Followed tag caches and DB implementation * Lint and tests * Add missing tag info endpoint, reorganize tag API * Unwrap boosts when timelining based on tags * Apply visibility filters to tag followers * Address review comments
Diffstat (limited to 'internal/api/model/tag.go')
-rw-r--r--internal/api/model/tag.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/model/tag.go b/internal/api/model/tag.go
index ebc12e2d4..4f81bac6f 100644
--- a/internal/api/model/tag.go
+++ b/internal/api/model/tag.go
@@ -31,4 +31,7 @@ type Tag struct {
// Currently just a stub, if provided will always be an empty array.
// example: []
History *[]any `json:"history,omitempty"`
+ // Following is true if the user is following this tag, false if they're not,
+ // and not present if there is no currently authenticated user.
+ Following *bool `json:"following,omitempty"`
}