Project

General

Profile

Task #2952 » 02-askapi_text.patch

AskBot API: Expose raw (non-truncated) text - Guilhem Moulin, 2021-03-30 13:09

View differences:

askbot/views/api_v1.py
'last_activity_at': get_epoch_str(thread.last_activity_at),
'title': thread.title,
'summary': question_post.summary,
'text': question_post.text,
'tags': thread.tagnames.strip().split(),
'url': site_url(thread.get_absolute_url()),
}
......
'id': post_id,
'score': post.score,
'summary': post.summary,
'text': post.text,
'url': site_url(post.get_absolute_url()),
'comment_count': post_thread.get_comments(parent=post_id).count(),
'comment_ids': post_thread.get_comment_ids(parent=post_id),
(2-2/6)