Mostly just used for moderation.
Main account is https://piefed.social/u/andrew_s

  • 28 Posts
  • 27 Comments
Joined 3 years ago
cake
Cake day: July 24th, 2023

help-circle
  • The API provides it, which means that many of the clients will also have a way of displaying them.

    Your instance provides an alternative UI via the ‘Photon’ client at https://p.feddit.org/ - you can use this on desktop to view your profile and select the ‘Upvoted’ view.

    The command-line equivalent would be
    curl --header 'authorization: Bearer LOGIN_TOKEN' 'https://feddit.org/api/v3/post/list?liked_only=true&page=1&limit=50' | jq .posts[].post.id | xargs -I {} echo "https://feddit.org/post/%7B%7D"
    but it’s nowhere near as convenient as getting a client to do it for you.

    The other site mentioned - https://lemvotes.org/ - doesn’t use the API and is a bit controversial: it tends to be used to see who else voted for a post, and isn’t guaranteed to be a reliable way to show what posts you personally voted for.



  • You can get a rough idea of how big each video is via an activitypub query for each video. For example:

    curl --header 'accept: application/activity+json' https://peertube.wtf/w/mhghLtY5dkLguNq5oFB2Ut | jq .
    

    Buried in there is a url entry, and buried in some of those is a tag entry and buried in some of those are details for the size of the video and audio for each upload.

    Peertube’s video channels have an outbox (similar to how Lemmy’s communities do, but not limited to 50 entries), so you can step through that to find the relevant info for everything in your channel.

    Doing that for your channel, I got:

    Shitpost #2
    video: 482 x 480: 2.27 MB
    audio: 0.3 MB
    
    Shitpost #1
    video: 480 x 480: 8.69 MB
    audio: 0.94 MB
    
    Will this replace the internet?
    video: 1080 x 1920: 19.26 MB
    video: 720 x 1280: 11.9 MB
    video: 360 x 640: 5.23 MB
    audio: 16.75 MB
    
    Cat
    video: 1920 x 1080: 7.77 MB
    video: 1280 x 720: 2.14 MB
    video: 640 x 360: 0.41 MB
    audio: 0.23 MB
    

    If you assume that the size of the audio is ignored, and that lower resolutions are transcoded as requested, and add the sizes for the highest resolutions together, you get 2.27 + 8.69 + 19.26 + 7.77 = 37.99 (which is the 38 MB visible in your screenshot).

    The information is available, but it’s a pain in the arse to get, so it’s probably annoying for PeerTube themselves to show (a brief look suggests that the API response doesn’t provide it, so there’s nothing for the web frontend to display). It’s also possible that they may drop the higher resolutions for videos with low engagement, so the size of each upload isn’t static, which adds an extra complication.


  • Not really.

    Gup.pe groups were genuine ActivityPub Groups, like Lemmy communities, whereas these ‘FediGroup’ things are just Mastodon bots. They’re a ‘Service’, aka the automated version of a ‘Person’, so they’re no use to anyone on platforms (like Lemmy) that can only follow Groups.

    The most similar recent thing to gup.pe is https://ovo.st/

    Compare:

    curl --header 'accept: application/activity+json' https://lemmy.world/c/fediverse | jq -r .type   
    => Group   
    curl --header 'accept: application/activity+json' https://ovo.st/club/askfedi | jq -r .type  
    => Group
    
    with
    
    curl --header 'accept: application/activity+json' https://fedigroups.social/@audiofiction | jq -r .type  
    => Service
    

  • It’s mostly annoying me because it’s affecting federation - not just the ability for new instances to backfill content, but for established instances to even be able to fully resolve a new post’s details before the author nukes themselves. For example, the previous post (titled “Paranoia”) isn’t available on lemmy.ml or lemmy.dbzer0 because they would have been a few seconds “too late” to fetch the details for the author.

    @lawrence@lemmy.world - if you’d like another mod to help out in the short term, I’m happy to volunteer. I realise people in the comments are being a bit defeatist about the ability to reckon with this problem, but whoever this person is should at least have to do a bit more work than they’re currently doing.


  • freamon@lemmy.worldtomemes@lemmy.world•*Permanently Deleted*
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    11 months ago

    The code that OP has linked to is part of a convenience function for admins to add content to their new instances. It can query individual remote instances (e.g. lemmy.world), or it can query lemmyverse.net, and fetch communities that look to be popular and active.

    It’s completely unrelated to routine federation, and doesn’t prevent anyone subscribing to communities that may have those words in their names.

    The admin function could potentially be used to fetch hundreds of communities. It runs as a background process, so you don’t know what they were until after they’d been followed. The “bad words” list acts as a safeguard against bringing in things you might not want or expect. One reason is that you may want to curate the first impression you give new visitors, as there as some that will be put off by the “fuck this” and “shitpost that” reddit-isms. Another is that you don’t typically want communities that are disproportionately popular than others (e.g. if you bring in the default 25 communities, and one of is 196, then it completely dominate your front page).

    If there’s a particular community that you are interested in (e.g. because you moderate it), using this function isn’t an efficient way to add it. In addition to the “bad words” filters, it will also exclude communities that are NSFW, or below thresholds for popularity and activity. Rather than fetching a bunch of communities at the same time, and hoping that the one you want is included, it’s better to just add it manually (via a ! link or by using the “Add remote community” link) in much the same way as you would on any other platform.









  • Not sure where to post this. Sometimes (in ways that are difficult to replicate), I get a JSON response for a reddthat post in my browser instead of an HTML one. It’s happened before on mobile (Chrome) and today also desktop (MS Edge), so I was able to make a screenshot:

    I’m assuming it’s related to 0.19.4, but maybe others have seen this behaviour before the upgrade. Apologies if you’re already aware - I had a quick look for other mentions but didn’t find any.





  • Well, there’s good news and bad news.

    The good news is that Lemmy is now surrounding your spoilers with the expected Details and Summary tags, and moving the HR means PieFed is able to interpret the Markdown for both spoilers.

    The bad news:
    It turns out KBIN doesn’t understand Details/Summary tags (even though a browser on it own does, so that’s KBIN’s problem).
    Neither PieFed, or KBIN, or MS Edge looking at raw HTML can properly deal with a list that starts at ‘0’.
    Lemmy is no longer putting List tags around anything inside the spoilers. (so this post now looks worse on KBIN. Sorry about that KBIN users)


  • Firstly, sorry for any potential derailment. This is a comment about the Markdown used in your post (I wouldn’t normally mention it, but consider it fair game since this is a ‘Fediverse’ community).
    The spec for lemmy’s spoiler format is colon-colon-colon-space-spoiler. If you miss out the space, then whilst other Lemmy instances can reconstitute the Markdown to see this post as intended, Lemmy itself doesn’t generate the correct HTML when sending it out over ActivityPub. This means that other Fediverse apps that just look at the HTML (e.g. Mastodon, KBIN) can’t render it properly.
    Screenshot from kbin:

    Also, if you add a horizontal rule without a blank line above it, Markdown generally interprets this as meaning that you want the text above it to be a heading. So anything that doesn’t have the full force of Lemmy’s Markdown processor that is currently trying to re-make the HTML from Markdown now has to deal with the ending triple colons having ‘h2’ tags around it.
    Screenshot from piefed:

    (apologies again for being off-topic)