From: David ‘Bombe’ Roden Date: Fri, 8 Apr 2011 15:25:13 +0000 (+0200) Subject: Add likes to posts. X-Git-Tag: 0.6.5^2~39^2~20 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=941e378448a09d3895979b192ee144df6d855c9f;p=Sone.git Add likes to posts. --- diff --git a/src/main/java/net/pterodactylus/sone/fcp/AbstractSoneCommand.java b/src/main/java/net/pterodactylus/sone/fcp/AbstractSoneCommand.java index 8c4085c..f3e2923 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/AbstractSoneCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/AbstractSoneCommand.java @@ -172,6 +172,7 @@ public abstract class AbstractSoneCommand extends AbstractCommand { } postBuilder.put(prefix + "Time", post.getTime()); postBuilder.put(prefix + "Text", post.getText()); + postBuilder.put(encodeLikes(core.getLikes(post), prefix + "Likes.")); if (includeReplies) { List replies = core.getReplies(post);