projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert “image insert failed” into EventBus-based event.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
FollowSoneAjaxPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
b/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
index
5c3e5f4
..
ce0fd06
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - FollowSoneAjaxPage.java - Copyright © 2010 David Roden
+ * Sone - FollowSoneAjaxPage.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
*
* 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
@@
-52,8
+52,8
@@
public class FollowSoneAjaxPage extends JsonPage {
if (currentSone == null) {
return createErrorJsonObject("auth-required");
}
if (currentSone == null) {
return createErrorJsonObject("auth-required");
}
-
currentSone.addFriend(
soneId);
- webInterface.getCore().
touchConfiguration(
);
+
webInterface.getCore().followSone(currentSone,
soneId);
+ webInterface.getCore().
markSoneKnown(webInterface.getCore().getSone(soneId)
);
return createSuccessJsonObject();
}
return createSuccessJsonObject();
}