kulttuuri / SlackNotifications

Slack Mediawiki - Integrate Slack with Mediawiki. Sends notifications into your Slack room when certain actions are being performed in your wiki (for example when article is being edited, new article was added...)

Home Page:https://www.mediawiki.org/wiki/Extension:SlackNotifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable/disable notifications by namespace

berekuk opened this issue · comments

I'd like to disable notifications for the User: namespace, or to enable it just for the main namespace.

Rationale: people can be shy and avoid a wiki because they know that everyone else on the team will jump on their drafts immediately and start discussions prematurely. So I'd like to offer them a usage pattern where they write a draft in User:Username/Draft first and move it over to the main namespace when it's finished.

Just committed support for this and the parameter wgSlackExcludeNotificationsFrom is also now documented in readme file. Would be great if you could give it a try and let me know that it works, thanks! :) @berekuk

Thanks! It works as expected.

Fantastic! Thank you for testing it out :)

I've found one minor issue: renaming a page still results in a notification.

I guess it would be better to do a check in that case too (for both an old name and a new name).

Pushed out version 1.12 which adds support for checking article names when moving them! :)