diff -r d566d08c20d6 -r dc04a3c2c557 src/org/sonews/storage/impl/DrupalDatabase.java --- a/src/org/sonews/storage/impl/DrupalDatabase.java Fri Oct 21 18:21:30 2011 +0200 +++ b/src/org/sonews/storage/impl/DrupalDatabase.java Sun Oct 23 23:37:39 2011 +0200 @@ -419,7 +419,11 @@ String text = m.getBodyXhtmlFragment(); if (subject == null || subject.length() < 1) { - subject = text.substring(0, Math.min(10, text.length())); + String plainText = m.getBodyPlainText(); + subject = plainText.substring(0, Math.min(32, plainText.length())); + if (subject.length() < plainText.length()) { + subject = subject + "…"; + } } insertArticle(article.getAuthenticatedUser(), subject, text, parentID, groupID);