Obama’s top 2017 tweet was a Nelson Mandela quote. Trump’s was a CNN GIF.

Twitter may be considered President Donald Trump’s domain, but it is actually his predecessor who appears to be better at leveraging the platform — and with less effort.

Former President Barack Obama’s tweet reacting to racist violence in Charlottesville, Virginia, in August was the most-liked tweet of 2017 and in Twitter history, according to Twitter’s year-in-review, released on Tuesday. The tweet, sent from Obama’s personal @BarackObama account, quotes Nelson Mandela’s 1994 autobiography: “No one is born hating another person because of the color of his skin or his background or his religion…”

“No one is born hating another person because of the color of his skin or his background or his religion…” pic.twitter.com/InZ58zkoAm

— Barack Obama (@BarackObama) August 13, 2017

It was also the second-most retweeted tweet of the year. (The most retweeted was about chicken nuggets.)

Trump was the year’s most tweeted-about world leader and most frequently mentioned US elected official, but none of his individual tweets broke through among the most-liked or most-retweeted messages.

Another tweet from Obama reacting to Sen. John McCain’s (R-AZ) brain cancer diagnosis in July was the third most liked tweet of the year, behind a message from pop singer Ariana Grande:

John McCain is an American hero & one of the bravest fighters I’ve ever known. Cancer doesn’t know what it’s up against. Give it hell, John.

— Barack Obama (@BarackObama) July 20, 2017

And two more of Obama’s tweets from the end of his term, from the @POTUS44 account archive of his Twitter activity as president, were also among 2017’s most retweeted messages.