Page MenuHomePhabricator

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


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. says:

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

i can confirm this by examining any movement, e.g.

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 added a subscriber: matej_suchanek.

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