GithubHelp home page GithubHelp logo

XMPP: Post to PubSub about pelican HOT 6 OPEN

sjehuda avatar sjehuda commented on May 28, 2024 1
XMPP: Post to PubSub

from pelican.

Comments (6)

sjehuda avatar sjehuda commented on May 28, 2024 1

other than with licensing
Are you a lawyer too?

from pelican.

sjehuda avatar sjehuda commented on May 28, 2024

I beg your pardon. Please move this to getpelican/pelican-plugins/issues

from pelican.

silverhook avatar silverhook commented on May 28, 2024

That would be really cool. Especially if a comment section could be done that way too.

from pelican.

sjehuda avatar sjehuda commented on May 28, 2024

Nodes

Yes, comments can also be managed in a similar manner.

Perhaps XEP-0248 PubSub Collection Nodes would be useful for comments, though it might not be necessary.

Publishings node
|- Item (ID: 0001)
  |- Atom entry (HTML inside)
|- Item (ID: 0002)
|- Item (ID: 0003)
|- etc.

Comments node
|- Item (ID: 0001)
  |- Comment
  |- Comment
  |- Comment
  |- Comment
|- Item (ID: 0002)
  |- Comment
  |- Comment
  |- Comment
|- Item (ID: 0003)
  |- Comment
  |- Comment
|- etc.

We can allocate them by nodes

node access note
publishings.getpelican.com public HTML as Atom feed is stored
comments.getpelican.com public where we manage comments
sources.getpelican.com admins Markdown / reStructuredText
attachments.getpelican.com ? This can be done too

XMPP Clients

In what fashion did you think to handle comments?

I suppose we can synchronize comments from HTTP and from XMPP.

For comments via XMPP, we might want XMPP clients (like Movim and Libervia) to handle.

Other clients: Once Pelican has PubSub support, it would be easy to persuade Dino, Cheogram, Converse, Gajim, Kaindan, monocles, Psi etc. to allow PubSub for comments and reactions.

More Information

We have a good discussion at Chyrp Lite (PHP CMS)
xenocrat/chyrp-lite#250

I have also made a proposal for scheme for managing CMS in node
movim/movim#1312

from pelican.

sjehuda avatar sjehuda commented on May 28, 2024

Please be aware of the following implementations.

Reading from PubSub

See code at: codeberg.org

Sending to PubSub

See function xmpp_pubsub_send_unread_items at gitgud.io (it is function which calls to other functions that return node, item and send the result).

I am willing to handle the XMPP code for you if you want.

from pelican.

silverhook avatar silverhook commented on May 28, 2024

This is way over my head, I just happen to host my own Pelican and XMPP server and would really like to see an XMPP renaissance. Unfortunately, other than with licensing, I don’t think I can help much here. Would love to see how it all plays together though!

To make things even more connected, Libervia has some code to bridge XMPP PubSub with ActivityPub:
https://fosdem.org/2024/schedule/event/fosdem-2024-2857-bridging-open-protocols-xmpp-and-activitypub-gateway-via-libervia/

from pelican.

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.