Skip to content

Commit 5319303

Browse files
author
Lloyd Watkin
committed
Add review namespace and example payload
1 parent 910c71d commit 5319303

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/main/java/org/buddycloud/channelserver/channel/ValidateEntry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class ValidateEntry {
3333
public static final String NS_ACTIVITYSTREAM = "http://activitystrea.ms/spec/1.0/";
3434
public static final String NS_ATOM_THREAD = "http://purl.org/syndication/thread/1.0";
3535
public static final String NS_GEOLOCATION = "http://jabber.org/protocol/geoloc";
36+
public static final String NS_REVIEW = "http://activitystrea.ms/schema/1.0/review";
3637

3738
public static final String AUTHOR_URI_PREFIX = "acct:";
3839
public static final String AUTHOR_TYPE = "person";
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
<iq from="[email protected]/balcony" to="channels.shakespeare.lit" type="set" id="publish:20">
3+
<pubsub xmlns="http://jabber.org/protocol/pubsub">
4+
<publish node="/user/[email protected]/posts">
5+
<item>
6+
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:review="http://activitystrea.ms/schema/1.0/review">
7+
<id>96da02ee1baef61e767742844207bec4</id>
8+
<title>rating</title>
9+
<published>2014-01-01T00:00:00.000Z</published>
10+
<updated>2014-01-01T00:00:00.000Z</updated>
11+
<author>
12+
<name>[email protected]</name>
13+
<jid xmlns="http://buddycloud.com/atom-elements-0">[email protected]</jid>
14+
</author>
15+
<content type="text">rating:5.0</content>
16+
<activity:verb>post</activity:verb>
17+
<activity:object>
18+
<activity:object-type>post</activity:object-type>
19+
</activity:object>
20+
<thr:in-reply-to ref="1" />
21+
<activity:target>
22+
<id>tag:channels.shakespeare.lit,/users/[email protected]/posts,2</id>
23+
<activity:object-type>post</activity:object-type>
24+
</activity:target>
25+
<review:rating>5.0</review:rating>
26+
</entry>
27+
</item>
28+
</publish>
29+
</pubsub>
30+
</iq>

0 commit comments

Comments
 (0)