Check correctly for recipient ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 28 Jan 2013 21:46:22 +0000 (22:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 28 Jan 2013 21:46:22 +0000 (22:46 +0100)
src/main/resources/templates/insert/sone.xml

index e615725..14cb8a4 100644 (file)
@@ -31,7 +31,7 @@
                <%foreach currentSone.posts post>
                <post>
                        <id><% post.id|xml></id>
-                       <recipient><%ifnull !post.recipient><% post.recipient.id|xml><%/if></recipient>
+                       <recipient><%if post.recipientId.present><% post.recipientId.get|xml><%/if></recipient>
                        <time><% post.time></time>
                        <text><% post.text|xml></text>
                </post>