Page MenuHomePhabricator

Fix NewUserMessage getContent concatenation
Open, Needs TriagePublic

Description

Per @Legoktm at T145740:

"Also I note that some of this code is totally broken??"

		if ( $flags & EDIT_UPDATE ) {
			$text = $wikiPage->getContent( Revision::RAW ) . "\n" . $text;
		}

Only affects the edit path, which by definition should be rare (New UserMessage), nevertheless a bug.

Event Timeline

Change 310484 had a related patch set uploaded (by Mattflaschen):
Use MessagePoster for non-wikitext pages, fix two bugs

https://gerrit.wikimedia.org/r/310484

Removing @Mattflaschen-WMF as task assignee to avoid cookie-licking.
(Matt, if you still like/plan to work on this, feel very welcome to re-claim via your personal Phab account - thanks!)