|
a/Allura/allura/app.py |
|
b/Allura/allura/app.py |
|
... |
|
... |
182 |
in_reply_to = data.get('in_reply_to', [])
|
182 |
in_reply_to = data.get('in_reply_to', [])
|
183 |
if in_reply_to:
|
183 |
if in_reply_to:
|
184 |
parent_id = in_reply_to[0]
|
184 |
parent_id = in_reply_to[0]
|
185 |
else:
|
185 |
else:
|
186 |
parent_id = None
|
186 |
parent_id = None
|
187 |
thd = artifact.discussion_thread(data)
|
187 |
thd = artifact.get_discussion_thread(data)
|
188 |
# Handle attachments
|
188 |
# Handle attachments
|
189 |
message_id = data['message_id'][0]
|
189 |
message_id = data['message_id'][0]
|
190 |
if data.get('filename'):
|
190 |
if data.get('filename'):
|
191 |
log.info('Saving attachment %s', data['filename'])
|
191 |
log.info('Saving attachment %s', data['filename'])
|
192 |
self.AttachmentClass.save(data['filename'],
|
192 |
self.AttachmentClass.save(data['filename'],
|