Brisbane man flew Nazi flag as 'a joke'