Hi! Currently I'm trying to implement reshares and favorites from Friendica to GNU Social. I did some reverse engineering to find out the structure. Then I tried to create something that looks similar. See the two files that I attached.
I distributed these notes to other servers - but only some of them accepted them. One server with 1.2.0-beta4 hadn't accepted the second try - but the first one. Another server with the same version had accepted both posts - while a statusnet server with 1.1.1-release hadn't accepted any of the reshares - and several other servers doesn't seem to be happy with the reshares as well (while they accept my regular messages) Same happens with my favorite messages. Some servers accept them - some others don't (but not all the time). Do I send some bad data? Which fields are really necessary, which ones are optional, which ones mustn't be transmitted? Michael
<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/"> <author> <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type> <uri>https://pirati.ca/profile/heluecht</uri> <name>Michael Vogel</name> <link rel="alternate" type="text/html" href="https://pirati.ca/profile/heluecht"/> <link rel="avatar" type="image/jpeg" media:width="175" media:height="175" href="http://pirati.ca/photo/07c4f9fc55f29d975947f35efda4aa7c-4.png"/> <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="http://pirati.ca/photo/07c4f9fc55f29d975947f35efda4aa7c-5.png"/> <poco:preferredUsername>heluecht</poco:preferredUsername> <poco:displayName>Michael Vogel</poco:displayName> <poco:note>Pirat aus Hamburg Mitte. Fahrrad-Freak, Social-Media-Junky, Open-Source-Programmierer und Franzbr&ouml;tchen-Fan.</poco:note> <poco:address> <poco:formatted>Hamburg, Germany</poco:formatted> </poco:address> <poco:urls> <poco:type>homepage</poco:type> <poco:value>http://digitale-notdurft.de/</poco:value> <poco:primary>true</poco:primary> </poco:urls> <followers url="http://pirati.ca/viewcontacts/heluecht"/> <statusnet:profile_info local_id="1"/> </author> <id>urn:X-dfrn:pirati.ca:1:ec054ce75356eefc5354523621158443</id> <title>Favorite</title> <content type="html"><a href="https://pirati.ca/profile/heluecht" target="_blank">Michael Vogel</a> mag Redenter for blog.fefe.de <a href="http://status.pirati.ca/fefedent" target="_blank">http://status.pirati.ca/fefedent</a>s Status <a href="https://pirati.ca/display/heluecht/10408351" target="_blank">https://pirati.ca/display/heluecht/10408351</a></content> <link rel="alternate" type="text/html" href="http://pirati.ca/display/00000000fd7f4439697e6b1a24504f7e5cf8e9e8"/> <status_net notice_id="10408628"/> <activity:verb>http://activitystrea.ms/schema/1.0/favorite</activity:verb> <published>2016-03-20T19:38:59Z</published> <updated>2016-03-20T19:38:59Z</updated> <thr:in-reply-to ref="https://status.pirati.ca/notice/1922177" type="text/html" href="http://pirati.ca/display/a56c008bea1ffe11f6faf01f78a1ba2fe0508643"/> <activity:object> <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type> <id>https://status.pirati.ca/notice/1922177</id> <title/> <content type="html">Infrastrukturapokalypse des Tages: Berlin-Wahlen im ... <a href="http://ur1.ca/onrf6" target="_blank">http://ur1.ca/onrf6</a><br><a href="http://blog.fefe.de/?ts=a8103516" title="Fefes Blog" class="attachment thumbnail" rel="nofollow external">Fefes Blog</a><br></content> <link rel="alternate" type="text/html" href="http://pirati.ca/display/a56c008bea1ffe11f6faf01f78a1ba2fe0508643"/> <status_net notice_id="10408351"/> <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb> <published>2016-03-20T19:24:04Z</published> <updated>2016-03-20T19:24:04Z</updated> </activity:object> <link rel="related" href="http://pirati.ca/display/a56c008bea1ffe11f6faf01f78a1ba2fe0508643"/> <link rel="ostatus:conversation" href="http://pirati.ca/display/heluecht/10408351"/> <ostatus:conversation>http://pirati.ca/display/heluecht/10408351</ostatus:conversation> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="https://status.pirati.ca/fefedent"/> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="http://status.pirati.ca/fefedent"/> <link rel="ostatus:attention" href="http://activityschema.org/collection/public"/> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/> <statusnet:notice_info local_id="10408628" source="web"/> </entry>
<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/"> <author> <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type> <uri>https://pirati.ca/profile/heluecht</uri> <name>Michael Vogel</name> <link rel="alternate" type="text/html" href="https://pirati.ca/profile/heluecht"/> <link rel="avatar" type="image/jpeg" media:width="175" media:height="175" href="http://pirati.ca/photo/07c4f9fc55f29d975947f35efda4aa7c-4.png"/> <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="http://pirati.ca/photo/07c4f9fc55f29d975947f35efda4aa7c-5.png"/> <poco:preferredUsername>heluecht</poco:preferredUsername> <poco:displayName>Michael Vogel</poco:displayName> <poco:note>Pirat aus Hamburg Mitte. Fahrrad-Freak, Social-Media-Junky, Open-Source-Programmierer und Franzbr&ouml;tchen-Fan.</poco:note> <poco:address> <poco:formatted>Hamburg, Germany</poco:formatted> </poco:address> <poco:urls> <poco:type>homepage</poco:type> <poco:value>http://digitale-notdurft.de/</poco:value> <poco:primary>true</poco:primary> </poco:urls> <followers url="http://pirati.ca/viewcontacts/heluecht"/> <statusnet:profile_info local_id="1"/> </author> <id>urn:X-dfrn:pirati.ca:1:ec054ce71556f1838fe2726534677213</id> <title>heluecht repeated a notice by benediktg</title> <content type="html">&#9842; @Benedikt ([email protected]): :-D<br><br><a href="https://twitter.com/Weltregierung/status/712313158069780480" target="_blank">https://twitter.com/Weltregierung/status/712313158069780480</a> <a href="https://twitter.com/Weltregierung/status/712249543618908160" target="_blank">https://twitter.com/Weltregierung/status/712249543618908160</a> <a href="https://gnusocial.de/attachment/2768267" target="_blank">https://gnusocial.de/attachment/2768267</a><br><a href="https://twitter.com/Weltregierung/status/712249543618908160" title="Words like swords on Twitter" class="attachment thumbnail" rel="nofollow external">Words like swords on Twitter</a><br></content> <link rel="alternate" type="text/html" href="http://pirati.ca/display/ec054ce71556f1838fe2726534677213"/> <status_net notice_id="10432098"/> <activity:verb>http://activitystrea.ms/schema/1.0/share</activity:verb> <published>2016-03-22T17:40:32Z</published> <updated>2016-03-22T17:40:32Z</updated> <activity:object> <activity:object-type>http://activitystrea.ms/schema/1.0/activity</activity:object-type> <id>tag:gnusocial.de,2016-03-22:noticeId=7259457:objectType=note</id> <title>New comment by benediktg</title> <content type="html">:-D<br><br><a href="https://twitter.com/Weltregierung/status/712313158069780480" target="_blank">https://twitter.com/Weltregierung/status/712313158069780480</a> <a href="https://twitter.com/Weltregierung/status/712249543618908160" target="_blank">https://twitter.com/Weltregierung/status/712249543618908160</a> <a href="https://gnusocial.de/attachment/2768267" target="_blank">https://gnusocial.de/attachment/2768267</a><br><a href="https://twitter.com/Weltregierung/status/712249543618908160" title="Words like swords on Twitter" class="attachment thumbnail" rel="nofollow external">Words like swords on Twitter</a><br></content> <link rel="alternate" type="text/html" href="http://pirati.ca/display/28bfffee085f9553b49c0d029224dbab982e6300"/> <status_net notice_id="10432072"/> <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb> <published>2016-03-22T17:37:31Z</published> <updated>2016-03-22T17:37:31Z</updated> <author> <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type> <uri>https://gnusocial.de/benediktg</uri> <name>Benedikt</name> <link rel="alternate" type="text/html" href="https://gnusocial.de/benediktg"/> <link rel="avatar" type="image/jpeg" media:width="175" media:height="175" href="https://gnusocial.de/avatar/199016-original-20151216000236.jpeg"/> <poco:preferredUsername>benediktg</poco:preferredUsername> <poco:displayName>Benedikt</poco:displayName> <poco:note>studying computer science and preferring Free Software</poco:note> <poco:address> <poco:formatted>Chemnitz, Germany</poco:formatted> </poco:address> </author> <activity:object> <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type> <id>tag:gnusocial.de,2016-03-22:noticeId=7259457:objectType=note</id> <title>New comment by benediktg</title> <content type="html">:-D<br><br><a href="https://twitter.com/Weltregierung/status/712313158069780480" target="_blank">https://twitter.com/Weltregierung/status/712313158069780480</a> <a href="https://twitter.com/Weltregierung/status/712249543618908160" target="_blank">https://twitter.com/Weltregierung/status/712249543618908160</a> <a href="https://gnusocial.de/attachment/2768267" target="_blank">https://gnusocial.de/attachment/2768267</a><br><a href="https://twitter.com/Weltregierung/status/712249543618908160" title="Words like swords on Twitter" class="attachment thumbnail" rel="nofollow external">Words like swords on Twitter</a><br></content> <link rel="alternate" type="text/html" href="http://pirati.ca/display/28bfffee085f9553b49c0d029224dbab982e6300"/> <status_net notice_id="10432072"/> <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb> <published>2016-03-22T17:37:31Z</published> <updated>2016-03-22T17:37:31Z</updated> </activity:object> </activity:object> <link rel="ostatus:conversation" href="http://pirati.ca/display/heluecht/10432098"/> <ostatus:conversation>http://pirati.ca/display/heluecht/10432098</ostatus:conversation> <ostatus:forward ref="tag:gnusocial.de,2016-03-22:noticeId=7259457:objectType=note" href="http://pirati.ca/display/28bfffee085f9553b49c0d029224dbab982e6300"/> <link rel="ostatus:attention" href="http://activityschema.org/collection/public"/> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/> <category term="bruesselâ"/> <link rel="enclosure" href="https://twitter.com/Weltregierung/status/712249543618908160" type="text/html; charset=UTF-8" length="" title="Words like swords on Twitter"/> <link rel="preview" href="https://pbs.twimg.com/media/CeJrL3sXIAAkrm6.jpg:large" media:width="892" media:height="481"/> <statusnet:notice_info local_id="10432098" source="web" repeat_of="10432072"/> </entry>
signature.asc
Description: OpenPGP digital signature
