Only use the first ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 10 Jan 2012 09:53:07 +0000 (10:53 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 10 Jan 2012 09:53:07 +0000 (10:53 +0100)
src/main/resources/static/javascript/sone.js

index e271246..6afb232 100644 (file)
@@ -874,7 +874,7 @@ function ajaxifyPost(postElement) {
                }
        });
        (function(postElement) {
-               var soneId = $(".sone-menu-id", postElement).text();
+               var soneId = $(".sone-menu-id:first", postElement).text();
                $(".sone-post-menu .follow", postElement).click(function() {
                        var followElement = this;
                        ajaxGet("followSone.ajax", { "sone": soneId, "formPassword": getFormPassword() }, function() {