Sitewide taglines
See https://github.com/LemmyNet/lemmy-ui/issues/556
~~Taglines should be specified in the config file.~~ (See below)
Not the config file, but as another database table, with API actions to add / edit / delete them. Otherwise admins wouldn't be able to edit these via the site.
If they were defined in the config file, couldn't they change them via the site in Admin Settings -> Site Configuration? I had a go implementing it that way and it looked like this:

Couple things:
- Unfortunately saving that no longer works as a hot reload, and requires a server reboot.
- If there were more of me, I'd work to take nearly everything in that config.hjson apart from what docker requires, and put it into the
siteor other tables. Going forward I definitely don't want to add more to that config. - You can see on the left side of that page are a bunch of site-related settings already, so these taglines would go under that.
- I know it takes more work, (adding tables, joins, and more UI), but having API actions is muuuch preferred to putting things in that startup config file because its easier.
I disagree about putting everything in the database, particularly when we are talking about minor gimmicks like these taglines. Not only is it more work to implement, its also more work to maintain (and we have to maintain it forever). These taglines would probably be set once when the instance is installed, and then changed very rarely, if ever. So its really not worth all the extra effort.
I didnt know that config changes require a Lemmy restart now, if thats a problem we can fix it.
Ideally we wouldn't have to have that config at all, and everything would be possible through API actions. Also I'm sure that admins are going to want to add and edit taglines, and don't want to have to annoy server admins to change that every time.
I had a quick go implementing them (WIP), it is indeed a lot more effort but yeah Hexbear for example has a lot of admins/sitemods but very few server admins, and since only server admins can change taglines etc they're never changed. The less technical it is to maintain an instance the better
Starting to pick this one up now. General plan (based on layla's branch) for backend changes
- New table, 'taglines'
- New endpoints for GET(One), GET(All), PUT, POST, DELETE of taglines
- Only admins can do GET(All), PUT, POST, DELETE
- Update GetSite endpoints to pull a random tagline
Does this plan seem okay?
Yep that seems good. The only other thing I could think of is to possibly add a lang_id column (to only show taglines for your lang) , but imo that's overkill, unless nutomic thinks that should be done.
@not-layla what's the status of these hexbear tagged issues?
@dessalines There's no active development from our side right now, unfortunately. Is it cool to keep them open until that changes? (The plan has not changed, we just have no volunteers to work on this stuff rn)
Sure no probs, was just checking in cause its been a while with nothing done.