aka [email protected], [email protected], and any username from lemmon.website

This account is currently parked, and I’m using https://piefed.social/u/andrew_s

  • 100 Posts
  • 748 Comments
Joined 1 year ago
cake
Cake day: July 17th, 2023

help-circle


  • Lemmy doesn’t seem to get much recognition in the wider Fediverse - it tends to get bundled as part of ‘other apps’. Mastodon is much bigger, so better integration with Lemmy probably gets deprioritised below their own issues and feature requests (e.g. I was reading today that Markdown support is often requested, but the base version still doesn’t have it)



  • It’s partly an issue of keys. Every fediverse actor has a private key and a public key. When my instance sends this to [email protected], it’s signed by my private key, and lemmy.world uses my public key to verify it. When [email protected] sends this comment out, it uses it’s own private key to sign it. It can’t just re-transmit my comment, because it doesn’t have my private key. All it can do is Announce that I’ve made the comment (and sign the Announce).

    Mastodon treats Announces as Boosts, so every post/comment is interpreted as a thing that [email protected] has boosted, so you get all these un-connected posts appearing. I think it’s mostly up to Mastodon to remedy.

    It works better if a Mastodon actor posts into a Lemmy community, then you get the mix like you imagine. e.g.: https://mastodon.world/@Flash/112095241193510662 (this particular post was crowbarred into Lemmy via [email protected], but it would be the same if the author had done it.)





  • One of the reasons it’s inconsistent is that Lemmy tries to balance the media it serves locally vs. the media it lets remote hosts serve. Also it’s a bit naïve about image conversion. So if you link to an actual GIF at giphy.com (for example), it works consistently across the most the most platforms if Lemmy leaves it alone. If it doesn’t, it’ll bring it in and convert it to a WebM file, which not all clients know what to do with. Even if they do though, looping isn’t always on by default for video, so the effect of a GIF that relies on looping might be nullified.

    It’s probably best to focus on the clients with the biggest user-base, rather than try to target them all. For lemmy.world/c/gifs, the most popular posts have been uploaded to imgur.com - which convert most GIFs to MP4s - and the post’s author has linked to the inline version at i.imgur.com.




  • freamon@endlesstalk.orgOPtoTesting ZoneCode Blocks
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Code Block (no lang): [4 spaces and an escaped newline]

    if this [4 spaces and an escaped newline]    
    then [4 spaces and an escaped newline]    
    that
    else
    the_other_thing [4 spaces and an escaped newline]    
    endif
    

    (no spaces before newlines for next block)

    fenced-code-blocks off


  • freamon@endlesstalk.orgOPtoTesting ZoneCode Blocks
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Code Block (no lang): [4 spaces and an escaped newline]

    if this [4 spaces and an escaped newline]    
    then [4 spaces and an escaped newline]    
    that
    else
    the_other_thing [4 spaces and an escaped newline]    
    endif
    

    (no spaces before newlines for next block)

    fenced-code-blocks on


  • freamon@endlesstalk.orgOPtoTesting ZoneCode Blocks
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Code Block (no lang): [4 spaces and an escaped newline]

    if this [4 spaces and an escaped newline]    
    then [4 spaces and an escaped newline]    
    that
    else
    the_other_thing [4 spaces and an escaped newline]    
    endif
    

    (no spaces before newlines for next block)


  • freamon@endlesstalk.orgOPtoTesting ZoneCode Blocks
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Single line of code: [4 spaces and an escaped newline]
    return [4 spaces and an escaped newline]
    New paragraph [2 escaped newlines]

    Code Block (no lang): [4 spaces and an escaped newline]

    if this [4 spaces and an escaped newline]    
    then [4 spaces and an escaped newline]    
    that
    else
    the_other_thing [4 spaces and an escaped newline]    
    endif
    

    (no spaces before newlines for next block)

    Code Block (python):

    if this is not None:
        that
    else:
        other_thing
    


  • freamon@endlesstalk.orgOPtoTesting ZoneCode Blocks
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago
    {
      "actor": "https://programming.dev/c/test",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "https://programming.dev/activities/create/5a782f4a-c892-4eeb-abca-05127db50929",
        "actor": "https://endlesstalk.org/u/freamon",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "object": {
          "type": "Page",
          "id": "https://endlesstalk.org/post/27782033",
          "attributedTo": "https://endlesstalk.org/u/freamon",
          "to": [
            "https://programming.dev/c/test",
            "https://www.w3.org/ns/activitystreams#Public"
          ],
          "name": "Code Blocks",
          "cc": [],
          "content": "<p>Single line of code: [4 spaces and an escaped newline]<br />\n<code>return</code> [4 spaces and an escaped newline]<br />\nNew paragraph [2 escaped newlines]</p>\n<p>Code Block (no lang): [4 spaces and an escaped newline]</p>\n<pre style=\"background-color:#ffffff;\">\n<span style=\"color:#323232;\">if this [4 spaces and an escaped newline]    \n</span><span style=\"color:#323232;\">then [4 spaces and an escaped newline]    \n</span><span style=\"color:#323232;\">that\n</span><span style=\"color:#323232;\">else\n</span><span style=\"color:#323232;\">the_other_thing [4 spaces and an escaped newline]    \n</span><span style=\"color:#323232;\">endif\n</span></pre>\n<p>(no spaces before newlines for next block)</p>\n<p>Code Block (python):</p>\n<pre style=\"background-color:#ffffff;\">\n<span style=\"font-weight:bold;color:#a71d5d;\">if </span><span style=\"color:#323232;\">this </span><span style=\"font-weight:bold;color:#a71d5d;\">is not </span><span style=\"color:#0086b3;\">None</span><span style=\"color:#323232;\">:\n</span><span style=\"color:#323232;\">    that\n</span><span style=\"font-weight:bold;color:#a71d5d;\">else</span><span style=\"color:#323232;\">:\n</span><span style=\"color:#323232;\">    other_thing\n</span></pre>\n",
          "mediaType": "text/html",
          "source": {
            "content": "Single line of code: [4 spaces and an escaped newline]    \n`return` [4 spaces and an escaped newline]     \nNew paragraph [2 escaped newlines]\n\nCode Block (no lang): [4 spaces and an escaped newline]    \n```  [4 spaces and an escaped newline]    \nif this [4 spaces and an escaped newline]    \nthen [4 spaces and an escaped newline]    \nthat\nelse\nthe_other_thing [4 spaces and an escaped newline]    \nendif\n``` \n\n(no spaces before newlines for next block)\n\nCode Block (python):\n```Python\nif this is not None:\n    that\nelse:\n    other_thing\n```",
            "mediaType": "text/markdown"
          },
          "attachment": [],
          "commentsEnabled": true,
          "sensitive": false,
          "published": "2024-03-17T07:49:13.596948Z",
          "language": {
            "identifier": "en",
            "name": "English"
          },
          "audience": "https://programming.dev/c/test"
        },
        "cc": [
          "https://programming.dev/c/test"
        ],
        "type": "Create",
        "audience": "https://programming.dev/c/test"
      },
      "cc": [
        "https://programming.dev/c/test/followers"
      ],
      "type": "Announce",
      "id": "https://programming.dev/activities/announce/create/1047a16d-6393-4c2f-a5cc-9eeba4eb43db"
    }
    

  • freamon@endlesstalk.orgtoLemmy@lemmy.mlHow to download account data?
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    8 months ago

    No settings page (as far as I’m aware), but you can use the API to get everything (posts, comments, etc):

    step 1: get login token -

    curl --request POST \
         --url https://lemmy.ml/api/v3/user/login \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
      "username_or_email": "2br02b",
      "password": "YOUR-PASSWORD"
    }
    '
    

    step 2: use login token (big long string starting with ‘ey’) to get data -

    curl --request GET \
         --url 'https://lemmy.ml/api/v3/user?username=2br02b&page=1' \
         --header 'accept: application/json' \
         --header 'authorization: Bearer YOUR-JWT'
    

    Increment page number until you have everything. source: https://lemmy.readme.io/reference/get_user