ablog
ablog copied to clipboard
XMPP: Post to PubSub
Describe the feature
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 xmpp:microblog:0 as a common choice to manage news for client accounts (e.g. [email protected]), yet a component account (e.g. pubsub.ablog.i2p) may use all of its nodes for this purpose.
pubsub.ablog.i2p/
|
|-- updates/
|-- Sombre
`-- Varied
|-- releases/
`-- events/
pubsub service/
|
|-- node/
|-- item
`-- item
|-- node/
`-- node/
Proposed solution
I have posted this ticket to multiple projects.
I am willing to work on this feature.
I have made a software currently it is a read-only system) that realizes viewing PubSub node items as Atom XML feeds over HTTP(6).
- XEP-0060: Publish-Subscribe
- RFC 4287: The Atom Syndication Format
- Atom Over XMPP
- XEP-0277: Microblogging over XMPP
- XEP-0472: Pubsub Social Feed
- The Rivista Publication Project You should see it (including screenshots)
Hi @sjehuda,
Do you know how much effort this would be to add to Ablog?
Do you know how much effort this would be to add to Ablog?
No. I do not know, yet.
-
I have yet to add publishing functionality to my project (Rivista).
-
I did not even observe the code of ABlog.
If you would guide me through ABlog, I will gladly contribute XMPP related code.
Once I would know what content should be sent, it will require several hours or a day, at most.
I will be at https://xmpp.link/#[email protected]?join and we can discuss about it there.
To be honest, while I used to maintain this library. I am not really versed on how it works and adding new features.
This is what I think I need to know.
-
Where is the code which is responsible for reading or parsing content files (RST, MD etc.)
-
Where is the code which initiates the publishing process.
Once I know these, I would probably know what to do.
This is what the XMPP code would do.
-
Read the content files.
-
Pack the files as HTML within Atom Syndication Format.
-
Send the files to XMPP PubSub node.
Once this is done, we might want to arrange the nodes by dates, tags and other parameters that would help to map contents.
I actually don't know where the code is for those two parts. I am trying to re template the package interaly, so when I have a better idea of those. Hopefully I can tell you.