Page MenuHomePhabricator

if action='move', then content (new_wikitext, old_wikitext) is not available
Open, MediumPublicFeature

Description

i want to define a rule in the filter that's being triggered, if somebody moves a page that contains "foo", but i cannot.

for example

moved_to_namespace == 2 && new_wikitext contains "foo"

will never be triggered.

https://www.mediawiki.org/wiki/Extension:AbuseFilter/Rules_format#Notes says:

"When action='move', only the summary, action, timestamp and user_* variables are available."

i can confirm this by examining any movement, e.g. https://de.wikipedia.org/w/index.php?title=Spezial:Missbrauchsfilter/examine/327398832.

so, i propose to make the content of a page (that's being moved) available in the edit filter.

Event Timeline

matej_suchanek changed the subtype of this task from "Task" to "Feature Request".
matej_suchanek moved this task from Backlog to Filtering features on the AbuseFilter board.
matej_suchanek subscribed.

We may also consider other variables, like new_size, all_links, etc.
Similar to T173663: Add more standard variables to delete action.