Anonymous works not sending subscription updates

Description

Notification emails for work updates are not sent when a work is in an anonymous collection. Reported by several users on the live site, confirmed via testing on the test site.

Steps to reproduce:
1. Create an anonymous collection
2. Post a work to the anonymous collection
3. Subscribe to the work (not the creator)
4. Add a chapter to the work

What happens:
No email is received.

What should happen:
If I am subscribed to the work, I should get an email saying a chapter has been added to the work. The email should list the work creator as Anonymous. (If I am subscribed to the creator, I should not get an email, since this would break anonymity.)

Activity

Show:
GoldenFalls
March 25, 2020, 7:08 PM

As GoldenFalls, subscribed to one of testy's anonymous works. Logged into testy and added a chapter. Got an update email as GoldenFalls. Looks good!

Lady Oscar
March 25, 2020, 1:31 AM

1) As testy2, subscribed to LadyOscar as a user
2) As LadyOscar, posted a work to the Anonymous collection "Anonymous Aardvarks". Also posted a work not in a collection.
3) As testy3, went to Anonymous Aardvarks and subscribed to the work in Anonymous Aardvarks
4) As LadyOscar, added a chapter to the work in Anonymous Aardvarks

Testy2, subscribed to me as a user received a subscription email for the work not in the collection, but not the Anonymous work.

Testy3, subscribed to the work itself, got a subscription mail for the update to the Anonymous work, with subject "[AO3] Anonymous posted Chapter 2 of An anonymous work to get a subscription email!" and the creator listed as "Anonymous" everywhere in the mail.

Looks good!

redsummernight
March 24, 2020, 12:47 AM
Edited

Looks good.

redsummernight
March 24, 2020, 12:29 AM

If I am subscribed to the creator, I should not get an email, since this would break anonymity.

This scenario is also tested by in the same release.

Sarken
June 14, 2017, 10:16 PM

Great – thank you, coaldustcanary!

DeployedToBeta

Assignee

Tal Hayon

Reporter

coaldustcanary

Roadmap

Subscriptions

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9