Snap with 20% of its employees gone is more valuable because it focuses on the business that actually makes money instead of hopeful moonshots. You most likely wouldn't see a large uptick in value if this was an industrial "value" company.
But why in the world is the comment currently being downvoted?
Anyone in tech, working for a non-profitable publicly traded company should be ready for layoffs. This will typically happen after earnings (otherwise you signal there is a problem before your investors know the current state of the company which is bad).
This is clearly the message being sent by this stock price rise. Everyone can pretend it's just a snap specific problem but this is coming to everyone.
edit: to add, if you look at Wayfair stock the day they announced only 5% layoffs, 8/19, their stock dropped considerably. The message from wall street is not "layoffs" but "serious layoffs"
The message can be "we should not have hired so fast"
Or perhaps "take decisive action to respond to market conditions". O
Or any number of other messages.