Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Follow a channel #237

Open
KyleMaas opened this issue Feb 15, 2021 · 4 comments
Open

Follow a channel #237

KyleMaas opened this issue Feb 15, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@KyleMaas
Copy link
Collaborator

I noted Patchwork allows users to follow channels. I suppose we should probably support that, or at least support showing those follow messages. I just don't know what format the actual SSB messages are in.

@KyleMaas KyleMaas added the enhancement New feature or request label Feb 15, 2021
@KyleMaas
Copy link
Collaborator Author

Looks like they're messages like this:

content: {
  channel: "channel-name",
  subscribed: true,
  type: "channel"
}

@KyleMaas
Copy link
Collaborator Author

Example: %PJsHSrHu/QrsjvJwg9AO5ppcDnE/XWKhd1yufoHaEEo=.sha256

@arj03
Copy link
Owner

arj03 commented Feb 22, 2021

This is actually pretty nice in that it pulls in content you might be interested in without following the people directly.

@KyleMaas
Copy link
Collaborator Author

KyleMaas commented Jul 7, 2021

Content of that example message, for easier reference:

{
  "key": "%PJsHSrHu/QrsjvJwg9AO5ppcDnE/XWKhd1yufoHaEEo=.sha256",
  "value": {
    "previous": "%J2/T1Y8PBB5gUy+s46vA3Cal+8pAUTA2704AZxv1u+o=.sha256",
    "sequence": 5881,
    "author": "@MRiJ+CvDnD9ZjqunY1oy6tsk0IdbMDC4Q3tTC8riS3s=.ed25519",
    "timestamp": 1613134854338,
    "hash": "sha256",
    "content": {
      "type": "channel",
      "channel": "ssb-neon",
      "subscribed": true
    },
    "signature": "5PD/T3AMC4LabVYPtTBTSxfXfPv+Avqneh8F54XmqaidF13/bzvaAwOH8nMGQOxRqmiFMexf1O+9xYR+uKY6AA==.sig.ed25519"
  }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants