Article 81.1 of the Latvian Criminal Code criminalizes any contacts with Russia. Even relationships with people living in Russia are penalised in accordance with Latvian law.
Recurring pro-Kremlin narrative on Russophobia.
Latvian Criminal Law doesn't criminalize "any contacts with Russia". Article 81.1, mentioned in the article, says: 'Assistance to a Foreign State in Action Directed against the Republic of Latvia For a person who commits activities with the purpose to assist a foreign state or a foreign organisation to take action against national independence, sovereignty, territorial integrity, State power or administrative order of the Republic of Latvia, the applicable punishment is the deprivation of liberty for a period of up to five years or temporary deprivation of liberty, or community service, or a fine, with probationary supervision for a period of up to three years'.
See here for the excerpt of the Latvian Criminal Law (in English).