Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix events for polymorphic authors #4387

Merged
merged 1 commit into from
Oct 29, 2018
Merged

Conversation

oriolgual
Copy link
Contributor

@oriolgual oriolgual commented Oct 29, 2018

馃帺 What? Why?

Fix notification events went the author is not a user, they should behave like how it behaved previously with entities without author.

Needs to be backported to 0.15.

馃搶 Related Issues

馃搵 Subtasks

  • Add CHANGELOG entry
  • Add tests

@ghost ghost assigned oriolgual Oct 29, 2018
@ghost ghost added the status: WIP label Oct 29, 2018
@josepjaume
Copy link
Contributor

Are you sure about this? This calls for a Notifiable interface that specifies whom to notify. In an organization, probably notifying top-level admins is a good idea.

What do you think?

@oriolgual
Copy link
Contributor Author

@josepjaume the problem is not who is receiving the notification, the problem is that the notification text expects an author with a nickname and a profile and an organization doesn't have one.

@josepjaume
Copy link
Contributor

Oh, sorry! I totally misunderstood it!

josepjaume
josepjaume previously approved these changes Oct 29, 2018
@oriolgual oriolgual merged commit aab2ff2 into master Oct 29, 2018
@oriolgual oriolgual deleted the fix/polymorphic-author-fixes branch October 29, 2018 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants