Commit graph

176 commits

Author SHA1 Message Date
Alexandre Emsenhuber
19b9a1d48d Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to remove HTML entities left by some messages (such as colon-separator, etc.) 2009-01-25 19:00:11 +00:00
Aaron Schulz
db4b0db9d2 Added notifyRC2UDP() convenience function 2009-01-14 01:45:52 +00:00
Charles Melbye
2774c33be8 Fix a problem with a protected class method that brought up an error, and also
fixed a typo in the release notes.
2009-01-12 22:52:09 +00:00
Aaron Schulz
3dbbdca71d Just use != here 2009-01-10 22:07:12 +00:00
Aaron Schulz
6059b4d6ad Minor code style tweaks & cleanup 2009-01-09 23:18:47 +00:00
Aaron Schulz
78678afa7c Hide patrol mark if patrolling is disabled 2009-01-09 22:49:40 +00:00
Aaron Schulz
6ced476ceb Clean up log restrictions check 2009-01-09 18:38:10 +00:00
Aaron Schulz
9d9ad4dab8 Revert r45605 and generalize the ability to have logs go to UDP. 2009-01-09 18:30:47 +00:00
Aaron Schulz
97878c044f Make sure feeds reflect changes due to flaggedrevs 2009-01-09 18:05:58 +00:00
Aaron Schulz
690e741c9d Mark non-patrolled edits in feeds (bug 16604) 2009-01-09 17:47:05 +00:00
Brion Vibber
3e69f5237d Revert r44867 "Improve markpatrolled hook"
Incompatible change to existing hook (changing types of parameters passed)
2008-12-23 20:56:19 +00:00
Brion Vibber
97f77b9b1a Revert r44702, r44703, r44704 (wfInvoke and UserMailer refactor based on it) and r44715, r44721 (cleanup thereof)
As Tim notes, the weird callback setup in $wgHooks isn't really something we want to replicate or ever rely on ever again, as PHP's native callback syntax already handles things fine and is more consistent (and used extensively in the rest of MediaWiki).
May be other remaining issues with the refactor on top of bugs already discovered, but if it's going to be refactored to use callbacks it should be done using regular callbacks.
2008-12-23 18:08:43 +00:00
Aaron Schulz
c29b5243ab Improve markpatrolled hook 2008-12-21 08:49:45 +00:00
Aaron Schulz
fdcb42815d Removed redundant mExtra init 2008-12-20 07:46:45 +00:00
David McCabe
43c9235283 UserMailer bigtime refactor. Please test. 2008-12-17 07:08:16 +00:00
Brion Vibber
22697961be Reverting r44454 "(bug 14843) IRC should flag redirects with "R" like it does with bots, etc."
This doesn't work as intended; when editing existing articles, this'll pull the *previous* redirection state of the article, rather than the current state, so it's wrong whenever a page is changed into, or away from, being a redirect.
2008-12-11 18:44:51 +00:00
Chad Horohoe
87d9c352c1 (bug 14843) IRC should flag redirects with "R" like it does with bots, etc. 2008-12-11 17:42:49 +00:00
Brion Vibber
9853e055ed add debug lines for UDP output so it can be more easily tested offline 2008-12-10 18:49:16 +00:00
Ilmari Karonen
feb45a7d93 revert r44412 and part of r44406: keep the improved new page URLs, but use the old getInternalURL()/preg_replace() hack to generate them 2008-12-10 18:41:28 +00:00
Ilmari Karonen
c73ca3c446 Seems r44406 would've broken the RC feed on secure.wikimedia org: fix by introducing a new config variable $wgRC2UDPScriptUrl (defaulting to $wgServer . $wgScript if not set).
NOTE: Wikimedia's secure.php needs to be updated to use the new variable.  It might be possible to retire the fixupSquidUrl() hack once this is done, though I'm not sure if anything else relies on it.
2008-12-10 17:03:57 +00:00
Ilmari Karonen
dbf477d5cc (bug 4253, bug 16586) Don't repeat titles of new pages in URLs in the RC->IRC feed, use the shorter and more useful revision ID instead.
Also simplify URL construction: old code used to call Title::getInternalURL() to build the URLs and then undo most of the work with preg_replace().
(TODO: Maybe consider introducing new global $wgIRCLineURLPrefix to optionally override the $wgInternalServer.$wgScript prefix?)
2008-12-10 15:56:02 +00:00
David McCabe
64d53b6569 Revert r44386; depends on wfInvoke, also reverted. 2008-12-10 06:40:05 +00:00
David McCabe
cbafadf8d6 Refactored UserMailer.php. Please let me know if this breaks anything. 2008-12-10 06:02:14 +00:00
Aaron Schulz
468ba99c39 Reduce excessive RC write queries 2008-11-27 18:55:47 +00:00
Aaron Schulz
371a23a35f Refactor getCharacterDifference() 2008-11-16 23:18:43 +00:00
Tim Starling
bf27a2741f Improved $wgRC2UDPInterwikiPrefix feature, so that it can actually be a prefix and not just a boolean. Documented RC2UDP settings. 2008-11-13 08:51:10 +00:00
Raimond Spekking
533cbdbdf8 Fix for r43064. 2008-11-02 06:46:02 +00:00
Alex Z
7aae9cb109 Put the rcid in the URL if $wgUseNPPatrol or $wgUseRCPatrol is used. 2008-11-02 03:37:24 +00:00
Charles Melbye
1f4d29361e Added a new configuration setting called $wgRC2UDPInterwikiPrefix that will
prefix the page name in the UDP feed with the Interwiki prefix specified
in the $wgLocalInterwiki variable.
2008-10-28 22:19:30 +00:00
Alex Z
f2c3df36d0 partial revert of r42695, don't trim the comment 2008-10-28 02:38:59 +00:00
Alex Z
8036450877 (bug 4253) - recentchanges IRC:
* Don't include the title in diff ULRs
* If the message is still too long, trim the comment.
2008-10-27 22:41:17 +00:00
Aaron Schulz
551e97bebc rc_deleted must be given; not secure otherwise 2008-10-27 19:59:54 +00:00
Brion Vibber
90e12d48c7 Back out r42182 for now "Move UDP stuff to new UDP class"
UDP isn't a very clear name for this, especially since we use UDP protocols for multiple different things!

This class should probably be genericized a bit for _change notifications_, which there might be multiple backend implementations for, including the UDP->IRC bot gateway.
2008-10-19 23:59:39 +00:00
Aaron Schulz
7204624c1b Code/style cleanup 2008-10-17 23:52:57 +00:00
Aaron Schulz
46a4a8bb7e Move UDP stuff to new UDP class 2008-10-17 23:46:21 +00:00
Brion Vibber
f18a20e633 Pull out incorrect fixme comments from r42075 2008-10-15 21:05:39 +00:00
Chad Horohoe
0f77d87015 Let's do this again, without all the breakages... (bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon and FunPika. 2008-10-15 20:38:50 +00:00
Brion Vibber
0b2ba3f5a6 Revert broken r42078 "(bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon."
Bad HTML output breaks things entirely, plus the code is much harder to read. Plus it's unclear if this behavior is desirable.
2008-10-15 00:06:51 +00:00
Chad Horohoe
a5f3d4502b (bug 15925) Properly bold rc bytes changed in all cases. Patch by Happy-melon. 2008-10-14 12:56:25 +00:00
Andrew Garrett
e7dabc458d Mark a FIXME in RecentChange.php - We shouldn't be treating log entries as page changes. This causes a few problems with deletions. 2008-10-14 10:50:26 +00:00
Aaron Schulz
20e9f00c82 Allow no prefix here 2008-10-13 17:27:44 +00:00
Aaron Schulz
daefe66096 Refactor sendToUDP() some more 2008-10-13 06:17:42 +00:00
Aaron Schulz
655fec7f30 (bug 15428) Fix erroneous coloring of unrelated items due to text matches. Only do the links. 2008-10-11 23:30:38 +00:00
Aaron Schulz
f9829f5106 More RC UDP refactoring for bug 15276 2008-10-11 17:35:38 +00:00
Aaron Schulz
1672cf240a remove unused var 2008-10-10 20:42:39 +00:00
Aaron Schulz
926851d0a9 Tweak udp function to allow any prefix 2008-10-10 16:01:54 +00:00
Aaron Schulz
860eb6bed8 And this was true... *sigh* 2008-09-30 13:36:40 +00:00
Aaron Schulz
629db4f5d3 Revert self - local issue 2008-09-30 13:35:15 +00:00
Aaron Schulz
7e89f520eb Don't assume edits are bot edits just because there is no 'bot=' url param... 2008-09-30 13:31:48 +00:00
Aaron Schulz
c0d49305dc Remove commented out code 2008-09-24 13:49:48 +00:00