def user_activity_stream(request, username): user = User.objects.get(username=username) activities = legacy_get_activity_stream_items(user, count=450) ctx = { 'examined_user': user, 'activities': activities, } return r2r_jinja('staff/activity_stream.html', ctx, request)
def activity_stream(request, earliest_timestamp_cutoff=None): if settings.PROJECT == 'drawquest': return HttpResponse('') activities = legacy_get_activity_stream_items(request.user, earliest_timestamp_cutoff=earliest_timestamp_cutoff) Metrics.activity_stream_infinite_scroll.record(request) return HttpResponse(u''.join([jinja_tags.activity_stream_item(activity, request.user) for activity in activities]))