Commit 3c18d0dd authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Revert "Make sure there's a subject, otherwise i18n() goes mental"

This reverts commit 3f0b8f91.
parent 3108940b
......@@ -90,12 +90,10 @@ void KNSReviews::commentsReceived(Attica::BaseJob* j)
Attica::Comment::List comments = job->itemList();
QVector<ReviewPtr> reviews;
reviews.reserve(comments.count());
AbstractResource* app = job->property("app").value<AbstractResource*>();
foreach(const Attica::Comment& comment, comments) {
//TODO: language lookup?
const QString subject = comment.subject().isEmpty() ? QStringLiteral(".") : comment.subject();
ReviewPtr r(new Review(app->name(), app->packageName(), QStringLiteral("en"), subject, comment.text(), comment.user(),
ReviewPtr r(new Review(app->name(), app->packageName(), QStringLiteral("en"), comment.subject(), comment.text(), comment.user(),
comment.date(), true, comment.id().toInt(), comment.score()/10, 0, 0, QString()
));
reviews += r;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment