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/instancev2.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/instancev2.go')
-rw-r--r-- | internal/api/model/instancev2.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go index b3d11dee2..96399ea06 100644 --- a/internal/api/model/instancev2.go +++ b/internal/api/model/instancev2.go @@ -74,6 +74,13 @@ type InstanceV2 struct { Terms string `json:"terms,omitempty"` // Raw (unparsed) version of terms. TermsText 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:"-"` } // Usage data for this instance. |