Commit 4cfbba635d8d159f21cb7f2ceb4074d6142da7c5
Fix handling channel unsubscription
cel committed on 5/12/2017, 10:29:05 PMParent: efdeaa0a623ee9b7e7a4d700a02f61921260e575
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -147,9 +147,9 @@ | ||
147 | 147 … | { |
148 | 148 … | if (msg.value.content.subscribed) |
149 | 149 … | channelSubscriptions[msg.value.content.channel] = 1 |
150 | 150 … | else |
151 | - delete following[msg.value.content.channel] | |
151 … | + delete channelSubscriptions[msg.value.content.channel] | |
152 | 152 … | } |
153 | 153 … | }) |
154 | 154 … | |
155 | 155 … | serveFeeds(req, res, following, channelSubscriptions, feedId, 'user feed ' + about.name) |
Built with git-ssb-web