Use dummy user to make taking-over revision

Instead of using the user viewing the page, use a dummy username to add
the revision made when a page is taken over by flow.

Bug: 64344
Change-Id: I923623881431011aff6d3a3f01c2da56017e79de
Don't expand templates inside topic titles

Topic titles, such as '{{ok}}' when passed into an i18n message as
a parameter get expanded.  Prevent this by using Message::rawParams
along with htmlspecialchars. In most cases this was already working
fine, but post history and topic history pages were incorrectly
expanding it inside the html <title> and the page header.

This additionally fixes a double escaping issue where <foo> inside
a topic title would render as `&lt;foo&gt;`

Bug: 65143
Change-Id: I27ac641196ebca84f92b10ca55b89f87753b0911
Repair non-js post editing

The edit-post.html.php template was erroring out because Templating::editPostLink
hadn't been implemented.  Additionally the textarea was being doubleescaped.

Change-Id: I93de8aafecf2ab1ea7f8c5ed2a40d428a56a8d4d
Merge "Don't expand templates inside topic titles"
Localisation updates from https://translatewiki.net.

Change-Id: Iab296d7afe38be633a8342e736868783fc862c98
(bug 63789) anonymous users don't see any replies to a hidden comment

Now everyone (incl anonymous users) can see hidden posts.

Bug: 63789
Change-Id: I30166220c936be2bcf4996fbb8504d80779c4397
Localisation updates from https://translatewiki.net.

Change-Id: Id53c5d1eadfa974ccc0947d62462a72440445a4d
Add i18n message to 'workflow' link

Bug: 65102
Change-Id: I3b1166d3a5c9597933a8be50aab58cb82342b86c
Merge "Use dummy user to make taking-over revision"
Merge "Add i18n message to 'workflow' link"
Use cannonical url for IRC feed

So we don't end up with urls that start like:
 //en.wikipedia.beta.wmflabs.org/[...]
and aren't clickable in most clients.

Change-Id: Ia7b4a1ec8711afc4b5447e721b215d908b8349f8
Localisation updates from https://translatewiki.net.

Change-Id: I343f6196a61a4e6d26e7966d0a766d4f824c837c
Fix submission of new topics in no-js

A workflow id is currently passed in the URL. The workflow is new still, though.
The discussion workflow is not actually created until the new post is submitted.
When attempting to submit the new topic without JS, the workflow ID in the url
will be loaded (or rather, tried to) which will fail since it doesn't yet exist.

JS was already doing this correctly, not passing a workflow id if
$workflow->isNew()

Bug: 65639
Change-Id: If2324f1ddbaeaa8d83257c70b987088186279e2e
Fix some issues for "sort by last activity"

* The result from topicListLastUpdatedStorage should convert UUID from binary to alpha
  ( missed rebase from UUID improvement patch )

* TopicListStorage::insert() takes array of arrays instead of an array
  ( missed rebase from Multiput patch )

* topic last activity timestamp should be always the same as topic workflow
  last modified timestamp.  We should not use wfTimestampNow() but use
  the time from topicworkflow.  If they are not the same, update to topKIndex
  would not be able to remove the old record

Change-Id: I637da2350d62f8a86b3263db8039b9475ee0f88b
Localisation updates from https://translatewiki.net.

Change-Id: Ie12dc7bf5b50befdae02918580488ced5a1c054e
Merge "Use cannonical url for IRC feed"
Fix indexes for Reference objects.

Turns out Flow indexes work very differently from SQL
indexes in that you can't use a covering index, your index
has to match exactly the fields on which you are querying.

Was causing the following error in WMF error logs:

Flow\Data\ObjectLocator::findMulti: No index (out of 2) available
to answer query for ref_src_namespace, ref_src_title with options []

Bug: 65672
Change-Id: Ie4cfab6e5976843fc52e0a9f788a37432c18dccd
Merge "Fix indexes for Reference objects."
Merge "Fix some issues for "sort by last activity""
Merge "Fix submission of new topics in no-js"