Skip Navigation

Posts
17
Comments
616
Joined
2 yr. ago

  • I asked in that issue whether Lemmy finds community via to/cc (it does). Does PieFed do the same?

    Yes - PieFed does the same. It looks in 'audience', then 'cc', then 'to'. It has to, to support all the platforms that haven't adopted 'audience. It's a convenient field, but PieFed won't be affected if Lemmy goes through with removing it.

    Would this also open up the possibility of a topic/context being part of multiple audiences/communities?

    Not at present. If you do something like cc: [community1, community2] it will only go to community1 (on both Lemmy and PieFed). There's so many activities that are effectively duplicates, both in normal operation and when platforms are bugged (both Lemmy and Mastodon have gone through phases of sending the same activity multiple times), that you need a way to make sure you're only processing one. On PieFed, this is done by having a UNIQUE constraint of the 'ap_id' column of the Post table (the ap_id of your post is https://community.nodebb.org/post/103806), so it means you can't have the same post in more than one community.

  • You should listen to the voice that's telling you not to add more spoons to this already heavily-stirred bowl of shit.

  • 'us' seems a mite too conventional for a plural pronoun if you're intent on re-inventing singular ones.

    Anyway, you could at least commit to the bit, and actually mark your account as a bot, instead of just saying you are one. There's likely some instances where bots that aren't marked as bots are against their terms of service.

  • Nah, I'm sure it'll be fine. It'll be like a Fediverse Brexit ...

  • Neat. I saw your name in the 'Users' list (Search -> Explore Instance -> Users).

    The API needs a DB upgrade, and so right now I'm in a queue behind 'Feeds', which is a feature that will add some new tables. I don't yet know what kind of upgrade it needs to be, i.e. how much things can be fudged vs. implemented properly.

  • 'cos of the Online Safety Act - there's a post in that community from the lemmy.zip admin.

  • Oh, right. Thanks. Sorry, I'm realising now that what I said was a bit of lazy assumption. I've just looked, and saw that Interstellar is also Flutter, so you're a lot more likely to know than me (I've very new to all this). I'll edit my post.

  • Yeah, the API is very similar in lots of ways. Some fields have different names (e.g. post.title instead of post.name), the 'site' response is a lot smaller, and there's things like 'activity_alert' for subscribing to other people's posts/comments and unsubscribing to your own (aka turning off inbox replies). Some routes aren't covered, either because the app didn't call them, or because there's no back-end support (e.g. viewing Modlogs), or because I de-prioritized them for now (e.g. viewing Reports).

    I've started doing an OpenAPI spec thing, which I'm finding tedious to create, but it should make everything clearer when it's published.

  • Maybe I've the wrong idea. This app is a fork of Thunder (for Lemmy), and Thunder is only available on f-droid via the IzzyOnDroid repo, so I was thinking that it contained some binary blobs from Google.

  • Lemmy has mangled that script a bit.

    Where it says '%24%7Bpage%7D', it should a dollar sign, an open curly bracket, the word 'page', then a close curly bracket.

    It displays a bit better at the source (click the multi-coloured fedi-link thing).

  • The only way I can think of is to use the API to get all communities, and then filter out the ones without local subs. So a basic BASH script would be:

       
        
    #!/bin/bash  
    
    echo -n '' > /tmp/allcomms.txt  
    
    page=1  
    while true  
    do  
      communities=$(curl --request GET --url "https://walledgarden.xyz/api/v3/community/list?type_=All&page=${page}&limit=50" --header 'accept: application/json' | jq .communities[])  
      if [ "${communities}" == "" ]  
      then  
        break  
      fi  
      jq -r '[.community.id, .counts.subscribers_local] | @sh' <<<$communities >> /tmp/allcomms.txt  
      page=$(( page + 1 ))  
      sleep .5  
    done  
    
    while read id count  
    do  
      if [ $count -eq 0 ]  
      then  
        echo "$id has no local subs"  
      fi  
    done < /tmp/allcomms.txt  
      
      

    (It'll take a few minutes to run)

    After that, how you purge the communities with those IDs I'm less sure of. My guess would be:

    Get a login tokin:JWT=$(curl --request POST --url https://walledgarden.xyz/api/v3/user/login --header 'accept: application/json' --header 'content-type: application/json' --data '{"username_or_email": "YOUR_USERNAME","password": "YOUR_PASSWORD"}' | jq -r .jwt)

    Use Admin/Purge from the API:

       
        
    curl --request POST --url https://walledgarden.xyz/api/v3/admin/purge/community --header "authorization: Bearer $JWT" --header 'content-type: application/json' --data "{"community_id": ${id}, "reason": "no local subs"}"  
      
      

    As long as purge lets the community be recreated again (which it should do), then that should be okay.

    Don't take my word for any of this for an in-production Lemmy server, though. Test first!

  • Whatever the views are about MBFC, Tesseract integrated it better than LW's bot. If you don't like MBFC, it's just an option in your user settings to turn it off for Tesseract, whereas the bot caused a bunch of problems that weren't even related to concerns about accuracy and bias. Drive-by bots can be annoying, because it leads people to believe there's legit content where there isn't, and not every client respected LW's bot use of spoiler Markdown, so they ended up with a massive comment from it that dominated the screen.

  • That's what they're doing though, isn't it? They have an account on Friendica, and they've used it to make a post within a Lemmy community (the community being !chat@beehaw.org in this case).

  • For Season 1. (Season 2 has different credits.)

  • It's okay. I got brave and looked at my bank account, and things aren't as bad as I was imagining. I'll buy one tomorrow.

  • Music @beehaw.org

    Loïc Nottet - Mr/Mme (Bruxelles)

  • Fediverse memes @feddit.uk

    You don't need the Fediverse, we have the Fediverse at home ...

  • [ARCHIVED] Low Effort Memes @walledgarden.xyz

    Just joined this community, now waiting for the quality posts

  • Gifs @lemmy.world

    Example of a long take, made by a camera operator grabbing a drone mid-flight, and continuing the shot.

  • Climate @slrpnk.net

    Hurricane Helene Isn’t an Outlier. It’s a Harbinger.

    www.motherjones.com /politics/2024/10/hurricane-helene-new-normal-future-destruction/
  • Videos @lemmy.world

    Every Frame a Painting: What would Billy Wilder do?

  • Interesting Shares @lemmy.zip

    “Secondhand Is Feckin’ Grand”: How Clothing Swaps Took Off in Ireland

    www.motherjones.com /environment/2024/10/ireland-fast-fashion-mary-fleming-clothing-swaps-change-clothes/
  • And Finally... @feddit.uk

    Bottoms up! Ontario councillor under fire for drinking beer during meeting

    globalnews.ca /news/10795199/london-councillor-beer-sam-trosow/
  • Climate @slrpnk.net

    The shifting jet stream has magnified wildfires and plagues. What’s next?

    grist.org /science/jet-stream-study-climate-change-wildfires-plagues/
  • Open Source @lemmy.ml

    Busybox 1.37 is tiny but capable, the way we like Linux tools to be

    go.theregister.com /feed/www.theregister.com/2024/10/04/busybox_137/
  • Technology @lemmy.world

    Not just AI datacenters needing own power: Taiwanese server-maker Quanta has bought microgrids

    go.theregister.com /feed/www.theregister.com/2024/10/04/quanta_buys_microgrids/
  • United Kingdom @feddit.uk

    'Botched insulation means mushrooms grow on my walls'

    www.bbc.com /news/articles/ce3zxx1gek1o
  • Star Wars @lemmy.world

    Promo trailer for ep4 of T'Acolyte

  • Public Blue Screens Of Death @lemmy.ohaa.xyz

    Sad Train Station

  • PieFed Meta @piefed.social

    Currently working on: Following Users

  • PieFed Meta @piefed.social

    I'm thinking of submitting a PR for a 'lemmy-spoiler' tag to Markdown2

  • PieFed Meta @piefed.social

    Currently working on: cross-posts