Page MenuHomePhabricator

Add a post title variable to AbuseFilter
Open, Needs TriagePublic

Description

https://www.mediawiki.org/wiki/Special:AbuseFilter/examine/log/82309 Looks like there is no way to check the post's title. Can a new variable post_title be added?

Event Timeline

Glaisher raised the priority of this task from to Needs Triage.
Glaisher updated the task description. (Show Details)
Glaisher added a subscriber: Glaisher.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This task is about adding a new AbuseFilter variable to Flow which would let us check the contents of post titles. (Looking at another extension which does it) I think you'd need AbuseFilter-computeVariable, AbuseFilter-generateUserVars and AbuseFilter-builder hooks for it. This is not a bug, but a feature request.

In that task by saying that it doesn't work, I meant that even if the conditions do match, it doesn't show the Flow edits. It looks like examine does actually work but it doesn't work for test. I'll update that task and also sorry for the confusion.

Mattflaschen-WMF added a comment.EditedOct 27 2015, 3:47 PM

It's a separate object (topic title), but it's still filterable (with standard new_wikitext/old_wikitext).

However, I can see how it might be useful to filter it together.

Note topic titles can also be edited, so old_wikitext could apply.

Yes, this would be similar to article_text and article_prefixedtext variables. See https://www.mediawiki.org/wiki/Extension:AbuseFilter/Rules_format#All_variables I don't really see the need for adding an old_topic_title variable though because we've been doing fine without such a variable for move page actions too. However, if it isn't that difficult it would also be nice (though that should be lower priority than adding this variable because it's not very useful, imo).

Framawiki added a subscriber: Framawiki.