diff options
author | 2022-11-03 13:15:31 +0100 | |
---|---|---|
committer | 2022-11-03 13:15:31 +0100 | |
commit | f3fc040c2effd85afa91d94bd409fa016980056e (patch) | |
tree | 7e9c1f407183728c44fa18fa282215d640aa9d2e /internal/config/helpers.gen.go | |
parent | [frontend] change bundler to skulk (#942) (diff) | |
download | gotosocial-f3fc040c2effd85afa91d94bd409fa016980056e.tar.xz |
[feature] Allow user to show instead of landing page on / (#922)
* configurable user instead of landing page
* rename DefaultUser to LandingPageUser
* code review changes and fix tests
* try to fix pipeline error
* code review changes
* code review changes
* code review changes
* remove unnecessary line
Diffstat (limited to 'internal/config/helpers.gen.go')
-rw-r--r-- | internal/config/helpers.gen.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/config/helpers.gen.go b/internal/config/helpers.gen.go index 71f96920f..f42593a54 100644 --- a/internal/config/helpers.gen.go +++ b/internal/config/helpers.gen.go @@ -1794,3 +1794,29 @@ func GetAdvancedCookiesSamesite() string { return global.GetAdvancedCookiesSames // SetAdvancedCookiesSamesite safely sets the value for global configuration 'AdvancedCookiesSamesite' field func SetAdvancedCookiesSamesite(v string) { global.SetAdvancedCookiesSamesite(v) } + +// GetLandingPageUser safely fetches the Configuration value for state's 'LandingPageUser' field +func (st *ConfigState) GetLandingPageUser() (v string) { + st.mutex.Lock() + v = st.config.LandingPageUser + st.mutex.Unlock() + return +} + +// SetLandingPageUser safely sets the Configuration value for state's 'LandingPageUser' field +func (st *ConfigState) SetLandingPageUser(v string) { + st.mutex.Lock() + defer st.mutex.Unlock() + st.config.LandingPageUser = v + st.reloadToViper() +} + +// LandingPageUserFlag returns the flag name for the 'LandingPageUser' field +func LandingPageUserFlag() string { return "landing-page-user" } + +// GetLandingPageUser safely fetches the value for global configuration 'LandingPageUser' field +func GetLandingPageUser() string { return global.GetLandingPageUser() } + +// SetLandingPageUser safely sets the value for global configuration 'LandingPageUser' field +func SetLandingPageUser(v string) { global.SetLandingPageUser(v) } + |