Megathread: April Fools' Day 2022 on the internet
As is tradition, here's the (late) thread to collect this year's April Fools' events: Over the next day or so, the internet will be filled with jokes, pranks, fake "announcements" from companies,...
As is tradition, here's the (late) thread to collect this year's April Fools' events:
Over the next day or so, the internet will be filled with jokes, pranks, fake "announcements" from companies, fun interactive activities, games, and so on. A lot of these can be quite clever and interesting so I think posting about them in general is fine, but in the interest of preventing them from completely taking over Tildes, let's try to keep as many of them restricted to this thread as possible. Ideally, a separate top-level comment for each individual item would be good.
If something particularly discussion-worthy comes up (like an ARG or activity that a lot of people want to talk about), a separate thread is reasonable, but please make sure it has the "april fools day" tag. That way, if anyone wants to avoid seeing the April Fools' Day threads, they can use the topic tag filters and filter that tag out.
I'm going to use the "official" styling for this topic (that's usually only for ~tildes.official topics) to make it stand out more to try to encourage people to notice it. If you notice people making individual topics for April Fools' Day things that don't really warrant their own topic, please (nicely) encourage them to delete and post in here instead.
Posting it here is good - I haven't been posting much recently, but I'm generally around and will see it if people message/mention me.
Good to hear that it was easy to get running for you! Some thoughts about the changes you're hoping to make:
Google/LDAP SSO - I have no idea about this at all either. I feel like it probably wouldn't be too difficult, but it could depend on whether there are good existing libraries for it that you can get working easily.
Tildes being set up as invite-only is probably helpful here overall, since you won't have to worry about disabling registration or anything like that. Depending how many people you need to give access to, it may be a lot simpler to just find a way to distribute invite codes internally than implement SSO.
This one might end up being an issue with most of the self-hostable similar platforms available too, I don't know which ones (if any) would already have built-in SSO support.
Embedding images - I think there are two different parts here, and the difficulty will depend on exactly what you need:

, and Tildes is specifically stripping that out: https://gitlab.com/tildes/tildes/-/blob/master/tildes/tildes/lib/markdown.py#L213-214Moderator-like actions/permissions - Yeah, this is definitely a rough part right now. The permissions have to be managed manually by inserting the rows directly into the database (in the
user_permissions
table), and there isn't really any documentation of what each of the permissions do.The valid permissions are listed here: https://gitlab.com/tildes/tildes/-/blob/master/tildes/tildes/enums.py#L299-311
Most of them should probably be pretty intuitive from their names, but figuring out some of them could be a little tricky and would involve looking in the
__acl__()
methods that define permissions for different objects. For example, if you wanted to know what thetopic.edit_by_generic_user
permission does (which is probably the most confusing one), you'd search for that string in the code and find this section: https://gitlab.com/tildes/tildes/-/blob/master/tildes/tildes/models/topic/topic.py#L364-374That's in
Topic.__acl__()
, so that's adding permission to topics. In this case, someone is getting theedit
permission on a topic if it's a text topic, posted by theuser_id
of-1
(the "generic" user that makes scheduled posts), and they have thattopic.edit_by_generic_user
permission.If you need to go a level deeper on that, you'd need to look at where the
edit
permission on a topic is actually checked, like: