Videos can be embedded inside posts with text, and clients that cannot handle them (e.g. Old Reddit and Slide for Reddit) will show a URL instead. They usually are in the form of https://reddit.com/link/postid/video/videoid/player, but some other valid URLs can be produced, which the code tries to handle.
Videos can be embedded inside posts with text, and clients that cannot handle them (e.g. Old Reddit and Slide for Reddit) will show a URL instead. They usually are in the form of
https://reddit.com/link/postid/video/videoid/player
, but some other valid URLs can be produced, which the code tries to handle.