I hesitate to lean on the dictionary, but (from the new Oxford American dictionary):
mor•al•ize mor.al-ize | 'môra.liz I (British also moralise) verb 1 [no object] comment on issues of right and wrong, typically with an unfounded air of superiority: the solution to climate change is not to moralize from on high | the news media are sure to moralize about the arrogance of power.
Or from the collins dictionary:
VERB If you say that someone is moralizing, you are critical of them for telling people what they think is right or wrong, especially when they have not been asked their opinion.
Dictionary definitions are hardly absent of debate, especially on a global platform where colloquial definition is arguably more important anyways. It’s probably better to use context and debate in the spirit of the argument rather than worry about semantics.
Such as in this case, where the point was to find a comfortable middle where OP could do the right thing and feel good about it… not to debate lexical scope.
More votes here for “the book”, it got me through publishing my first community app quite nicely.