aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-22 11:36:24 +0300
committerGravatar Vitaly Takmazov2018-10-22 11:36:24 +0300
commit3a5b2b147cea66b251e985e8f3f00abfed0d77d6 (patch)
treed895647e5f091dbe2a52958e97a26a891e8277d4 /juick-server/src/main
parent2724726cacc605423b14e982afec744586dd08c4 (diff)
xmpp: show Juick birthday in vCard
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPConnection.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
index f405e384..c861b757 100644
--- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java
+++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
@@ -73,6 +73,7 @@ import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
@@ -142,6 +143,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
System.getProperty("os.name", "generic")));
VCard vCard = new VCard();
vCard.setFormattedName("Juick");
+ vCard.setBirthday(LocalDate.of(2008, 10, 22));
try {
vCard.setUrl(new URL("http://juick.com/"));
vCard.setPhoto(new VCard.Image("image/png", IOUtils.toByteArray(