fixed slug issue with topics

This commit is contained in:
psychobunny
2013-05-28 14:51:49 -04:00
parent f9e015f194
commit 11ad3a867e
2 changed files with 1 additions and 8 deletions

View File

@@ -37,13 +37,6 @@
posts: 'tid:' + tid + ':posts', posts: 'tid:' + tid + ':posts',
queued_tids: 'topics:queued:tid', queued_tids: 'topics:queued:tid',
slug: function(slug) {
return {
tid: 'topic:slug:' + slug + ':tid'
}
}
} }
}; };

View File

@@ -329,7 +329,7 @@ marked.setOptions({
RDB.set(schema.topics(tid).slug, slug); RDB.set(schema.topics(tid).slug, slug);
RDB.set(schema.topics(tid).timestamp, new Date().getTime()); RDB.set(schema.topics(tid).timestamp, new Date().getTime());
RDB.set(schema.topics().slug(slug).tid, tid); RDB.set('topic:slug:' + slug + ':tid', tid);
// Posts // Posts
posts.create(uid, tid, content, function(pid) { posts.create(uid, tid, content, function(pid) {