Giter Site home page Giter Site logo

Federation with Funkwhale about reel2bits HOT 4 OPEN

agateblue avatar agateblue commented on June 11, 2024
Federation with Funkwhale

from reel2bits.

Comments (4)

rhaamo avatar rhaamo commented on June 11, 2024 1

I can change that, I will see next week to do that change.
That shouldn't need too much changes on our side.

from reel2bits.

agateblue avatar agateblue commented on June 11, 2024

I've made some progress on item #2 (see https://channels.tests.funkwhale.audio/channels/[email protected]/ for instance), however, the follow crashes too when being delivered to reel2bits, so I assume it's a similar issue.

Also, I'm not really happy with the current way of detecting if an actor can also be considered a Funkwhale channel (it relies on a check that a reel2bits key is present in the AP @context. Would you consider including the RSS url that generate a podcast feed in the Actor payload? It would makes it cleaner on my side, and also allow me to expose it in the UI.

This is what we currently do for Funkwhale channels:

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    "https://funkwhale.audio/ns",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
      "Hashtag": "as:Hashtag"
    }
  ],
  "id": "https://open.audio/federation/actors/pulse",
  "attributedTo": "https://open.audio/federation/actors/eliotberriot",
  "followers": "https://open.audio/federation/actors/pulse/followers",
  "name": "pulse",
  "outbox": "https://open.audio/federation/actors/pulse/outbox",
  "preferredUsername": "pulse",
  "summary": "<p><strong>Stuff I make, and covers of tracks I love.</strong></p><p>I'm still very new to recording audio, so please don't expect a really high quality ;)</p>",
  "publicKey": {
    "id": "https://open.audio/federation/actors/pulse#main-key",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nstuff\n-----END PUBLIC KEY-----\n",
    "owner": "https://open.audio/federation/actors/pulse"
  },
  "manuallyApprovesFollowers": false,
  "type": "Person",
  "endpoints": {
    "sharedInbox": "https://open.audio/federation/shared/inbox"
  },
  "inbox": "https://open.audio/federation/actors/pulse/inbox",
  "icon": {
    "type": "Image",
    "mediaType": "image/jpeg",
    "url": "https://open.audio/media/attachments/dd/ce/b2/nosmile.jpeg"
  },
  "category": "music",
  "url": [
    {
      "type": "Link",
      "mediaType": "text/html",
      "href": "https://open.audio/channels/pulse"
    },
    {
      "type": "Link",
      "mediaType": "application/rss+xml",
      "href": "https://open.audio/api/v1/channels/pulse/rss"
    }
  ],
  "tag": [
    {
      "name": "#Acoustic",
      "type": "Hashtag"
    },
    {
      "name": "#guitar",
      "type": "Hashtag"
    }
  ],
  "following": "https://open.audio/federation/actors/pulse/following"
}

(As you can see, the URL is formed as a a list of two Link, one being the HTML profile url, and the second one being the RSS feed url).

from reel2bits.

rhaamo avatar rhaamo commented on June 11, 2024

Implementation notes: Actor payload now contains links to profile (html) and feeds (RSS and Atom)

from reel2bits.

rhaamo avatar rhaamo commented on June 11, 2024

Notes: Update logic in reel2bits needs to be reworked.

from reel2bits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.