1
Lemmy hotfix for home page bugs... - Lemmy
lemmy.mlHey guys, as I’m sure many of you are already aware there’s a couple of bugs
that are plaguing the home page. I’ve made a hotfix for these bugs: 1. New posts
popping up and pushing all the other posts downwards - this is more prevalent on
the larger lemmy instances, you’ll just be scrolling and suddenly everything’s
pushed down because new posts are being added to the top of the page as they’re
being created 2. Default “All” not working - this is more something admins would
be aware of but in the site settings you can set the default “Listing Type” to
“All” instead of “Local”, but if you do this the home page doesn’t properly load
“All”, it’ll show you the “Local” feed with “All” selected in the tabs. Seems
this feature wasn’t implemented correctly in time for 0.17.4 Since 0.18 is still
a little while out, and I’m sure the devs are both really busy on it (they also
said they won’t be making another 0.17 release), I went ahead and made a hotfix
for these. I have it up on jcgurango/lemmy-ui:0.17.4-hotfix so if you’re using
docker you can just upgrade to that image. I’m not really sure how ansible
works, so I can’t help with that. Here’s the repo I have these changes on for
those who want to check or build it themselves:
https://github.com/jcgurango/lemmy-ui [https://github.com/jcgurango/lemmy-ui] -
I’ve based it on the v0.17.4 tag on the upstream repo.
Speaking of hotfix, LemmyError in the logs doesn’t pick up the nginx forwarded host.
So you get error messages about a server sending expired headers, but the logs don’t reveal who the sender is.
modifying the code here: https://github.com/LemmyNet/lemmy/blob/main/src/root_span_builder.rs#LL21C3-L21C3
by adding line:
http.realip_remote_addr = request.connection_info().realip_remote_addr(),