Like, it adds complexity to the code and you can't even fetch the AP information with it, meaning you can't even use it in the search bar probably. So it's not only pointless, it's even having a deteriorated experience for both end-users, as well as developers!
It seems cloudflare will be offering vendor lock-in fedi software. It's quite trivial to detect if a server is running behind a cloudflare IP and it's quite easy to do something using MRF.
Would you want such an MRF, and what functionality would you want in such an MRF?
We can drop messages, we can rewrite messages, we can make sure end users don't do calls to them by (re)moving attachments, we can mark accounts from such instances in some way...
We can also expand to not just detect cloudflare, but also other IP ranges, whitelist domains...
I already have a very quick-and-simple one to drop messages coming from them here https://git.pleroma.social/ilja/mrf/-/blob/develop/reject_cloudflare_policy.ex But I'm wondering if I should put more effort into making it more proper. (Or if someone wants to take the opportunity to get into *oma development, this could be a very good start if this is something that interests you :blobfoxwink: )
It's actually two queries. One for activities who only reference to one object, and one for activities who reference an array of objects. The cost of the second one is significantly higher, while the effect is significantly lower (it's only Flag activities, and quite frankly, maybe people would want to keep those any way).
Anyhow, I started yesterday morning 10:37. It just ended today 20:15. (And a new job has started this morning as well because I didn't comment out the line after it started :blobfoxfacepalm: ) This is... long :/ I hope I can get this down to more reasonable times, but I'm unsure if that'll be possible.
The result is that I went from 4453721 activities to 1478327 and from 2931606 objects to 2155833
I'll probably do some more analysis later, but these numbers look pretty good. It's the first time ever I clean up activities. Objects had already been pruned a couple of weeks ago.
The reason why I want this is because it will allow people to host much longer without needing extra storage on your server. Ideally people should be able to set up an instance on a cheap VPS and never have to move as long as you keep a relatively small number of active people on your instance.
Hellooo :blobfoxwave: I'm ilja!I believe in a world of cooperation rather than competition. One of my current personal projects in life is to lessen my dependence on for-profit companies, and rather join non-profits and coops. I consider the world of free software and free culture an important part of this more cooperative world I long for. I created the following bots: @citizen_initiative_bot @translate @cc_music_bot @translate uses an MRF module I made with the goal of making it easier to create "reply and I respond"-type bots. If you're interested in that, check out it's profile.I also wrote APStatic ( https://codeberg.org/ilja/APStatic/ ) which is some simple docs on how to get a static site have some (very) basic support for federation.Trans rights are human rights :trans_flag: :agender_flag: queer rights are human rights :rainbow_flag: :lesbian_lipstick_flag: And it's sad that over half a century after the Stonewall uprising, we still have to remember pe