Hi Robert! I have changed both files from PR you mentioned.
- discourse/app/models/user_option.rb
- when 7 then “following”
- discourse/app/controllers/preferences/interface.js
- Changing USER_HOMES constant adding “following”
- Changing USER_HOMES constant adding “following”
Didn’t workout, I thought with these changes would be possible to choose “Top menu” site settings. So If “latest” is required I would put “following” - “latest” in sequence, this way home would be redirected to “following”.
I found a way during development from
import { setDefaultHomepage } from 'discourse/lib/utilities';
So, in my component, in the beginning I have put
setDefaultHomepage("following");
Because in Rails Console, I have found a variable SiteSetting.homepage which was “latest”.
And worked
!
Do you see any problems ?
I’m afraid of loading latest from backend and initializer to be loaded in client-side.
Best Regards,
Felipe
