diff options
Diffstat (limited to 'askbot/const/__init__.py')
-rw-r--r-- | askbot/const/__init__.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py index 2633055f..037ee379 100644 --- a/askbot/const/__init__.py +++ b/askbot/const/__init__.py @@ -176,6 +176,7 @@ TYPE_ACTIVITY_MODERATED_POST_EDIT = 25 TYPE_ACTIVITY_CREATE_REJECT_REASON = 26 TYPE_ACTIVITY_UPDATE_REJECT_REASON = 27 TYPE_ACTIVITY_VALIDATION_EMAIL_SENT = 28 +TYPE_ACTIVITY_POST_SHARED = 29 #TYPE_ACTIVITY_EDIT_QUESTION = 17 #TYPE_ACTIVITY_EDIT_ANSWER = 18 @@ -199,6 +200,7 @@ TYPE_ACTIVITY = ( (TYPE_ACTIVITY_FAVORITE, _('selected favorite')), (TYPE_ACTIVITY_USER_FULL_UPDATED, _('completed user profile')), (TYPE_ACTIVITY_EMAIL_UPDATE_SENT, _('email update sent to user')), + (TYPE_ACTIVITY_POST_SHARED, _('a post was shared')), ( TYPE_ACTIVITY_UNANSWERED_REMINDER_SENT, _('reminder about unanswered questions sent'), @@ -244,6 +246,7 @@ RESPONSE_ACTIVITY_TYPES_FOR_INSTANT_NOTIFICATIONS = ( TYPE_ACTIVITY_UPDATE_QUESTION, TYPE_ACTIVITY_ANSWER, TYPE_ACTIVITY_ASK_QUESTION, + TYPE_ACTIVITY_POST_SHARED ) @@ -256,6 +259,7 @@ RESPONSE_ACTIVITY_TYPES_FOR_DISPLAY = ( TYPE_ACTIVITY_COMMENT_ANSWER, TYPE_ACTIVITY_UPDATE_ANSWER, TYPE_ACTIVITY_UPDATE_QUESTION, + TYPE_ACTIVITY_POST_SHARED, # TYPE_ACTIVITY_PRIZE, # TYPE_ACTIVITY_MARK_ANSWER, # TYPE_ACTIVITY_VOTE_UP, @@ -267,15 +271,15 @@ RESPONSE_ACTIVITY_TYPES_FOR_DISPLAY = ( # TYPE_ACTIVITY_FAVORITE, ) - RESPONSE_ACTIVITY_TYPE_MAP_FOR_TEMPLATES = { - TYPE_ACTIVITY_COMMENT_QUESTION: 'question_comment', - TYPE_ACTIVITY_COMMENT_ANSWER: 'answer_comment', - TYPE_ACTIVITY_UPDATE_ANSWER: 'answer_update', - TYPE_ACTIVITY_UPDATE_QUESTION: 'question_update', - TYPE_ACTIVITY_ANSWER: 'new_answer', - TYPE_ACTIVITY_ASK_QUESTION: 'new_question', - } + TYPE_ACTIVITY_COMMENT_QUESTION: 'question_comment', + TYPE_ACTIVITY_COMMENT_ANSWER: 'answer_comment', + TYPE_ACTIVITY_UPDATE_ANSWER: 'answer_update', + TYPE_ACTIVITY_UPDATE_QUESTION: 'question_update', + TYPE_ACTIVITY_ANSWER: 'new_answer', + TYPE_ACTIVITY_ASK_QUESTION: 'new_question', + TYPE_ACTIVITY_POST_SHARED: 'post_shared' +} assert( set(RESPONSE_ACTIVITY_TYPES_FOR_INSTANT_NOTIFICATIONS) \ |