John Gallagher, who moved from Liverpool to Aberdeen in 2019, used Instagram and Telegram to pedal his Class A drugs.