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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe/Unsubscribe from blog alerts #50

Merged
merged 4 commits into from
Dec 30, 2020

Conversation

Riken-Shah
Copy link
Contributor

In this feature, blog authors can subscribe/unsubscribe to alerts he/she will receive for that particular blog.

It will avoid alerts such as Reaction, Comment, and Comment Reply
if the author has unsubscribed from that blog.

@@ -403,7 +404,8 @@ def get_topics(self):

def get_obj_min(self):
obj = {'title': self.title, 'img_url': self.img_url, 'blog_id': self.id, 'blog_url': self.get_url(),
'is_published': self.is_published, 'modified_on': self.modified_on, 'published_on': self.published_on, 'author': self.author.get_profile_min()}
'is_published': self.is_published, 'modified_on': self.modified_on, 'published_on': self.published_on,
'author': self.author.get_profile_min(), 'is_subscribed': self.is_subscribed}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add is_subscribed in obj_min since this property should only be used by the author. If u need this property, access it separately whenever needed

@asrient asrient merged commit b4b53e4 into dsc-iem:master Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants