Store locality of a Sone in the Sone itself, remove related methods from Database.
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index 3362132..cb23948 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - FreenetLinkParser.java - Copyright © 2010 David Roden
+ * Sone - FreenetLinkParser.java - Copyright © 2010–2012 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
@@ -207,7 +207,7 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                                         * don’t use create=true above, we don’t want the
                                                         * empty shell.
                                                         */
-                                                       sone = new Sone(soneId);
+                                                       sone = new Sone(soneId, false);
                                                }
                                                parts.add(new SonePart(sone));
                                                line = line.substring(50);