Skip to content

Commit 2280175

Browse files
author
Lloyd Watkin
committed
Ensure that the in-reply-to value is set in database
1 parent e98427e commit 2280175

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set

1 file changed

+5
-0
lines changed

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/Publish.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ private void extractItemDetails() throws InterruptedException {
123123

124124
entry = entryContent.getPayload();
125125
id = GlobalItemIDImpl.toLocalId(entry.element("id").getText());
126+
Element inReplyToElement = entry.element("in-reply-to");
127+
if (null == inReplyToElement) {
128+
return;
129+
}
130+
inReplyTo = inReplyToElement.attributeValue("ref");
126131
}
127132

128133
public void setEntryValidator(ValidateEntry validator) {

0 commit comments

Comments
 (0)