/*
- * Sone - AbstractPostBuilder.java - Copyright © 2013 David Roden
+ * Sone - AbstractPostBuilder.java - Copyright © 2013–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
this.currentTime = false;
this.time = post.getTime();
this.text = post.getText();
- this.recipientId = (post.getRecipient() != null) ? post.getRecipient().getId() : null;
+ this.recipientId = post.getRecipientId().orNull();
return this;
}