From 998f780fd2bfcc208f7e0e89fe36316630a2329a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 31 Dec 2013 13:11:32 -0500 Subject: [PATCH] fuck, I am dumb. --- src/upgrade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upgrade.js b/src/upgrade.js index 6fc34f2bb2..a506cff10b 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -50,8 +50,8 @@ Upgrade.upgrade = function(callback) { async.each(tids, function(tid, next) { Topics.getTopicField(tid, 'title', function(err, title) { - newTitle = Utils.slugify(title); - Topics.setTopicField(tid, 'title', newTitle, next); + newTitle = tid + '/' + Utils.slugify(title); + Topics.setTopicField(tid, 'slug', newTitle, next); }); }, function(err) { next(err);