A teenager who travelled from Middlesbrough after learning of the violence taking place in the Hartlepool riot has been locked up.