/*
- * Sone - MemoryPostBuilder.java - Copyright © 2013–2016 David Roden
+ * Sone - MemoryPostBuilder.java - Copyright © 2013–2019 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
@Override
public Post build() throws IllegalStateException {
validate();
- Post post = new MemoryPost(database, soneProvider, randomId ? UUID.randomUUID().toString() : id, senderId, recipientId, currentTime ? System.currentTimeMillis() : time, text);
- post.setKnown(database.isPostKnown(post));
- return post;
+ return new MemoryPost(database, soneProvider, randomId ? UUID.randomUUID().toString() : id, senderId, recipientId, currentTime ? System.currentTimeMillis() : time, text);
}
}