mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Using the correct id when sending emails for new replies.
This commit is contained in:
parent
0f1bc37fab
commit
c3c71a7060
2 changed files with 5 additions and 5 deletions
|
@ -9,10 +9,10 @@ class Migration(DataMigration):
|
|||
|
||||
def forwards(self, orm):
|
||||
stories = MSharedStory.objects.filter(story_db_id__exists=False)
|
||||
print " ---> %s stories with no story_db_id" % stories.count()
|
||||
|
||||
story_count = stories.count()
|
||||
print " ---> %s stories with no story_db_id" % story_count
|
||||
for i, story in enumerate(stories):
|
||||
print " ---> %s/%s" % (i+1, stories.count())
|
||||
print " ---> %s/%s" % (i+1, story_count)
|
||||
story.ensure_story_db_id()
|
||||
|
||||
def backwards(self, orm):
|
||||
|
|
|
@ -1509,7 +1509,7 @@ class MSharedStory(mongo.Document):
|
|||
Site.objects.get_current().domain.replace('www', 'dev'),
|
||||
reverse('social-mute-story', kwargs={
|
||||
'secret_token': user.profile.secret_token,
|
||||
'shared_story_id': self._id,
|
||||
'shared_story_id': self.id,
|
||||
})
|
||||
)
|
||||
data = {
|
||||
|
@ -1564,7 +1564,7 @@ class MSharedStory(mongo.Document):
|
|||
Site.objects.get_current().domain.replace('www', 'dev'),
|
||||
reverse('social-mute-story', kwargs={
|
||||
'secret_token': original_user.profile.secret_token,
|
||||
'shared_story_id': original_shared_story._id,
|
||||
'shared_story_id': original_shared_story.id,
|
||||
})
|
||||
)
|
||||
data = {
|
||||
|
|
Loading…
Add table
Reference in a new issue