Partially revert 895c9411d93

Not entirely sure why the lines in question were removed, but this is
required as a quick fix for broken notifications.