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
45 45
        'last_activity_at': get_epoch_str(thread.last_activity_at),
46 46
        'title': thread.title,
47 47
        'summary': question_post.summary,
48
        'text': question_post.text,
48 49
        'tags': thread.tagnames.strip().split(),
49 50
        'url': site_url(thread.get_absolute_url()),
50 51
    }
......
67 68
        'id': post_id,
68 69
        'score': post.score,
69 70
        'summary': post.summary,
71
        'text': post.text,
70 72
        'url': site_url(post.get_absolute_url()),
71 73
        'comment_count': post_thread.get_comments(parent=post_id).count(),
72 74
        'comment_ids': post_thread.get_comment_ids(parent=post_id),
(2-2/6)