Switch the order of the arguments
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index cabc44e..5fe5efb 100644 (file)
@@ -793,7 +793,7 @@ public class WebInterface {
        private Collection<Sone> getMentionedSones(String text) {
                /* we need no context to find mentioned Sones. */
                Set<Sone> mentionedSones = new HashSet<Sone>();
-               for (Part part : soneTextParser.parse(null, text)) {
+               for (Part part : soneTextParser.parse(text, null)) {
                        if (part instanceof SonePart) {
                                mentionedSones.add(((SonePart) part).getSone());
                        }