divestedcg / SBNR

SBNR is a KISS PHP "micro-framework" that allows rapidly creating multi-page or single-page websites.
Other
15 stars 3 forks source link

XMPP: Post to PubSub #1

Open sjehuda opened 5 months ago

sjehuda commented 5 months ago

Greetings!

In XMPP, using PubSub(1) (XEP-0060), it is possible to store posts as Atom Syndication(2) entries into XMPP(3).

There are several XMPP extensions that apply it, namely XEP-0227 (4) and XEP-0472 (5) which make node urn:xmpp:microblog:0 as a common choice to manage news for client accounts (e.g. blog@sbnr.site), yet a component account (e.g. pubsub.sbnr.site) may use all of its nodes for this purpose.

pubsub.sbnr.site/
|
|-- updates/
    |-- Sombre
     `-- Varied
|-- releases/
 `-- events/
pubsub service/
|
|-- node/
    |-- item
     `-- item
|-- node/
 `-- node/

A PHP library that can be utilized would be Moxl of Movim.

I have made a script that realizes viewing PubSub node items as Atom XML feeds over HTTP.

  1. XEP-0060: Publish-Subscribe
  2. RFC 4287: The Atom Syndication Format
  3. Atom Over XMPP
  4. XEP-0277: Microblogging over XMPP
  5. XEP-0472: Pubsub Social Feed
  6. Moxl
  7. PubSub Over HTTP
SkewedZeppelin commented 5 months ago

That is cool!

But unfortunately I don't actively develop or use SBNR for a few years now.

sjehuda commented 5 months ago

Very well!

Mr. SkewedZeppelin??? Of Divest OS! Aha! I did not even notice it was you on this website!


Back to our subject:

A Pico member has suggested me to write a plugin, yet I am not coding in PHP much.

Would it be possible to have you supervising and guiding me? This is not an urgent matter, so we can do it from time to time, if you would agree.