mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closes #2356
This commit is contained in:
		| @@ -87,7 +87,7 @@ module.exports = function(Posts) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			db.sortedSetRemove('categories:recent_posts:cid:' + cid, pid, callback); | ||||
| 			db.sortedSetRemove('cid:' + cid + ':pids', pid, callback); | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| @@ -97,7 +97,7 @@ module.exports = function(Posts) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			db.sortedSetAdd('categories:recent_posts:cid:' + cid, timestamp, pid, callback); | ||||
| 			db.sortedSetAdd('cid:' + cid + ':pids', timestamp, pid, callback); | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| @@ -180,7 +180,7 @@ module.exports = function(Posts) { | ||||
| 			} | ||||
|  | ||||
| 			var sets = cids.map(function(cid) { | ||||
| 				return 'categories:recent_posts:cid:' + cid; | ||||
| 				return 'cid:' + cid + ':pids'; | ||||
| 			}); | ||||
|  | ||||
| 			db.sortedSetsRemove(sets, pid, callback); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user