X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=2e1b5fb84b45d46e91732046325dcb66c6210147;hb=ae7ed7856de14eb339e77ae86e6d4a8b9284162d;hp=291cb95cd35e163c0812040041648c931762d0c2;hpb=722b47810ffbe01465f104791c9f660ae161023b;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 291cb95..2e1b5fb 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -607,7 +607,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, } logger.info(String.format("Adding Sone from OwnIdentity: %s", ownIdentity)); LocalSone sone = database.registerLocalSone(ownIdentity); - SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, ownIdentity.getId()); + SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, database, ownIdentity.getId()); eventBus.register(soneInserter); synchronized (soneInserters) { soneInserters.put(sone, soneInserter); @@ -949,7 +949,6 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, final Post post = postBuilder.build(); database.storePost(post); eventBus.post(new NewPostFoundEvent(post)); - sone.addPost(post); touchConfiguration(); localElementTicker.schedule(new MarkPostKnown(post), 10, TimeUnit.SECONDS); return post;