aka freamon

Codeberg: https://codeberg.org/freamon?tab=activity

Anything from https://lemmon.website is me too.

  • 0 Posts
  • 34 Comments
Joined 6 months ago
cake
Cake day: March 27th, 2024

help-circle
  • Oh. I subscribed to this post because I hoped someone would be able to give an answer too.

    It’s been a day, so before I forget and on the basis that some answer is better than none at all, I’ll have a crack:

    400 Bad Request isn’t much to worry about, it doesn’t mean anything is malfunctioning and it can happen for a gazillion reasons. One is you’ve joined a new community and someone Likes a comment you don’t have (particularly if it’s nested in other comments you also don’t have). Another is if someone Likes a post or comment by a user on an instance that you’ve defederated from (your instance is defed’d from lemmygrad and hexbear whereas lemmy.ml isn’t)

    As for 499, that seems to be a client issue, and that client mostly seems to be beehaw, who are stuck on an old Lemmy version and being increasingly wonky (in the other direction, they often reply in HTML rather than JSON and randomly decide that their communities’ inboxes don’t exist, so I wouldn’t worry about stuff from them either)


  • Seems like ‘posts’ works okay, but it’s ‘comments’ that don’t (and overview is a mix of both).

    API call to see posts:
    curl --request GET --url 'https://lemmy.world/api/v3/user?username=beebarfbadger&sort=TopDay&page=1&limit=1' --header 'accept: application/json' | jq .posts[].post.published = 2024-09-26T15:35:33.998368Z (today’s top post is today)

    API call to see comments:
    curl --request GET --url 'https://lemmy.world/api/v3/user?username=beebarfbadger&sort=TopHour&page=1&limit=1' --header 'accept: application/json' | jq .comments[].comment.published = 2024-03-03T05:09:45.255807Z (this hour’s top comment was in March)

    They probably know about it, but if not it’s probably a good idea to report the bug here: https://github.com/LemmyNet/lemmy/issues

















  • 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