The 1187 stock will fit on the 870 (and provide a nice cavity to hide your stash), but not vice-versa, because the 1187 has an AR-15-style buffer tube in the stock.
Surely somebody makes an M4-style telescoping stock for the 1187. (If not, don't steal my idea.)