mediawiki-extensions-Echo/includes
Matthias Mullie 58e1c765d6 Improve signature detection
Previously, there were a couple of hacks in play.
It was also not picking up ~~~ (signature without timestamp)
And it relied an a nasty regular expression which, although
based on Parser, may some day get out of date.
And it relied heavily on a specific signature format, which
isn't guaranteed (it's an i18n msg)

This patch changes the approach: it will use a very simple
regex to match links, and will send those through Parser to
generate the signature anew. My reasoning is that that should
be exactly the same as what Echo just received (should've
also gone through parser)

Biggest discomfort of this approach is that it's much stricter.
It should still match whatever it generated from a ~~~ or ~~~~,
but no longer the e.g. not-real signatures we were doing in
our tests. Also had to update our tests, because signatures
change depending on anon. So I had to generate all the users.
And fix some of the signature formats used in the tests.

Bug: T75426
Bug: T87852
Bug: T75366
Bug: T78424
Change-Id: Ibeff36397129fdd5d376f3668a23a45f9a014525
2015-02-05 20:45:19 +01:00
..
cache [4] Add revision local cache holder object 2014-08-19 10:28:38 -07:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
gateway Add support to mark all as read for "sections" 2014-08-13 17:16:19 -07:00
iterator Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00
mapper Merge "I-2. Change the default number of Flow Messages in the flyout" 2014-10-27 14:50:19 +00:00
AttributeManager.php Add support for splitting notifications into alert & message 2014-08-05 14:50:54 -07:00
BatchRowUpdate.php Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00
ContainmentSet.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DataOutputFormatter.php [5] Code cleanup and miscellneous fix 2014-08-19 17:58:07 +00:00
DbEmailBatch.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DbEmailBundler.php Add email bundling function to Echo notification 2013-04-11 11:25:14 -07:00
DeferredMarkAsReadUpdate.php Mark notifications as read if they fail rendering 2014-09-08 14:22:10 -07:00
DiffParser.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DiscussionParser.php Improve signature detection 2015-02-05 20:45:19 +01:00
EchoDbFactory.php Hygiene: Move master/slave code to MWEchoDbFactory 2014-08-22 14:01:57 -07:00
EmailBatch.php Use MailAddress::newFromUser() 2014-09-21 18:25:14 -07:00
EmailBundler.php Use MailAddress::newFromUser() 2014-09-21 18:25:14 -07:00
EmailFormatter.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
EventLogging.php efLogServerSideEvent is deprecated 2014-08-21 15:19:27 +02:00
NotifUser.php Mark notification as read upon visiting a page 2014-08-14 14:10:55 -07:00
schemaUpdate.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
UserLocator.php Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00