Modify "notify_tag_added" mailer to include tag variants like "questions:____" #3868
Labels
help wanted
requires help by anyone willing to contribute
Ruby
testing
issues are usually for adding unit tests, integration tests or any other tests for a feature
Milestone
This section triggers email notifications for tags, like
wetlands
, if you follow that tag (https://publiclab.org/tags)plots2/app/mailers/subscription_mailer.rb
Lines 29 to 55 in ec0b0f9
however, @steviepubliclab and I think it'd be great if it ALSO triggered for some variants of the initial tag. So for
wetlands
subscribers, these should also trigger a notification:question:wetlands
activity:wetlands
____:wetlands
We could add these notifications by searching for a colon; this will be a bit complex:
I think the ideal is to create a test in https://github.com/publiclab/plots2/blob/master/test/unit/subscription_mailer_test.rb where we subscribe a user to the simple tag like
simpletag
, then check that they get a notification when a post goes up forquestion:simpletag
.This is a bit complex, but we would love some help with it!
The text was updated successfully, but these errors were encountered: