projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store the originating Sone in the post.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Sone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
33b97a0
..
27c7852
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-217,12
+217,13
@@
public class Sone {
}
/**
}
/**
- * Adds
the given pos
t to this Sone.
+ * Adds
a post with the given tex
t to this Sone.
*
*
- * @param
pos
t
- * The
post to add
+ * @param
tex
t
+ * The
text to post
*/
*/
- public synchronized void addPost(Post post) {
+ public synchronized void addPost(String text) {
+ Post post = new Post(this, System.currentTimeMillis(), text);
if (posts.add(post)) {
modificationCounter++;
}
if (posts.add(post)) {
modificationCounter++;
}