Loomio

Protocol description for repeating of posts?

MV Michael Vogel Public Seen by 20

Is there any protocol description that explains, how to repeat a message? I'm a programmer in the friendica project. by now, friendica can interact greatly with Diaspora - but there is no possibility of native repeating of messages.

What do I have to send to the Diaspora servers to tell that User X repeated the item with the guid Y?

Thanks!

G

goob Tue 1 Apr 2014 5:04PM

Hi, Michael. Loomio is a platform for community governance. It's the wrong place for help requests.

Your best bet would be to pop over to the diaspora-dev IRC channel, or posting to the diaspora-dev mailing list. See https://wiki.diasporafoundation.org/How_we_communicate for details.

JR

Jason Robinson Tue 1 Apr 2014 7:09PM

@goob hmm this is not really a help request but a developer discussion relating to the federation protocol - I think this is the correct place, imho :)

If an answer is found, we should update it in the wiki -> https://wiki.diasporafoundation.org/Federation_protocol_overview

JH

Jonne Haß Tue 1 Apr 2014 7:26PM

We call this a reshare. It's a normal post that references the guid of the original post, https://github.com/Raven24/diaspora-federation/blob/master/lib/diaspora-federation/entities/reshare.rb

You can fetch the original post by extracting the host of the original post from the root_diaspora_id and then fetching host/posts/guid.xml

MV

Michael Vogel Tue 1 Apr 2014 10:51PM

@jonnehass Thanks! Must the post be absolutely identical to the original one? Friendica is using BBCode. So every post from Diaspora is converted from Markdown to BBCode - and vice versa.

JH

Jonne Haß Wed 2 Apr 2014 6:53AM

A reshare doesn't care about the contents of the referenced post, only the guid counts.