Page MenuHomePhabricator

$wgEmailConfirmToEdit removes diffs from Recent Changes feeds (RSS and Atom)
Closed, ResolvedPublic

Description

Author: david

Description:
With

$wgEmailConfirmToEdit = true;

the RSS and Atom Recent Changes feeds don't have diffs. (Same with individual pages' history.) I checked that setting $wgEmailConfirmToEditor to false restores the diffs. I attached a patch that restoers the diffs, but I'm not sure it's the right thing.


Version: 1.16.x
Severity: minor

Details

Reference
bz26020

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:13 PM
bzimport set Reference to bz26020.
bzimport added a subscriber: Unknown Object (MLST).

Looks like the patch fell off, can you re-attach? Thanks!

david wrote:

Patch to ignore 'confirmedittext' as a reason not to show a diff.

Attached:

Created attachment 7841
Patch to change Title::getUserPermissionsErrors() to make correct checks for read permission

The problem is bigger that this. Title::getUserPermissionsErrors() is not supposed to be used to check for read permissions; but Title::userCanRead() can only check permissions for $wgUser.

I attached a patch to make Title::getUserPermissionsErrors() check correctly for read permissions; dunno if Domas will like it since it's ~1.4 times slower than the old method (on my local machine).

Attached:

sumanah wrote:

*** Bug 29482 has been marked as a duplicate of this bug. ***

  • Bug 38709 has been marked as a duplicate of this bug. ***