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

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

Untitled attachment

Download link

Notices where this attachment appears

  1. 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 from shitposter.world permalink
  • 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.