From 4b0eefbcc9c30f1f34092be89a83936ab9ca04ed Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:28:09 +0100 Subject: [chore] Increase default max image description to 1500 chars, collapse cw char count into status (#2682) * [chore] Make default max image description 1500 chars, collapse cw char count into status * oops * tests --- internal/config/helpers.gen.go | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'internal/config/helpers.gen.go') diff --git a/internal/config/helpers.gen.go b/internal/config/helpers.gen.go index 72b2a7fd9..0379a541b 100644 --- a/internal/config/helpers.gen.go +++ b/internal/config/helpers.gen.go @@ -1525,31 +1525,6 @@ func GetStatusesMaxChars() int { return global.GetStatusesMaxChars() } // SetStatusesMaxChars safely sets the value for global configuration 'StatusesMaxChars' field func SetStatusesMaxChars(v int) { global.SetStatusesMaxChars(v) } -// GetStatusesCWMaxChars safely fetches the Configuration value for state's 'StatusesCWMaxChars' field -func (st *ConfigState) GetStatusesCWMaxChars() (v int) { - st.mutex.RLock() - v = st.config.StatusesCWMaxChars - st.mutex.RUnlock() - return -} - -// SetStatusesCWMaxChars safely sets the Configuration value for state's 'StatusesCWMaxChars' field -func (st *ConfigState) SetStatusesCWMaxChars(v int) { - st.mutex.Lock() - defer st.mutex.Unlock() - st.config.StatusesCWMaxChars = v - st.reloadToViper() -} - -// StatusesCWMaxCharsFlag returns the flag name for the 'StatusesCWMaxChars' field -func StatusesCWMaxCharsFlag() string { return "statuses-cw-max-chars" } - -// GetStatusesCWMaxChars safely fetches the value for global configuration 'StatusesCWMaxChars' field -func GetStatusesCWMaxChars() int { return global.GetStatusesCWMaxChars() } - -// SetStatusesCWMaxChars safely sets the value for global configuration 'StatusesCWMaxChars' field -func SetStatusesCWMaxChars(v int) { global.SetStatusesCWMaxChars(v) } - // GetStatusesPollMaxOptions safely fetches the Configuration value for state's 'StatusesPollMaxOptions' field func (st *ConfigState) GetStatusesPollMaxOptions() (v int) { st.mutex.RLock() -- cgit v1.2.3