mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixed slug issue with topics
This commit is contained in:
@@ -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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user