Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P6027
(An Untitled Masterwork)
Active
Public
Actions
Authored by
matmarex
on Sep 19 2017, 7:52 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F9653455:
Sep 19 2017, 7:52 PM
2017-09-19 19:52:25 (UTC+0)
Subscribers
None
Instead of:
$page->doEditContent(
$content,
wfMessage( 'spam_reverting', $domain )->inContentLanguage()->text(),
EDIT_UPDATE,
$rev->getId()
);
Do:
$page->doEditContent(
$content,
wfMessage( 'spam_reverting', $domain )->inContentLanguage()->text(),
EDIT_UPDATE | EDIT_FORCE_BOT,
$rev->getId()
);
------
Instead of:
$page->doEditContent(
$content,
wfMessage( 'spam_blanking', $domain )->inContentLanguage()->text()
);
Do:
$page->doEditContent(
$content,
wfMessage( 'spam_blanking', $domain )->inContentLanguage()->text(),
EDIT_FORCE_BOT
);
Event Timeline
matmarex
created this paste.
Sep 19 2017, 7:52 PM
2017-09-19 19:52:25 (UTC+0)
MarcoAurelio
mentioned this in
T176206: cleanupSpam.php: mark edits/actions as 'bot'
.
Sep 19 2017, 7:53 PM
2017-09-19 19:53:41 (UTC+0)
Log In to Comment