I wouldn’t do this personally, but if I did, I think I’d at least pipe the results to head -n 1
to only act on the first result.
aka freamon
Codeberg: https://codeberg.org/freamon?tab=activity
Anything from https://lemmon.website is me too.
I wouldn’t do this personally, but if I did, I think I’d at least pipe the results to head -n 1
to only act on the first result.
‘subscribe to anything’ is handy, too. I’m subscribed to this post, for instance, so get notifications of new top-level comments.
You’re right about the cause: Lemmy’s front-end isn’t giving its backend enough time to do everything it needs to do for an unfamiliar commentary.
It works better if you copy / paste the link into Search. MBin effectively redirects all these links to its Search anyway, so maybe that’s an option.
This isn’t really my area, but I’ll have a crack. From what I understand, Lemmy uses the ‘meta og:image’ tag to grab a thumbnail. Inspecting your site, I can see that that tag is in the html head. However, if you just ‘curl’ the URL, then it isn’t in the results. Using ‘curl’ for URLs from sites that are known to work in terms of generating thumbnails (theguardian and bbc), the tag is visible in the result.
This suggests that your site is using further scripting on page load to provide the meta tags, whereas perhaps Lemmy can only get them if they are provided immediately. There are other sites (like Reuters), who use additional scripting, that Lemmy is unable to get thumbnails for also (e.g. https://lemmy.world/post/16203031)
Re: sorting posts not working - I don’t know. It looks like you’ve deleted the post you made about ‘sorting of posts not aligned’
Re: communities not updated - I found your GIF hard to follow, but there’s a straight-forward difference between the post list you’re seeing on lemm.ee and on programming.dev, in that the missing posts are all tagged ‘English’. (If you looked at lemm.ee when you’re logged out, you’d see the same list as on programming.dev).
I assume you’ve fixed it now, since this post is in English, but to recreate what lemmy-ui is doing:
#!/bin/bash
show_post=true
lang_id_undefined="0"
lang_id_english="37"
for page in {1..17}
do
curl --silent "https://lemm.ee/api/v3/post/list?community_id=8024&page=$page&limit=50" |
jq -rc '.posts[] | .post.language_id, .post.name' |
while read line
do
if [ "$line" == "$lang_id_english" ]; then show_post=false; continue; fi
if [ "$line" == "$lang_id_undefined" ]; then show_post=true; continue; fi
if $show_post; then echo $line; fi
done
page=page+1
done
The video was recording a VM that had been tunnelled through to with ngrok, so the HTTP details were from that software’s ‘Inspect’ window.
(I don’t know how best to configure your server to ignore the errors, because Rust is too scary, ha ha).
Might just be 'cos LW is currently sending every activity out twice. Video from earlier today: https://imgur.com/a/lX0LPZk
You could probably tail your nginx log in another terminal to see if the journalctl errors match up with 400 errors for duplicates there…
Might not be this, of course (could just be that I saw this earlier, and it’s influencing my thinking)
The error you saw in your logs is due to a recently fixed bug: https://github.com/LemmyNet/lemmy/issues/4658
The lead dev is Rimu - which isn’t on LW’s admin list.
“So the choice is … or bees?” (which is two Eddie Izzard references in one)
It depends. It seems like Lemmy batches up its activity to send to remote instances - so, per instance, it sleeps for a bit, then sends what it has. If both a Create and an Update are in the same batch, Lemmy just sends the Update. If they don’t happen to be in the same batch though, it sends both activities.
(this is outsider observation, not insider knowledge)