projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Store friend Sones as strings, not as Sone objects.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
SoneTemplatePage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java
b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java
index
f38e845
..
2953b0d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java
@@
-137,12
+137,7
@@
public class SoneTemplatePage extends TemplatePage {
if (soneId == null) {
return null;
}
- for (Sone sone : webInterface.core().getSones()) {
- if (sone.getId().equals(soneId)) {
- return sone;
- }
- }
- return null;
+ return webInterface.getCore().getLocalSone(soneId);
}
/**