projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always follow the official Sone when creating a new Sone.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/Core.java
b/src/main/java/net/pterodactylus/sone/core/Core.java
index
1fe843e
..
4b7e199
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/Core.java
+++ b/
src/main/java/net/pterodactylus/sone/core/Core.java
@@
-876,6
+876,9
@@
public class Core implements IdentityListener, UpdateListener {
return null;
}
Sone sone = addLocalSone(ownIdentity);
return null;
}
Sone sone = addLocalSone(ownIdentity);
+ sone.getOptions().addBooleanOption("AutoFollow", new DefaultOption<Boolean>(false));
+ sone.addFriend("nwa8lHa271k2QvJ8aa0Ov7IHAV-DFOCFgmDt3X6BpCI");
+ saveSone(sone);
return sone;
}
return sone;
}
@@
-920,7
+923,7
@@
public class Core implements IdentityListener, UpdateListener {
@Override
@SuppressWarnings("synthetic-access")
public void run() {
@Override
@SuppressWarnings("synthetic-access")
public void run() {
- soneDownloader.fetchSone(sone);
+ soneDownloader.fetchSone(sone
, sone.getRequestUri()
);
}
}, "Sone Downloader").start();
}
}, "Sone Downloader").start();
@@
-1493,6
+1496,7
@@
public class Core implements IdentityListener, UpdateListener {
synchronized (posts) {
posts.remove(post.getId());
}
synchronized (posts) {
posts.remove(post.getId());
}
+ coreListenerManager.firePostRemoved(post);
synchronized (newPosts) {
markPostKnown(post);
knownPosts.remove(post.getId());
synchronized (newPosts) {
markPostKnown(post);
knownPosts.remove(post.getId());
@@
-1902,6
+1906,7
@@
public class Core implements IdentityListener, UpdateListener {
public void run() {
Sone sone = getRemoteSone(identity.getId());
sone.setIdentity(identity);
public void run() {
Sone sone = getRemoteSone(identity.getId());
sone.setIdentity(identity);
+ sone.setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), sone.getLatestEdition()));
soneDownloader.addSone(sone);
soneDownloader.fetchSone(sone);
}
soneDownloader.addSone(sone);
soneDownloader.fetchSone(sone);
}