diff options
author | 2025-01-31 19:27:18 +0100 | |
---|---|---|
committer | 2025-01-31 19:27:18 +0100 | |
commit | a55bd6d2bd7b11aed653f4614836caed4103bec3 (patch) | |
tree | 40ddcac7b495307d3c08c482455f88e3598952b6 /internal/api/model/instancev1.go | |
parent | [chore] Add "object" uri to outgoing Accept + Reject messages (#3717) (diff) | |
download | gotosocial-a55bd6d2bd7b11aed653f4614836caed4103bec3.tar.xz |
[feature] Add `instance-stats-randomize` config option (#3718)
* [feature] Add `instance-stats-randomize` config option
* don't use cache (overkill)
Diffstat (limited to 'internal/api/model/instancev1.go')
-rw-r--r-- | internal/api/model/instancev1.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/api/model/instancev1.go b/internal/api/model/instancev1.go index 6dedd04cc..57e32c80a 100644 --- a/internal/api/model/instancev1.go +++ b/internal/api/model/instancev1.go @@ -110,6 +110,13 @@ type InstanceV1 struct { Terms string `json:"terms,omitempty"` // Raw (unparsed) version of terms. TermsRaw string `json:"terms_text,omitempty"` + + // Random stats generated for the instance. + // Only used if `instance-stats-randomize` is true. + // Not serialized to the frontend. + // + // swagger:ignore + RandomStats `json:"-"` } // InstanceV1URLs models instance-relevant URLs for client application consumption. |