BERLIN — Germany’s far right and President Trump have long voiced similar complaints about their respective treatment by the media: too biased, too liberal. Now, both have suggested or attempted to implement a similar response — exclusion.

On Wednesday, Trump publicly appeared to ponder the possibility of taking away credentials from journalists. “Why do we work so hard in working with the media when it is corrupt? Take away credentials?” he asked on Twitter. At a subsequent press briefing, White House press secretary Sarah Huckabee Sanders did not rule out that possibility.

In Germany, the leading opposition party essentially tried to put that idea to the test this week — and failed.

When the far-right Alternative for Germany (AfD) party announced during a news conference on Tuesday that a reporter with the top-selling Bild tabloid would not be allowed to ask questions during the event, all German journalists left the room in protest. The AfD subsequently had to cancel the press briefing in Brandenburg’s regional state parliament.

The reporter excluded from the press briefing, Michael Sauerbier, had asked critical questions about a senior AfD official’s alleged contact to a right-wing extremist group during a previous press event.

According to journalists present at the briefing, the far-right party cited his questions as the reason for silencing him. The Brandenburg AfD’s press office did not respond to calls on Thursday, but in a prior statement it defended its decision, implying that Sauerbier had insulted “his hosts.” On its Facebook page, the party said that all journalists could request comments on the phone or via email and that the briefing restriction was supposed to allow the AfD to “conduct the press conference in a professional manner.”

The AfD and Trump are, of course, hardly comparable. Trump has at times engaged with the media and at other times lashed out at them. He has threatened to sue outlets but never followed through, so far. The AfD, meanwhile, is an opposition party with limited influence.

But both in the United States and in Germany, journalists have seen themselves confronted with new challenges over the last year as they have attempted to find ways to interact with politicians willing to threaten or exclude critical reporters.

When then-press secretary Sean Spicer excluded several news organizations from an off-camera press briefing last February but invited conservative publications to join, only a few media outlets decided to boycott the event. The reasons for refraining to boycott the briefing were diverse: Some argued that continuing to cover the administration was more important than setting an example. Other, more polarized news outlets appeared pleased to be favored.

In contrast, Tuesday’s journalistic walkout could set a new precedent for Germany and discourage future attempts to exclude critical journalists.

While Germany has a vastly diversified media landscape, far-left or right-wing publications and networks have so far gained little traction here. German journalists often issue statements through joint umbrella associations when they fear violations of press freedom, regardless of their papers’ editorial stances.

Brandenburg’s press association, for instance, almost immediately issued a statement on behalf of its members this week, writing that the AfD threat constituted “an unacceptable and far-reaching interference with press freedom.”

It added: “We ask all our members only to attend AfD events if all attending journalists have the right to ask questions.”

That degree of journalistic solidarity, however, hasn’t been found to the same degree across the Atlantic. Chances are small that media outlets in the United States, some of which some are deeply at odds with one another, will suddenly unite as their German counterparts have. The key question is whether it will ultimately embolden those hoping to experiment in withdrawing the credentials of some journalists.

Read more: