> At 18:04 +0200 15/10/05, Joel Uckelman wrote:
> >Can you tell how the spammers are doing it? If it's being done by a bot,
> >then at least we can keep doing things to confuse it. But if it's become
> >cost-effective for spammers to spam wikis by hand, then the game is over
> >and we've lost.
>
> My wikis send me an email whenever anyone makes a change, showing the
> new page text. Would it be possible to mail out a diff each time a
> page is edited, with a link at the bottom to revert to previous?
The current version sends a diff instead of the full page text.
This happens in sendPageChangeNotification() in lib/WikiDB.php. All you'd
need to do is add a line to create the link:
$revertlink = WikiURL($this->_pagename,
array('action'=>'revert','version'=>$previous), true);
and then make sure that $revertlink ends up in the mail which goes out at
toward the end of the function.
--
J.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
|