|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
|
... |
|
... |
175 |
full_slug=full_slug,
|
175 |
full_slug=full_slug,
|
176 |
slug=slug,
|
176 |
slug=slug,
|
177 |
thread_id=self._id,
|
177 |
thread_id=self._id,
|
178 |
parent_id=parent_id,
|
178 |
parent_id=parent_id,
|
179 |
text=text,
|
179 |
text=text,
|
180 |
timestamp=timestamp,
|
|
|
181 |
status='pending')
|
180 |
status='pending')
|
|
|
181 |
if timestamp is not None: kwargs['timestamp'] = timestamp
|
182 |
if message_id is not None: kwargs['_id'] = message_id
|
182 |
if message_id is not None: kwargs['_id'] = message_id
|
183 |
post = self.post_class()(**kwargs)
|
183 |
post = self.post_class()(**kwargs)
|
184 |
if has_artifact_access('unmoderated_post')():
|
184 |
if has_artifact_access('unmoderated_post')():
|
185 |
log.info('Auto-approving message from %s', c.user.username)
|
185 |
log.info('Auto-approving message from %s', c.user.username)
|
186 |
post.approve()
|
186 |
post.approve()
|