The read only notice uses css classes messages warning, warning should be changed to messages--warning to replicate the style of a real message. On the other hand, could this not be changed to use drupal_set_message(), or more importantly the new \Drupal::messenger() service?
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.