Former Malian PM Moussa Mara has been given one year imprisonment over a social media post supporting political prisoners.