summaryrefslogtreecommitdiffstats
path: root/forum/const/__init__.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-05 17:35:56 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-05 17:35:56 -0400
commit056b2a1ffbdbe04dc42cd2719923398e0bf222ce (patch)
treec141b896ba5b2d79aab6658cde3608c1b2f69bbc /forum/const/__init__.py
parente5ea67fd5ec4d15a217689faa216a01814f55748 (diff)
downloadaskbot-056b2a1ffbdbe04dc42cd2719923398e0bf222ce.tar.gz
askbot-056b2a1ffbdbe04dc42cd2719923398e0bf222ce.tar.bz2
askbot-056b2a1ffbdbe04dc42cd2719923398e0bf222ce.zip
mentions work in all kinds of posts, unified activity logging for post updates
Diffstat (limited to 'forum/const/__init__.py')
-rw-r--r--forum/const/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/forum/const/__init__.py b/forum/const/__init__.py
index 11a27ed9..f27229c8 100644
--- a/forum/const/__init__.py
+++ b/forum/const/__init__.py
@@ -97,7 +97,7 @@ TYPE_ACTIVITY_MARK_OFFENSIVE=14
TYPE_ACTIVITY_UPDATE_TAGS=15
TYPE_ACTIVITY_FAVORITE=16
TYPE_ACTIVITY_USER_FULL_UPDATED = 17
-TYPE_ACTIVITY_QUESTION_EMAIL_UPDATE_SENT = 18
+TYPE_ACTIVITY_EMAIL_UPDATE_SENT = 18
TYPE_ACTIVITY_MENTION = 19
#TYPE_ACTIVITY_EDIT_QUESTION=17
#TYPE_ACTIVITY_EDIT_ANSWER=18
@@ -120,7 +120,7 @@ TYPE_ACTIVITY = (
(TYPE_ACTIVITY_UPDATE_TAGS, _('updated tags')),
(TYPE_ACTIVITY_FAVORITE, _('selected favorite')),
(TYPE_ACTIVITY_USER_FULL_UPDATED, _('completed user profile')),
- (TYPE_ACTIVITY_QUESTION_EMAIL_UPDATE_SENT, _('email update sent to user')),
+ (TYPE_ACTIVITY_EMAIL_UPDATE_SENT, _('email update sent to user')),
(TYPE_ACTIVITY_MENTION, _('mentioned in the post')),
)
@@ -197,7 +197,8 @@ NOTIFICATION_DELIVERY_SCHEDULE_CHOICES= (
USERS_PAGE_SIZE = 28#todo: move it to settings?
USERNAME_REGEX_STRING = r'^[\w ]+$'
-TWITTER_STYLE_MENTION_TERMINATION_CHARS = ' ;,.!?'#chars that can go after @mention
+#chars that can go before or after @mention
+TWITTER_STYLE_MENTION_TERMINATION_CHARS = '\n ;,.!?<>'
COMMENT_HARD_MAX_LENGTH = 2048