GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Gabe (gabriel@mk.gabe.rocks)'s status on Wednesday, 26-Feb-2025 23:43:15 JST Gabe Gabe

    Can someone explain how you would do this by hand?

    RE: https://mastodon.social/users/reiver/statuses/114070142883326241

    In conversation about 3 months ago from mk.gabe.rocks permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      @reiver ⊼ (Charles) :batman: (@reiver@mastodon.social)
      from @reiver ⊼ (Charles) :batman:
      ActivityPub outboxes are the new RSS / Atom / WebFeed. You can just read from them to get a JSON feed of someone's posts. I.e., you do NOT have to implement the full suite of Fediverse protocols, or Follow, or run your own server, or anything else to get someone's posts on the Fediverse — just read from their outbox. #ActivityPub #ActivityStreams #AtomFeed #AtomFormat #DeSe #FediDev #FediDevs #Fediverse #JSON #OpenSocial #RSS #SocialWeb
    • Embed this notice
      Fish of Rage (sun@shitposter.world)'s status on Wednesday, 26-Feb-2025 23:43:14 JST Fish of Rage Fish of Rage
      in reply to
      @gabriel basically you do a GET on the actor URL and extract the outbox URL from the JSON. Then you query it and it gives you json, and properties for next and previous paging. you need to send the right headers to get the data.

      what language do you usually use that you would want example in, if I know it I can write an example in that language.
      In conversation about 3 months ago permalink
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: likes this.
    • Embed this notice
      Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:09:30 JST Fish of Rage Fish of Rage
      in reply to
      @gabriel I'll give you instructions using the shell, modify for any programming language:

      if you have a handle, you get the actor URL like this:

      curl -s "https://mk.gabe.rocks/.well-known/webfinger?resource=acct:gabriel@mk.gabe.rocks" | jq -r '.links[] | select(.type == "application/activity+json") | .href'

      gets you:

      https://mk.gabe.rocks/users/9738e4n8u0

      then you query it like this to get the outbox:

      curl -s -H 'Accept: application/activity+json' https://mk.gabe.rocks/users/9738e4n8u0 | jq -r .outbox

      The box is (maybe) paged so you need to query the first page:

      curl -s -H 'Accept: application/activity+json' https://mk.gabe.rocks/users/9738e4n8u0/outbox | jq .first

      https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true

      query that:

      curl -s -H 'Accept: application/activity+json' "https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true"

      the property "orderedItems" will get you the raw activitypub objects. you can filter on

      type: Note
      and get the "content" property and you'll get the HTML content of the post.

      To get the next page of results, then get the "next" propert, for example yours is:

      "next": "https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true&until_id=a4imasfct8"

      I am assuming that your outbox is formatted a specific way, it's possible it's not paged, in which case some of the queries are different but I am pretty sure 100% of outboxes will work.

      also lmao a lot more complicated than RSS.

      Let me know if you need more info.
      In conversation about 3 months ago permalink

      Attachments






      feld likes this.
    • Embed this notice
      Gabe (gabriel@mk.gabe.rocks)'s status on Thursday, 27-Feb-2025 00:09:31 JST Gabe Gabe
      in reply to
      • Fish of Rage

      @sun@shitposter.world
      I was just wondering what the outbox structure is, whats the URL for the actor? (say me for example)

      In conversation about 3 months ago permalink
    • Embed this notice
      Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:11:21 JST Fish of Rage Fish of Rage
      in reply to
      @gabriel even though it's more steps the good news is that it's mostly just more steps without
      "if this then this". There's a little of that but it can all be handled.
      In conversation about 3 months ago permalink
    • Embed this notice
      Gabe (gabriel@mk.gabe.rocks)'s status on Thursday, 27-Feb-2025 00:11:22 JST Gabe Gabe
      in reply to
      • Fish of Rage

      @sun@shitposter.world also lmao a lot more complicated than RSS.Wew! You weren't kidding!
      Sounds like something worth building into a SSG though!

      In conversation about 3 months ago permalink
    • Embed this notice
      Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:12:45 JST Fish of Rage Fish of Rage
      in reply to
      • Fish of Rage
      @gabriel also if you know the remote server is on mastodon I think that they have RSS for accounts by just putting /rss on the end of the user url but I am not sure
      In conversation about 3 months ago permalink
    • Embed this notice
      Matt Hamilton (eriner@noauthority.social)'s status on Thursday, 27-Feb-2025 00:55:46 JST Matt Hamilton Matt Hamilton
      in reply to
      • Fish of Rage

      @sun @gabriel ".rss" (vs "/rss")

      In conversation about 3 months ago permalink
      Fish of Rage likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.