aka freamon

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

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

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

help-circle


  • The ‘real user’ and the ‘private voter’ are 2 different accounts as far a external instances are concerned, but only 1 as far as piefed.social is concerned. So if you banned either one, it would have the same effect, because PF would locate the same account from the information provided.

    Likewise, a piefed user can’t vote twice on something, they make one vote, and then the ‘private voting’ setting determines how it is sent out. The local system has tracked that they have voted, and changing the setting won’t change that.

    There’s always more work to do of course, but piefed.social is a small instance, with manual approval required for registration, no API to script things like mass downvoting, and concepts such as ‘attitude’ which would prevent that anyway, so I can’t foresee anything too disastrous happening from this little experiment.









  • That’s great to hear. There’s zero API at the moment though, let alone a stable one. PieFed is a monolith, without the backend / front-end split that necessitates an API.

    It easy to add one, pending the addition of some missing features and a code reorganization that needs to happen anyway. At that point, hopefully some interested app developers will also be involved, to shape the API into something they may wish that other app’s APIs were like.




  • 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