Beispiel #1
0
def activity_stream(request, earliest_timestamp_cutoff=None):
    if settings.PROJECT == 'drawquest':
        return HttpResponse('')

    activities = 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]))
Beispiel #2
0
def activity_stream(request, earliest_timestamp_cutoff=None):
    if settings.PROJECT == 'drawquest':
        return HttpResponse('')

    activities = 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
    ]))
Beispiel #3
0
def activity_stream_items(request):
    activities = get_activity_stream_items(request.user)
    return {'activities': activities}
Beispiel #4
0
def activity_stream_items(request):
    activities = get_activity_stream_items(request.user)
    return {'activities': activities}