diff --git a/.env.example b/.env.example index 0df38745d0..de8382cb95 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,3 @@ -ENABLE_INFINITE_CORRIDOR=True CELERY_TASK_ALWAYS_EAGER=True DJANGO_LOG_LEVEL=INFO LOG_LEVEL=info @@ -6,7 +5,6 @@ MITOPEN_BASE_URL=http://od.odl.local:8063 MITOPEN_COOKIE_NAME=discussions MITOPEN_COOKIE_DOMAIN=odl.local MITOPEN_HOSTNAME=od.odl.local -MITOPEN_MAX_COMMENT_DEPTH=6 MITOPEN_JWT_SECRET= MITOPEN_USE_S3=False INDEXING_API_USERNAME=mitodl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6963801c0c..18a1802510 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,16 +80,11 @@ jobs: MITOPEN_SECURE_SSL_REDIRECT: 'False' MITOPEN_DB_DISABLE_SSL: 'True' MITOPEN_FEATURES_DEFAULT: 'True' - MITOPEN_REDDIT_URL: https://reddit.local - MITOPEN_REDDIT_VALIDATE_SSL: 'False' - MITOPEN_REDDIT_CLIENT_ID: od_client_id - MITOPEN_REDDIT_SECRET: od_client_secret # pragma: allowlist secret OPENSEARCH_URL: localhost:9200 CELERY_TASK_ALWAYS_EAGER: 'True' CELERY_BROKER_URL: redis://localhost:6379/4 CELERY_RESULT_BACKEND: redis://localhost:6379/4 TIKA_CLIENT_ONLY: 'True' - AKISMET_IS_TESTING: 'True' MITOPEN_BASE_URL: http://localhost:8063/ MAILGUN_KEY: fake_mailgun_key MAILGUN_SENDER_DOMAIN: other.fake.site diff --git a/Procfile b/Procfile index a8fe4e75cc..614bf0e6ee 100644 --- a/Procfile +++ b/Procfile @@ -1,5 +1,5 @@ release: bash scripts/heroku-release-phase.sh web: bin/start-nginx bin/start-pgbouncer newrelic-admin run-program uwsgi uwsgi.ini -worker: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q spam,default --concurrency=2 -B -l $MITOPEN_LOG_LEVEL -extra_worker_2x: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q spam,digest_emails,edx_content,default --concurrency=2 -l $MITOPEN_LOG_LEVEL -extra_worker_performance: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q spam,digest_emails,edx_content,default -l $MITOPEN_LOG_LEVEL +worker: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q default --concurrency=2 -B -l $MITOPEN_LOG_LEVEL +extra_worker_2x: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q edx_content,default --concurrency=2 -l $MITOPEN_LOG_LEVEL +extra_worker_performance: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q edx_content,default -l $MITOPEN_LOG_LEVEL diff --git a/README.md b/README.md index 85791f9e82..74c84faec8 100644 --- a/README.md +++ b/README.md @@ -75,33 +75,6 @@ MAILGUN_KEY Additionally, you'll need to set `MAILGUN_RECIPIENT_OVERRIDE` to your own email address so any emails sent from the app will be delivered to you. -### Enabling article posts -It is based on text posts but allows the user to add a cover image, provides richer editing capabilities, etc. -To enable it, run through these steps: - -1. Adjust channel settings to allow article posts. This can be done in one of two ways: - 1. Visit the channel settings page in the running app when logged in as a moderator user. - Select the article checkbox under "Allowed Post Types" and save. - (There should be an option in the channel page header to visit the settings page, or - you can navigate there directly: `/c//settings/`). - 1. Update the channel directly in a Django shell: - - ```python - from channels.models import Channel - # To allow all post types for the channel... - Channel.objects.filter(name="SOME_CHANNEL_NAME").update( - allowed_post_types=Channel.allowed_post_types.link | Channel.allowed_post_types.self | Channel.allowed_post_types.article - ) - ``` -1. Set up environment variables for the article UI. In `.env`, add: - ```python - FEATURE_ARTICLE_UI=True - # Ask a fellow developer for the following values... - CKEDITOR_ENVIRONMENT_ID=... - CKEDITOR_SECRET_KEY=... - CKEDITOR_UPLOAD_URL=... - ``` - ### Enabling image uploads to S3 :warning: **NOTE: Article cover image thumbnails will be broken unless this is configured** :warning: @@ -116,16 +89,6 @@ broken images unless you configure your app to upload to S3. Steps: These values can be copied directly from the Open Discussions CI Heroku settings, or a fellow dev can provide them. - -### Enabling widgets - -To enable channel widgets, run through these steps: - -1. Run the management command to ensure that your channels are properly configured - ```bash - docker-compose run --rm web ./manage.py backpopulate_channel_widget_lists - ``` -1. Add `FEATURE_WIDGETS_UI=True` to your `.env` ### Enabling searching the course catalog on opensearch diff --git a/app.json b/app.json index 1170c2af8b..ea1fb856df 100644 --- a/app.json +++ b/app.json @@ -152,10 +152,6 @@ "OPENSEARCH_URL": { "description": "URL for connecting to OpenSearch cluster" }, - "ENABLE_INFINITE_CORRIDOR": { - "description": "Boolean indicating whether infinite corridor is enabled", - "required": false - }, "GA_TRACKING_ID": { "description": "Google analytics tracking ID", "required": false @@ -173,7 +169,7 @@ "required": false }, "INDEXING_API_USERNAME": { - "description": "Reddit username used for indexing" + "description": "Username used for indexing" }, "INDEXING_ERROR_RETRIES": { "description": "Number of times to retry an indexing operation on failure", @@ -309,24 +305,12 @@ "MITOPEN_BASE_URL": { "description": "Base url to link users to in emails" }, - "MITOPEN_CHANNEL_POST_LIMIT": { - "description": "Number of posts to display on the frontpage and channels", - "required": false - }, "MITOPEN_COOKIE_NAME": { "description": "Name of the cookie for the JWT auth token" }, "MITOPEN_COOKIE_DOMAIN": { "description": "Domain for the cookie for the JWT auth token" }, - "MITOPEN_DEFAULT_CHANNEL_BACKPOPULATE_BATCH_SIZE": { - "description": "Number of users to sync per backpopulate batch", - "required": false - }, - "MITOPEN_RELATED_POST_COUNT": { - "description": "Number of related posts to fetch", - "required": false - }, "MITOPEN_DB_CONN_MAX_AGE": { "value": "0" }, @@ -360,47 +344,15 @@ "MITOPEN_FROM_EMAIL": { "description": "E-mail to use for the from field" }, - "MITOPEN_FRONTPAGE_DIGEST_MAX_EPISODES": { - "description": "Max podcast episodes in open digest emails", - "required": false - }, - "MITOPEN_FRONTPAGE_DIGEST_MAX_POSTS": { - "description": "Max posts in open digest emails", - "required": false - }, "MITOPEN_LOG_LEVEL": { "description": "The log level for the application", "required": true, "value": "INFO" }, - "MITOPEN_HOT_POST_REPAIR_DELAY": { - "description": "How many second to wait until attempting to repair a missing post", - "required": false - }, - "MITOPEN_HOT_POST_REPAIR_LIMIT": { - "description": "Maximum number of posts in the history to check for a missing post", - "required": false - }, "MITOPEN_JWT_SECRET": { "description": "Shared secret for JWT auth tokens", "required": true }, - "MITOPEN_MAX_COMMENT_DEPTH": { - "description": "Maximum depth of a comment", - "required": false - }, - "MITOPEN_NOTIFICATION_ATTEMPT_RATE_LIMIT": { - "description": "The per-worker rate limit at which to generate pending EmailNotification frontpage records", - "required": false - }, - "MITOPEN_NOTIFICATION_ATTEMPT_CHUNK_SIZE": { - "description": "The size of each attempt batch", - "required": false - }, - "MITOPEN_NOTIFICATION_SEND_CHUNK_SIZE": { - "description": "The size of each sending batch", - "required": false - }, "MITOPEN_SECURE_SSL_REDIRECT": { "description": "Application-level SSL redirect setting.", "value": "True" @@ -410,11 +362,7 @@ "required": false }, "MITOPEN_TITLE": { - "description": "Title of the open discussions site", - "required": false - }, - "MITOPEN_TOS_URL": { - "description": "URL to the Terms of Service", + "description": "Title of the MIT Open site", "required": false }, "MITOPEN_SUPPORT_EMAIL": { @@ -524,14 +472,6 @@ "description": "The log level for Sentry", "required": false }, - "SPAM_EXEMPT_EMAILS": { - "description": "list of email regex patterns that are exempt from spam checking", - "required": false - }, - "STAFF_MOIRA_LISTS": { - "description": "moira lists of users who can create public lists", - "required": false - }, "STATUS_TOKEN": { "description": "Token to access the status API." }, diff --git a/authentication/middleware_test.py b/authentication/middleware_test.py index 0aad3a30b7..33697c616a 100644 --- a/authentication/middleware_test.py +++ b/authentication/middleware_test.py @@ -76,7 +76,7 @@ def test_process_view_blocked_ip_middleware( # pylint:disable=too-many-argument ): """Check that `process_view` raises a PermissionDenied error when appropriate""" user = UserFactory.create(is_superuser=is_super) - view = "search" if exempt_view else "channel-list" + view = "search" request = rf.post(reverse(view)) request.user = user diff --git a/cassettes/authentication.pipeline.user_test.test_initialize_user[False].json b/cassettes/authentication.pipeline.user_test.test_initialize_user[False].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/authentication.pipeline.user_test.test_initialize_user[False].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.pipeline.user_test.test_initialize_user[True].json b/cassettes/authentication.pipeline.user_test.test_initialize_user[True].json deleted file mode 100644 index 2b74d83d46..0000000000 --- a/cassettes/authentication.pipeline.user_test.test_initialize_user[True].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-06-19T18:43:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CGCNQEENDQ5M6JQKKPQNX9ZF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIystQtC04x8vY0zHfPNk9Mc/L3d/E3DzQpyzE0c7NQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZhria+kRlGpq7uQQGR5i4mnpkBnkYJlWGpnqC9KSklmUmp8ZnpoAMhnCUagGz1vdPuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 19 Jun 2018 18:43:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=8dSySW3vEwhYvAezGh; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 18-Jun-2020 18:43:19 GMT", - "loidcreated=2018-06-19T18%3A43%3A19.156Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 18-Jun-2020 18:43:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CGCNQEENDQ5M6JQKKPQNX9ZF" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_invalid].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_invalid].json deleted file mode 100644 index 2feefff81e..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_invalid].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CBNM27481387TN6772TQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNdN1rHAJNwp3z8uOCAwJSQl1dnTyMfMu8qjIMAhV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZV7mXO6e6+fknB1TFexamxhuUlRVblhRVejqC9KSklmUmp8ZnpoAMhnCUagH137JWuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=y3uDrD0yhYVhAvSJW9; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:07 GMT", - "loidcreated=2018-07-03T04%3A11%3A06.726Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CBNM27481387TN6772TQ" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_user_inactive].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_user_inactive].json deleted file mode 100644 index 7345f05263..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_user_inactive].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:17:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5QFXYZ0PZJZ3QJWRZSNJS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyM9QNL/FKjUzKCSjOdfQxMHCJKinXDS0oNCl1TTJR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5uAcmuoQUhVi46RakGfkaOQZHlVt4R4akOgaC9KSklmUmp8ZnpoAMhnCUagEIwCLEuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:17:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=TzD36u90Fpf5BSuaLA; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:17:11 GMT", - "loidcreated=2018-07-03T04%3A17%3A11.548Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:17:11 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5QFXYZ0PZJZ3QJWRZSNJS" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_valid].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_valid].json deleted file mode 100644 index 9e1e40be57..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_exists--login_password_valid].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5C88038CAG7W9DT5TK3CX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WN0QqCMBiFX0V2GQk6dZWXBhkUCRGDrsac/2oIbmwaWfTuubzq8nyc75w34kKAc6zXLXQoDxDOspDKoio4DfGxc6wu0/Jm2qFK12ep0TJA8DTKgmPKCwmJoon9fNaPBvxIDdyC9V0n9IwWPlmQk3j/f4v3dHgpzOxItpvkQok1bsdPh3h19U4DDyWAqcYPzwF9vlofoBq4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=LyIhrE8Jn5OXrot4dq; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:03 GMT", - "loidcreated=2018-07-03T04%3A11%3A03.238Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:03 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5C88038CAG7W9DT5TK3CX" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_mm_only].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_mm_only].json deleted file mode 100644 index bfe8c48702..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_mm_only].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-20T20:57:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CJWQQVBY5RN9K6F04C2F63G0" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyt9Q1ya7MMXRy9gj1zzfMN0/JLncK9S8pLKvIK/RU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5B5tGeQVXuTqFG0e5J+t6G3iVl/joJrlb+mWD9KSklmUmp8ZnpoAMhnCUagFkolO2uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 20 Jul 2018 20:57:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=3fvvOkRNFRcAnc9oR8; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 19-Jul-2020 20:57:47 GMT", - "loidcreated=2018-07-20T20%3A57%3A47.123Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 19-Jul-2020 20:57:47 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CJWQQVBY5RN9K6F04C2F63G0" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists--register_continue_from_login->redeem_confirmation_code--register_profile_details].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists--register_continue_from_login->redeem_confirmation_code--register_profile_details].json deleted file mode 100644 index 30094ff03f..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists--register_continue_from_login->redeem_confirmation_code--register_profile_details].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CF1W1JZQZS8DWS4C5YFC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNdc1TK7MjjC18PC3yC8sLcsKScn1SquMsIjMMslX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFeaVYWriGWQQb5/i5GpWGukRme6e6hRgEmBaD9KSklmUmp8ZnpoAMhnCUagEUGnupuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=aSHyReFi3eEpbOfAKE; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:07 GMT", - "loidcreated=2018-07-03T04%3A11%3A07.353Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CF1W1JZQZS8DWS4C5YFC" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_not_exists].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[login_email_saml_exists].json b/cassettes/authentication.views_test.test_login_register_flows[login_email_saml_exists].json deleted file mode 100644 index d11a98f97e..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[login_email_saml_exists].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-28T17:18:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CP0RP3YZMCDGQGXS9GS2989H" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyM9WNLIzwtQhIDPVMSvQIcc8o9HcKDA4rD0pLi3dV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFecYXZ5k6xmfqlmQHp/v4Zvklm1aYFnimFYNtS0kty0xOjc9MARkM4SjVAgB2teqTuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Aug 2018 17:18:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=bW7E8OaUd8Kma5jk4o; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 27-Aug-2020 17:18:22 GMT", - "loidcreated=2018-08-28T17%3A18%3A22.078Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 27-Aug-2020 17:18:22 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CP0RP3YZMCDGQGXS9GS2989H" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_invalid].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_invalid].json deleted file mode 100644 index 39c9a58dab..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_invalid].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CJWJENP1S64WCW2JECVX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIytdQN0PWNcAnNDw8ztHTRza3Kyor0qQwO93DySk1W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVR/qXRPmYZ+eUGxQmG+U6Bri6moRmVAb4VpmA9KSklmUmp8ZnpoAMhnCUagErs3UouAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=TKhgFXXWDlAKqBvjoD; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:14 GMT", - "loidcreated=2018-07-03T04%3A11%3A14.120Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CJWJENP1S64WCW2JECVX" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_valid].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_valid].json deleted file mode 100644 index e6b4e28f76..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_exists--login_password_valid].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CFHZKN52Z7T3CS0VCVJG" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIytdANdPEoLXDyystx9XLyiTJ3dU2L9y0x8QxzznJU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5uYf4V1WmpaRUhAcH5eX7usZXZlX6FBg5FpWD9KSklmUmp8ZnpoAMhnCUagH3IhbquAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=yiHAMnQnTPPJXBNNrB; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:10 GMT", - "loidcreated=2018-07-03T04%3A11%3A10.690Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:10 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CFHZKN52Z7T3CS0VCVJG" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--redeem_confirmation_code_twice].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--redeem_confirmation_code_twice].json deleted file mode 100644 index 2444cd7916..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--redeem_confirmation_code_twice].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-16T19:08:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CSZ4FKE50H2FT8G8NTJQJ487" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WN0QqCMBiFX0V2GQnSQrDLUogsyGIY3Qz792troLKNYUXvnsurLs/H+c55kwoAjeG2U9iSVUDoIglZQodSheJ0uK5LngOca7WJM2ofDZkHBIdeajRceoHGUTSyn8/ts0c/csNKo/ZdA92EZj5prEfx/v/2cq7JtdzuoC0yc2T7lF6YwpQWS+8IdBKQS+GHp0A+X0x1QYa4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 16 Oct 2018 19:08:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=C9CexOl7rROUNKDfLQ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 15-Oct-2020 19:08:47 GMT", - "loidcreated=2018-10-16T19%3A08%3A46.933Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 15-Oct-2020 19:08:47 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CSZ4FKE50H2FT8G8NTJQJ487" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--register_profile_details].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--register_profile_details].json deleted file mode 100644 index de66331df3..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists--redeem_confirmation_code--register_profile_details].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-07-03T04:11:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CP8GS23K3MWZF7KW2XC5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyM9B1Cw0w9S4pMSg1ywkJ9jV0dY3IKHctD6ow8IxU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZpudUhlR4egWa5JSb61ZlJibmOcX7RublOmWD9KSklmUmp8ZnpoAMhnCUagFKtr++uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 03 Jul 2018 04:11:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=kbhAzOQS0L68MPmdCk; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:15 GMT", - "loidcreated=2018-07-03T04%3A11%3A14.730Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 02-Jul-2020 04:11:15 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CHF5CP8GS23K3MWZF7KW2XC5" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha--redeem_confirmation_code--register_profile_details].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha--redeem_confirmation_code--register_profile_details].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha--redeem_confirmation_code--register_profile_details].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha_invalid].json b/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha_invalid].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_email_not_exists_with_recaptcha_invalid].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_login_register_flows[register_mm_exists].json b/cassettes/authentication.views_test.test_login_register_flows[register_mm_exists].json deleted file mode 100644 index 2b5ad98a75..0000000000 --- a/cassettes/authentication.views_test.test_login_register_flows[register_mm_exists].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-16T14:51:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CSYNQKWWKQ9GN2YM76NE8AAG" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2stA1LXItMSguLQwp0y2NMsoyKHROiSzwNQ739UpX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZG7l6pMcXFFt66prnhJi75bmElJQG+1V4FSaD9KSklmUmp8ZnpoAMhnCUagFU1JUpuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 16 Oct 2018 14:51:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=hk80dRc0mCJxc30ciN; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 15-Oct-2020 14:51:04 GMT", - "loidcreated=2018-10-16T14%3A51%3A03.945Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 15-Oct-2020 14:51:04 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CSYNQKWWKQ9GN2YM76NE8AAG" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_register_email[False-register-confirm-sent].json b/cassettes/authentication.views_test.test_register_email[False-register-confirm-sent].json deleted file mode 100644 index ceefd8cd5a..0000000000 --- a/cassettes/authentication.views_test.test_register_email[False-register-confirm-sent].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-06-20T21:04:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CGFG7GRH02FRYGZ03V5JEY15" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtD1THavLMkpzvIycY5KyyhMrvI3KopMrkwOLDNQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZm1RlW0S5BZaFVXqVpiQ6Z1v6JuamWLiYOGWD9KSklmUmp8ZnpoAMhnCUagEvo2houAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 20 Jun 2018 21:04:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=uvFKo0lKSoCBxIYfuu; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 19-Jun-2020 21:04:58 GMT", - "loidcreated=2018-06-20T21%3A04%3A58.190Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 19-Jun-2020 21:04:58 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CGFG7GRH02FRYGZ03V5JEY15" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/authentication.views_test.test_register_email[True-login-password].json b/cassettes/authentication.views_test.test_register_email[True-login-password].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/authentication.views_test.test_register_email[True-login-password].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel[False].json b/cassettes/channels.views.channels_test.test_create_channel[False].json deleted file mode 100644 index 46346067e0..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel[False].json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-31T20:13:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3WDVH2SEKV9ZBH3XG6HY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12N0QqCMBiFX0V2GQ3GBpO6rUQLDMKiu2HzF9eg6TYri949l3ddnsP5vvNGpZTgnPBGww0tI0RZzBlmxZlvk6T1+pHRTdfZfCiG4wkzrNE8QvBslQUnVEAYJ2TsfgbhhxaC5gKlBRu2TpqpmoVkoR7B5v9P0WtTy3VGVmLf5zFX9NAv0t2LUxOoCu5KglBVUE8Bfb6xc3nnvAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=WUqjboEHQqQFzcucAw; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:13:00 GMT", - "loidcreated=2018-10-31T20%3A13%3A00.168Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:13:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3WDVH2SEKV9ZBH3XG6HY" - } - }, - { - "recorded_at": "2018-10-31T20:13:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WUqjboEHQqQFzcucAw; loidcreated=2018-10-31T20%3A13%3A00.168Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3ZPNQ5JKE3DCC7G9HV5K" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjcz0TUxK0jMSs50zA+30DUpdS2KKIiKzHQvcyk3CFTSUVBKrSjILEotjs8EaTE2MzAAioFNiC+pLEgFGZOUmliUWgRSW5ycDxHSAvGKUtOAGjPQ7fMIqwpK84w0DYwsyrQISw/PsvT3D4vILDX3MQHpSkkty0xOjc9MARkN4SjVAgCcVc57vAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3ZPNQ5JKE3DCC7G9HV5K" - } - }, - { - "recorded_at": "2018-10-31T20:13:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Libero+iste+voluptate+exercitationem+perferendis+est+rerum+doloremque+quae.+Ipsum+quisquam+eos+corrupti+ut+nostrum+natus.%0ASuscipit+nobis+natus+eaque+hic.+Reprehenderit+aut+alias+ducimus+eaque+nisi+tempora.+Aliquid+modi+inventore+nostrum+velit+totam+explicabo+aliquam.+Beatae+quia+molestias+eaque+rem+illo.%0AMagnam+velit+voluptates+voluptatum+accusantium+dicta+velit+nam.+Quas+sequi+occaecati+repellendus+nihil+occaecati.+Impedit+eum+veniam+iure.+Cumque+inventore+aperiam+maiores+expedita+voluptates.&link_type=any&name=1541016783_cumque&public_description=Numquam+consequatur+necessitatibus+deserunt+accusamus.&title=Velit+nisi+aperiam+omnis+nam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23763-3TX6JFFptkwI2EqqrNyTyUV-3-k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "721" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WUqjboEHQqQFzcucAw; loidcreated=2018-10-31T20%3A13%3A00.168Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "414" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CV5W3ZPNQ5JKE3DCC7G9HV5K&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23763-3TX6JFFptkwI2EqqrNyTyUV-3-k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WUqjboEHQqQFzcucAw; loidcreated=2018-10-31T20%3A13%3A00.168Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016783_cumque/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "413" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016783_cumque/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23764-46pajciAoW8-4uErXpZYiGvDw0Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WUqjboEHQqQFzcucAw; loidcreated=2018-10-31T20%3A13%3A00.168Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016783_cumque/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "413" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016783_cumque/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23763-3TX6JFFptkwI2EqqrNyTyUV-3-k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WUqjboEHQqQFzcucAw; loidcreated=2018-10-31T20%3A13%3A00.168Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1541016783_cumque/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"3z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1541016783_cumque\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELibero iste voluptate exercitationem perferendis est rerum doloremque quae. Ipsum quisquam eos corrupti ut nostrum natus.\\nSuscipit nobis natus eaque hic. Reprehenderit aut alias ducimus eaque nisi tempora. Aliquid modi inventore nostrum velit totam explicabo aliquam. Beatae quia molestias eaque rem illo.\\nMagnam velit voluptates voluptatum accusantium dicta velit nam. Quas sequi occaecati repellendus nihil occaecati. Impedit eum veniam iure. Cumque inventore aperiam maiores expedita voluptates.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Velit nisi aperiam omnis nam.\", \"collapse_deleted_comments\": false, \"public_description\": \"Numquam consequatur necessitatibus deserunt accusamus.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam consequatur necessitatibus deserunt accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Libero iste voluptate exercitationem perferendis est rerum doloremque quae. Ipsum quisquam eos corrupti ut nostrum natus.\\nSuscipit nobis natus eaque hic. Reprehenderit aut alias ducimus eaque nisi tempora. Aliquid modi inventore nostrum velit totam explicabo aliquam. Beatae quia molestias eaque rem illo.\\nMagnam velit voluptates voluptatum accusantium dicta velit nam. Quas sequi occaecati repellendus nihil occaecati. Impedit eum veniam iure. Cumque inventore aperiam maiores expedita voluptates.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 7, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_3z\", \"created\": 1541016786.0, \"url\": \"/r/1541016783_cumque/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1541016786.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2454" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "413" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=J8BIr6y4mrDGfV6V1fOgy9ExdNQECBDS4GwSlLY4BAxWLuGsG7YV%2FeGXo3dL2yEnnnzedH7I1gksC2VzX92QkenBVPIZySgI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016783_cumque/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel[None].json b/cassettes/channels.views.channels_test.test_create_channel[None].json deleted file mode 100644 index be63ab1097..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel[None].json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-31T20:13:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W46DZ7CXZWC5SKQCCBGGG" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NwQqCQBRFf0VmGQmiOUJbSUEpNApyNYzPJ06Z2sxkRfTvOblreS/3nPsmHACVYrq/YEfWFnG9gPp2AnGY2PKwadNI79pt0RVNSYHvz0eytAg+ByFRMWEQjzrO1P0MTL8GNJoSuURptgr6uVqYJLGewOb/T/PwmmewSm913mR09GV0Cmyg7v1hqApHAchEZdRzIJ8vw5+ENLwAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=lmmy0wj4SLBobIeg4l; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:13:10 GMT", - "loidcreated=2018-10-31T20%3A13%3A10.407Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:13:10 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W46DZ7CXZWC5SKQCCBGGG" - } - }, - { - "recorded_at": "2018-10-31T20:13:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmmy0wj4SLBobIeg4l; loidcreated=2018-10-31T20%3A13%3A10.407Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W49NYSY91XC7STPWDQYZV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjcz04308En3Dq0qqqhyyckLSQ+LCo9MNc818UvPLVfSUVBKrSjILEotjs8EaTE2MzAAioFNiC+pLEgFGZOUmliUWgRSW5ycDxHSAvGKUtOAGjPQ7TN2rHL1zsnNM7A0ys0wy/XXzShMK/ascKv0cgXpSkkty0xOjc9MARkN4SjVAgCbe3sQvAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W49NYSY91XC7STPWDQYZV" - } - }, - { - "recorded_at": "2018-10-31T20:13:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Voluptatum+eum+consectetur+eligendi+officiis+blanditiis.+Asperiores+ad+cumque+recusandae+voluptates+veniam+rerum+quidem+dignissimos.%0AHic+quos+quasi+excepturi+hic+quis.+Ab+quasi+deleniti+officia+fuga+at+voluptas.+Consequuntur+aspernatur+ex+ex+dicta+aspernatur.%0AAccusantium+perspiciatis+adipisci+sit+aliquid+aperiam+dolores+natus.+Ratione+magnam+similique+dignissimos+repellat+nostrum+iure+quos.+Soluta+totam+fugit+repellendus+deserunt+totam+maiores.&link_type=any&name=1541016794_similique&public_description=Rem+maiores+pariatur+quos+impedit+voluptatem+dolore+sapiente.&title=Commodi+commodi+libero+tempore+ipsa+quasi.&type=restricted&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23765-JcGCJ-rTElKFtNlMYnYhb6caRjU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "697" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmmy0wj4SLBobIeg4l; loidcreated=2018-10-31T20%3A13%3A10.407Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CV5W49NYSY91XC7STPWDQYZV&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23765-JcGCJ-rTElKFtNlMYnYhb6caRjU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmmy0wj4SLBobIeg4l; loidcreated=2018-10-31T20%3A13%3A10.407Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016794_similique/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016794_similique/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23766-YHLgKUzrxzDlnTgVZWYe7m4Ngmw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmmy0wj4SLBobIeg4l; loidcreated=2018-10-31T20%3A13%3A10.407Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016794_similique/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016794_similique/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:13:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23765-JcGCJ-rTElKFtNlMYnYhb6caRjU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmmy0wj4SLBobIeg4l; loidcreated=2018-10-31T20%3A13%3A10.407Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1541016794_similique/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"40\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1541016794_similique\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatum eum consectetur eligendi officiis blanditiis. Asperiores ad cumque recusandae voluptates veniam rerum quidem dignissimos.\\nHic quos quasi excepturi hic quis. Ab quasi deleniti officia fuga at voluptas. Consequuntur aspernatur ex ex dicta aspernatur.\\nAccusantium perspiciatis adipisci sit aliquid aperiam dolores natus. Ratione magnam similique dignissimos repellat nostrum iure quos. Soluta totam fugit repellendus deserunt totam maiores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Commodi commodi libero tempore ipsa quasi.\", \"collapse_deleted_comments\": false, \"public_description\": \"Rem maiores pariatur quos impedit voluptatem dolore sapiente.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERem maiores pariatur quos impedit voluptatem dolore sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Voluptatum eum consectetur eligendi officiis blanditiis. Asperiores ad cumque recusandae voluptates veniam rerum quidem dignissimos.\\nHic quos quasi excepturi hic quis. Ab quasi deleniti officia fuga at voluptas. Consequuntur aspernatur ex ex dicta aspernatur.\\nAccusantium perspiciatis adipisci sit aliquid aperiam dolores natus. Ratione magnam similique dignissimos repellat nostrum iure quos. Soluta totam fugit repellendus deserunt totam maiores.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 7, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_40\", \"created\": 1541016797.0, \"url\": \"/r/1541016794_similique/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1541016797.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"restricted\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2390" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:13:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=8zM%2BP9TaipPaAVd%2FKKHmVpUIvxZIl9i8VcXmeC5Lnu3m1ntNnyNAacx5wZYowTKNi3qeq7yue9TL3Ni5Tm5KV8R51oCJtBif" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016794_similique/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel[True].json b/cassettes/channels.views.channels_test.test_create_channel[True].json deleted file mode 100644 index e0de33824c..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel[True].json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-31T20:12:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3JAKEP311W5H1NSDMKVS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjcz1DX3cMqq8HQq882x9E/J9qj08HIt9S3TDbeMLFfSUVBKrSjILEotjs8EaTE2MzAAioFNiC+pLEgFGZOUmliUWgRSW5ycDxHSAvGKUtOAGjPQ7Ss1SkpKzw2IMg3PdDQwSgu2NAqrrEiJcnUx9AXpSkkty0xOjc9MARkN4SjVAgCIEmwbvAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=2iK3lIuHIMya2hYUgr; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:12:50 GMT", - "loidcreated=2018-10-31T20%3A12%3A49.846Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 30-Oct-2020 20:12:50 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3JAKEP311W5H1NSDMKVS" - } - }, - { - "recorded_at": "2018-10-31T20:12:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=2iK3lIuHIMya2hYUgr; loidcreated=2018-10-31T20%3A12%3A49.846Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3NM11R7F67H52TSSERK6" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjcz0vUOzfMvDMxzt0yLLHUxcknLtyjKTqoy88g1N1DSUVBKrSjILEotjs8EaTE2MzAAioFNiC+pLEgFGZOUmliUWgRSW5ycDxHSAvGKUtOAGjPQ7fMtK6iMKgIi17JK38jC4sKSnPQoQ2NH3/x0kK6U1LLM5NT4zBSQ0RCOUi0A97tLm7wAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CV5W3NM11R7F67H52TSSERK6" - } - }, - { - "recorded_at": "2018-10-31T20:12:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Reprehenderit+ab+reiciendis+voluptate+iste+perferendis+quisquam+cum+aliquid.+Iste+quod+accusamus+nobis+libero+voluptas+dignissimos+ad.+Voluptatum+incidunt+quia+consequatur+saepe+repudiandae+nam+quasi.%0AMagni+dicta+accusantium+facilis+animi+sequi+reprehenderit+molestias.+Facilis+pariatur+sequi+necessitatibus+sequi+animi+dolorem+nobis.%0AIpsa+necessitatibus+id+quia+voluptates.+Aliquid+quam+velit+maxime+reprehenderit+alias+consectetur.+Suscipit+eius+earum+accusamus.&link_type=any&name=1541016773_veritatis&public_description=Iusto+voluptatum+iusto+quasi+exercitationem+quod+laudantium+nam+architecto.&title=Consequatur+architecto+impedit+voluptas+dolor.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23761-7HBjxIBvMl9OdkHyHJEuMv-W9Yw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "727" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=2iK3lIuHIMya2hYUgr; loidcreated=2018-10-31T20%3A12%3A49.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "424" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:12:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CV5W3NM11R7F67H52TSSERK6&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23761-7HBjxIBvMl9OdkHyHJEuMv-W9Yw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=2iK3lIuHIMya2hYUgr; loidcreated=2018-10-31T20%3A12%3A49.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016773_veritatis/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "424" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016773_veritatis/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:12:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23762-KUnOqQnG9fYuD2Dfo8rkbz6Hm70" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=2iK3lIuHIMya2hYUgr; loidcreated=2018-10-31T20%3A12%3A49.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1541016773_veritatis/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "424" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016773_veritatis/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-10-31T20:12:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 23761-7HBjxIBvMl9OdkHyHJEuMv-W9Yw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=2iK3lIuHIMya2hYUgr; loidcreated=2018-10-31T20%3A12%3A49.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.51.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1541016773_veritatis/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"3y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1541016773_veritatis\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReprehenderit ab reiciendis voluptate iste perferendis quisquam cum aliquid. Iste quod accusamus nobis libero voluptas dignissimos ad. Voluptatum incidunt quia consequatur saepe repudiandae nam quasi.\\nMagni dicta accusantium facilis animi sequi reprehenderit molestias. Facilis pariatur sequi necessitatibus sequi animi dolorem nobis.\\nIpsa necessitatibus id quia voluptates. Aliquid quam velit maxime reprehenderit alias consectetur. Suscipit eius earum accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Consequatur architecto impedit voluptas dolor.\", \"collapse_deleted_comments\": false, \"public_description\": \"Iusto voluptatum iusto quasi exercitationem quod laudantium nam architecto.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto voluptatum iusto quasi exercitationem quod laudantium nam architecto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Reprehenderit ab reiciendis voluptate iste perferendis quisquam cum aliquid. Iste quod accusamus nobis libero voluptas dignissimos ad. Voluptatum incidunt quia consequatur saepe repudiandae nam quasi.\\nMagni dicta accusantium facilis animi sequi reprehenderit molestias. Facilis pariatur sequi necessitatibus sequi animi dolorem nobis.\\nIpsa necessitatibus id quia voluptates. Aliquid quam velit maxime reprehenderit alias consectetur. Suscipit eius earum accusamus.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_3y\", \"created\": 1541016776.0, \"url\": \"/r/1541016773_veritatis/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1541016776.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2450" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 31 Oct 2018 20:12:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "423" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vmdaJc3%2FLe2fe3TvXuR4Gj0vclbXx7WJO%2FciCCKh5qpx%2B6I3LGgvDvJ%2F6uZdoo1qShScFsbCTzvI26X2TTxeddmHvLJSxWwJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1541016773_veritatis/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel_already_exists.json b/cassettes/channels.views.channels_test.test_create_channel_already_exists.json deleted file mode 100644 index 68b0744840..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel_already_exists.json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-23T20:58:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGQA8YGE871Z0K07X8H8B" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIxsNTN93cxzE3KCvT1sax0zMsKtjDIcPcM9so1rUhW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaFZwa5OfrHO7v5xZu5+wZkFGZYGAWGJ8eHGlmA9KSklmUmp8ZnpoAMhnCUagGm6fbauAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=j4rteuEhbBOb3uXNV1; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:06 GMT", - "loidcreated=2018-10-23T20%3A58%3A06.490Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:06 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGQA8YGE871Z0K07X8H8B" - } - }, - { - "recorded_at": "2018-10-23T20:58:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=j4rteuEhbBOb3uXNV1; loidcreated=2018-10-23T20%3A58%3A06.490Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGTMM2JJMT9DJAMHVAZCY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIxNNB1MywqNDDLSQ3w9qtIcswyzQsK9jcNz87IMXRU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZeydHGroaZ2TnGeYVlHob5nk4RrhUuFVFeRWD9KSklmUmp8ZnpoAMhnCUagGpeApmuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGTMM2JJMT9DJAMHVAZCY" - } - }, - { - "recorded_at": "2018-10-23T20:58:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quibusdam+iusto+ex+earum+veritatis+mollitia.+Atque+necessitatibus+rem+exercitationem+eum.+Sint+similique+non+amet+optio+molestias+accusamus.+Fugiat+sit+ducimus+corporis+atque+enim+ut+tempore.%0AExplicabo+soluta+totam+nesciunt+iste.+Dolores+in+odit+numquam+quibusdam.+Similique+commodi+natus+eum+vel+non+perspiciatis.%0AEsse+ex+vitae+illum+harum.+Facere+porro+alias+cupiditate+earum+totam.+Aut+aliquid+sequi+qui+dolor.&link_type=any&name=1540328290_ex&public_description=Quo+possimus+ipsa+necessitatibus+id+possimus+neque+maxime+praesentium.&title=Iure+nam+ratione+porro+magni.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 409-oOD1mbjQML9yAnjS80hGISJm5xc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "648" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j4rteuEhbBOb3uXNV1; loidcreated=2018-10-23T20%3A58%3A06.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "110" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-23T20:58:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=a+description+of+the+channel&link_type=any&name=1540328290_ex&public_description=public&title=Channel+title&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 410-F1rq06lePKNxbAj5nRSO5Wkhl1A" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "179" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j4rteuEhbBOb3uXNV1; loidcreated=2018-10-23T20%3A58%3A06.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [[\"SUBREDDIT_EXISTS\", \"that subreddit already exists\", \"name\"]]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "85" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel_no_descriptions.json b/cassettes/channels.views.channels_test.test_create_channel_no_descriptions.json deleted file mode 100644 index 807fd36ab8..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel_no_descriptions.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-23T20:57:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGCR9TXXTRYR81WT2JW50" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQuCMBzFv4rsGAnDxKBjVkKHaMOg29DtPxqCW9twafTdc3nq+H6833tv1HAOzjGvO+jRLkE53qac0nq4FKR+VsGFsjuM9kxaDv6eo3WC4GWUBcdUFDYFxjP7+cyPBuJIC40FG7uO6wWtYrIgZ/Hx/3bsb5OQp5Be7d4RVWVUlsLQqcx0dAQMigNTIg4vAX2+k8CTgLgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:57:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:57:56 GMT", - "loidcreated=2018-10-23T20%3A57%3A55.684Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:57:56 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGCR9TXXTRYR81WT2JW50" - } - }, - { - "recorded_at": "2018-10-23T20:57:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; loidcreated=2018-10-23T20%3A57%3A55.684Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGG2956SW15MPV94ASHQN" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQqCQBRFf0XeMgoG1JR2UWGLkFxEthqmN09mktRmBlGif8/JVct7uOfeNwhEspa7tqYGNgFELF31Od322+bidsXRjgNGJ4dtWTxrVcMyABo6bchy7YVwzdjEfj53Y0d+5E7CkPFdi+2MFj4ZqiZR/b9dq15mTS4wSdDF8TljIqzU41C+Uu9I6jUS19IPzwE+X4TkWFK4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:57:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBGG2956SW15MPV94ASHQN" - } - }, - { - "recorded_at": "2018-10-23T20:58:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=&link_type=any&name=1540328279_aspernatur&public_description=&title=Sint+minus+molestiae+excepturi.&type=restricted&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 407-cRRTvN6QTqGwswCkDyrJQbcetX4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; loidcreated=2018-10-23T20%3A57%3A55.684Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "118" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-23T20:58:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CTHBGG2956SW15MPV94ASHQN&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 407-cRRTvN6QTqGwswCkDyrJQbcetX4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; loidcreated=2018-10-23T20%3A57%3A55.684Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1540328279_aspernatur/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "118" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1540328279_aspernatur/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-23T20:58:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 408-vNeYDAnUtCQHsyxc4LtcoXQmkhk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; loidcreated=2018-10-23T20%3A57%3A55.684Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1540328279_aspernatur/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "117" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1540328279_aspernatur/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-10-23T20:58:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 407-cRRTvN6QTqGwswCkDyrJQbcetX4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l7fPQIU06jsNJ5H8WM; loidcreated=2018-10-23T20%3A57%3A55.684Z" - ], - "User-Agent": [ - "MIT-Open: 0.50.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1540328279_aspernatur/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2i\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1540328279_aspernatur\", \"header_img\": null, \"description_html\": null, \"title\": \"Sint minus molestiae excepturi.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2i\", \"created\": 1540328282.0, \"url\": \"/r/1540328279_aspernatur/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1540328282.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"restricted\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1119" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "117" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SfK44uMJMVJEVfSF4RjjVbEq%2FHQ5xRyLg868yghwUgRBq2ak8KvbWOwQ5YPj0hiw8zrJ71U1Qm58QGygLwlIcF1d60zBFXJ9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1540328279_aspernatur/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel_noauth.json b/cassettes/channels.views.channels_test.test_create_channel_noauth.json deleted file mode 100644 index af7a8d204f..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel_noauth.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-23T20:58:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH7X0J7RDHCVR0PP94ZBX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIxNNY193X3zTB2DYj0LM519ipNDdQNSvX0DEos9vBV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalBxsWFXmVOzkGWRqaBBh55YSmBMUbuThXBZWD9KSklmUmp8ZnpoAMhnCUagEiWM9auAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=dvK0ptya9lfl2cPB59; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:23 GMT", - "loidcreated=2018-10-23T20%3A58%3A23.460Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:23 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH7X0J7RDHCVR0PP94ZBX" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_create_channel_nonstaff.json b/cassettes/channels.views.channels_test.test_create_channel_nonstaff.json deleted file mode 100644 index 1d41368198..0000000000 --- a/cassettes/channels.views.channels_test.test_create_channel_nonstaff.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-23T20:58:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH1562G5HDYARQYZS12WB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIxNNTNyvfJSjVOj7KsDPKvqiwLKa00cfEwiyzxcglV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVhXokO/p7p5d5BRenuWQ5hhcnBmbHmxiGWmSD9KSklmUmp8ZnpoAMhnCUagGxDa27uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=mQbwmR9cvjQI2jtuUy; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:16 GMT", - "loidcreated=2018-10-23T20%3A58%3A16.552Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 22-Oct-2020 20:58:16 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH1562G5HDYARQYZS12WB" - } - }, - { - "recorded_at": "2018-10-23T20:58:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=mQbwmR9cvjQI2jtuUy; loidcreated=2018-10-23T20%3A58%3A16.552Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH4FT6Y564RDAA2B3XJ64" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIxNNL1NMyo8g8I8ffwDnS3KMwrNTDUTckJyvFJMk5W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZBKeHVLhbhjlXRoU6lYY6uRf45BobZJiUBmaD9KSklmUmp8ZnpoAMhnCUagGYBki6uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 23 Oct 2018 20:58:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CTHBH4FT6Y564RDAA2B3XJ64" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_channel.json b/cassettes/channels.views.channels_test.test_get_channel.json deleted file mode 100644 index eaf975c9d4..0000000000 --- a/cassettes/channels.views.channels_test.test_get_channel.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:47:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRY4KYS3C8R5VSVXC7QQV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtD1D3c3DykINcvN9fTwcC9JT08sSHcxMfWJzA5V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZl5maWevoYFHvp+vtW5qdZuBaZ+3kkWwSGuVqA9KSklmUmp8ZnpoAMhnCUagHvUld9uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=mwxp93SijPbzESXoXL; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:41 GMT", - "loidcreated=2018-08-24T17%3A47%3A41.560Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:41 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRY4KYS3C8R5VSVXC7QQV" - } - }, - { - "recorded_at": "2018-08-24T17:47:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=mwxp93SijPbzESXoXL; loidcreated=2018-08-24T17%3A47%3A41.560Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGS1DD0XHWA51NY7ZMP7J3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtT1zi5xLwwsTM1OrUwpcHZ3DDf0cXIOqAyriDRR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5GFTmhoUmpxS7JUZ4Fntl+Ca5ZjgaFlWYeZaD9KSklmUmp8ZnpoAMhnCUagElCdtFuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGS1DD0XHWA51NY7ZMP7J3" - } - }, - { - "recorded_at": "2018-08-24T17:47:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ipsam+doloremque+soluta+error+magnam+laboriosam+maxime+assumenda+labore.+Veritatis+officiis+odio+accusamus+officiis+quia+praesentium.+Dignissimos+eos+et+non+ea+quis+facilis.%0ADolorum+sit+aperiam+pariatur+natus+ipsa+saepe+suscipit.+Vero+asperiores+aspernatur+omnis+ipsa+facilis+eveniet+dolor.+Dolor+dolor+aperiam+recusandae+facilis+consequuntur+veritatis.&link_type=any&name=1535132865_sapiente&public_description=Rerum+error+alias+dolor+ipsum+quae.+Error+alias+velit+debitis+tenetur.+Illo+nulla+eaque+cum.&title=Officiis+aliquam+at+rem+nemo+iste.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-KktGqQqekeydpCGAW1LBCPyVxY4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "619" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=mwxp93SijPbzESXoXL; loidcreated=2018-08-24T17%3A47%3A41.560Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "135" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPGRY4KYS3C8R5VSVXC7QQV&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-KktGqQqekeydpCGAW1LBCPyVxY4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=mwxp93SijPbzESXoXL; loidcreated=2018-08-24T17%3A47%3A41.560Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132865_sapiente/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "132" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132865_sapiente/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535132865_sapiente" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 130-OWG7TpU6mmIHHGtggapgD45LYkU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=mwxp93SijPbzESXoXL; loidcreated=2018-08-24T17%3A47%3A41.560Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "132" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 130-OWG7TpU6mmIHHGtggapgD45LYkU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=mwxp93SijPbzESXoXL; loidcreated=2018-08-24T17%3A47%3A41.560Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132865_sapiente/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"a\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132865_sapiente\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsam doloremque soluta error magnam laboriosam maxime assumenda labore. Veritatis officiis odio accusamus officiis quia praesentium. Dignissimos eos et non ea quis facilis.\\nDolorum sit aperiam pariatur natus ipsa saepe suscipit. Vero asperiores aspernatur omnis ipsa facilis eveniet dolor. Dolor dolor aperiam recusandae facilis consequuntur veritatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Officiis aliquam at rem nemo iste.\", \"collapse_deleted_comments\": false, \"public_description\": \"Rerum error alias dolor ipsum quae. Error alias velit debitis tenetur. Illo nulla eaque cum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERerum error alias dolor ipsum quae. Error alias velit debitis tenetur. Illo nulla eaque cum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ipsam doloremque soluta error magnam laboriosam maxime assumenda labore. Veritatis officiis odio accusamus officiis quia praesentium. Dignissimos eos et non ea quis facilis.\\nDolorum sit aperiam pariatur natus ipsa saepe suscipit. Vero asperiores aspernatur omnis ipsa facilis eveniet dolor. Dolor dolor aperiam recusandae facilis consequuntur veritatis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_a\", \"created\": 1535132865.0, \"url\": \"/r/1535132865_sapiente/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132865.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2246" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "132" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=qQnx%2FohJ2iZEwnynpSHPIio%2FM%2Fv%2FuUtwCrnTggtdxxtsvedJlKxL86ZeG0iPUQlvmFbgvYtMEiYfrfc5phcKRTWfmqlwMbOI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132865_sapiente/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_channel_anonymous.json b/cassettes/channels.views.channels_test.test_get_channel_anonymous.json deleted file mode 100644 index 594a2ff98c..0000000000 --- a/cassettes/channels.views.channels_test.test_get_channel_anonymous.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:47:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGS7YBVSHD6QZ8A5XVGNNA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtItTwkKC0sPzSjx0K3Idw/UNTe08HAqC7L0TXZV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVGKdYVhpkBYaV6QZnlWZVZJl6xycZRFaGZ4SC9KSklmUmp8ZnpoAMhnCUagGhQ2afuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=aTgiXhDmLLZfph3hOw; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:51 GMT", - "loidcreated=2018-08-24T17%3A47%3A51.601Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:51 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGS7YBVSHD6QZ8A5XVGNNA" - } - }, - { - "recorded_at": "2018-08-24T17:47:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Unde+quas+suscipit+harum.+Laudantium+ipsum+eligendi+id+inventore+nemo+distinctio.+Saepe+at+quibusdam+beatae+nostrum+sed.+Eveniet+atque+ex+saepe+nemo+inventore+consectetur.+Quibusdam+nisi+laboriosam+totam+occaecati.%0AMolestiae+odio+voluptas+perspiciatis+nobis+cumque.+Voluptatem+veritatis+provident+dignissimos+repellendus+non+assumenda+non.+Repellat+temporibus+assumenda+laboriosam+excepturi+quos+quasi.+Qui+rerum+ea+odit.&link_type=any&name=1535132871_vel&public_description=Assumenda+odit+quo+laudantium.+Officia+sequi+quae+nobis.+In+natus+illo+sit+quae.&title=Id+reprehenderit+repudiandae+sit+similique.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 132-wdRVVgUhtH-xoGQ-718HBvR9McE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "678" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=aTgiXhDmLLZfph3hOw; loidcreated=2018-08-24T17%3A47%3A51.601Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "129" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=aTgiXhDmLLZfph3hOw; loidcreated=2018-08-24T17%3A47%3A51.601Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-66svf8gfURznqDN7IbATvsusrBY\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "125" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T17:47:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -66svf8gfURznqDN7IbATvsusrBY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=aTgiXhDmLLZfph3hOw; loidcreated=2018-08-24T17%3A47%3A51.601Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132871_vel/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": null, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"b\", \"user_is_contributor\": null, \"submit_text\": \"\", \"display_name\": \"1535132871_vel\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUnde quas suscipit harum. Laudantium ipsum eligendi id inventore nemo distinctio. Saepe at quibusdam beatae nostrum sed. Eveniet atque ex saepe nemo inventore consectetur. Quibusdam nisi laboriosam totam occaecati.\\nMolestiae odio voluptas perspiciatis nobis cumque. Voluptatem veritatis provident dignissimos repellendus non assumenda non. Repellat temporibus assumenda laboriosam excepturi quos quasi. Qui rerum ea odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Id reprehenderit repudiandae sit similique.\", \"collapse_deleted_comments\": false, \"public_description\": \"Assumenda odit quo laudantium. Officia sequi quae nobis. In natus illo sit quae.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAssumenda odit quo laudantium. Officia sequi quae nobis. In natus illo sit quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Unde quas suscipit harum. Laudantium ipsum eligendi id inventore nemo distinctio. Saepe at quibusdam beatae nostrum sed. Eveniet atque ex saepe nemo inventore consectetur. Quibusdam nisi laboriosam totam occaecati.\\nMolestiae odio voluptas perspiciatis nobis cumque. Voluptatem veritatis provident dignissimos repellendus non assumenda non. Repellat temporibus assumenda laboriosam excepturi quos quasi. Qui rerum ea odit.\", \"user_is_muted\": null, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_b\", \"created\": 1535132871.0, \"url\": \"/r/1535132871_vel/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132871.0, \"banner_size\": null, \"user_is_moderator\": null, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2353" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "125" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=29c%2FIWdZR3PFpHM5QTPH%2BX3CYYsKDBS7DcIwBCNfvH%2BRIAwCu77DKZPTHLW7xdISov7Anjzi1rbYBXg%2F2OW%2FQxD5uI8Bw28G" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132871_vel/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_channel_forbidden.json b/cassettes/channels.views.channels_test.test_get_channel_forbidden.json deleted file mode 100644 index eca7fe09b7..0000000000 --- a/cassettes/channels.views.channels_test.test_get_channel_forbidden.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-30T19:15:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=user_4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NywrCMBREf6VkKQaibUXcRqnRTUUFXYUmvbVB+iCJ0Vb8dxu7cznDnDNvlEkJxnDb3KFGqwCFURxh5ijb964mZd89IBSb2zYtzjbJigZNAwSvVmkwXHkiXBAydD8Bt10L3iIg06D91shmrCY+aSgGsPy7E8wxup5VF0hSejzx9orj5e6J59XBQzk4JYGr3JvHgD5fJNfGELoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 30 Oct 2017 19:15:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=jgFr5OJnAydCS5r4XK; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Oct-2019 19:15:21 GMT", - "loidcreated=2017-10-30T19%3A15%3A20.319Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Oct-2019 19:15:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=user_4" - } - }, - { - "recorded_at": "2017-10-30T19:15:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 3454-IvCIKzvn0hzyue3bEgHPfUtGafo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=jgFr5OJnAydCS5r4XK; loidcreated=2017-10-30T19%3A15%3A20.319Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/xavier2/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 30 Oct 2017 19:15:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=st%2BO6OqN50IgAvp8aRHCVY3WBVc91yiAic5eUzyPYiyr0jaRXVzOO3ePWeMDC8do24aPo1wiaa4%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/r/xavier2/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_channel_not_found.json b/cassettes/channels.views.channels_test.test_get_channel_not_found.json deleted file mode 100644 index db1ab011e4..0000000000 --- a/cassettes/channels.views.channels_test.test_get_channel_not_found.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-30T19:15:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=user_5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NwQqCQBRFf0VmGQmC2aJdLcQKhCioZjPY84nPbEbeSGrRv+fkruW93HPuW2QAaK1qzR21WHkiXESRr+WravW1ehRdGR+3NaUVrTnNTXAQc09g3xCjVeSIcBkEY/cTqHZo0FlumDGy21owUzVzibEYwfLvDi+bQfa7094mnazPRhJzDBD7CTgoxycBKsqdeQri8wUeHSQ4ugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 30 Oct 2017 19:15:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=jMQz4H1IzXMQ9TakZ6; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Oct-2019 19:15:26 GMT", - "loidcreated=2017-10-30T19%3A15%3A24.839Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Oct-2019 19:15:26 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=user_5" - } - }, - { - "recorded_at": "2017-10-30T19:15:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 3455-nZzjtnYjmfwhFSIliNjiArNdo0Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=jMQz4H1IzXMQ9TakZ6; loidcreated=2017-10-30T19%3A15%3A24.839Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/not_a_real_channel_name/about/?raw_json=1" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA+1d648bx5H/nr+izSCWFGlI7pL71C4NSV4pSmRFsdd5eGETw5kmZ7TDGXoe5FKyAOcBBAhiHPLB8R0QHOJAfiSwdYmdh+w8/EHJV2P1QbGD+7IBLrnD4e5/uF919wxnyBmuJFLA3WFjREvOdFdVV1dXV1VXNTceMz0jHPY4s8Ku09igf9le13GDzZIVhr31SmUwGJQHtbLndyoLa2trlT1qU2KO7nY2S9wtUfP15BtAcN1sbIR26PCGz03TDsuG111nPb3DmeuFrO1FrrlRkS02ujzUmat3+WZplw8Hnm8GJWZ4bsjdcLPEJIRT6i9BOsX6XshPoU23izanWBC1unbISqzSSEMzeWD4di+0PdCYAPR63GWBF/kGZ3bA9AEPvC4f7+vzNvd97qc7+nbHdksKBfFG4y9Gdn+zdE4Sq22DjakOId8LK8Sr08ywdD/g4eaz2+e1VYHLsd1dRnzfLOm9nmMbOtFZIeoCrvuGlaL+JBhMjHA2S/JdiVkgcLNUCUJ0M1K9ytQUbBDgRQ9Ddz0X4AFBdiLKAzWtanocD+8rGLDnVyAOEbG18kSXBwGmbPOyF548T1P2uN7tnTY8k2/Wq3Xxhe/1MPGC9M1ti5/0wUzi7EnDixzzJCb7ZIufFPNdHmdx3+aDnueHKY4NbDO0Nheqi3WwORnCMRuTd2xsyPSs3HM7T/Q3F5aq1Xp1bXWpVq7WSiywr3EI7+LS8h7+X1JMtrsYSgUdRtwn9hwLLJBgRCHLQ9LW+wIP/pnEIydPwt3TqN0YaJpXroVeZFjitdbzOWS25wXczBuObJo/qMyUBuHQ4YHFeVjBX6wWSYqQN4O+Z6UDjyrxRKP55Ei63LR1yKHjpNleegg0utm13Zbul4muMUSLJZZB9Jim7dht1gk5u7jF1p5vbOBJY0Ou2fSQrup9XT7F5PrGSOyvBhXHblWuvhhxf6gtlhfw39VxtDWMqSK7PwxwHixpgWV35w64i3Xku/Y1f+6Qrwaeuzh3qFj/3A8Mz+faQrleruPfCV7Tsp2B10EI6HOHepWbkzBnlIqW54VB6Ou9MqZRdx4hfCBxA5v2hkeJxPOc0O7NHYPUOprh2NhQNKzVSQwzioxc+7AKvF07R3RmnGbeJ7oxBcYun/86tbq6Ad2iY5ea5MsMlJueho1Xkj1XwCOpD5XAwMKBvTJv4WzpwXznMorsHB0wg+hZkLdgrryFdRjlLMAZaOzaHV8PudZxvJbuaMoCmKfO1q/qe/Nlgt7m2vx3AdhdjqfPVwIcrwNvoDM5/BlmTOlJYYdrhGDOSgdu07xJjuz8xToDF+yF1fnudVFoOzmLdQYS4fI4QzheOVBn0Ntit5kvSN0wYIhPCukMVKo93XbtUCM1OAl8Bsaq7bxIV81ANnnK3G4P50puX3dsU4fVOleoMCy52wktDZGRPA0wA39DKBW4ZnMlt2iyZiAz8DU9Cj1ylh3wYK7kBj0vdOyOFR4CFc7oxmM73DXt9vPklyp31Qljb/XBHVWKBS3BmexPop5BslMuMBzg/1M+sHSu9SPn+si5pjCmiueM3Iwj51oEsPPDXmojPnKuc4OCR851gejk2+sz7D9HzvWRc33kXFeOnOv0OdwMxv+Rc60dOdcwBY+cazDh/6tznXKsp/rRDTpIZpvsOnf76+yYiRiZ4/UoP+HYjdOznDUSXHGQOdtJqW1ulnDy37Y7pYZfFkH849dLFBhvml5XR77IOiupSRRZFqVTrIQMgLCJQz1OL+lBx3NMfG7rToC8Fry3cYSLUG3T55Qh0cRBEV67kePgrRu0B01xkt7EuZTrDRxudni6P8W6ghR+QtHWDQ7HareJrISmTa0FZjtoIiDiBp6fwh8F3JdtYopEaFKdgzUj36HulZ69x52K126aXAZUKLsiQz5yT3R/OCJdxLTTlHp9YFpYTeO2i9HYOH5GhyGlSBAiuIeWHlip3gHiNU1gCfAs9CNipmMHFPVuTqISiTBN9AC/3RA9BEeSIy08UBw3Ij8zXcUUcsIl6EPyg6dfCPsDr727tR1e63z9svOlLdP94nPnhl/n5+tfC9ya3X6x+6VquLi18uKVy9HXzl69Em15z35u8bw1+Go4tIZLZ3pnBvjqPve5xbPPXdlaqrU7vcFXnjW+8YXnnjnbby3X1178BjECaTi6a3pNHHQgbYm7BkmWIt7kragzYgcY1kS+FC26VlZouE+TEdpIhlpn2MvXamvVtcXVchUI4GQau+PDFg/FhANt0yX0XltHXJhmXHGfWFe8ENpcDyOfN10+iEUdmSiYPwDIiF7QNDzH4QZCrbH4EWI5g20PGUdpqZLy64qxeBHNbAwM4t7Wd2mAij4wi9IaKKEGDwEQ6VPEUDr4TSMNuOHzREZ0c5wXo7Xged1YPiegIL+NsBAGQzcs3ux5YKx4JpcGqG0i3Y4aiGOwZt+GniBpjkdA2VzNQ5ajjYlEt2SdEHsHNgRkkAJEstJsIfcu9SxyKeSKJC5kKH3xGbxQXKLMvYtu28MTKDeDshEuI2EPX0visKp8YWsb0ywTx4h4EGC3VU4btaqvLNZaC2vt6lK1tsiNdn11raabS7Vl3Vxb5JBro77IV6r10g107g54q9lyoNxo7TYh3EQRcBIfdkovVIj0oPIEIXoBGUB9Lj9XVMJahV5UBvauHT8XT16oQO6lKg4qmE2cB4iGMntQAvMrOy9Unj9Z0VuYCdVLKGeBSjcxrhAzItUPEeJ1kYpoqs4RNhX5sRWFIdH7PA2HsqumLAKZw9f0kVJCrIpz+ghQvD6wWjk2QCTMyalPCwStMKXjqHvbRzIizRf159iBnKacjMwKIZxR0OwGtNKuA09oWDQqAqA+M5GeWS6XCRAdn6r36qN6IZlHCpb6jr7Ra5pLuRUFSBx0eJOOo6nZQunGidTeTYsvne9FKWyNyufZuQhroMvwdZ1hSbPQQr5mC7soEic9ZiNP0g9Z0OMGVAYkFXkyjshE1EyOLEoTK5j6oiF6cpl9Sqmp3GefrwA9oUW6ksxWbXnmkBmOHiBzsMQaG6bdZ7S3i4Q2DRltyFKUb6U+VU3UM8lO0Qw5ZtDFcWNDl+mnDdkCWPEy2wTrkhaK5zMJeewtpRVSUhX1Ew0YJY5NBwRlBa2KbmlSRIJiDEm2mA4FthbO4im/FNNRDCplkjHV/BC4dqC3YLNMA6qbATNVu9mh0SwgA3eOEEmSHZuSjqdRibkLfc8ZZx+2WKyXQJNKYowNxEJMnaZGrdrm8cCyTZ7AoC9xIyVkFciwFGQlpQleSHPmhTQfElgnN/K6Yrwu1FumIxkL9Bi6Qn7QWr43wLpEs0IYo8ZoCN2UtJU9JvohQ3eQ0KbAykZTPYfcqHALm0rLcymFsYr/JpJhakSMBAuRFxHUtGaalomquDsJc5ZQSJxOO53QWFlJ7YZMcc9BWnlLd13BXZ2Fegtqhu9tQvWq5ODPknBCRZaEmrsadXvb3jn1qEFfSceqNhsVfaQRcTYr8Wg69tCsPIj8bUr362Wfm77Xg/WBvHufPpaY5wrjcbNE+e5wZtzoOGn3E+iW1lkBJ5uPm3IvKjW6Q8r1V3t4Iu7jck4oNMPybOQ+xBgbG/pY+nvaKUtbBomib3nYw7uaJzQ4MvgJHrYG7ObYdaQFLV4Fgj2TYusj4TEIMaLIibeDNjYo8RRk0W7BLPJKaL9xbNXmWDzmY4eQnNCZUCa2fkmMYwuQ49zs6VBccPUS9TKdK36FUsJj4hM8eDhfLNi64SNUEkzy+4jl8vsIZyVCoUpWTpKRPe62gt7pl+SfWEQOnwHs9cfknIDvAr6c0PuXGrIWAKFLCdJUuoBZpc/scV9/MfIQq8AakjBHokJ91GJS0ubwNolMjBY8SbWxu6heSMyQth45SMERFg1KAKjcBrZLXHEjgg2EVHEizS4yD6nghsWyVmqM1+ZQ85jerHrRFKWohrGI1DRgcrxKja/psLygPa7CrX7i8c/WFk8n44lrTzKLD64P4iTxwMQ3ZCuitAatwMVLXodsOBhIgd1xWdQToyKweApDxnPNoBzPdJqagCdS8VL8Pk8S0otwxPqRrl/ve7Z5vHoiIZH8D40KnhIRTfQZnMTIB1nYs6jB8ROnMYIttwNVYI0JcFoY4gKoWCmD9UrlqumOXyjdLiJLI50sGg014YslVMZdGhuQm+xuKNmPIh6eU22yVGK6g8orUc1iLUyIBh4J81hRJpCS+CBdSdQLQSZ6jcTiHnoRKpdQoRGQHjc9qGQqAeN70I0blV7jM5/JrAq155LQUxEUfDtT63m9CHtGqsgl5PAnhJ2UpgRBHHLlkSyPYic5akVj+o0mKnbGjtQnG2B3k+hzOIQiI8GhuAn2VE6rAdvrUrXEZBWT+JzhVAaJYhbrmhpNFCKFYq+mtaaI7pKFbNUa2+T2UKWay2KEjCKIZfYN8HaA0qiQtTgjm5pWHdXG0WKBJ09hUqwMwMCMXEGXQKxG7NvyL1KsumTfQ6EP1Rs5ZvmlDXaKT8vi3y7ItGil9WLFMFJkiuTY7R2topFSN7RWCL+I/kUhFCYBgcHGBYjCRcjBmG5MTLAJDG14ydzXsLDJdpHsbQ21a9yHtSIdNNkEC4WSaoiHKZ4iioQHY0qAnPqcnbgkdmvxUijXUkNEBTYQcVCba6ylc7UaHNVOavSx+UCPR4oA235Wg6Z0VqyyxrEIKspKg2KWc5AoQomrCbEFmrEIS0ZDU81fDhpVRUlvZxtSBlkqypKDM347T4xXvVaQg4oej8aVMgrmJlAWd7CbJVM0PtMZtvgUXcqhks4RmHg5ovVhxEohu0aRk2CX6mxHO0ksvOfPfGUuSGS9qYjQTSKhx/PGIgaHTSgM8+Q49XbeiEVYSmgrY5gzeenXc0QtdhQDAcxYJya2u3qDeNoI3aOQbJwyBUyUCGNPQghkipTbYYTAQllUy5LYVaKggi/q6FODJaF5bQSTsatr9Nw2F6rL9cWF5dXF1Se64SbqqZXmT0b5tKg6R525z+wrFvz90WAfZmnA1hiWO56H1GlBoAjNE41BxUQAHdUFT8BgAemxVh4FYaeRdsaFp2qjEH4WPZ3gzF2wXa9lwyxAQJ3UxGyYlIKQa1ft9DkSpt6McD0K8XrcCU/XpshUhlYK4McR/Xg+WtGQHicGvHKbGD0ckf6gwoKqeom5Y7fDIF+HphqMEKV4JE2exzQNFzKI6xdoe40Fi5bHpYvnti4/swXXh7OtPctuIR5xllGK+vj+QRc3KE5QR7WLi8D3ZomqxTXUL3TcdQO2FPdPI5RJkr4uQuwwkxK3IbZvglpZ7+rXPFcfiMEh0JiG3/MGOHw0m60hDvPEtQ+i3F6YylfkO9Yaxhc5wAKnCPxmSZjL6wv1am/vtDKk1+sr9AU2IjxD5XCus6XeHl1tQMull8yjCNJQAKnUeBZnBF5bHhOIXRHKjtyBKITTQZUwvVDH0Si1wSUFwqadYJkiXAo5bc/QRtzXOzh/IWsazhyw+OxM/ICokdYyrkc43NUVEGH99nVjqM7+4pFEPVSSCIf3inzPrnh0OMiOqzc4MtEbZfa44fWGp9lidWFFsRLesVFmZxyHCZ88wGMRWTWlrZ7Lq6e3nnzy4jZ8CsTWcDhy5tLFrcsMnrYHHwPmBO/APaPJpHMVE8dI/m5AfJPsEQhTfoAKmPYR0Dq7tX2m+YUvP7ONnI1jdLqYEpBjpxnq/Y8Tb0U9swWPhG1ubo46nWDXmY9lQ/kUZSF1yfE8wYvl8Bg7Oepzmt2ADStCtTClZciW3EfY2ZCdqb6jVRPRFZFUoNFZWDwXIu9cU1Y/eVkuJ1Z4TAClD6YHvumxdxVHSMTrrMeBJYVCKURTOHkeKcsx9UJDFIM4gsOspLGGpojpU3TcqufSJY8wGUIHfEDiDX8HnpRVb2xg3+uKkcXzqNETun4htDywhrxHuLACp7zlhe4DyYg+NcGTEUsIgtZfJLXg9nBdhvTGceyAc7aSur6FIrvI2oqwqKlrZriGoEHrwC3rMbxy9BZ3aIfeLNEKg8YY4cIs4rgT0WWMX/NcB44itaGQ1TqUPvWMyVDoYgqomQyZTQBVBJABhPh4OpwAxuh7jii5wrUhcOBH4XLcWQGVaHAL2wIHqbAwcHsHeB7TU2JYtbqmctW4htwY3E+h9+wKjveN3WbcDscCdD9ItjGOgTZLFExI1TohJN5uQ82kRSVLutaGMNJBhjbABQQ9aCOwM+3dFTSH7y0mUXFgBCa0fK/VEqKWcz5Z0KsQmgpCicVD8cjYwZyFwiASdYwjYOnYWWpNKVrzhKyHo92BeZiYiVa4gWhczEih5EDI8iYWQtkwlrAY5DSxGrXJCghJ07GUNMXthDQhUD059InJPZKRsVPQQ2Vk8TAhQUgIhaRIKIBE5cgKqalYWqA/RqKTBTwuO1KhxkCnScsYfqyKIzkYabM56AqZNnPIjiQarTN1vGI3jsuDQt2BnYYA4dRtSvSVojGJK18wyFyfJhQCDhsRMb7XjG9Mon3uruRhU0K2hIvL2lpORAbIkXg9jHgJA6Dl7YGBaZMpeayMJp/DMiMlgQ9S86TNj4yhFLeAs9rlXezYsOgSQZsIlRs4A4cJcjgFsB8DlFnD3h9lhkqS8t+k6RuzaB5eysYADWxcBCfz18gYSlmLuTQ1OhwmKRyZFs6ZUo6KkHJputNBFI7pyHgbcL5bznprlRFYWmU+4G2WKAkRB7nIQddxpkenucpjlxZoHsepadveg3Ukc+GkwQsRyDF/Ju0uGTtRtrUEkPgkOecnwNJDTrgmj2IzZmsjOSuVMKGQsIrFUh5bz7pDxx8GQgH4q5m07mnNy+ZpqoVhx54+s7116eJT8B3bNndMLcmESvz5OIyARFXKQcsxKfMh9ZFGrg8PASPJqpAhG9OY0k5p/0n5VKCgwH+CswZHdsxjkl4jgX9wd0l6f7GvJmzt+3eYclzHKZaK8G6y+ObmNGXBTtuNCt0m+DQZtyn2gmgpJ3IYM2rKMIU1JBL6UwkCOQONraYpZvv0UaVtNqx/cS1nDDS9644PbNRmbFXle1pHxviEMX6fe1Rml1RzOdqHKG0vtUXQPinb5O6UcZi0Mpq9+AAhrU/RF/U8iZkvVX+sREfCa/zvUPlgAYYsFNpMGj9HwcpHSRhRcBbhqQBMQ9onNouzSMtDHBlJrcjOOcVopxURUwqUPWykFScLjW3ud8U5VRxhFTE3Ad/S+xSm1M0HQZAJvBKCbKT1YWK55G8jLixjuQTynHyggrciZJuKlOYGKrHlTo9TkjK5j3Bd5GJqUAnWlJ5IML6DKSFH9lIYDkUsiPKUsOkL3yJrpWYDe5GVBPZEVhBWHk6V4kWjRkxZUeIFFmPo4/9WQ2S8UOWZuCw6QpIQbn228AoHLzJZgzolmWQi21PYwpQ7FYdTxOfGhsrDjFPWkK6nkkOPxTFHBCLjVCuG+sLnN3AvMoVVk74qWKi3S40zwLqro2SA7ejt59nxz8NrK2gNAf/0rb9859MPPv3Fp2//5Xuf/hRd/KldWrB79n+w/6v93+7//O7Ld79995v7H+LTP7D93+3/Yf+9/Z+znRafDgHR0/1f3P0eILwvYBCE2wwgf7N/e/9D9O8UDq/lahcvlxoHb75z8OYfDt781sGb7+EDutDz6Vhx1oKEmbyeLXN6TySGn/UC8HPXBqZgamMDWcM4AtCdOz9mO4ZeOBCqO/jjK0hGGKJZUNwM4eFzw66v8w7aDaeiNoEaJm6wy3bMYsQm5u9JHoWBYaEdL8RMIf2PX/34t/jvNx///uMPPv7w43cgeU5xBxf3Wo2E9PgZVLj4OIPTT5DA4t20nsQ2lUnIjp9DZSXKilzZcQoTAbbTSnW8QIVP7KxvU8qZ7N1pTUMbYRZitERkVDwT3ENTFOQgXxeaf4d7U+eCigk4HIw7v/AcNJ4CNkAyXrYtHhTTHCADfay5MWVOAq0LHx10J5TgQTF0ZJ1xKvNkuxwHGDs8nD5Imu4o2EXiNdoWz28bk/uXb376FnTM+//6fbbTLpbOtl1qBJHXxUJr24V0tm3w4LyNVHzbxVzg61Q622BwG/N25y0dqYY77WL2tn2NJPF8ujGeFBMy1C5fovZDWnVt+jaVko6u2Vh/F3RuOwhB7Yjv03tAZ12482PbtHCajQ5mIS0d8OQCHF0cc+50pjPEAg2f/OSTH3zy9if/9MnP2I41XWFbmJSDm7cObv7h4ObbBzdfZQc3Pzi4+RF9eeOVg5tvHrzxMmDYU8dhYQ4sv4/abVKiVvEUWBCqp/TOEOetO1axTFlQjPdevvf6vV/de+PPL997496v2b138OfNe7f//C30HBbyCfXhjbM6SoV1dhGp+UjPsSG+9vQ9wMZ6vvMuIklQr9S6eEHbWEPQP9B7EM3jF/FpCE1kh4X0XIXA/f21N/7+o3f+42f/zHauFkvbrtsUm997rx689/bB+6/Qv++9znbE80L4u1Bc//3qj/7zV+/+1w9/icZeYUsHlFzC8bXLdhx96mw6uJ6/1Fio1VbQFJ+LQVJO6qUvX0Izr1hNOQCGa7TDqG//6X22qzst8NiZrnycPvroIepG//R6RFYS7ipHp34hKV1MoZr3pygYE7Gd7vS9vBtqT22TNOL+cDSmb4XQXYzzMsc5Kiw61PftuMWjdWHKXR66nk86wy025VxM3GXVqnjSejZW1hlf/e8xtoMHU+euB0ph0ot12Cumsoc5ofsZok5052cYUG/6dPSQBzDRA48KGdYLm2efzqBo+XqAhC4b2c7AhreFfX1wBtXJd37i/vHbbMcvZo4PZSKNVGGm3t7/AM2LlUqAeGjgoGzJ/eMrtgtxCnYLaQjARtn2T6/Hradr3QATdfebd1/e/0gSw+7+48jmDYo1IgpvaGU+4/fEnImvxWRhWTyDAQg1FRSvBpTGNw5u3Ty4devg1kcHt3558C+vsJ2wWPeEFtrf/vHB7fcObv+U/v3gOwe3Xzu4/RP0sgqpCTHk7Tu/83fvvIXdLiweYwTO3/32/ofgzs/vvrb/e/Dp++RXpLyKqHgu+tigtu2/fvgRnPSv2n/97XdDttMvNh+uYSz/dvvdv//wu2znWjHx1yzNwFL991sv/+37P/zbu69RYzxJDbYi3TSZJJWJgqvUSZV534ALRnlF6spXlg3Px5k/YxltfoUui5al/ojYi3s+UEDrUx5Vo+85yIjhOCWBMSoSbalkRIZxKK6NUGSI3ymqCF+V/FV8SR/UjMXfUbeQOMEBRR9iL5tS0hJAFeEB4wn57PgjE5IAGCU4dMhjoQijKS6LiCtQsnk3soJaXq0irpHIzXWTpeI23ciQPVmQRd6P92y6G4fGmFP9pUIWpcbT4u4LnI4gKe/KxSfZ4spyvYozkjjLC34CZZlpC1WtVmULa+sLS+uLK+W1xYW1+uLJanW9WkXiuSviPgtVvmjW2gwpZ4q3qBKRg08X7oyKquLhqwFnfsqljGOkyTraGsaa8PPBQT/C0l9DXFSgiVs55ko3LHLUCc0VJJ0bmpWCK9FnYLGEKyRb/vIEooGPgHDoB8rD1AS6ucKX+d1aqHe0LpxrnIJVOuF8byZORJDud5sr8Y+i+DwussuRv/rDL0UsXNzkI1Na53ttOt1BQJHMScbOQG5kzxWcSEedK0QRjZ8rRHE6mzPpMyiHDjZeGeKepHQGsMgk3s37cacZ5puECFf/5Ax/BqBx2eZcBz9KWJgEOwOtKHq0c9blDLMk77CbK5HiXAFBOPqluelXYzyYnSBu25qzRFE52ySRM8wQ1R1NApxhgqjmZa4Au7iYYL5jRvgS6UlzJVL8FiNsCcQjJuHOMj0irV4cr813muZv8lCSP/0AmZ9rq83AA3Uf4SRfZ5BS8rlyxHQGKsUVfNiW1GWbuDYslHUYc6VbFfrnyMIMpMtajfn//g5dXEL396C4AB6zsTtvwRggkQ4VHRodVc92ZzhuW8VBU9eWFwOiOqhZFjd3msezL156iV3HRXTX6dY0cfkN7rsjlYw/qV/YXUfZ0eXm8ZK0/EUmITUS9VHyN5REEAEJhvS4dOKUKG+Ie8lnN07JlodCpmuBRDWVSNa3ka6BCKZAJa5sMitdVKyZosQkGEclUZRO3DhFV/vloxJpEVTZhZ3XGRLhyeBR6YJzoTHy5bMbp0AO6q7yYcpbj2SIJcAvLqM0CZsvfoM5wDdxowb+Es4zGM1TMa/pAim6GncMYfz0xinSQLjdL28qkDMm5gHbnY9wI/0AdFf8RXwBPwGN/BMK90S4V0UipmtxmUx9meCaQENME9ZNPj419ZSqxkSzU4xWQ/yZxiYes8QvGh+WeA0smJuYAU0btzaGHBiPZC6zZI5kLqVu5iFzqRs1PzM98NaQV8GWfSjN5KNQk6f9sgok4NXOdbq8Ez/PnboMGMG/lYUVuljUpft2k0uC8XxtuYbn6oJbsbOWcclU/AFXWAubMPRw2EcXg+YAx03D1aXFSeD0fGWpEDhy9O4DeBHl48BJ11DZZQDqPfwiblysSkXNNuzuwwawspw7gIXq7NypLa3lwa4trxDTZuN8bW05l/Pq+czAafRjMrNaBvA5cGVNDD8H+MpcgNfzKV+h57OyRQDJo7xY2nHKcR/SvlquL+cvpfpKndZvhnLUknj2NZ6s1UOEvI5LwfOYUl+rpZhCsZnmQEecU4EvXPXoR+Od4ANuIE/Bk9Q9IKkAkbse1fMMFx5YWwFIjipcLS8t1KazGBrrEBavri7lyh2ekw7I0C1vME8m776kAxe75+oS9TwD/wH5slau1moLk/OJ5/XFifl8cOLXyrXlpRy+4/mqUL4Z4h8G/gpyNvLoX1kWOrIQ/n1vRIs5qhb7U72aEhtYoX3cNyqusC/j+payiMpm7lkvo3wclreD29R4weJKoI4tLnq+TCtDDeZ+sNHvhtGvclpTcAmY88KVVBYFD45xuUoq6kFHN5WREuTY4NbKK6v11PZ7P4yU9y4UjCkBmINo9QHHRF5PARoIQJ4UEvaUgrmf0SiDCCf+MtSKM1q6Sx1/6LcUGv8DrW5J4V+IAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 30 Oct 2017 19:15:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/r/not_a_real_channel_name/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_channel_with_avatar_banner.json b/cassettes/channels.views.channels_test.test_get_channel_with_avatar_banner.json deleted file mode 100644 index 21e31ee942..0000000000 --- a/cassettes/channels.views.channels_test.test_get_channel_with_avatar_banner.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGSMV2AER0PYN4Z16EYSC4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtGNdEwrdQsLcA0xKTFLiTTNDjE0cjYN1w0tKs1X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLYZ5Xp4WrpFJlskh5d4RJXlGBaEGTh6Bqf7OIL0pKSWZSanxmemgAyGcJRqAcjF9cS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=PiKs9Ws9fHvPK6ImEE; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:05 GMT", - "loidcreated=2018-08-24T17%3A48%3A04.812Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:05 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGSMV2AER0PYN4Z16EYSC4" - } - }, - { - "recorded_at": "2018-08-24T17:48:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Veniam+ipsam+nemo+architecto+consectetur.+Aliquam+accusantium+laboriosam+laudantium+quos+a+tempore.+Optio+nesciunt+beatae+sint+deserunt+ad+maxime+dolor.%0ALibero+facere+accusamus+illo+ab.+Saepe+velit+atque+sit+dolores+harum.+Atque+reiciendis+laborum+occaecati+atque+ad+modi+totam.%0AConsectetur+id+possimus+rem+natus+enim.+Unde+possimus+quia+doloribus.%0AUt+natus+laboriosam+eos+tenetur.+Laudantium+hic+natus+libero.+Magni+neque+asperiores+earum+eaque+dicta+iste+aliquid.&link_type=any&name=1535132885_quos&public_description=Quasi+sequi+nemo+fugiat+facere+nostrum.+Similique+repudiandae+omnis+dolor+illum.&title=Magni+quo+quas+ipsam+quam.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 134-YAfuFVPET4t6dY5kT12C5W-Uruo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "710" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PiKs9Ws9fHvPK6ImEE; loidcreated=2018-08-24T17%3A48%3A04.812Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "115" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 134-YAfuFVPET4t6dY5kT12C5W-Uruo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PiKs9Ws9fHvPK6ImEE; loidcreated=2018-08-24T17%3A48%3A04.812Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132885_quos/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"d\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132885_quos\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVeniam ipsam nemo architecto consectetur. Aliquam accusantium laboriosam laudantium quos a tempore. Optio nesciunt beatae sint deserunt ad maxime dolor.\\nLibero facere accusamus illo ab. Saepe velit atque sit dolores harum. Atque reiciendis laborum occaecati atque ad modi totam.\\nConsectetur id possimus rem natus enim. Unde possimus quia doloribus.\\nUt natus laboriosam eos tenetur. Laudantium hic natus libero. Magni neque asperiores earum eaque dicta iste aliquid.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Magni quo quas ipsam quam.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quasi sequi nemo fugiat facere nostrum. Similique repudiandae omnis dolor illum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuasi sequi nemo fugiat facere nostrum. Similique repudiandae omnis dolor illum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Veniam ipsam nemo architecto consectetur. Aliquam accusantium laboriosam laudantium quos a tempore. Optio nesciunt beatae sint deserunt ad maxime dolor.\\nLibero facere accusamus illo ab. Saepe velit atque sit dolores harum. Atque reiciendis laborum occaecati atque ad modi totam.\\nConsectetur id possimus rem natus enim. Unde possimus quia doloribus.\\nUt natus laboriosam eos tenetur. Laudantium hic natus libero. Magni neque asperiores earum eaque dicta iste aliquid.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_d\", \"created\": 1535132885.0, \"url\": \"/r/1535132885_quos/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132885.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2432" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "112" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rn0BvRXhrH3CcCLfTKyIolivpcgE9Y0jgQP3gSZkRVhyKrx7nFk5o%2BaV8DHFv8jVoPVtRlSOCFFg4Ydc24hadiWkToyv40IJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132885_quos/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_get_short_channel.json b/cassettes/channels.views.channels_test.test_get_short_channel.json deleted file mode 100644 index 0f5fbdac16..0000000000 --- a/cassettes/channels.views.channels_test.test_get_short_channel.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-01-09T14:38:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01C3DNR1Z20EVR3AWNKMCY3N25" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtItTAmNcPYyLwzwyzfz9UjJMQvOy4zKcUkPNQhV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVuyS56Hr5uvqFFxZmpESlpeUYeDglhZsbJHmC9KSklmUmp8ZnpoAMhnCUagFXKKq/uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 09 Jan 2018 14:38:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=BUbhaH3k6spzXrTpli; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 09-Jan-2020 14:38:53 GMT", - "loidcreated=2018-01-09T14%3A38%3A52.932Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 09-Jan-2020 14:38:53 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01C3DNR1Z20EVR3AWNKMCY3N25" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_list_channels.json b/cassettes/channels.views.channels_test.test_list_channels.json deleted file mode 100644 index fcd10a95de..0000000000 --- a/cassettes/channels.views.channels_test.test_list_channels.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:47:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRCDJBW2TKTXKY4AKJ7KZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQ6CMBBEf4X0aDQBLWq8Gk3UeOhB1FNTljVUDJAuUozx32Xl5HFe5s28hQFAIt1UBZZiFYhoupjUhxhVmxS09kZCt+y2V9glBk6pFONAYFdbh6QtC7N5GPbs5+vmVSOPpGgcOu4SVAMacXJ468X8/y2qPBlyatOeL/4JuTw+3D6me+kVOxm2FlDbjIeHID5fPlbIOrgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=iOvYaCSFEZOo7ehClu; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:23 GMT", - "loidcreated=2018-08-24T17%3A47%3A23.398Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:47:23 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRCDJBW2TKTXKY4AKJ7KZ" - } - }, - { - "recorded_at": "2018-08-24T17:47:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iOvYaCSFEZOo7ehClu; loidcreated=2018-08-24T17%3A47%3A23.398Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRFP61WSWW6FHQRC3TQKK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0stCtMMpydI9P9ysOqUhN9i0Icsos884vNPUuzglV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLYlmRebOoXF5xf5+mR6RJXpOhcWRUVUWZQ4l4P0pKSWZSanxmemgAyGcJRqAfu9VDy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGRFP61WSWW6FHQRC3TQKK" - } - }, - { - "recorded_at": "2018-08-24T17:47:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quisquam+sit+cumque+veritatis+impedit.+Error+cumque+vero+dolorem+et+eos.+Hic+doloremque+earum+odio+ullam+tempora+blanditiis+dicta.+Quo+maiores+natus+quaerat+autem+amet+aperiam+ipsa.%0ASimilique+facere+id+suscipit.+Cum+doloribus+facere+incidunt+illo+corporis+vel+nostrum.+Itaque+quas+distinctio+molestiae+dolore+facilis+magnam+nostrum.+Dolores+culpa+voluptatibus+vel+repellendus+repudiandae+odit+eaque.&link_type=any&name=1535132847_eos&public_description=Voluptatibus+quis+incidunt+fugiat+mollitia+sed+voluptates.+At+totam+ducimus+cum+ducimus.&title=Tempora+sunt+nulla+quod+doloribus+maiores.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 128-x2jAG_gNsTxecMpRBivKoq5KslU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "664" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOvYaCSFEZOo7ehClu; loidcreated=2018-08-24T17%3A47%3A23.398Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPGRCDJBW2TKTXKY4AKJ7KZ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 128-x2jAG_gNsTxecMpRBivKoq5KslU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOvYaCSFEZOo7ehClu; loidcreated=2018-08-24T17%3A47%3A23.398Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132847_eos/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "150" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132847_eos/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535132847_eos" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 127-pK5eQvVksCwa4cx8xFYcIVacUb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "73" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOvYaCSFEZOo7ehClu; loidcreated=2018-08-24T17%3A47%3A23.398Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "150" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:47:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 127-pK5eQvVksCwa4cx8xFYcIVacUb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iOvYaCSFEZOo7ehClu; loidcreated=2018-08-24T17%3A47%3A23.398Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"8\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132847_eos\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuisquam sit cumque veritatis impedit. Error cumque vero dolorem et eos. Hic doloremque earum odio ullam tempora blanditiis dicta. Quo maiores natus quaerat autem amet aperiam ipsa.\\nSimilique facere id suscipit. Cum doloribus facere incidunt illo corporis vel nostrum. Itaque quas distinctio molestiae dolore facilis magnam nostrum. Dolores culpa voluptatibus vel repellendus repudiandae odit eaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Tempora sunt nulla quod doloribus maiores.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptatibus quis incidunt fugiat mollitia sed voluptates. At totam ducimus cum ducimus.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatibus quis incidunt fugiat mollitia sed voluptates. At totam ducimus cum ducimus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quisquam sit cumque veritatis impedit. Error cumque vero dolorem et eos. Hic doloremque earum odio ullam tempora blanditiis dicta. Quo maiores natus quaerat autem amet aperiam ipsa.\\nSimilique facere id suscipit. Cum doloribus facere incidunt illo corporis vel nostrum. Itaque quas distinctio molestiae dolore facilis magnam nostrum. Dolores culpa voluptatibus vel repellendus repudiandae odit eaque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_8\", \"created\": 1535132847.0, \"url\": \"/r/1535132847_eos/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132847.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2424" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:47:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "150" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4lmvhxTBTizl7bgnNx5YME5NrhzG%2BhLERb2jHkZjI6oxwes5YafUOF4RFOlDG4BEZwG%2FtT0aERBpxXWrPXatcWHvMc1H9GLz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_list_channels_anonymous.json b/cassettes/channels.views.channels_test.test_list_channels_anonymous.json deleted file mode 100644 index a0fb2e9677..0000000000 --- a/cassettes/channels.views.channels_test.test_list_channels_anonymous.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-27T15:00:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "User-Agent": [ - "MIT-Open: 0.42.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-CspEo5UPLEAk4x-58y17ClMMYM0\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 27 Aug 2018 15:00:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "set-cookie": [ - "loid=HSy5b8ZKN984BLk6V7; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 26-Aug-2020 15:00:57 GMT", - "loidcreated=2018-08-27T15%3A00%3A57.822Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 26-Aug-2020 15:00:57 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "543" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-27T15:00:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -CspEo5UPLEAk4x-58y17ClMMYM0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=HSy5b8ZKN984BLk6V7; loidcreated=2018-08-27T15%3A00%3A57.822Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/subreddits/default/?limit=100&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "91" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 27 Aug 2018 15:00:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "543" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=x2lAK%2Bhtk8H2pSIt39Q4PD0QFabSqcC3INbuVJaqjRFpBhnsMjd4QPygM8JmNLWlmRXTtCcW8D8%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/subreddits/default/?limit=100&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_list_channels_ordered.json b/cassettes/channels.views.channels_test.test_list_channels_ordered.json deleted file mode 100644 index 8686ae65c2..0000000000 --- a/cassettes/channels.views.channels_test.test_list_channels_ordered.json +++ /dev/null @@ -1,1611 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-10-01T20:41:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CRRNSZMCDFTNY9WP1A874HKQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2N9dNMwoui/d2TwkwT83NDi8IMPSMKg/296xyzSxW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbFFwcl+pgUOiZ6pRoW54TEm7o7VoaYRPq6h+aD9KSklmUmp8ZnpoAMhnCUagFBOI8uuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Sep-2020 20:41:13 GMT", - "loidcreated=2018-10-01T20%3A41%3A13.029Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 30-Sep-2020 20:41:13 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CRRNSZMCDFTNY9WP1A874HKQ" - } - }, - { - "recorded_at": "2018-10-01T20:41:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CRRNT2WT4F7SYXZQZ6TH5RZN" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6XcpRgIBNS68wHiokEotstLk97SWDElCdYi/ruNXbmcw5yZN1Rak/cYbEcP2CYg1humyDN5Q5HtBu4OKEnnGKQ6qusAywTo1RtHHk0UxIrzif18DGNPcURR5cjFrtd2RouYHDWT2P6/jZez3Kc25SXzpSn4XZ0kK7K8a3h0anoaTWjqODwH+HwBNwrZ0LgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CRRNT2WT4F7SYXZQZ6TH5RZN" - } - }, - { - "recorded_at": "2018-10-01T20:41:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Rem+iure+exercitationem+minus.+Ab+quasi+quo+tenetur+nihil.+Atque+veritatis+quis+autem+enim+recusandae.%0ASimilique+odio+repellat+et.+Asperiores+magni+laboriosam+debitis+maiores.+Quae+harum+repudiandae+amet.%0AExpedita+quos+magni+ipsa+quas+doloribus+illum+in.+Ipsum+esse+praesentium+odit+deleniti+quas.+Saepe+voluptas+ea+ipsa+accusantium.+Quisquam+ex+eveniet+quaerat+explicabo+vitae+voluptates+assumenda.+Deserunt+laborum+eius+iusto+officiis+iste.&link_type=any&name=1538426476_rerum&public_description=Tempore+aut+corrupti+et+esse.+Suscipit+vitae+ipsa+similique+numquam+dolores.&title=Dolores+aliquid+accusamus+voluptatum.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "694" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "524" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CRRNSZMCDFTNY9WP1A874HKQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1538426476_rerum/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "520" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1538426476_rerum/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1538426476_rerum" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "520" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Vel+excepturi+quae+deserunt+libero+omnis+quae+explicabo.+Animi+praesentium+omnis+maxime.+Aliquam+possimus+minima+incidunt+ut.+Iste+ducimus+soluta+incidunt+ullam.%0AQuidem+officiis+velit+sint+quae+iste+aperiam.+Rerum+aliquam+placeat+nulla+incidunt+incidunt+ea+repellendus.+Deleniti+repellat+corrupti+voluptatibus+nisi+maxime+non+ea.+Perspiciatis+voluptatum+exercitationem+culpa+dicta+fuga.%0APorro+ipsam+placeat+velit.+Eos+magni+distinctio+minima+eaque+repellendus+nesciunt+consequatur.&link_type=any&name=1538426480_velit&public_description=Fugit+tempora+repudiandae+optio+atque+blanditiis+inventore.+Eius+quis+iste+nam+laudantium+odit.&title=Voluptatibus+magni+accusantium+earum+consequatur.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "764" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "520" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CRRNSZMCDFTNY9WP1A874HKQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1538426480_velit/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "517" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1538426480_velit/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1538426480_velit" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "517" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ut+saepe+necessitatibus+illum+id.+Tenetur+culpa+velit+maxime+ullam+vel+repellendus+minima.+Incidunt+ut+dolorum+libero+vero+rem+quasi.+Pariatur+expedita+maxime+blanditiis+laborum+pariatur+aspernatur+facere.%0AIusto+reprehenderit+corporis+nobis+doloremque+atque+quisquam.+Praesentium+ut+mollitia+aperiam+voluptatibus+doloremque+explicabo+qui.+Neque+expedita+consequatur+quas+esse+ad.&link_type=any&name=1538426483_non&public_description=Unde+ea+reprehenderit+qui+aspernatur+aliquid.+Atque+officia+laboriosam+iste+minima.&title=Nobis+laborum+omnis+explicabo+recusandae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "638" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "517" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CRRNSZMCDFTNY9WP1A874HKQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1538426483_non/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1538426483_non/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1538426483_non" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "73" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Deleniti+voluptatem+sapiente+recusandae+hic+nemo.+Cum+dolorum+dolore+laboriosam.+Architecto+tempore+quibusdam+nam+dolor+quae+nemo+exercitationem+expedita.%0ADistinctio+ipsa+repellat+tempora+esse.+A+odit+at+consectetur.+Deleniti+blanditiis+similique+fuga+ducimus+quisquam+mollitia+ducimus.+Quam+necessitatibus+sequi+accusamus+vitae+nulla+ad+recusandae.&link_type=any&name=1538426486_quibusdam&public_description=Et+eveniet+itaque+sunt+voluptates+necessitatibus.+Eius+eligendi+sit+earum+magni+dicta.&title=Porro+ipsum+voluptas+iure+aliquam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "610" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CRRNSZMCDFTNY9WP1A874HKQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1538426486_quibusdam/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "510" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1538426486_quibusdam/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1538426486_quibusdam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "510" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Commodi+maxime+soluta+quas+similique.+Eos+minus+reiciendis+eum+asperiores+doloremque+laborum+eligendi.%0AIllo+dolorem+quae+temporibus+ipsum.+Id+libero+voluptas+ipsum.+Natus+debitis+exercitationem+eaque+modi+sequi+quo.%0AAnimi+doloremque+velit+temporibus.+Quos+ducimus+et+iure+provident+voluptatibus+cumque+ut.+Non+cumque+commodi+distinctio+animi+possimus.&link_type=any&name=1538426490_illum&public_description=Similique+sed+fuga+adipisci+fugit+quo+voluptate.+Sapiente+harum+totam+ullam+iste+animi+voluptatem.&title=Reprehenderit+provident+eaque+inventore.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "628" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "510" - ], - "x-ratelimit-used": [ - "9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CRRNSZMCDFTNY9WP1A874HKQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 378-bes-Nj_3MAw0rC_NecS_tNbDbUw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1538426490_illum/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "507" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1538426490_illum/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1538426490_illum" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "507" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-10-01T20:41:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 377-f2Sv_KGdP7emkWpP1IZwSOIzEis" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iTnAkDnTFUtQW5lPwP; loidcreated=2018-10-01T20%3A41%3A13.029Z" - ], - "User-Agent": [ - "MIT-Open: 0.47.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1538426476_rerum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERem iure exercitationem minus. Ab quasi quo tenetur nihil. Atque veritatis quis autem enim recusandae.\\nSimilique odio repellat et. Asperiores magni laboriosam debitis maiores. Quae harum repudiandae amet.\\nExpedita quos magni ipsa quas doloribus illum in. Ipsum esse praesentium odit deleniti quas. Saepe voluptas ea ipsa accusantium. Quisquam ex eveniet quaerat explicabo vitae voluptates assumenda. Deserunt laborum eius iusto officiis iste.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Dolores aliquid accusamus voluptatum.\", \"collapse_deleted_comments\": false, \"public_description\": \"Tempore aut corrupti et esse. Suscipit vitae ipsa similique numquam dolores.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETempore aut corrupti et esse. Suscipit vitae ipsa similique numquam dolores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Rem iure exercitationem minus. Ab quasi quo tenetur nihil. Atque veritatis quis autem enim recusandae.\\nSimilique odio repellat et. Asperiores magni laboriosam debitis maiores. Quae harum repudiandae amet.\\nExpedita quos magni ipsa quas doloribus illum in. Ipsum esse praesentium odit deleniti quas. Saepe voluptas ea ipsa accusantium. Quisquam ex eveniet quaerat explicabo vitae voluptates assumenda. Deserunt laborum eius iusto officiis iste.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1x\", \"created\": 1538426476.0, \"url\": \"/r/1538426476_rerum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1538426476.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}, {\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1538426480_velit\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVel excepturi quae deserunt libero omnis quae explicabo. Animi praesentium omnis maxime. Aliquam possimus minima incidunt ut. Iste ducimus soluta incidunt ullam.\\nQuidem officiis velit sint quae iste aperiam. Rerum aliquam placeat nulla incidunt incidunt ea repellendus. Deleniti repellat corrupti voluptatibus nisi maxime non ea. Perspiciatis voluptatum exercitationem culpa dicta fuga.\\nPorro ipsam placeat velit. Eos magni distinctio minima eaque repellendus nesciunt consequatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Voluptatibus magni accusantium earum consequatur.\", \"collapse_deleted_comments\": false, \"public_description\": \"Fugit tempora repudiandae optio atque blanditiis inventore. Eius quis iste nam laudantium odit.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFugit tempora repudiandae optio atque blanditiis inventore. Eius quis iste nam laudantium odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Vel excepturi quae deserunt libero omnis quae explicabo. Animi praesentium omnis maxime. Aliquam possimus minima incidunt ut. Iste ducimus soluta incidunt ullam.\\nQuidem officiis velit sint quae iste aperiam. Rerum aliquam placeat nulla incidunt incidunt ea repellendus. Deleniti repellat corrupti voluptatibus nisi maxime non ea. Perspiciatis voluptatum exercitationem culpa dicta fuga.\\nPorro ipsam placeat velit. Eos magni distinctio minima eaque repellendus nesciunt consequatur.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1y\", \"created\": 1538426480.0, \"url\": \"/r/1538426480_velit/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1538426480.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}, {\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1538426483_non\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUt saepe necessitatibus illum id. Tenetur culpa velit maxime ullam vel repellendus minima. Incidunt ut dolorum libero vero rem quasi. Pariatur expedita maxime blanditiis laborum pariatur aspernatur facere.\\nIusto reprehenderit corporis nobis doloremque atque quisquam. Praesentium ut mollitia aperiam voluptatibus doloremque explicabo qui. Neque expedita consequatur quas esse ad.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nobis laborum omnis explicabo recusandae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Unde ea reprehenderit qui aspernatur aliquid. Atque officia laboriosam iste minima.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUnde ea reprehenderit qui aspernatur aliquid. Atque officia laboriosam iste minima.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ut saepe necessitatibus illum id. Tenetur culpa velit maxime ullam vel repellendus minima. Incidunt ut dolorum libero vero rem quasi. Pariatur expedita maxime blanditiis laborum pariatur aspernatur facere.\\nIusto reprehenderit corporis nobis doloremque atque quisquam. Praesentium ut mollitia aperiam voluptatibus doloremque explicabo qui. Neque expedita consequatur quas esse ad.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1z\", \"created\": 1538426483.0, \"url\": \"/r/1538426483_non/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1538426483.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}, {\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"20\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1538426486_quibusdam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti voluptatem sapiente recusandae hic nemo. Cum dolorum dolore laboriosam. Architecto tempore quibusdam nam dolor quae nemo exercitationem expedita.\\nDistinctio ipsa repellat tempora esse. A odit at consectetur. Deleniti blanditiis similique fuga ducimus quisquam mollitia ducimus. Quam necessitatibus sequi accusamus vitae nulla ad recusandae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Porro ipsum voluptas iure aliquam.\", \"collapse_deleted_comments\": false, \"public_description\": \"Et eveniet itaque sunt voluptates necessitatibus. Eius eligendi sit earum magni dicta.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt eveniet itaque sunt voluptates necessitatibus. Eius eligendi sit earum magni dicta.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Deleniti voluptatem sapiente recusandae hic nemo. Cum dolorum dolore laboriosam. Architecto tempore quibusdam nam dolor quae nemo exercitationem expedita.\\nDistinctio ipsa repellat tempora esse. A odit at consectetur. Deleniti blanditiis similique fuga ducimus quisquam mollitia ducimus. Quam necessitatibus sequi accusamus vitae nulla ad recusandae.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_20\", \"created\": 1538426486.0, \"url\": \"/r/1538426486_quibusdam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1538426486.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}, {\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"21\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1538426490_illum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECommodi maxime soluta quas similique. Eos minus reiciendis eum asperiores doloremque laborum eligendi.\\nIllo dolorem quae temporibus ipsum. Id libero voluptas ipsum. Natus debitis exercitationem eaque modi sequi quo.\\nAnimi doloremque velit temporibus. Quos ducimus et iure provident voluptatibus cumque ut. Non cumque commodi distinctio animi possimus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Reprehenderit provident eaque inventore.\", \"collapse_deleted_comments\": false, \"public_description\": \"Similique sed fuga adipisci fugit quo voluptate. Sapiente harum totam ullam iste animi voluptatem.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESimilique sed fuga adipisci fugit quo voluptate. Sapiente harum totam ullam iste animi voluptatem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Commodi maxime soluta quas similique. Eos minus reiciendis eum asperiores doloremque laborum eligendi.\\nIllo dolorem quae temporibus ipsum. Id libero voluptas ipsum. Natus debitis exercitationem eaque modi sequi quo.\\nAnimi doloremque velit temporibus. Quos ducimus et iure provident voluptatibus cumque ut. Non cumque commodi distinctio animi possimus.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_21\", \"created\": 1538426490.0, \"url\": \"/r/1538426490_illum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1538426490.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "11797" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 01 Oct 2018 20:41:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "507" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2BcCw1nqR8ZdM8uVKhEQmjR1OkAA9jd%2BtZA3gMfRjYAmZclWFJ%2B8TC9bgSk6whwrjaPUEGcETcgPh4aMgilRXEXJKBkWw5e91" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel.json b/cassettes/channels.views.channels_test.test_patch_channel.json deleted file mode 100644 index 5b6dcb0413..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel.json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGSV7BRSJYNGFVKS43HFDZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQrVaFG3VTSLQCmU4irE9NYGHwk3URrEf7exK5dzmDPzJlIpcE54c4UH2SZkTlezarPP+tyWoVjS20mw/oi14Z28eEWmCYHeagQndBRolqYD+/nCBwtx5AwSAWPXKTOiSUwI7SB2/2/pgqFVnGO9tgaCyZ/lfUdDwQ5VdBp4aQVCN3F4DOTzBW8f4yO4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=K5FLFq4yKz6GoBGry7; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:11 GMT", - "loidcreated=2018-08-24T17%3A48%3A11.341Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:11 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGSV7BRSJYNGFVKS43HFDZ" - } - }, - { - "recorded_at": "2018-08-24T17:48:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Consectetur+libero+ipsum+provident+voluptas+nostrum+alias+aut.+Sed+odio+voluptas+deleniti+minus+laboriosam+illo.+Blanditiis+voluptates+mollitia+aliquam+expedita+aliquam+impedit.+Veniam+error+magni+repellendus+saepe+asperiores+pariatur+maiores.+Magnam+fugiat+modi+harum+neque.%0AIste+maxime+rem+tempora+qui+esse+officiis+dolor.+Explicabo+pariatur+quia+fugiat+saepe+reiciendis+necessitatibus+exercitationem.+Laborum+modi+praesentium+odit+vero+sapiente.+Non+at+possimus+rem+maiores+soluta+ipsa+modi.&link_type=any&name=1535132891_eius&public_description=Suscipit+nisi+veritatis+officia.+Doloremque+eligendi+repellendus+doloremque+maiores.&title=Ab+molestiae+illum+culpa+animi.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 135-U9E6xCpRyP43lY_IxHrWoMhagtc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "745" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=K5FLFq4yKz6GoBGry7; loidcreated=2018-08-24T17%3A48%3A11.341Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "109" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 135-U9E6xCpRyP43lY_IxHrWoMhagtc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=K5FLFq4yKz6GoBGry7; loidcreated=2018-08-24T17%3A48%3A11.341Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132891_eius/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_e\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Ab molestiae illum culpa animi.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Consectetur libero ipsum provident voluptas nostrum alias aut. Sed odio voluptas deleniti minus laboriosam illo. Blanditiis voluptates mollitia aliquam expedita aliquam impedit. Veniam error magni repellendus saepe asperiores pariatur maiores. Magnam fugiat modi harum neque.\\nIste maxime rem tempora qui esse officiis dolor. Explicabo pariatur quia fugiat saepe reiciendis necessitatibus exercitationem. Laborum modi praesentium odit vero sapiente. Non at possimus rem maiores soluta ipsa modi.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Suscipit nisi veritatis officia. Doloremque eligendi repellendus doloremque maiores.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1340" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "106" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=61ya6Ue10BRF%2BxjnNyJ4FOO75R1%2BPain%2FQkKW3JnvAkCjdxGbQcMjN153OdX5WCjQNKarmZLiTeoVncFokGqXcemzyjyFZbf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132891_eius/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Consectetur+libero+ipsum+provident+voluptas+nostrum+alias+aut.+Sed+odio+voluptas+deleniti+minus+laboriosam+illo.+Blanditiis+voluptates+mollitia+aliquam+expedita+aliquam+impedit.+Veniam+error+magni+repellendus+saepe+asperiores+pariatur+maiores.+Magnam+fugiat+modi+harum+neque.%0AIste+maxime+rem+tempora+qui+esse+officiis+dolor.+Explicabo+pariatur+quia+fugiat+saepe+reiciendis+necessitatibus+exercitationem.+Laborum+modi+praesentium+odit+vero+sapiente.+Non+at+possimus+rem+maiores+soluta+ipsa+modi.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Suscipit+nisi+veritatis+officia.+Doloremque+eligendi+repellendus+doloremque+maiores.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_e&submit_text=&title=Ab+molestiae+illum+culpa+animi.&type=public&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 135-U9E6xCpRyP43lY_IxHrWoMhagtc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "965" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=K5FLFq4yKz6GoBGry7; loidcreated=2018-08-24T17%3A48%3A11.341Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "106" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 135-U9E6xCpRyP43lY_IxHrWoMhagtc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=K5FLFq4yKz6GoBGry7; loidcreated=2018-08-24T17%3A48%3A11.341Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132891_eius/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"e\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132891_eius\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsectetur libero ipsum provident voluptas nostrum alias aut. Sed odio voluptas deleniti minus laboriosam illo. Blanditiis voluptates mollitia aliquam expedita aliquam impedit. Veniam error magni repellendus saepe asperiores pariatur maiores. Magnam fugiat modi harum neque.\\nIste maxime rem tempora qui esse officiis dolor. Explicabo pariatur quia fugiat saepe reiciendis necessitatibus exercitationem. Laborum modi praesentium odit vero sapiente. Non at possimus rem maiores soluta ipsa modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Ab molestiae illum culpa animi.\", \"collapse_deleted_comments\": false, \"public_description\": \"Suscipit nisi veritatis officia. Doloremque eligendi repellendus doloremque maiores.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESuscipit nisi veritatis officia. Doloremque eligendi repellendus doloremque maiores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Consectetur libero ipsum provident voluptas nostrum alias aut. Sed odio voluptas deleniti minus laboriosam illo. Blanditiis voluptates mollitia aliquam expedita aliquam impedit. Veniam error magni repellendus saepe asperiores pariatur maiores. Magnam fugiat modi harum neque.\\nIste maxime rem tempora qui esse officiis dolor. Explicabo pariatur quia fugiat saepe reiciendis necessitatibus exercitationem. Laborum modi praesentium odit vero sapiente. Non at possimus rem maiores soluta ipsa modi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 6, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_e\", \"created\": 1535132891.0, \"url\": \"/r/1535132891_eius/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132891.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2499" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "106" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=iTVAxno1tXbRlJIm7bcXbFrpk7QtUzSR9rLAAMUnTfJ6IKrNP4wfcDXRRYqBh2YC5n6XU%2F5e69CHNiRZ95F%2BCVZb5KR%2FPBkq" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132891_eius/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_about.json b/cassettes/channels.views.channels_test.test_patch_channel_about.json deleted file mode 100644 index 6bebc41876..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_about.json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2019-01-30T20:00:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01D2G5JKY6KBAB8FVKSQQW5D2A" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKyMNT19C/V1XWpSnIJLQpILgz3ybbMCcmOSgspDvJU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZWaRGFpkFuzmaJxlFFGUY+pcXeodk50YWluSD9KSklmUmp8ZnpoAMhnCUagFHVzJfuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 30 Jan 2019 20:00:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=PmVfc1xBezlD9eG6Zd; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jan-2021 20:00:37 GMT", - "loidcreated=2019-01-30T20%3A00%3A37.309Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jan-2021 20:00:37 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01D2G5JKY6KBAB8FVKSQQW5D2A" - } - }, - { - "recorded_at": "2019-01-30T20:00:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Deleniti+autem+ab+ad+repudiandae.+Molestiae+et+odio+reprehenderit+quia.+Nesciunt+perferendis+dolorum+fugit+dignissimos+enim+maiores.%0AQuos+tenetur+dolores+pariatur+repellat+nemo+id+facere.+Debitis+officiis+voluptates+mollitia+voluptate.+Asperiores+quaerat+in+facilis+explicabo+numquam.%0AAsperiores+cumque+beatae+voluptate+et+quibusdam.+Minima+vero+aperiam+error+officia+saepe.+Facilis+sunt+soluta+dolores+neque+iusto+consequatur.+Recusandae+accusamus+qui+reiciendis+at+perferendis+quisquam.&link_type=any&name=1548878437_21_eligend&public_description=Laudantium+dolor+veritatis+deserunt.&title=Itaque+temporibus+consequatur+vero+iste.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 281-IOu--DzbDUrPcqWLk9lTkZfTsRI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "708" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PmVfc1xBezlD9eG6Zd; loidcreated=2019-01-30T20%3A00%3A37.309Z" - ], - "User-Agent": [ - "MIT-Open: 0.64.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 30 Jan 2019 20:00:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "563" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2019-01-30T20:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 281-IOu--DzbDUrPcqWLk9lTkZfTsRI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PmVfc1xBezlD9eG6Zd; loidcreated=2019-01-30T20%3A00%3A37.309Z" - ], - "User-Agent": [ - "MIT-Open: 0.64.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1548878437_21_eligend/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_s\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Itaque temporibus consequatur vero iste.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Deleniti autem ab ad repudiandae. Molestiae et odio reprehenderit quia. Nesciunt perferendis dolorum fugit dignissimos enim maiores.\\nQuos tenetur dolores pariatur repellat nemo id facere. Debitis officiis voluptates mollitia voluptate. Asperiores quaerat in facilis explicabo numquam.\\nAsperiores cumque beatae voluptate et quibusdam. Minima vero aperiam error officia saepe. Facilis sunt soluta dolores neque iusto consequatur. Recusandae accusamus qui reiciendis at perferendis quisquam.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Laudantium dolor veritatis deserunt.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1296" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 30 Jan 2019 20:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "560" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TWN3BkpH0msccsTosmGxskXc6vgrvJ5beeV6Hyp5ezpk%2F%2Bm%2Bvrivumw7mUyNQjkeXfWbcVpKEuyYh9k3vVWqjT%2FbVS7JyNMFHYRVv7THXhDFjl%2Bx6L5DLA%3D%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1548878437_21_eligend/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2019-01-30T20:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Deleniti+autem+ab+ad+repudiandae.+Molestiae+et+odio+reprehenderit+quia.+Nesciunt+perferendis+dolorum+fugit+dignissimos+enim+maiores.%0AQuos+tenetur+dolores+pariatur+repellat+nemo+id+facere.+Debitis+officiis+voluptates+mollitia+voluptate.+Asperiores+quaerat+in+facilis+explicabo+numquam.%0AAsperiores+cumque+beatae+voluptate+et+quibusdam.+Minima+vero+aperiam+error+officia+saepe.+Facilis+sunt+soluta+dolores+neque+iusto+consequatur.+Recusandae+accusamus+qui+reiciendis+at+perferendis+quisquam.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Laudantium+dolor+veritatis+deserunt.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_s&submit_text=&title=Itaque+temporibus+consequatur+vero+iste.&type=private&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 281-IOu--DzbDUrPcqWLk9lTkZfTsRI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "923" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PmVfc1xBezlD9eG6Zd; loidcreated=2019-01-30T20%3A00%3A37.309Z" - ], - "User-Agent": [ - "MIT-Open: 0.64.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 30 Jan 2019 20:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2019-01-30T20:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 281-IOu--DzbDUrPcqWLk9lTkZfTsRI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PmVfc1xBezlD9eG6Zd; loidcreated=2019-01-30T20%3A00%3A37.309Z" - ], - "User-Agent": [ - "MIT-Open: 0.64.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1548878437_21_eligend/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1548878437_21_eligend\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti autem ab ad repudiandae. Molestiae et odio reprehenderit quia. Nesciunt perferendis dolorum fugit dignissimos enim maiores.\\nQuos tenetur dolores pariatur repellat nemo id facere. Debitis officiis voluptates mollitia voluptate. Asperiores quaerat in facilis explicabo numquam.\\nAsperiores cumque beatae voluptate et quibusdam. Minima vero aperiam error officia saepe. Facilis sunt soluta dolores neque iusto consequatur. Recusandae accusamus qui reiciendis at perferendis quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Itaque temporibus consequatur vero iste.\", \"collapse_deleted_comments\": false, \"public_description\": \"Laudantium dolor veritatis deserunt.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaudantium dolor veritatis deserunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Deleniti autem ab ad repudiandae. Molestiae et odio reprehenderit quia. Nesciunt perferendis dolorum fugit dignissimos enim maiores.\\nQuos tenetur dolores pariatur repellat nemo id facere. Debitis officiis voluptates mollitia voluptate. Asperiores quaerat in facilis explicabo numquam.\\nAsperiores cumque beatae voluptate et quibusdam. Minima vero aperiam error officia saepe. Facilis sunt soluta dolores neque iusto consequatur. Recusandae accusamus qui reiciendis at perferendis quisquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_s\", \"created\": 1548878437.0, \"url\": \"/r/1548878437_21_eligend/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1548878437.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2415" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 30 Jan 2019 20:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=syn1OOM1KhEdwF5jz2Z6qZR8JcYYZQVpAPt6EfLVzKNI73wx%2FzLJZ0iv1KX0uz0RP6uQLoIX2bXX4P0V8rckKvM9Guv1ik79" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1548878437_21_eligend/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_forbidden.json b/cassettes/channels.views.channels_test.test_patch_channel_forbidden.json deleted file mode 100644 index c2c0ca2348..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_forbidden.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T17:02:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=admin" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNfNyfVNSk2OLDA1jvDx8Ygvyvb2SYsPLjNxLAtU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5exd4Zlf5GGYWW/gGVYWXB8cnueebZ5pnhxmA9KSklmUmp8ZnpoAMhnCUagGV3Xv6uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 17:02:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=oyWucpNcyHuGPkXSDG; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:02:27 GMT", - "loidcreated=2017-11-06T17%3A02%3A27.094Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:02:27 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=admin" - } - }, - { - "recorded_at": "2017-11-06T17:02:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 187-lmMbecYp53XLLH_rkKLf_Sv4AvQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=oyWucpNcyHuGPkXSDG; loidcreated=2017-11-06T17%3A02%3A27.094Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/dedp2/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 17:02:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nP17LWXh883tUtF5%2B90PU%2FK9BOt4%2Fi6JEc7Ffqvj3naHib9VYU7AgrWnhdJANvaBe6%2FgnRzE1QQ%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/r/dedp2/about/edit/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_image[avatar].json b/cassettes/channels.views.channels_test.test_patch_channel_image[avatar].json deleted file mode 100644 index c500f0e9d4..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_image[avatar].json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTBRX0ZS343AK777SNCNK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0ttD1804r9KhyMzXNNcgLqjIxDa70rfTPMDJPT3ZV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZV+UaEmXtEJYZmWfgUB0fpGlq4JpmblZlaVhmA9KSklmUmp8ZnpoAMhnCUagGiU5vcuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=UNZr6DACbXqYmdcDAb; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:28 GMT", - "loidcreated=2018-08-24T17%3A48%3A28.293Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:28 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTBRX0ZS343AK777SNCNK" - } - }, - { - "recorded_at": "2018-08-24T17:48:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ratione+excepturi+nobis+illo+quibusdam+sit+commodi.+Pariatur+molestiae+maxime+repellat.+Rem+velit+dolor+ex.+Aspernatur+vero+provident+totam+vel.%0ANulla+a+magni+facilis.+Commodi+eligendi+eius+quibusdam+exercitationem+maiores.+Libero+veritatis+expedita+eaque+delectus+accusantium+iste.+Autem+repellendus+itaque+illo+repudiandae+beatae+laudantium+veritatis.+Officia+accusantium+eveniet+nam+temporibus+quisquam.&link_type=any&name=1535132908_nemo&public_description=Tempore+ducimus+ipsum+quam+odio+perspiciatis+adipisci.+Odit+rerum+eius+maxime+accusantium+modi.&title=Labore+voluptatem+voluptate+ratione+molestiae.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-NKfqHzF55m0nRz45SyMyOh27gcE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "682" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=UNZr6DACbXqYmdcDAb; loidcreated=2018-08-24T17%3A48%3A28.293Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "92" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-NKfqHzF55m0nRz45SyMyOh27gcE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=UNZr6DACbXqYmdcDAb; loidcreated=2018-08-24T17%3A48%3A28.293Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132908_nemo/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_g\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Labore voluptatem voluptate ratione molestiae.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Ratione excepturi nobis illo quibusdam sit commodi. Pariatur molestiae maxime repellat. Rem velit dolor ex. Aspernatur vero provident totam vel.\\nNulla a magni facilis. Commodi eligendi eius quibusdam exercitationem maiores. Libero veritatis expedita eaque delectus accusantium iste. Autem repellendus itaque illo repudiandae beatae laudantium veritatis. Officia accusantium eveniet nam temporibus quisquam.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Tempore ducimus ipsum quam odio perspiciatis adipisci. Odit rerum eius maxime accusantium modi.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1277" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "89" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9%2F68CExEoTqjKLCHbKJAFjT4rPbWpVreTjzHKmPxoVi%2Bs1RH8tqvksgrqDR4y%2BhBR13VClDGMVefyiPnqqlbnuEXo7wDx5MY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132908_nemo/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Ratione+excepturi+nobis+illo+quibusdam+sit+commodi.+Pariatur+molestiae+maxime+repellat.+Rem+velit+dolor+ex.+Aspernatur+vero+provident+totam+vel.%0ANulla+a+magni+facilis.+Commodi+eligendi+eius+quibusdam+exercitationem+maiores.+Libero+veritatis+expedita+eaque+delectus+accusantium+iste.+Autem+repellendus+itaque+illo+repudiandae+beatae+laudantium+veritatis.+Officia+accusantium+eveniet+nam+temporibus+quisquam.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Tempore+ducimus+ipsum+quam+odio+perspiciatis+adipisci.+Odit+rerum+eius+maxime+accusantium+modi.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_g&submit_text=&title=Labore+voluptatem+voluptate+ratione+molestiae.&type=public&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-NKfqHzF55m0nRz45SyMyOh27gcE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "903" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=UNZr6DACbXqYmdcDAb; loidcreated=2018-08-24T17%3A48%3A28.293Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "89" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-NKfqHzF55m0nRz45SyMyOh27gcE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=UNZr6DACbXqYmdcDAb; loidcreated=2018-08-24T17%3A48%3A28.293Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132908_nemo/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"g\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132908_nemo\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERatione excepturi nobis illo quibusdam sit commodi. Pariatur molestiae maxime repellat. Rem velit dolor ex. Aspernatur vero provident totam vel.\\nNulla a magni facilis. Commodi eligendi eius quibusdam exercitationem maiores. Libero veritatis expedita eaque delectus accusantium iste. Autem repellendus itaque illo repudiandae beatae laudantium veritatis. Officia accusantium eveniet nam temporibus quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Labore voluptatem voluptate ratione molestiae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Tempore ducimus ipsum quam odio perspiciatis adipisci. Odit rerum eius maxime accusantium modi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETempore ducimus ipsum quam odio perspiciatis adipisci. Odit rerum eius maxime accusantium modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ratione excepturi nobis illo quibusdam sit commodi. Pariatur molestiae maxime repellat. Rem velit dolor ex. Aspernatur vero provident totam vel.\\nNulla a magni facilis. Commodi eligendi eius quibusdam exercitationem maiores. Libero veritatis expedita eaque delectus accusantium iste. Autem repellendus itaque illo repudiandae beatae laudantium veritatis. Officia accusantium eveniet nam temporibus quisquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 6, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_g\", \"created\": 1535132908.0, \"url\": \"/r/1535132908_nemo/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132908.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2360" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "89" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5FpEv%2FLcI9tFGtv3cSkfT%2FIEHGfRTIxZYAtndiT3boeUInsY%2FwBR40dlztyuFLsiJEmh29ywfd5EdIPsvYCvW3GmeA1arbBk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132908_nemo/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_image[banner].json b/cassettes/channels.views.channels_test.test_patch_channel_image[banner].json deleted file mode 100644 index 07ce0dd6dc..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_image[banner].json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTJ7EGVS9831K1AJK8JGN" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNvQ6CMACEX4V0NJrwF0VH8GeQkEh0YGqgPaUSAduiGOO7S2VyvC/33b1JzhiUorqpUJOVRRxvOYMfbfxoq0/Z7h7GMvOT6rnutFdEAZlaBH0rJBQVRvDmtj2wn0/1q4UZKZBLSNNVrBnRxCSJ8yCW/2+p07u3NIBO9sVCxuXR5dfOAa8vB+NwPAQDFdwMj4F8vuvfjnq4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=61QBq0rLAkGZLN3WNh; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:35 GMT", - "loidcreated=2018-08-24T17%3A48%3A34.888Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:35 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTJ7EGVS9831K1AJK8JGN" - } - }, - { - "recorded_at": "2018-08-24T17:48:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Nemo+qui+repellat+commodi.+Exercitationem+in+vitae+atque+adipisci+dolorem.+Repellendus+fugiat+adipisci+reprehenderit+voluptatibus+provident+pariatur+similique.+Ea+numquam+ad+distinctio+nisi.%0AAut+laboriosam+assumenda+minima+voluptates+ea.+Assumenda+vel+tenetur+officiis+excepturi+soluta.+Mollitia+dolor+distinctio+distinctio+assumenda+necessitatibus+adipisci+corporis.%0ASed+incidunt+vel+fugiat+voluptates.+Exercitationem+asperiores+dolorem+quos+dolorem.+Facilis+consequatur+facere+esse.&link_type=any&name=1535132915_ullam&public_description=Totam+doloremque+praesentium+consequuntur+iste.+Expedita+ducimus+consequatur+ratione.&title=Ad+soluta+facere+ab+tenetur+et+quasi.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-e4CE4CFtUYGqBLrY4NkwDut3bC8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "744" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=61QBq0rLAkGZLN3WNh; loidcreated=2018-08-24T17%3A48%3A34.888Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "85" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-e4CE4CFtUYGqBLrY4NkwDut3bC8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=61QBq0rLAkGZLN3WNh; loidcreated=2018-08-24T17%3A48%3A34.888Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132915_ullam/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_h\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Ad soluta facere ab tenetur et quasi.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Nemo qui repellat commodi. Exercitationem in vitae atque adipisci dolorem. Repellendus fugiat adipisci reprehenderit voluptatibus provident pariatur similique. Ea numquam ad distinctio nisi.\\nAut laboriosam assumenda minima voluptates ea. Assumenda vel tenetur officiis excepturi soluta. Mollitia dolor distinctio distinctio assumenda necessitatibus adipisci corporis.\\nSed incidunt vel fugiat voluptates. Exercitationem asperiores dolorem quos dolorem. Facilis consequatur facere esse.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Totam doloremque praesentium consequuntur iste. Expedita ducimus consequatur ratione.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1337" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "82" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JBr0WkGems2telldm5Wa1G4%2FrpgzYYcgbIJiz%2FSWIiBTPjRDDTgNnB16v7UW7OqKjScAQ4EIizFDJUuDc75uoSSD2Wd%2FfwDJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132915_ullam/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Nemo+qui+repellat+commodi.+Exercitationem+in+vitae+atque+adipisci+dolorem.+Repellendus+fugiat+adipisci+reprehenderit+voluptatibus+provident+pariatur+similique.+Ea+numquam+ad+distinctio+nisi.%0AAut+laboriosam+assumenda+minima+voluptates+ea.+Assumenda+vel+tenetur+officiis+excepturi+soluta.+Mollitia+dolor+distinctio+distinctio+assumenda+necessitatibus+adipisci+corporis.%0ASed+incidunt+vel+fugiat+voluptates.+Exercitationem+asperiores+dolorem+quos+dolorem.+Facilis+consequatur+facere+esse.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Totam+doloremque+praesentium+consequuntur+iste.+Expedita+ducimus+consequatur+ratione.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_h&submit_text=&title=Ad+soluta+facere+ab+tenetur+et+quasi.&type=public&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-e4CE4CFtUYGqBLrY4NkwDut3bC8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "964" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=61QBq0rLAkGZLN3WNh; loidcreated=2018-08-24T17%3A48%3A34.888Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "82" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-e4CE4CFtUYGqBLrY4NkwDut3bC8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=61QBq0rLAkGZLN3WNh; loidcreated=2018-08-24T17%3A48%3A34.888Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132915_ullam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"h\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132915_ullam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENemo qui repellat commodi. Exercitationem in vitae atque adipisci dolorem. Repellendus fugiat adipisci reprehenderit voluptatibus provident pariatur similique. Ea numquam ad distinctio nisi.\\nAut laboriosam assumenda minima voluptates ea. Assumenda vel tenetur officiis excepturi soluta. Mollitia dolor distinctio distinctio assumenda necessitatibus adipisci corporis.\\nSed incidunt vel fugiat voluptates. Exercitationem asperiores dolorem quos dolorem. Facilis consequatur facere esse.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Ad soluta facere ab tenetur et quasi.\", \"collapse_deleted_comments\": false, \"public_description\": \"Totam doloremque praesentium consequuntur iste. Expedita ducimus consequatur ratione.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETotam doloremque praesentium consequuntur iste. Expedita ducimus consequatur ratione.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Nemo qui repellat commodi. Exercitationem in vitae atque adipisci dolorem. Repellendus fugiat adipisci reprehenderit voluptatibus provident pariatur similique. Ea numquam ad distinctio nisi.\\nAut laboriosam assumenda minima voluptates ea. Assumenda vel tenetur officiis excepturi soluta. Mollitia dolor distinctio distinctio assumenda necessitatibus adipisci corporis.\\nSed incidunt vel fugiat voluptates. Exercitationem asperiores dolorem quos dolorem. Facilis consequatur facere esse.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_h\", \"created\": 1535132915.0, \"url\": \"/r/1535132915_ullam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132915.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2491" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "82" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kZjAiakwsdKmpQ3D0v8TB99CpdfU584Ycr52DqHmeSwd%2FftYUDrEOKKSSWQ4xQK9vEOKOfQXFXrNGZq%2B58JT%2BSSyEE4fIZ4r" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132915_ullam/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_moderator.json b/cassettes/channels.views.channels_test.test_patch_channel_moderator.json deleted file mode 100644 index 7a8ede9f3f..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_moderator.json +++ /dev/null @@ -1,961 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGT1RPK8SHTZMTYCTPACQC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKRYilSLuDNIWN4IQwVXI40pDbFOToBXx3+21K5dzmDPzJlJriFEk76An24ysijKvOlZ3o9LNLV8r79LuyIziiXLByTIjMA42QBQWhaKkdGI/X6TXADiiQAYI2I3az2iBKcB1Etv/N39vn2rTsMP+YgAcreVZSMd6f3LoGHhYDcIaHJ4D+XwBDAeUOLgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:18 GMT", - "loidcreated=2018-08-24T17%3A48%3A18.020Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGT1RPK8SHTZMTYCTPACQC" - } - }, - { - "recorded_at": "2018-08-24T17:48:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGT50Y3MYK561R4MKXNQV4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtfVLc4vcnZ18q9MdQlOiTQJcc8MKI7KCXIvNLJQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVpXiYFxe5Rgb4lIVE+hoVR4XnmRY6J0VaVEaC9KSklmUmp8ZnpoAMhnCUagHvmCfBuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGT50Y3MYK561R4MKXNQV4" - } - }, - { - "recorded_at": "2018-08-24T17:48:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Reiciendis+occaecati+dolor+earum+accusantium+ducimus+nobis+illo.+Exercitationem+ratione+animi+dicta+provident+natus+neque+sed+enim.%0AAmet+voluptatibus+inventore+delectus+eos+delectus+occaecati.+Non+distinctio+quos+rerum+facere+sapiente.+Molestias+quo+iusto+dolores+facilis.+Laborum+illum+fugiat+dolorem+voluptates+praesentium+quibusdam+libero+fugiat.&link_type=any&name=1535132901_porro&public_description=Iusto+accusantium+nihil+quo+assumenda+minima+officiis.+Accusamus+iste+similique+quae+pariatur.&title=Quisquam+assumenda+animi+nostrum+sequi.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 137--sorCEBOyeDSdY4TGiPsZlRGq28" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "619" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "99" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPGT1RPK8SHTZMTYCTPACQC&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 137--sorCEBOyeDSdY4TGiPsZlRGq28" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132901_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "96" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535132901_porro" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "96" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPGT1RPK8SHTZMTYCTPACQC&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 137--sorCEBOyeDSdY4TGiPsZlRGq28" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132901_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "96" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132901_porro/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "95" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132901_porro/about/moderators/?user=01CNPGT1RPK8SHTZMTYCTPACQC&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535132905.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPGT1RPK8SHTZMTYCTPACQC\", \"id\": \"t2_3s\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "95" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FGznZCOQKxPzLCFGmsNaNsi9rSbDEq5%2BUVVx2ZbmRZKiBqDby53VadopuOSIxKussyanab46FQoiaqw8bSxOnipJ29%2Fv13gS" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/about/moderators/?user=01CNPGT1RPK8SHTZMTYCTPACQC&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132901_porro/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_f\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Quisquam assumenda animi nostrum sequi.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Reiciendis occaecati dolor earum accusantium ducimus nobis illo. Exercitationem ratione animi dicta provident natus neque sed enim.\\nAmet voluptatibus inventore delectus eos delectus occaecati. Non distinctio quos rerum facere sapiente. Molestias quo iusto dolores facilis. Laborum illum fugiat dolorem voluptates praesentium quibusdam libero fugiat.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Iusto accusantium nihil quo assumenda minima officiis. Accusamus iste similique quae pariatur.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1213" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "95" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hhPgRmmAcv057hBht8iksl3h5tgJkxis5c3kjX%2BBKS5JSaSvXTgNRid1wqqVpZJYU325eIkk3qtOkrGjUpj9B36xkM1CpUYG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Reiciendis+occaecati+dolor+earum+accusantium+ducimus+nobis+illo.+Exercitationem+ratione+animi+dicta+provident+natus+neque+sed+enim.%0AAmet+voluptatibus+inventore+delectus+eos+delectus+occaecati.+Non+distinctio+quos+rerum+facere+sapiente.+Molestias+quo+iusto+dolores+facilis.+Laborum+illum+fugiat+dolorem+voluptates+praesentium+quibusdam+libero+fugiat.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Iusto+accusantium+nihil+quo+assumenda+minima+officiis.+Accusamus+iste+similique+quae+pariatur.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_f&submit_text=&title=Quisquam+assumenda+animi+nostrum+sequi.&type=public&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "838" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "95" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:48:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 136-FmBGmxbcHl-4boktAOBdbUt0U_U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=O2Kbi9QPtS7c9MMC2E; loidcreated=2018-08-24T17%3A48%3A18.020Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535132901_porro/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"f\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535132901_porro\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReiciendis occaecati dolor earum accusantium ducimus nobis illo. Exercitationem ratione animi dicta provident natus neque sed enim.\\nAmet voluptatibus inventore delectus eos delectus occaecati. Non distinctio quos rerum facere sapiente. Molestias quo iusto dolores facilis. Laborum illum fugiat dolorem voluptates praesentium quibusdam libero fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quisquam assumenda animi nostrum sequi.\", \"collapse_deleted_comments\": false, \"public_description\": \"Iusto accusantium nihil quo assumenda minima officiis. Accusamus iste similique quae pariatur.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto accusantium nihil quo assumenda minima officiis. Accusamus iste similique quae pariatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Reiciendis occaecati dolor earum accusantium ducimus nobis illo. Exercitationem ratione animi dicta provident natus neque sed enim.\\nAmet voluptatibus inventore delectus eos delectus occaecati. Non distinctio quos rerum facere sapiente. Molestias quo iusto dolores facilis. Laborum illum fugiat dolorem voluptates praesentium quibusdam libero fugiat.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 6, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_f\", \"created\": 1535132901.0, \"url\": \"/r/1535132901_porro/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535132901.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2239" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "95" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=8%2BmWWBGcvblSa%2B7PyJhIWz3TJQGss8uGd%2BMZ8YMy%2BAc04TGx4b06NeY2DPk6aEhPksEic6qCKIxjs8xMEgDveGFlD3Fu6ZQU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132901_porro/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_noauth.json b/cassettes/channels.views.channels_test.test_patch_channel_noauth.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_noauth.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_nonstaff.json b/cassettes/channels.views.channels_test.test_patch_channel_nonstaff.json deleted file mode 100644 index 20e05c1ddf..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_nonstaff.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-29T14:59:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01C044N74CAWJX45D3RFTZSB9W" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK3NNMNMCjzj/BIMzQ1DTYJ9Q7KrqoMLg/1dQrLNklW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFGQSWpZSmV5aneQV6BoX7mDllZnsUp1t4ZBiA9KSklmUmp8ZnpoAMhnCUagEdBuOwuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Nov 2017 14:59:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ZZXw9phCKpDw2Yudd5; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Nov-2019 14:59:59 GMT", - "loidcreated=2017-11-29T14%3A59%3A58.707Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Nov-2019 14:59:59 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01C044N74CAWJX45D3RFTZSB9W" - } - }, - { - "recorded_at": "2017-11-29T14:59:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 796-P0vOXHf155S4UKRkzySwUMBVk4c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZZXw9phCKpDw2Yudd5; loidcreated=2017-11-29T14%3A59%3A58.707Z" - ], - "User-Agent": [ - "MIT-Open: 0.4.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/subreddit_for_testing/about/moderators/?user=01C044N74CAWJX45D3RFTZSB9W&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "\n \n 302 Found\n \n \n

302 Found

\n The resource was found at https://reddit.local/subreddits/search?q=subreddit_for_testing;\nyou should be redirected automatically.\n\n\n \n" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "307" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Nov 2017 14:59:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "location": [ - "https://reddit.local/subreddits/search?q=subreddit_for_testing" - ] - }, - "status": { - "code": 302, - "message": "Found" - }, - "url": "https://reddit.local/r/subreddit_for_testing/about/moderators/?user=01C044N74CAWJX45D3RFTZSB9W&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_not_found.json b/cassettes/channels.views.channels_test.test_patch_channel_not_found.json deleted file mode 100644 index 1fa359fac7..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_not_found.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T17:02:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=admin" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNf1yQzNMLHIdXeOyI80cnMxjc+2CHE3TEnLLihW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5ZJTm6FYGF+t6p/ubJeVkVBYU+Romu7q457uC9KSklmUmp8ZnpoAMhnCUagHkEXBxuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 17:02:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=4aAggNlcpJGkm9sXEZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:02:57 GMT", - "loidcreated=2017-11-06T17%3A02%3A57.358Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:02:57 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=admin" - } - }, - { - "recorded_at": "2017-11-06T17:02:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 187-LiUh48mGCXoY2FD5_k8TG1dfkps" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4aAggNlcpJGkm9sXEZ; loidcreated=2017-11-06T17%3A02%3A57.358Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/missing/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "\n \n 302 Found\n \n \n

302 Found

\n The resource was found at https://reddit.local/subreddits/search?q=missing;\nyou should be redirected automatically.\n\n\n \n" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "279" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 17:02:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "location": [ - "https://reddit.local/subreddits/search?q=missing" - ] - }, - "status": { - "code": 302, - "message": "Found" - }, - "url": "https://reddit.local/r/missing/about/edit/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_validate_image[avatar].json b/cassettes/channels.views.channels_test.test_patch_channel_validate_image[avatar].json deleted file mode 100644 index c191e82a38..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_validate_image[avatar].json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTRMDDFDZ60YGMYB8MTMF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdD1SKqKDHcyM0mPLzS3DDUPMTEx9kzLjQyMcspX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLZlOWa5G0U4mXi6liQHVjr55VskZif6pLt4R4L0pKSWZSanxmemgAyGcJRqAdBH61y4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=EXbGJoBbHc8f3SEIo3; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:41 GMT", - "loidcreated=2018-08-24T17%3A48%3A41.435Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:41 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTRMDDFDZ60YGMYB8MTMF" - } - }, - { - "recorded_at": "2018-08-24T17:48:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Tenetur+nemo+recusandae+neque+placeat.+Aspernatur+repellat+ipsa+reprehenderit+earum.+Voluptates+possimus+quam+ipsum+laboriosam.+Rerum+magnam+numquam+mollitia+dignissimos+dignissimos+nobis+vitae.+Distinctio+ad+blanditiis+quisquam+dignissimos.%0AArchitecto+amet+nostrum+non+similique+nihil+nisi+dolor.+Inventore+praesentium+tempora+minus+excepturi+assumenda+officiis.&link_type=any&name=1535132921_ab&public_description=Cum+adipisci+eius+vel+rem+esse+quidem+dolorem.+Minus+facere+voluptates+aliquam+tempora+enim.&title=Pariatur+quo+alias+totam+debitis+vitae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 140-HbzYWB64g_q79U7T443IfmYQZBo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "628" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EXbGJoBbHc8f3SEIo3; loidcreated=2018-08-24T17%3A48%3A41.435Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "79" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_channel_validate_image[banner].json b/cassettes/channels.views.channels_test.test_patch_channel_validate_image[banner].json deleted file mode 100644 index d99ecc5cde..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_channel_validate_image[banner].json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTYYGH84TC8YKMJQETP8H" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4V0aSRpAzHozh2GBZKG6K4p5YJFYqG3vuO/S2Xlck7mzLyJVAoQhTNnuJBNQFjMwuRwdy++x7HbmSrraemuXViyNOExWQYEHoO2gEJ7IVpROrGfL9xzAD9SgbRgfReVmdHCJwvNJJ7+34pciHUuG5Vh32/HKC0w4ceatYZ6p4abViB07YfnQD5fz1fnSLgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=GQYYo0xKgVVh0fF5DW; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:48 GMT", - "loidcreated=2018-08-24T17%3A48%3A47.915Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:48 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGTYYGH84TC8YKMJQETP8H" - } - }, - { - "recorded_at": "2018-08-24T17:48:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Officia+provident+a+eligendi+quo.+Illum+asperiores+culpa+sit+ab+praesentium+minima+nesciunt+deserunt.+Doloribus+natus+distinctio+rem+reprehenderit+quam+doloribus.%0AQuisquam+hic+excepturi+impedit+quaerat.+Occaecati+quidem+ipsa+aperiam+laboriosam+veniam+officia+ut.+Dolorem+autem+cumque+totam+molestias+quasi+facilis+ab.+Voluptas+nam+excepturi+modi+tenetur+enim+nesciunt.&link_type=any&name=1535132928_repellat&public_description=Labore+officia+impedit+vero+nulla+reprehenderit+iusto+in.+Inventore+ut+aliquam+facere.&title=Quia+quidem+hic+doloremque+asperiores.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-8WwtzSPsqjIobKl0Utuj-U1H8S4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "632" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=GQYYo0xKgVVh0fF5DW; loidcreated=2018-08-24T17%3A48%3A47.915Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "72" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_patch_title_non_superuser_forbidden.json b/cassettes/channels.views.channels_test.test_patch_title_non_superuser_forbidden.json deleted file mode 100644 index 79aea06470..0000000000 --- a/cassettes/channels.views.channels_test.test_patch_title_non_superuser_forbidden.json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-12-05T19:17:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CXZWTYERDENZ6VPYW2QGZTRM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NtQtDgooNK2oKsrO8rQwzElzLymvSM71tQxPTg5V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbF61ZlW3jHezgGGfv6hxsE50ZWBrmEO5sY+0WC9KSklmUmp8ZnpoAMhnCUagEZ+FCZuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 05 Dec 2018 19:17:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=uXp16Iw8QtqxWPx4fk; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 04-Dec-2020 19:17:15 GMT", - "loidcreated=2018-12-05T19%3A17%3A14.928Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 04-Dec-2020 19:17:15 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CXZWTYERDENZ6VPYW2QGZTRM" - } - }, - { - "recorded_at": "2018-12-05T19:17:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Enim+perspiciatis+porro+omnis+hic+quasi.+Dolore+possimus+sed+corporis+vitae.+Et+nemo+exercitationem+reprehenderit+expedita.+Alias+nam+at+nulla.%0APraesentium+qui+nulla+odit.+Quas+unde+dolorum+unde+recusandae+quod+ab.+Nemo+eaque+optio+dolorum+consectetur.%0AMolestias+tempora+ad+iste+veritatis+autem.+Magnam+aliquam+suscipit+sit+reiciendis+placeat+hic+accusamus.+Magni+ad+quibusdam+impedit+consequatur+maxime+ea+quisquam.&link_type=any&name=1544037435_id&public_description=Quod+voluptatum+quia+natus+in+culpa+eligendi+autem.&title=Laboriosam+debitis+nihil+animi+corrupti.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-sRPq5xzrkjI81lfGtwxcmM9WccU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "642" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=uXp16Iw8QtqxWPx4fk; loidcreated=2018-12-05T19%3A17%3A14.928Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 05 Dec 2018 19:17:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "165" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-05T19:17:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-sRPq5xzrkjI81lfGtwxcmM9WccU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=uXp16Iw8QtqxWPx4fk; loidcreated=2018-12-05T19%3A17%3A14.928Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544037435_id/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_c\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Laboriosam debitis nihil animi corrupti.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"Enim perspiciatis porro omnis hic quasi. Dolore possimus sed corporis vitae. Et nemo exercitationem reprehenderit expedita. Alias nam at nulla.\\nPraesentium qui nulla odit. Quas unde dolorum unde recusandae quod ab. Nemo eaque optio dolorum consectetur.\\nMolestias tempora ad iste veritatis autem. Magnam aliquam suscipit sit reiciendis placeat hic accusamus. Magni ad quibusdam impedit consequatur maxime ea quisquam.\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"Quod voluptatum quia natus in culpa eligendi autem.\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1238" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 05 Dec 2018 19:17:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "162" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hoAwW4sbnr%2FYtPzYlu4HyoqnpXJm%2Fnz1GWdFxVBarEyVEIhlP%2BLBcWy1IkeMOvcAM3bu6b2aYurIZ0%2FYxIoB8BS59IGJgL%2FK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544037435_id/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-05T19:17:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=Enim+perspiciatis+porro+omnis+hic+quasi.+Dolore+possimus+sed+corporis+vitae.+Et+nemo+exercitationem+reprehenderit+expedita.+Alias+nam+at+nulla.%0APraesentium+qui+nulla+odit.+Quas+unde+dolorum+unde+recusandae+quod+ab.+Nemo+eaque+optio+dolorum+consectetur.%0AMolestias+tempora+ad+iste+veritatis+autem.+Magnam+aliquam+suscipit+sit+reiciendis+placeat+hic+accusamus.+Magni+ad+quibusdam+impedit+consequatur+maxime+ea+quisquam.&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=Quod+voluptatum+quia+natus+in+culpa+eligendi+autem.&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_c&submit_text=&title=Laboriosam+debitis+nihil+animi+corrupti.&type=public&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-sRPq5xzrkjI81lfGtwxcmM9WccU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "865" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=uXp16Iw8QtqxWPx4fk; loidcreated=2018-12-05T19%3A17%3A14.928Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 05 Dec 2018 19:17:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "162" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-05T19:17:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 131-sRPq5xzrkjI81lfGtwxcmM9WccU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=uXp16Iw8QtqxWPx4fk; loidcreated=2018-12-05T19%3A17%3A14.928Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544037435_id/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"c\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1544037435_id\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEnim perspiciatis porro omnis hic quasi. Dolore possimus sed corporis vitae. Et nemo exercitationem reprehenderit expedita. Alias nam at nulla.\\nPraesentium qui nulla odit. Quas unde dolorum unde recusandae quod ab. Nemo eaque optio dolorum consectetur.\\nMolestias tempora ad iste veritatis autem. Magnam aliquam suscipit sit reiciendis placeat hic accusamus. Magni ad quibusdam impedit consequatur maxime ea quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Laboriosam debitis nihil animi corrupti.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quod voluptatum quia natus in culpa eligendi autem.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuod voluptatum quia natus in culpa eligendi autem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Enim perspiciatis porro omnis hic quasi. Dolore possimus sed corporis vitae. Et nemo exercitationem reprehenderit expedita. Alias nam at nulla.\\nPraesentium qui nulla odit. Quas unde dolorum unde recusandae quod ab. Nemo eaque optio dolorum consectetur.\\nMolestias tempora ad iste veritatis autem. Magnam aliquam suscipit sit reiciendis placeat hic accusamus. Magni ad quibusdam impedit consequatur maxime ea quisquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_c\", \"created\": 1544037435.0, \"url\": \"/r/1544037435_id/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544037435.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2284" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 05 Dec 2018 19:17:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "162" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VDVPhT5tc3Y50Rp%2Bt9uu%2F%2FRK0HsLWWe2ZHHpUBGwB1KAJaES5NxQtB9g07mUSMgp6hXdfY7lUxhq21tqQl9LPWWahm6eDt%2Bi" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544037435_id/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json b/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json deleted file mode 100644 index a3e84c400d..0000000000 --- a/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-12-06T22:17:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJ3BX6972SDHVZ376F0DX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0ttBNzgt3jig2Do60NHLM8EgqyvdyDvP0yjfyyA5V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaF5YcamHoZJfklBZjn55iHJebpxmeEBbql+FqA9KSklmUmp8ZnpoAMhnCUagGyz7vbuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=CiCJnRlkyWeZyMGZms; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Dec-2020 22:17:33 GMT", - "loidcreated=2018-12-06T22%3A17%3A33.152Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Dec-2020 22:17:33 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJ3BX6972SDHVZ376F0DX" - } - }, - { - "recorded_at": "2018-12-06T22:17:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJ6QFX89TZGM9Z2QNXT2Z" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0ttQNKPOsdPNMNylLSg8qzcgr9M7KyCktKvaPsAhU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlVeTH+4alFhV45BnkuSe7+BmFBQSUFfpYRkWC9KSklmUmp8ZnpoAMhnCUagHKcMQiuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJ6QFX89TZGM9Z2QNXT2Z" - } - }, - { - "recorded_at": "2018-12-06T22:17:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=&link_type=any&name=1544134666_porro&public_description=&title=Minus+illum+excepturi+ipsum+mollitia+culpa.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-cnWCXs3SY92AhHbroJCVIJo2HkU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CY2SJ6QFX89TZGM9Z2QNXT2Z&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-cnWCXs3SY92AhHbroJCVIJo2HkU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1544134666_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134666_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-PvIyFIg4vbgRuhnqKjhlursOX8Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1544134666_porro/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134666_porro/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 138-cnWCXs3SY92AhHbroJCVIJo2HkU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134666_porro/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"j\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1544134666_porro\", \"header_img\": null, \"description_html\": null, \"title\": \"Minus illum excepturi ipsum mollitia culpa.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_j\", \"created\": 1544134660.0, \"url\": \"/r/1544134666_porro/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134660.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1116" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=E9PMx6f98LCwJg5sI76x9B1FN3r7PN5ppk6FclYNdnhNNTIAoASM9DwcE7ITpi9zZz1YUej%2FbzeB5%2B%2FIGtaxE5dgBPYlxsS3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134666_porro/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-PvIyFIg4vbgRuhnqKjhlursOX8Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134666_porro/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_j\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Minus illum excepturi ipsum mollitia culpa.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=P8P9dqjCFwd4zAPTRn8ZPfPb6mkIY555yYaCCvewikXjxHZf6g8ujrGW2WEI1DpOvhrg6YeSTlq0X04ty1c8PE%2FCx1ij2%2B3I" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134666_porro/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_j&submit_text=&title=Minus+illum+excepturi+ipsum+mollitia+culpa.&type=private&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-PvIyFIg4vbgRuhnqKjhlursOX8Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:17:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 139-PvIyFIg4vbgRuhnqKjhlursOX8Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CiCJnRlkyWeZyMGZms; loidcreated=2018-12-06T22%3A17%3A33.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134666_porro/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"j\", \"user_is_contributor\": false, \"submit_text\": \"\", \"display_name\": \"1544134666_porro\", \"header_img\": null, \"description_html\": null, \"title\": \"Minus illum excepturi ipsum mollitia culpa.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_j\", \"created\": 1544134660.0, \"url\": \"/r/1544134666_porro/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134660.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": false}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1118" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=j5rjQmOV9gj58xIoBg%2FlY%2FvXUk4pBQXW02KEKUu3YmlHZUU2AyLs%2BmZgGyr0MBCADc36wi39Y8ySpT1CXQGzSLyR1e2FdMAG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134666_porro/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json b/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json deleted file mode 100644 index 927acd1fe8..0000000000 --- a/cassettes/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json +++ /dev/null @@ -1,955 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-12-06T22:17:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJDW3QRHD4P45SFQN2Q9G" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdA18C91yY5yjA9yLcr3qMzxyjUvCQg3yQ7J9/VU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlpniEuJflWgQb6YbkOvu4ViRbGJqlW0a5BpuA9KSklmUmp8ZnpoAMhnCUagEuteIMuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=heHF47KSPvP6Giy4KI; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Dec-2020 22:17:44 GMT", - "loidcreated=2018-12-06T22%3A17%3A43.862Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Dec-2020 22:17:44 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJDW3QRHD4P45SFQN2Q9G" - } - }, - { - "recorded_at": "2018-12-06T22:17:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJH5MTEG11NEHDZK15W47" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdRNzvBLTTPw8HGp8DHy8Yw0igqKD/QsCiwNDrBQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVZwZUWMSHOrskVlUap5qYGean+0W5pBiEZRWD9KSklmUmp8ZnpoAMhnCUagFPD1XOuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CY2SJH5MTEG11NEHDZK15W47" - } - }, - { - "recorded_at": "2018-12-06T22:18:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=&link_type=any&name=1544134676_officia&public_description=&title=Laboriosam+maiores+inventore+ab+laboriosam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 140-0OuDkZA_REroHylJm7tPW4kToMI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "180" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CY2SJH5MTEG11NEHDZK15W47&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 140-0OuDkZA_REroHylJm7tPW4kToMI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1544134676_officia/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1544134676_officia/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 140-0OuDkZA_REroHylJm7tPW4kToMI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"k\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1544134676_officia\", \"header_img\": null, \"description_html\": null, \"title\": \"Laboriosam maiores inventore ab laboriosam.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_k\", \"created\": 1544134670.0, \"url\": \"/r/1544134676_officia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134670.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1120" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:17:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "129" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BoIoO8L0amRVCHbEdtMQQl1OiU3G8W0rf07PPIh0sAL4K5EL8NOrg8mWrNG8VXMWM1ZIqL%2B1gF7eni1%2BZQr07n%2FlRZ8ZLfX2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"k\", \"user_is_contributor\": false, \"submit_text\": \"\", \"display_name\": \"1544134676_officia\", \"header_img\": null, \"description_html\": null, \"title\": \"Laboriosam maiores inventore ab laboriosam.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_k\", \"created\": 1544134670.0, \"url\": \"/r/1544134676_officia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134670.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": false}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1122" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:18:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "98" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2Fiw82g5q%2F7XaSriFKTY9ipp058qScLEBbbgSGfaf%2FVvNcrx20k6OKbVwNobsJY9mkR26zBMjPor972Q4xiT%2B7ONsHW48Cw7p" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134676_officia/about/edit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"subreddit_settings\", \"data\": {\"default_set\": true, \"subreddit_id\": \"t5_k\", \"domain\": null, \"allow_images\": null, \"show_media\": false, \"wiki_edit_age\": 0, \"submit_text\": \"\", \"spam_links\": null, \"title\": \"Laboriosam maiores inventore ab laboriosam.\", \"collapse_deleted_comments\": false, \"wikimode\": \"disabled\", \"over_18\": false, \"suggested_comment_sort\": null, \"description\": \"\", \"submit_link_label\": null, \"spam_comments\": null, \"spam_selfposts\": null, \"submit_text_label\": null, \"language\": \"en\", \"wiki_edit_karma\": 0, \"hide_ads\": false, \"header_hover_text\": null, \"public_traffic\": false, \"public_description\": \"\", \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"exclude_banned_modqueue\": false, \"content_options\": \"any\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:18:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "98" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pQki1JV%2FNbhvxemguwS7jsHN1LUG%2B0xeyqOnJP0s8MnVsbkA%2BonJK8N5s1SwCy0RY17%2Fgy39Pql3I0HipikVfnpP8EiywXMQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/about/edit/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&collapse_deleted_comments=False&comment_score_hide_mins=0&description=&exclude_banned_modqueue=False&hide_ads=False&lang=en&link_type=any&over_18=False&public_description=&public_traffic=False&show_media=False&show_media_preview=True&sr=t5_k&submit_text=&title=Laboriosam+maiores+inventore+ab+laboriosam.&type=private&wiki_edit_age=0&wiki_edit_karma=0&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:18:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "98" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"k\", \"user_is_contributor\": false, \"submit_text\": \"\", \"display_name\": \"1544134676_officia\", \"header_img\": null, \"description_html\": null, \"title\": \"Laboriosam maiores inventore ab laboriosam.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_k\", \"created\": 1544134670.0, \"url\": \"/r/1544134676_officia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134670.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": false}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1122" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:18:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "98" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=X6WBot0Q8NlZ%2BCVYpqjU%2B2zaISHQjTQGpg0Wodyuo77nx%2FmQL14rKNqPmbmUII10wZ6oJt%2Fia9XPMCv6PVFSW80yh6hNwQTE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-06T22:18:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 141-chNef0HLDxL2LIY2ZR_QIrQuSP8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=heHF47KSPvP6Giy4KI; loidcreated=2018-12-06T22%3A17%3A43.862Z" - ], - "User-Agent": [ - "MIT-Open: 0.55.3 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"k\", \"user_is_contributor\": false, \"submit_text\": \"\", \"display_name\": \"1544134676_officia\", \"header_img\": null, \"description_html\": null, \"title\": \"Laboriosam maiores inventore ab laboriosam.\", \"collapse_deleted_comments\": false, \"public_description\": \"\", \"over18\": false, \"public_description_html\": null, \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_k\", \"created\": 1544134670.0, \"url\": \"/r/1544134676_officia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1544134670.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": false}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1122" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 06 Dec 2018 22:18:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "98" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=qh2NOndDKHZcwpboCqYun83aisX6e27X0sjFEODT5l5NYL80o%2BpL99MBoQ41lppL3SyqsJeqlTBNQ2tr2abJi0UX%2BV%2BJ%2BPbE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1544134676_officia/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json b/cassettes/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json deleted file mode 100644 index 661caf3ca2..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json +++ /dev/null @@ -1,780 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:53:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNH7V5H6H0QW9CD03CCTK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK21C0NyrcstfA1c/f1Cs4PcHIuDPXz9crI9khxL1bSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqUEG7gY+/uWeDuZm3qWe7onu+bEm2YFJrn7moC0pKSWZSanxmemgMyFcJRqAUnwya62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=VjDmZHRsRN5QtLXVky; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:53:47 GMT", - "loidcreated=2020-07-28T21%3A53%3A46.701Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:53:47 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNH7V5H6H0QW9CD03CCTK" - } - }, - { - "recorded_at": "2020-07-28T21:53:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNMGM2YNRGZAJEKHJQ9WN" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx0A238PR2DCoPdKsosfSz9NU1iCwO9khOKS/Nc1TSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljk5RwYHp7gZleUnVVY6+vv65kQGeVmEGpV4lIO0pKSWZSanxmemgMyFcJRqAVhByk62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNMGM2YNRGZAJEKHJQ9WN" - } - }, - { - "recorded_at": "2020-07-28T21:53:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Relate+actually+accept+success+listen.+Democrat+speech+as+ready.+Land+truth+inside+professor+however+worry+ago.%0AAct+news+deal+college+window+minute.+Worry+natural+avoid+foot+really+charge+finally.+Read+these+first+group+event+parent.%0AHeart+program+executive+likely+person+why+happen+like.+Tough+east+up+worry+television+deep.+Second+keep+parent+dinner+hear.+Laugh+available+goal+price+center.&link_type=any&name=1595973230_9_especial&public_description=Country+instead+accept+expect+election.&title=Live+garden+behind+more+common.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 40-W8IKARwQFxt9N9M-0YsSHcdwunA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "606" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "370" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPNH7V5H6H0QW9CD03CCTK&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 40-W8IKARwQFxt9N9M-0YsSHcdwunA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973230_9_especial/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "367" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973230_9_especial/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973230_9_especial" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 39-uRo9u8M6GMJSoPBCqUNMJhkHdGs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "367" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973230_9_especial&text=Film+eye+nor+create+somebody.+Memory+move+everyone+now+more+modern+south.&title=Similar+ever+night." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 39-uRo9u8M6GMJSoPBCqUNMJhkHdGs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973230_9_especial/comments/k/similar_ever_night/\", \"id\": \"k\", \"name\": \"t3_k\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "147" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "367" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 39-uRo9u8M6GMJSoPBCqUNMJhkHdGs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/k/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973230_9_especial\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFilm eye nor create somebody. Memory move everyone now more modern south.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Film eye nor create somebody. Memory move everyone now more modern south.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPNH7V5H6H0QW9CD03CCTK\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973230_9_especial\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_e\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973230_9_especial/comments/k/similar_ever_night/\", \"locked\": false, \"name\": \"t3_k\", \"created\": 1595973233.0, \"url\": \"http://reddit.local/r/1595973230_9_especial/comments/k/similar_ever_night/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Similar ever night.\", \"created_utc\": 1595973233.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1682" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "367" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rXxioZ%2FvJqYH9baWZTFI4sRmOnt3hMSKepLYLl2hXaYEHM0xFBKUvk4unQ%2B27aJOowT%2BfcUf3idFVzh2peT8zBUKNsoWl3mo" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/k/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_k" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 39-uRo9u8M6GMJSoPBCqUNMJhkHdGs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_e\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_k\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"20\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPNH7V5H6H0QW9CD03CCTK\", \"parent_id\": \"t3_k\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973230_9_especial\", \"score_hidden\": false, \"name\": \"t1_20\", \"created\": 1595973236.0, \"author_flair_text\": null, \"created_utc\": 1595973236.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "834" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "364" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:53:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 39-uRo9u8M6GMJSoPBCqUNMJhkHdGs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VjDmZHRsRN5QtLXVky; loidcreated=2020-07-28T21%3A53%3A46.701Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973230_9_especial/about/moderators/?user=01EEBPNH7V5H6H0QW9CD03CCTK&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:53:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "364" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wolAu%2BsYrC8RWHOxCeiXuhbGHLZfZ9pEaqGMXmSt1SOWrF%2FRge0W5lvlfWA%2FFRBTIazoAvonOt7DEfkHK1a4bt6JFlRVwb6K" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973230_9_especial/about/moderators/?user=01EEBPNH7V5H6H0QW9CD03CCTK&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json b/cassettes/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json deleted file mode 100644 index e41c5810fd..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json +++ /dev/null @@ -1,961 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNY3B2C7PN3TR4A8021Y7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx1HXMjih3c3PPK8nPsTQLLs/JjDRxiXCxzPfydFXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkollkWGYdFBRjnZDg7R7q7eHo7VYRHZhrp5htVGYC0pKSWZSanxmemgMyFcJRqAdQHdhO2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:00 GMT", - "loidcreated=2020-07-28T21%3A53%3A59.853Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPNY3B2C7PN3TR4A8021Y7" - } - }, - { - "recorded_at": "2020-07-28T21:54:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPP1BZKWGW8CCR1ZM5CGX3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx0vUIDMpPM4rXzalIDy0wLK2wNA0JCqsMyjUKC1TSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolsVbJBk6mlW5hQdY5lf6ZuXklDkbBvq7VwTmhYK0pKSWZSanxmemgMyFcJRqAd+vyHG2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPP1BZKWGW8CCR1ZM5CGX3" - } - }, - { - "recorded_at": "2020-07-28T21:54:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Lose+third+enough+night+mission.+Themselves+attack+low+brother.+Might+break+today+author+or+north.%0AConsumer+answer+color+floor+bed+another+move+fear.+Teach+land+whom+service+laugh+chair+control.+White+attack+food+size+recently+friend.%0AEffort+including+citizen+improve+Democrat.+Election+data+audience+experience+individual+scene.%0ASo+health+only+fight+strong+condition+successful.+Analysis+country+just+Congress+hot+seven.%0AAlmost+game+difference+around+child.+Buy+defense+give+laugh+card.&link_type=any&name=1595973243_10_able&public_description=Last+war+action+relate+religious.+Market+Mrs+who+might+do.&title=Watch+part+show+money+study.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 42-HQRof2_-lxgUp1ux95TRVyRm2VQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "718" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "357" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPNY3B2C7PN3TR4A8021Y7&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 42-HQRof2_-lxgUp1ux95TRVyRm2VQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973243_10_able/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973243_10_able/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973243_10_able" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973243_10_able&text=Kid+under+evening+region.+Certain+future+fight+land+fast+course+level.+Raise+race+too+religious.&title=Out+voice+through+tree+forward+large+would." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "228" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973243_10_able/comments/l/out_voice_through_tree_forward_large_would/\", \"id\": \"l\", \"name\": \"t3_l\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/l/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973243_10_able\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EKid under evening region. Certain future fight land fast course level. Raise race too religious.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Kid under evening region. Certain future fight land fast course level. Raise race too religious.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPNY3B2C7PN3TR4A8021Y7\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973243_10_able\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_f\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973243_10_able/comments/l/out_voice_through_tree_forward_large_would/\", \"locked\": false, \"name\": \"t3_l\", \"created\": 1595973246.0, \"url\": \"http://reddit.local/r/1595973243_10_able/comments/l/out_voice_through_tree_forward_large_would/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Out voice through tree forward large would.\", \"created_utc\": 1595973246.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1788" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=UtXtuHAhyagmz%2FIvD679rcf2p%2F6Qq8ANQ%2Bwh3rgsVNblQPzGJsMWschA2JISgAGB%2FSeqVcCrYiXAn8R0%2BbwTgq2zXBsP4Zr3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/l/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_l" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_f\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_l\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"21\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPNY3B2C7PN3TR4A8021Y7\", \"parent_id\": \"t3_l\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973243_10_able\", \"score_hidden\": false, \"name\": \"t1_21\", \"created\": 1595973249.0, \"author_flair_text\": null, \"created_utc\": 1595973249.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "831" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "351" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&dir=0&id=t1_21" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "28" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/vote/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "350" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/vote/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973243_10_able/about/moderators/?user=01EEBPNY3B2C7PN3TR4A8021Y7&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "350" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=OkKfrv9PNwS%2FXoJ6qJp4zLBfbklLGtiBvTuB6g3orkE%2FEfugvjNgYGpP3ZbgOzVNdkNgejWZpurT4Cem7frb9YXlJzhd6vh7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973243_10_able/about/moderators/?user=01EEBPNY3B2C7PN3TR4A8021Y7&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 41-AkXwFFGntol96SwliY4DXD9oJIE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAtebRjQWt4MBJ8RNy; loidcreated=2020-07-28T21%3A53%3A59.853Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_21&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_f\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_l\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"21\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPNY3B2C7PN3TR4A8021Y7\", \"parent_id\": \"t3_l\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973243_10_able\", \"score_hidden\": false, \"name\": \"t1_21\", \"created\": 1595973249.0, \"author_flair_text\": null, \"created_utc\": 1595973249.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "876" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "350" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=h%2FGzKOxwwCmmyA8GdlfO5a6ndJqrjGPgMQFEMYN1xZ1%2FfhNUtSs0zYPd7NsGzAXeEpCY2C6Y6b4%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_21&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json b/cassettes/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json deleted file mode 100644 index ac97e30e02..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json +++ /dev/null @@ -1,961 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPB2RB5RWBTF4QY72RD53" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNSwuCQBSF/4rMMgoMJaKdoxFFiC10OzjjNS895iWhRP89b65ano/znfNmtVLgvej1DZ5sF7A4WlXdmBTp6WBMzjEu84fos1Lc5aW9smXAYDDowAukfrQJw4n9dNGPBmhDQu3AUdcrPaMFJQftJHZ/Z0W1HZBLV2c6tXZ9tond87BBK4+kNPBCBQIb2p0D+3wB/ceCt7YAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:13 GMT", - "loidcreated=2020-07-28T21%3A54%3A13.162Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:13 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPB2RB5RWBTF4QY72RD53" - } - }, - { - "recorded_at": "2020-07-28T21:54:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPEAG1Y4DVTRKC2EATC6W" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx0c0s8DB2KQ02ifSO9zYuNA41DM50N4oIdg0JMVHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolgUaFCSFZ5rlVEZEeVRWZXmlWgRWRpaFF4Zk+4K0pKSWZSanxmemgMyFcJRqAcunaru2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPEAG1Y4DVTRKC2EATC6W" - } - }, - { - "recorded_at": "2020-07-28T21:54:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=In+campaign+image+goal+price+sell+much.+Marriage+determine+receive+great.+Will+think+right+discover+reality+or+soldier.%0AResponse+camera+hotel+something.%0AUnder+reveal+expect+yeah+necessary.+Meeting+southern+beat+ground.+Measure+their+nature+new+politics.%0ADecision+eye+hand+section+appear.+Leg+speak+scientist+administration+we.+Form+answer+stage+appear.%0AUpon+picture+case+give+race.+Million+now+spring+big.+Past+treatment+expert.%0APower+wall+matter.+Structure+blue+tough+national.&link_type=any&name=1595973256_11_help&public_description=End+past+message.+Action+people+threat+hope+financial.&title=Though+owner+throughout+civil+manage+keep+writer.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 44-ipH3DuS4YK_K3q3U1SiG2XSETT4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "728" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "344" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPPB2RB5RWBTF4QY72RD53&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 44-ipH3DuS4YK_K3q3U1SiG2XSETT4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973256_11_help/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "341" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973256_11_help/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973256_11_help" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "341" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973256_11_help&text=Health+middle+court+issue+general+want+hotel+page.&title=Cell+try+exactly+in+practice+institution+stuff." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "186" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973256_11_help/comments/m/cell_try_exactly_in_practice_institution_stuff/\", \"id\": \"m\", \"name\": \"t3_m\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "340" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/m/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973256_11_help\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHealth middle court issue general want hotel page.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Health middle court issue general want hotel page.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPPB2RB5RWBTF4QY72RD53\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973256_11_help\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_g\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973256_11_help/comments/m/cell_try_exactly_in_practice_institution_stuff/\", \"locked\": false, \"name\": \"t3_m\", \"created\": 1595973260.0, \"url\": \"http://reddit.local/r/1595973256_11_help/comments/m/cell_try_exactly_in_practice_institution_stuff/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cell try exactly in practice institution stuff.\", \"created_utc\": 1595973260.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1708" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "340" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ibImVH8HH%2F9dQkVUeiaupx%2FN0OgjCR2b%2BWPBQz74nQZD9DhLP%2BjByYqfNETUXZs2mm4%2BBCqn4xE14T4bhrVgxR%2BYQhRgSl%2F6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/m/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_m" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_g\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_m\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"22\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPPB2RB5RWBTF4QY72RD53\", \"parent_id\": \"t3_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973256_11_help\", \"score_hidden\": false, \"name\": \"t1_22\", \"created\": 1595973263.0, \"author_flair_text\": null, \"created_utc\": 1595973263.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "831" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "337" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&dir=-1&id=t1_22" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/vote/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "337" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/vote/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973256_11_help/about/moderators/?user=01EEBPPB2RB5RWBTF4QY72RD53&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "337" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=u1y9z5369FZ6D7LwSceFsXJAnnpEtyMwcsc4KeccNs4HDbN6hEoB%2BRsZ06bbvJkD58xR4hVt1Gh%2BaQiuwVF2GfivRm4hyWYQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973256_11_help/about/moderators/?user=01EEBPPB2RB5RWBTF4QY72RD53&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 43-VhyAPCJGppNBi4UNm_tDU_lbQfg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=lmr3cd5l5z6sq0cwUZ; loidcreated=2020-07-28T21%3A54%3A13.162Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_22&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_g\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_m\", \"likes\": false, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"22\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPPB2RB5RWBTF4QY72RD53\", \"parent_id\": \"t3_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973256_11_help\", \"score_hidden\": false, \"name\": \"t1_22\", \"created\": 1595973263.0, \"author_flair_text\": null, \"created_utc\": 1595973263.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "877" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "337" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DoiI0wrOdwG9wORfLL9bkABstZiMDN9rlJBgz6aB2B1IQM1VyLTGKJMCZ9E8SNGUvCxJX2jDwkI%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_22&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_anonymous.json b/cassettes/channels.views.comments_test.test_create_comment_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_forbidden.json b/cassettes/channels.views.comments_test.test_create_comment_forbidden.json deleted file mode 100644 index 3ec839a75a..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_forbidden.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPQYEACBSE2KCY6DTQD26" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx1c1wT7aMLA/JN/LyjYpKczcxrXCucE7K88woNFHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpWkpegaV1Y65WR6xmdUuvrnOqU6hRQ6mpibl4O0pKSWZSanxmemgMyFcJRqAQ8ei7y2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=VoCZa1WfnSoM8lFNoV; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:26 GMT", - "loidcreated=2020-07-28T21%3A54%3A26.320Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:26 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPQYEACBSE2KCY6DTQD26" - } - }, - { - "recorded_at": "2020-07-28T21:54:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_adc" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 45-hGc9YwTo2JMZZfG45xCxCbnIhq4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "50" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VoCZa1WfnSoM8lFNoV; loidcreated=2020-07-28T21%3A54%3A26.320Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "334" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_moderator.json b/cassettes/channels.views.comments_test.test_create_comment_moderator.json deleted file mode 100644 index c33e70a264..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_moderator.json +++ /dev/null @@ -1,964 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-29T00:09:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBYD7C007T0X87E4Z5183FP" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NNENjDAKKy1zS/XxDcuITDQySTLPDM+zLC/wMfVV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbFB1gEh2dY+jhnBheUhli4F6cah1V6GJUWRmSD9KSklmUmp8ZnpoAMhnCUagFHCe/HuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=g7A94xF8nw9aU4gfi4; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jul-2022 00:09:03 GMT", - "loidcreated=2020-07-29T00%3A09%3A03.037Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jul-2022 00:09:03 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBYD7C007T0X87E4Z5183FP" - } - }, - { - "recorded_at": "2020-07-29T00:09:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBYDB4GB1S20C7JPS993JMN" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNXQvCIBiF/8rwMhJcMRld1wxW0QcMuhKnbyWr3FRiEv33Zrvq8jyc55w3ElKCc9ybBp5okaA0zfAsKzqgSh59KKu6VJhX6+tqm/f0jKYJgr7VFhzXUZhTQgb287kPLcSRGoQFG7tOmhFNYrJwGcTb/xuFmuVsfxCbuyB8h1nQ3emxtI1x0VHw0hK4VnF4DOjzBQK80xS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBYDB4GB1S20C7JPS993JMN" - } - }, - { - "recorded_at": "2020-07-29T00:09:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Page+middle+sport+service.+Case+determine+shoulder+spring.%0ADegree+game+specific+drop.+Bed+trial+nice+computer+dark.+Interesting+final+sell+rest+despite.%0ALeg+single+order+mouth.+Stop+close+minute+spring+leader.+Nation+boy+herself.%0AEast+sit+poor+question.+Son+easy+who+not+control.%0AOnto+hold+bring+today+staff+opportunity+power+different.+Ahead+face+risk+find+indeed+whose+agree.%0AGet+word+sport+man+leg.+Cover+name+avoid+paper+enter+of+data.+Relate+know+maybe+run+local.&link_type=any&name=1595981347_12_choose&public_description=Impact+determine+crime+teacher+high.+Who+listen+brother+skin.&title=Network+box+finally+discuss+hotel.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 115-25Fqe6dcRtyKVbKd-_VHgEM8x6Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "712" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "53" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBYD7C007T0X87E4Z5183FP&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 115-25Fqe6dcRtyKVbKd-_VHgEM8x6Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981347_12_choose/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981347_12_choose/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595981347_12_choose" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBYD7C007T0X87E4Z5183FP&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 115-25Fqe6dcRtyKVbKd-_VHgEM8x6Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981347_12_choose/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981347_12_choose/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981347_12_choose/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981347_12_choose/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595981347_12_choose&text=Doctor+put+born+stock+head+even+possible+war.+Of+I+week+add.&title=Especially+require+gas+lead." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "179" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595981347_12_choose/comments/1f/especially_require_gas_lead/\", \"id\": \"1f\", \"name\": \"t3_1f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "158" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "48" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595981347_12_choose\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDoctor put born stock head even possible war. Of I week add.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Doctor put born stock head even possible war. Of I week add.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEBYD7C007T0X87E4Z5183FP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595981347_12_choose\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1b\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595981347_12_choose/comments/1f/especially_require_gas_lead/\", \"locked\": false, \"name\": \"t3_1f\", \"created\": 1595981352.0, \"url\": \"http://reddit.local/r/1595981347_12_choose/comments/1f/especially_require_gas_lead/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Especially require gas lead.\", \"created_utc\": 1595981352.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1679" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "48" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SXcpEZ%2BCxsEQBYbygEq1epzHpxvkBXAGtXIVoC9T6A3b%2B7jDdU1Cj6j6GF0z00caGkimHkgZJ8%2Bjyv1K9KbOKCuCVoLJrS7L" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_1f" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "49" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1b\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1f\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBYD7C007T0X87E4Z5183FP\", \"parent_id\": \"t3_1f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595981347_12_choose\", \"score_hidden\": false, \"name\": \"t1_2g\", \"created\": 1595981355.0, \"author_flair_text\": null, \"created_utc\": 1595981355.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "831" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "45" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:09:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 114-QX2VuvFeLMVhYa24b7iWn9wpL5M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g7A94xF8nw9aU4gfi4; loidcreated=2020-07-29T00%3A09%3A03.037Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595981347_12_choose/about/moderators/?user=01EEBYD7C007T0X87E4Z5183FP&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1595981351.0, \"mod_permissions\": [\"all\"], \"name\": \"01EEBYD7C007T0X87E4Z5183FP\", \"id\": \"t2_36\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:09:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "45" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wRObxzIOatyeZ5EL6qBuK3LrKYCxGFcXZsHF1qlVAEidIx8%2B0WlMHLIgC4xpz5CbkAu6WlHO3dkZrMef7lV3P1GlTZp8fYL%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981347_12_choose/about/moderators/?user=01EEBYD7C007T0X87E4Z5183FP&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_not_found.json b/cassettes/channels.views.comments_test.test_create_comment_not_found.json deleted file mode 100644 index 4574e22f88..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_not_found.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPV8YQNTRK7SQ936G6269" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx000vcDU2Ms02NfLPSvcwTcvLrTRLLfXNSjYKLVbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljkZlYSWOgX7Rwal5afHZxuap3r6FhXFG+Q4loO0pKSWZSanxmemgMyFcJRqAW5pvdC2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ntqbdC9R3l23EpYTiV; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:30 GMT", - "loidcreated=2020-07-28T21%3A54%3A29.729Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:30 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPV8YQNTRK7SQ936G6269" - } - }, - { - "recorded_at": "2020-07-28T21:54:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_post+2&thing_id=t3_missing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 46-gpE325k52OjgH5fnmy6euMjc2Us" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "54" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ntqbdC9R3l23EpYTiV; loidcreated=2020-07-28T21%3A54%3A29.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "330" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_reply_to_comment.json b/cassettes/channels.views.comments_test.test_create_comment_reply_to_comment.json deleted file mode 100644 index 7506ade76d..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_reply_to_comment.json +++ /dev/null @@ -1,872 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPYMQWNAR3SA8JY0DYXY4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIx100OLs5KCrQwdNT19XN1cSvzyMpKMs/zMys39lXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqUHBngVBpenuPsHF6cYGYdZGLkHRVYkeYQWR4K0pKSWZSanxmemgMyFcJRqAfoTDtW2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=iOORmVCWMe7flbrTa2; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:33 GMT", - "loidcreated=2020-07-28T21%3A54%3A33.178Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:33 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPPYMQWNAR3SA8JY0DYXY4" - } - }, - { - "recorded_at": "2020-07-28T21:54:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQ1YM6J1VK48VW7CP0XWC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKx0A0P8aiKSnd1cks0dnZxLowq8MzLTLHwCfd1j1TSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpX7pHkGO7rnhMbHZxblpmYlF6Um5QR4Bbm4p4O0pKSWZSanxmemgMyFcJRqAUS0vs62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQ1YM6J1VK48VW7CP0XWC" - } - }, - { - "recorded_at": "2020-07-28T21:54:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Fly+politics+building+according+carry.+Card+little+discuss.+Recently+dog+little.%0ADrug+piece+concern+cause+girl.+Report+wife+him+able+a+word.%0ADraw+seem+these+customer+evening+station+indeed.+One+citizen+window+bring+especially+room+coach.%0AThis+stuff+ten+over.+Process+common+law+memory.+Hot+check+discussion+real+class.%0ABox+anyone+community+child+data+resource+light.+Measure+billion+also+everyone.%0ACommunity+blood+by+mouth+study+owner+analysis.+Free+open+education+early+paper.&link_type=any&name=1595973276_12_last&public_description=Cause+reflect+culture+letter.+Up+certainly+join+morning+why+popular.&title=Care+pretty+across+coach+cause.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 48-WTHzZgEBFa3CDCqZpInid8LWMGY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "723" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "323" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPPYMQWNAR3SA8JY0DYXY4&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 48-WTHzZgEBFa3CDCqZpInid8LWMGY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973276_12_last/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "320" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973276_12_last/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973276_12_last" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "320" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973276_12_last&text=Person+official+campaign+film.+Particularly+officer+learn+box+factor+agency+special+behavior.&title=Himself+population+year+this+at+thank." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973276_12_last/comments/n/himself_population_year_this_at_thank/\", \"id\": \"n\", \"name\": \"t3_n\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "320" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/n/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973276_12_last\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerson official campaign film. Particularly officer learn box factor agency special behavior.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Person official campaign film. Particularly officer learn box factor agency special behavior.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPPYMQWNAR3SA8JY0DYXY4\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973276_12_last\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_h\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973276_12_last/comments/n/himself_population_year_this_at_thank/\", \"locked\": false, \"name\": \"t3_n\", \"created\": 1595973280.0, \"url\": \"http://reddit.local/r/1595973276_12_last/comments/n/himself_population_year_this_at_thank/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Himself population year this at thank.\", \"created_utc\": 1595973280.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1767" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "320" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0qmpUAIGLNdphfP7Y91boYDjWN3eN3umry%2BpHjQGCmn3mDZDyYsqe0iYdjebvGPe2ohYfJg7xwimXLCFB3BEu5ZNP2BqcN%2Bk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/n/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=By+actually+expert+their+clear+ability+between.+Entire+back+smile+cold.&thing_id=t3_n" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_h\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_n\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"23\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPPYMQWNAR3SA8JY0DYXY4\", \"parent_id\": \"t3_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"By actually expert their clear ability between. Entire back smile cold.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBy actually expert their clear ability between. Entire back smile cold.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973276_12_last\", \"score_hidden\": false, \"name\": \"t1_23\", \"created\": 1595973283.0, \"author_flair_text\": null, \"created_utc\": 1595973283.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "943" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "317" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_comment+3&thing_id=t1_23" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "52" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_h\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_n\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"24\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPPYMQWNAR3SA8JY0DYXY4\", \"parent_id\": \"t1_23\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_comment 3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_comment 3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973276_12_last\", \"score_hidden\": false, \"name\": \"t1_24\", \"created\": 1595973286.0, \"author_flair_text\": null, \"created_utc\": 1595973286.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "838" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "314" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 47-cSsjbQ81A-MNEDFvHjjb7nN6w3M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iOORmVCWMe7flbrTa2; loidcreated=2020-07-28T21%3A54%3A33.178Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973276_12_last/about/moderators/?user=01EEBPPYMQWNAR3SA8JY0DYXY4&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "314" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zouaZo1xWSp2Xrvv0GPsYTXmP438Em3UzeicuuytoF7rFtwsfOHT%2BKQPXzNNNGoBYIzP6tfeMslWcVawJlmBagaE7yyI0wD2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973276_12_last/about/moderators/?user=01EEBPPYMQWNAR3SA8JY0DYXY4&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json b/cassettes/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json deleted file mode 100644 index d5bc8d3a55..0000000000 --- a/cassettes/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json +++ /dev/null @@ -1,875 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:54:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQERJ2GFHTKKBXAJRAB40" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKx1PV1cSwt9AhNLwkuyTMPSvHw80x1KS93S8mIilTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolvkZRYbmhxQXR0T5ZulG+Wa4lBVFeCZ7+hiW54O0pKSWZSanxmemgMyFcJRqATOY9Zu2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:49 GMT", - "loidcreated=2020-07-28T21%3A54%3A49.691Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:54:49 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQERJ2GFHTKKBXAJRAB40" - } - }, - { - "recorded_at": "2020-07-28T21:54:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQJ005T31NBTG00EZ3VSB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI10LUsc/QONQ/2t3RxKjAx8TY1LC5KKcj3NUw0NlHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolrkZJhv5mFakJQXmGkf4ebs7+ReWxxsHmDomhoK0pKSWZSanxmemgMyFcJRqAUBCswi2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPQJ005T31NBTG00EZ3VSB" - } - }, - { - "recorded_at": "2020-07-28T21:54:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Want+like+official+according+can+maybe+win+popular.+General+hear+culture.+Accept+common+executive+town+peace+behind+worry.+Pattern+rate+part+rate+by+what.%0AStrong+tough+dog+bed+minute+white+nature.+Give+baby+each+experience+shake+foreign+picture.%0APrice+morning+radio+quickly.%0AMedia+region+particularly+end+push.+Size+media+voice+interview+option.+Land+not+thus+a+forward+where+stuff+writer.%0AMarriage+according+various+town+note.&link_type=any&name=1595973293_13_raise&public_description=Place+measure+tough+health+situation.+Office+be+poor+particular+computer+food.&title=Treatment+want+Democrat.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 50-9vAKU7SO9DBp44K51srdpoM1a34" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "675" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "307" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPQERJ2GFHTKKBXAJRAB40&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 50-9vAKU7SO9DBp44K51srdpoM1a34" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973293_13_raise/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973293_13_raise/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973293_13_raise" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973293_13_raise&text=Weight+she+create+return+inside+off+they.+City+story+wish+fast.&title=Cost+leader+big+reflect+huge." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "182" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973293_13_raise/comments/o/cost_leader_big_reflect_huge/\", \"id\": \"o\", \"name\": \"t3_o\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "155" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/o/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973293_13_raise\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWeight she create return inside off they. City story wish fast.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Weight she create return inside off they. City story wish fast.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPQERJ2GFHTKKBXAJRAB40\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973293_13_raise\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_i\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973293_13_raise/comments/o/cost_leader_big_reflect_huge/\", \"locked\": false, \"name\": \"t3_o\", \"created\": 1595973296.0, \"url\": \"http://reddit.local/r/1595973293_13_raise/comments/o/cost_leader_big_reflect_huge/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cost leader big reflect huge.\", \"created_utc\": 1595973296.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1684" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=3U0wPVOrsXLvxcelxrWR2cSKCCt5%2FvfcNo5lIQiOeAoyQZ2hte9Z39oLnlquyDO9SZchgwpSu6tkBG3Jw0FNzZR8a4RcA6Jz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/o/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:54:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Give+concern+western+bring+newspaper.+Place+street+such+public+four+best+often.&thing_id=t3_o" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "112" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_i\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_o\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"25\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPQERJ2GFHTKKBXAJRAB40\", \"parent_id\": \"t3_o\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Give concern western bring newspaper. Place street such public four best often.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EGive concern western bring newspaper. Place street such public four best often.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973293_13_raise\", \"score_hidden\": false, \"name\": \"t1_25\", \"created\": 1595973299.0, \"author_flair_text\": null, \"created_utc\": 1595973299.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:54:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "301" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_25" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/del/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "298" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/del/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=reply_to_comment+3&thing_id=t1_25" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 49-MDAuqHUgtStn7RdHNIeDwwFdhZY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "52" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gHyMTgKFBtYHFXf3Ic; loidcreated=2020-07-28T21%3A54%3A49.691Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [[\"DELETED_COMMENT\", \"that comment has been deleted\", \"parent\"]]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "86" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "298" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_delete_comment.json b/cassettes/channels.views.comments_test.test_delete_comment.json deleted file mode 100644 index b04ee9b657..0000000000 --- a/cassettes/channels.views.comments_test.test_delete_comment.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-07-25T21:51:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDLUDUxxzisuMPd2KnPPLS/TLXIvC6sqKwwoN/dNV9JRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2eSVnJob4uOWHlnkEmRRYJlf4VoYmRTm5p0QYgHSkpJZlJqfGZ6aAjIVwlGoBeT+eKrQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 25 Jul 2017 21:51:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=0ihoOKtX7jYnBNuAqZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 25-Jul-2019 21:51:09 GMT", - "loidcreated=2017-07-25T21%3A51%3A09.190Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 25-Jul-2019 21:51:09 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-07-25T21:51:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=1-JciaTLFoUvHR4p9cxMyUbZBGdX0" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic MW1pM3JwTTZ4SjN0RlE6LTNmQkxfZDk2R2o5d20tQU01TTRSOHpFajA0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "68" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0ihoOKtX7jYnBNuAqZ; loidcreated=2017-07-25T21%3A51%3A09.190Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"1-h_8ekRdloVxMuY0fMn2MqrlcxGY\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 25 Jul 2017 21:51:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "531" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-07-25T21:51:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_6" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 1-h_8ekRdloVxMuY0fMn2MqrlcxGY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0ihoOKtX7jYnBNuAqZ; loidcreated=2017-07-25T21%3A51%3A09.190Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/del/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 25 Jul 2017 21:51:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "531" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/del/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_delete_comment_anonymous.json b/cassettes/channels.views.comments_test.test_delete_comment_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.comments_test.test_delete_comment_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_comment.json b/cassettes/channels.views.comments_test.test_get_comment.json deleted file mode 100644 index cce0e205ba..0000000000 --- a/cassettes/channels.views.comments_test.test_get_comment.json +++ /dev/null @@ -1,869 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:55:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH6Q3ZWR6NS2TGTW3HV93P" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdA1qwqvcKy08PH0cTFN9vWLynAtNUnySzcJzy9X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5Z3mFGFc5VQQXJlo4FweEG5almZW7+2e6BUWC9KSklmUmp8ZnpoAMhnCUagG7BEJHuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=35CSuQCI1qRpD3tw1P; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:13 GMT", - "loidcreated=2018-08-24T17%3A55%3A13.127Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:13 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH6Q3ZWR6NS2TGTW3HV93P" - } - }, - { - "recorded_at": "2018-08-24T17:55:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH6TD7NDXY1BR13KTWW3MF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdS1CPT2iAgyMjerCMkuMDEN9a0IyK4oKQ/PzgpU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5mQflZOVHJhdnRBXnJSV6p+RVpPi66Yal+5SD9KSklmUmp8ZnpoAMhnCUagHT66/PuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH6TD7NDXY1BR13KTWW3MF" - } - }, - { - "recorded_at": "2018-08-24T17:55:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Laudantium+et+ex+consectetur+ducimus+impedit.+Necessitatibus+dolorum+a+dolores.+Consequatur+repellat+inventore+voluptatibus+pariatur.%0APossimus+nam+odit+voluptatem+accusantium+earum.+Officia+impedit+quam+ea+maxime+hic.+Voluptatum+maiores+facere+rerum+distinctio+recusandae.%0AEx+accusamus+porro+iste+veritatis.+Eveniet+porro+dolor+numquam+reprehenderit+quod.+Quia+aspernatur+expedita+expedita+et+blanditiis+voluptatem.&link_type=any&name=1535133316_praesentiu&public_description=Incidunt+porro+amet+consequuntur+exercitationem.+Cumque+quidem+delectus+nostrum+quam+dignissimos.&title=Ut+magnam+dolorem+quaerat+neque.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 151-8QKHXR276xTkp45UMxPkxtwWkjQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "688" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "284" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPH6Q3ZWR6NS2TGTW3HV93P&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 151-8QKHXR276xTkp45UMxPkxtwWkjQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133316_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "281" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133316_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133316_praesentiu" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "280" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133316_praesentiu&text=Quaerat+quaerat+laudantium+maxime.+Adipisci+id+dolor+nam+dolor.+Eius+et+illum+accusamus.&title=Quidem+debitis+nemo+explicabo+ea." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "213" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133316_praesentiu/comments/a/quidem_debitis_nemo_explicabo_ea/\", \"id\": \"a\", \"name\": \"t3_a\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "280" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133316_praesentiu\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat quaerat laudantium maxime. Adipisci id dolor nam dolor. Eius et illum accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quaerat quaerat laudantium maxime. Adipisci id dolor nam dolor. Eius et illum accusamus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPH6Q3ZWR6NS2TGTW3HV93P\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133316_praesentiu\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133316_praesentiu/comments/a/quidem_debitis_nemo_explicabo_ea/\", \"locked\": false, \"name\": \"t3_a\", \"created\": 1535133320.0, \"url\": \"http://reddit.local/r/1535133316_praesentiu/comments/a/quidem_debitis_nemo_explicabo_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quidem debitis nemo explicabo ea.\", \"created_utc\": 1535133320.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1754" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "280" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7X2qMzo8rQUW7hre7eBNQkJXV1QHIBiSb%2BMAgk5j8ChtYR4MPMgL1WwOfef%2BKVyRXwSyBkHkNu1MEfd2MDtjchXRuVDZecFe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Saepe+enim+fuga+rem.+Reprehenderit+culpa+culpa+itaque+consequuntur+voluptate.&thing_id=t3_a" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "110" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPH6Q3ZWR6NS2TGTW3HV93P\", \"parent_id\": \"t3_a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Saepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESaepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133316_praesentiu\", \"score_hidden\": false, \"name\": \"t1_2z\", \"created\": 1535133323.0, \"author_flair_text\": null, \"created_utc\": 1535133323.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "958" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "277" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2z&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPH6Q3ZWR6NS2TGTW3HV93P\", \"parent_id\": \"t3_a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Saepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESaepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133316_praesentiu\", \"score_hidden\": false, \"name\": \"t1_2z\", \"created\": 1535133323.0, \"author_flair_text\": null, \"created_utc\": 1535133323.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1003" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "274" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5gmmaERLK4m6TTpRcZ16C94TLQZAinvVdnPF02KJi5szT55bM80QhmQHUu6sGv2DKLxaHjGFHhY%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2z&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 150-6zWxAy8LILD5cMNZhEu4bNg4Wow" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=35CSuQCI1qRpD3tw1P; loidcreated=2018-08-24T17%3A55%3A13.127Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a/_/2z?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133316_praesentiu\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat quaerat laudantium maxime. Adipisci id dolor nam dolor. Eius et illum accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quaerat quaerat laudantium maxime. Adipisci id dolor nam dolor. Eius et illum accusamus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPH6Q3ZWR6NS2TGTW3HV93P\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133316_praesentiu\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133316_praesentiu/comments/a/quidem_debitis_nemo_explicabo_ea/\", \"locked\": false, \"name\": \"t3_a\", \"created\": 1535133320.0, \"url\": \"http://reddit.local/r/1535133316_praesentiu/comments/a/quidem_debitis_nemo_explicabo_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quidem debitis nemo explicabo ea.\", \"created_utc\": 1535133320.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPH6Q3ZWR6NS2TGTW3HV93P\", \"parent_id\": \"t3_a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Saepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESaepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133316_praesentiu\", \"score_hidden\": false, \"name\": \"t1_2z\", \"created\": 1535133323.0, \"author_flair_text\": null, \"created_utc\": 1535133323.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2664" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "274" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=uWVEBQpsa3xHGKcEJter2KEBHYFgZDMCMPogPG%2F90YElMXuYlCTZQnz4PlSOZo%2FnzqC327FdiQwQ8U1zbUvyGAPyOG7vNxaF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a/_/2z?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_comment_404.json b/cassettes/channels.views.comments_test.test_get_comment_404.json deleted file mode 100644 index 0d42312346..0000000000 --- a/cassettes/channels.views.comments_test.test_get_comment_404.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:55:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH774DQG4KMV54CM7VF2PA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdJ1N/H3Mqj0cTLJMaryLi00Cy3zMos3K01PNnVV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVFHsZ+5fqpqemJGZEugQk+Xrlpzv56ZYV+iWD9KSklmUmp8ZnpoAMhnCUagEGZDNyuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=oFwe7mQqT011QAAwAZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:29 GMT", - "loidcreated=2018-08-24T17%3A55%3A29.524Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:29 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH774DQG4KMV54CM7VF2PA" - } - }, - { - "recorded_at": "2018-08-24T17:55:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=oFwe7mQqT011QAAwAZ; loidcreated=2018-08-24T17%3A55%3A29.524Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH7AEMKTCZTADFW3M7CDC6" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQ6CMBBEf4X0aCRpJYp6I4Gg8WCMHrxt6rJKJUptG0SM/y6Vk8d5mTfzZhKRrAVXV3Rny4CJaRS2sLopBC4avp2IRyrLQzhPO+3ijI0DRq1WhiwoL0Qzznv288G9NPmRE0lDxnct1gMa+WTo3Ivl/xtlFcZms7hWZm1B5Lv9BbujeGKeeKegRiGBKvzwENjnC0TJghS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH7AEMKTCZTADFW3M7CDC6" - } - }, - { - "recorded_at": "2018-08-24T17:55:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Dicta+iste+corrupti+quos+nam+ad.+Dolorum+ab+laborum+minima+voluptas+magni+enim+architecto.+Dolore+saepe+sint+quasi+veniam+delectus+velit.+Est+suscipit+cupiditate+voluptatem+aliquam+veniam+voluptatem.%0AEst+exercitationem+maxime+adipisci+repellat.+Possimus+ex+nihil+totam+voluptatibus+minima+ducimus+fuga+aliquam.+Facilis+nisi+eius+molestias+molestias.+Quae+laborum+sit+vitae+quisquam+recusandae.&link_type=any&name=1535133333_ducimus&public_description=Natus+ducimus+quidem+doloremque+deleniti+earum+dolorum+commodi.+Rem+nobis+iusto+explicabo.&title=Necessitatibus+tempora+possimus+consequatur.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 153-x_Hmic_01v0O21qDahT-8Dzpt7E" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "666" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=oFwe7mQqT011QAAwAZ; loidcreated=2018-08-24T17%3A55%3A29.524Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "267" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPH774DQG4KMV54CM7VF2PA&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 153-x_Hmic_01v0O21qDahT-8Dzpt7E" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=oFwe7mQqT011QAAwAZ; loidcreated=2018-08-24T17%3A55%3A29.524Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133333_ducimus/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "264" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133333_ducimus/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133333_ducimus" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 152-G4OJ0yLB4l2zKuq6UvJ6_6ugc5E" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=oFwe7mQqT011QAAwAZ; loidcreated=2018-08-24T17%3A55%3A29.524Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "264" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 152-G4OJ0yLB4l2zKuq6UvJ6_6ugc5E" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=oFwe7mQqT011QAAwAZ; loidcreated=2018-08-24T17%3A55%3A29.524Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_23432&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "93" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "264" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jfW%2BTyt3uQqzpiCZjiVxyuZX0TlgTTq7PdppNNI4heMKs41OonuiM78D7v5PSTDKlm4qf3HQkaM%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_23432&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_comment_anonymous.json b/cassettes/channels.views.comments_test.test_get_comment_anonymous.json deleted file mode 100644 index 34624ebfde..0000000000 --- a/cassettes/channels.views.comments_test.test_get_comment_anonymous.json +++ /dev/null @@ -1,762 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:55:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH7GZ9722JZ3QWRTM6H83K" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdFNKg83L3fJcvEsDAoKTnLOTI7UzQgJNEtPT/NU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYF5QWVebmHh6R7ZSZblBZmp5hbRhUbBwWYG0eC9KSklmUmp8ZnpoAMhnCUagHACLLEuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Bjo717TlvkvCxZiuk3; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:39 GMT", - "loidcreated=2018-08-24T17%3A55%3A39.600Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:55:39 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPH7GZ9722JZ3QWRTM6H83K" - } - }, - { - "recorded_at": "2018-08-24T17:55:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Libero+animi+ducimus+exercitationem+vel+a+odio+nostrum.+Repellat+repudiandae+atque+aperiam+voluptatibus+exercitationem+amet.+Quo+quaerat+autem+rerum+unde+tempora+similique+placeat+eius.%0AProvident+soluta+similique+maxime+provident+dolorem+cum+molestias+voluptas.+Sit+eaque+in+esse+tenetur+error+est+quis.+Atque+illo+provident+eaque.+Repellat+ab+laborum+at+atque+itaque+ab+possimus+recusandae.+Sequi+voluptates+ad+ut+magnam.&link_type=any&name=1535133339_ratione&public_description=Dolor+vitae+laboriosam+perferendis+eum.+Incidunt+corporis+nulla+voluptatem+veniam.&title=Error+laudantium+iste+aut+earum+provident+ipsum.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 154-bwW7wDjDIqRRSbCicY-hTQ6ggfI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "690" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "261" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CBDBP5F8XRQ1T5GATHDWA99Z" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNXQuCMBiF/4rsMgpWYmWXgUFkyAjW5XDzNd8S5zaxL/rvubzq8jyc55w3yZUC50Snb9CQTUDmUTQzVd2cdLjOdtnVIEZM8lWP+2PqFJkGBB4tWnACvRAuKR3YzxfdswU/IiG3YH3XKT2iiU8WykGs/t9ii/ULSsY1PbMkMYcsTi+LLZdw904BPSoQWPjhMZDPF/SLAvy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CBDBP5F8XRQ1T5GATHDWA99Z" - } - }, - { - "recorded_at": "2018-08-24T17:55:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133339_ratione&text=Velit+maiores+consequatur+illo+eum.+Nemo+voluptate+provident+deleniti+delectus+architecto.&title=Inventore+esse+quas+sequi+quod+aliquam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 155-qhlnSo38OFOjqii5QbV7viIMLsc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "218" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133339_ratione/comments/b/inventore_esse_quas_sequi_quod_aliquam/\", \"id\": \"b\", \"name\": \"t3_b\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "257" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 155-qhlnSo38OFOjqii5QbV7viIMLsc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133339_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit maiores consequatur illo eum. Nemo voluptate provident deleniti delectus architecto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Velit maiores consequatur illo eum. Nemo voluptate provident deleniti delectus architecto.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBDBP5F8XRQ1T5GATHDWA99Z\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133339_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_r\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133339_ratione/comments/b/inventore_esse_quas_sequi_quod_aliquam/\", \"locked\": false, \"name\": \"t3_b\", \"created\": 1535133343.0, \"url\": \"http://reddit.local/r/1535133339_ratione/comments/b/inventore_esse_quas_sequi_quod_aliquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Inventore esse quas sequi quod aliquam.\", \"created_utc\": 1535133343.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1764" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "257" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zaFNzv0luhJyLw3%2F%2BJj0DCS51iavGi0%2BkxrtOimHJ%2Bfr0gxazu%2Ff04aF3m%2BeBRAubuzDIbWQYGHODupR6MFkHEFRKcb9q82V" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Voluptas+eos+sit+voluptatem+sequi.+Corporis+atque+totam+amet+alias+enim.&thing_id=t3_b" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 155-qhlnSo38OFOjqii5QbV7viIMLsc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_r\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_b\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"30\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDBP5F8XRQ1T5GATHDWA99Z\", \"parent_id\": \"t3_b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133339_ratione\", \"score_hidden\": false, \"name\": \"t1_30\", \"created\": 1535133346.0, \"author_flair_text\": null, \"created_utc\": 1535133346.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "945" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "254" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-Ofrj3q4M7x57gXB9M1GjHhOM7QA\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "251" - ], - "x-ratelimit-used": [ - "3" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T17:55:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -Ofrj3q4M7x57gXB9M1GjHhOM7QA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_30&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_r\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_b\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"30\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDBP5F8XRQ1T5GATHDWA99Z\", \"parent_id\": \"t3_b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133339_ratione\", \"score_hidden\": false, \"name\": \"t1_30\", \"created\": 1535133346.0, \"author_flair_text\": null, \"created_utc\": 1535133346.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "988" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296" - ], - "x-ratelimit-reset": [ - "251" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Q2j%2FVeJzzMUNoDMQTlmTiIBFxnec%2FmLTfH2eGyo1Kdulr5Cw3vJ%2BUYa0uBh8jyD9Eiq8V38QLRI%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_30&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:55:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -Ofrj3q4M7x57gXB9M1GjHhOM7QA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Bjo717TlvkvCxZiuk3; loidcreated=2018-08-24T17%3A55%3A39.600Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b/_/30?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133339_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit maiores consequatur illo eum. Nemo voluptate provident deleniti delectus architecto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Velit maiores consequatur illo eum. Nemo voluptate provident deleniti delectus architecto.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBDBP5F8XRQ1T5GATHDWA99Z\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133339_ratione\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_r\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/1535133339_ratione/comments/b/inventore_esse_quas_sequi_quod_aliquam/\", \"locked\": false, \"name\": \"t3_b\", \"created\": 1535133343.0, \"url\": \"http://reddit.local/r/1535133339_ratione/comments/b/inventore_esse_quas_sequi_quod_aliquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Inventore esse quas sequi quod aliquam.\", \"created_utc\": 1535133343.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_r\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_b\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"30\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDBP5F8XRQ1T5GATHDWA99Z\", \"parent_id\": \"t3_b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535133339_ratione\", \"score_hidden\": false, \"name\": \"t1_30\", \"created\": 1535133346.0, \"author_flair_text\": null, \"created_utc\": 1535133346.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2656" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:55:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295" - ], - "x-ratelimit-reset": [ - "251" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=1xUKLTxTo1iYE2RBlMbQuCBcbRd7wo5gxMgz6vFBP9lFv8%2Bhx2%2Ft0FnZh8BT6q9oxVUtFTJhEooTIgGLpyIksoC1s%2BOWejvj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b/_/30?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_removed_comment[None-404].json b/cassettes/channels.views.comments_test.test_get_removed_comment[None-404].json deleted file mode 100644 index 1700b9f1f3..0000000000 --- a/cassettes/channels.views.comments_test.test_get_removed_comment[None-404].json +++ /dev/null @@ -1,922 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-11-05T14:43:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSJBB352X9DKFXY72QVYE" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI01S3zjPAIjKpwMTIsLzcP9wguc8tKD/fXjTSJMFHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljkHZ1lGmFimOjkHeZk5mwcH53sZG6RkeIR7gC1LSS3LTE6Nz0wBmQvhKNUCAKSlGZi2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=nHLzCJlZV2ug73jvGF; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:43:31 GMT", - "loidcreated=2020-11-05T14%3A43%3A30.717Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:43:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSJBB352X9DKFXY72QVYE" - } - }, - { - "recorded_at": "2020-11-05T14:43:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSNNBM1T2VC3ADCXQPZ72" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI00w3yNTZwNitLSonITnT0dwvLS/FJjcotiMp39lTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolrkFlFaURDpX+RXr5geWJ3o5FaXpmkaZpBtllIO0pKSWZSanxmemgMyFcJRqAYGXHn62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSNNBM1T2VC3ADCXQPZ72" - } - }, - { - "recorded_at": "2020-11-05T14:43:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Through+laugh+area+security+mention.+Prepare+factor+western+expert+country.+Party+feel+lawyer+technology+cause+long+blood.%0AOff+none+police+key+beyond+become+lay+town.+Particularly+major+yes+hospital.+Off+listen+hear+top+movie+box.%0ACurrent+future+price+authority+behind.+Even+stay+claim+thus+far+card.+President+unit+machine+share+magazine+environment.%0AEight+might+identify+spend+education+something.+Card+over+force+sense+surface.+Beat+technology+significant+south+since+throughout+process.&link_type=any&name=1604587414_8_hotel&public_description=Agency+away+friend+thus.+Rule+sit+late+smile+stay.+West+gas+especially.&title=American+catch+life+various+fly+child.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-RM30C6vbdXkaAOFVndLeZmpZoCI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "741" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "386" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSVZ8ZX1BFDG6XWFSN7WQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI017UoSizVdS8rtkj18C11D3TJz/aMKjVMdjdKzlbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolhlFRHhbBBh4ZhinphnnpZX65JqGVZTmmDrllIO0pKSWZSanxmemgMyFcJRqAdVUFX62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDSVZ8ZX1BFDG6XWFSN7WQ" - } - }, - { - "recorded_at": "2020-11-05T14:43:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1604587414_8_hotel&text=Art+campaign+cause+lose.+Close+film+large+help+approach.&title=Himself+chance+only+fact+whole+career+so." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 95-vIXHQZxD21ww7WHSvFjgWO-Y4X4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "186" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1604587414_8_hotel/comments/1c/himself_chance_only_fact_whole_career_so/\", \"id\": \"1c\", \"name\": \"t3_1c\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "380" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 95-vIXHQZxD21ww7WHSvFjgWO-Y4X4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587414_8_hotel\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EArt campaign cause lose. Close film large help approach.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Art campaign cause lose. Close film large help approach.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDSJBB352X9DKFXY72QVYE\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587414_8_hotel\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587414_8_hotel/comments/1c/himself_chance_only_fact_whole_career_so/\", \"locked\": false, \"name\": \"t3_1c\", \"created\": 1604587420.0, \"url\": \"http://reddit.local/r/1604587414_8_hotel/comments/1c/himself_chance_only_fact_whole_career_so/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Himself chance only fact whole career so.\", \"created_utc\": 1604587420.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1706" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "380" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0ShE8RNO5KWzucrK4pUg%2Bg3qEVa3qmenDoCPFVJEuqdXThlZHnXjNYnGEz0i2HZgn4saN6NkOwdBfXXGmoNabnqQs10MlN%2F9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Brother+level+source+top+know.+Tough+director+more.+Seem+so+really+lawyer+however+senior+hair.&thing_id=t3_1c" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 97-8rau-Gvs8eHMuGQDokIZu1cG2ck" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "128" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_s\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1c\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDSVZ8ZX1BFDG6XWFSN7WQ\", \"parent_id\": \"t3_1c\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Brother level source top know. Tough director more. Seem so really lawyer however senior hair.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBrother level source top know. Tough director more. Seem so really lawyer however senior hair.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587414_8_hotel\", \"score_hidden\": false, \"name\": \"t1_x\", \"created\": 1604587423.0, \"author_flair_text\": null, \"created_utc\": 1604587423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "989" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "377" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_x&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-RM30C6vbdXkaAOFVndLeZmpZoCI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "373" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-K_tUyGX5_4IPNpgviCU_OzwBf-k\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "373" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2020-11-05T14:43:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -K_tUyGX5_4IPNpgviCU_OzwBf-k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_x&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_s\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1c\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"[deleted]\", \"parent_id\": \"t3_1c\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"[removed]\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E[removed]\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587414_8_hotel\", \"score_hidden\": false, \"name\": \"t1_x\", \"created\": 1604587423.0, \"author_flair_text\": null, \"created_utc\": 1604587423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "845" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "373" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jQUasHgm8CSHIy%2FhKN0YLwz69ZLYnLK6Gh4wFw5n2g6rqJrr6SWslwntWslZFvzRpyZREux17e4%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_x&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:43:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -K_tUyGX5_4IPNpgviCU_OzwBf-k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=nHLzCJlZV2ug73jvGF; loidcreated=2020-11-05T14%3A43%3A30.717Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1c/_/x?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587414_8_hotel\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EArt campaign cause lose. Close film large help approach.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Art campaign cause lose. Close film large help approach.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDSJBB352X9DKFXY72QVYE\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587414_8_hotel\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/1604587414_8_hotel/comments/1c/himself_chance_only_fact_whole_career_so/\", \"locked\": false, \"name\": \"t3_1c\", \"created\": 1604587420.0, \"url\": \"http://reddit.local/r/1604587414_8_hotel/comments/1c/himself_chance_only_fact_whole_career_so/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Himself chance only fact whole career so.\", \"created_utc\": 1604587420.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1701" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "373" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=X4r%2FDv0gi57AUgI6moPtlmlkpT07ArLmZig%2FRItvthliYK2%2Bgo2NZf3wbpyryA2ICJ41GpIJu3uRmiigJcubR%2B16OiNIxG%2Bm" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1c/_/x?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json b/cassettes/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json deleted file mode 100644 index 17712a524d..0000000000 --- a/cassettes/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json +++ /dev/null @@ -1,934 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-11-05T14:43:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDT5DA29PN7KEX3SYYR9CA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULK00PVKT/UKNkx29nBOKQ92dXIL9XPJdkmOSK8y8lXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolnkUOicVpIUk+YUVuXtWlWcVJBUFe/u6V+UYgy1LSS3LTE6Nz0wBmQvhKNUCAG0PONC2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=i543MH1IUhkdFz8M7j; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:43:50 GMT", - "loidcreated=2020-11-05T14%3A43%3A50.243Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:43:50 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDT5DA29PN7KEX3SYYR9CA" - } - }, - { - "recorded_at": "2020-11-05T14:43:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDT8P32TFT8SWHB1DJJV37" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULK01M0LMg/xywgyTwyqMA0LTvRKCYsI8Ch3jNINzFbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolhWWRZQkBZZUehVmhecXFwcZOVVG6Wamllukl4O0pKSWZSanxmemgMyFcJRqAbsJ4aS2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDT8P32TFT8SWHB1DJJV37" - } - }, - { - "recorded_at": "2020-11-05T14:43:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Young+move+home+call+hair+skill.+Politics+language+cold+the+quality+speech.+Find+policy+billion+enough+business.+Hundred+effect+space.%0AEstablish+image+less+tend+wrong.+Work+describe+me.+Manager+fine+continue+phone+read+top.+Respond+measure+position+democratic.%0APlay+live+whole+among.+Small+budget+window+eye+girl+approach+professional+loss.+Home+mind+under+music.+Economy+husband+experience+local+student+forget+season+water.&link_type=any&name=1604587433_9_adult&public_description=Five+sell+station+training+throw+hour+minute.&title=Investment+back+probably+message+happy+view.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 99-nR7TNhR7aRx5VSaJdVXPHwAZ-Qk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "654" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:43:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "367" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTEYCKH6GX99WRZG6299P" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQvCIBzFv8rwGAWOIFrHNkaxU8QKusjU/0gX09ScFX33Zjt1fD/e7703ahgDa4lTHfRok6AU44USJvDAXzs/3Kim63N5KPMLddnJonmCIGhhwBIRheUK45H9fOKeGuIIhcaAiV3L1IRmMRloR/H6/1bA0OOC7mFb+UdXyzzNWXaXsjrW0eHgBQMieByeAvp8AZ33Yxu4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTEYCKH6GX99WRZG6299P" - } - }, - { - "recorded_at": "2020-11-05T14:44:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1604587433_9_adult&text=If+contain+long+I+full+believe.+Player+minute+new+clearly+until+inside.+Present+democratic+more.&title=Top+then+project.+Dark+nearly+speech+everyone." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 98-JgeJS1cCHCdwSEBFUNDkDcXgz2M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "231" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1604587433_9_adult/comments/1d/top_then_project_dark_nearly_speech_everyone/\", \"id\": \"1d\", \"name\": \"t3_1d\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "360" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 98-JgeJS1cCHCdwSEBFUNDkDcXgz2M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587433_9_adult\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIf contain long I full believe. Player minute new clearly until inside. Present democratic more.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"If contain long I full believe. Player minute new clearly until inside. Present democratic more.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDT5DA29PN7KEX3SYYR9CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587433_9_adult\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587433_9_adult/comments/1d/top_then_project_dark_nearly_speech_everyone/\", \"locked\": false, \"name\": \"t3_1d\", \"created\": 1604587440.0, \"url\": \"http://reddit.local/r/1604587433_9_adult/comments/1d/top_then_project_dark_nearly_speech_everyone/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Top then project. Dark nearly speech everyone.\", \"created_utc\": 1604587440.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1799" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "360" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=30N4Kphz7cswuwcB77q7UzDRyRZ61x4APUWIX%2BajcksNi3xX4qmo6Fmb5udmAv4tu%2FogPSwN9vPBuZnM4TeoszSUlRvZ03MN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sound+author+his+hundred+result+movie.+Answer+stay+southern.+Stop+use+young+drug+result.&thing_id=t3_1d" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 100-oirxdxdzHvwlbpb8WFQFCZbt9Vs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "122" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_t\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1d\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDTEYCKH6GX99WRZG6299P\", \"parent_id\": \"t3_1d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sound author his hundred result movie. Answer stay southern. Stop use young drug result.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESound author his hundred result movie. Answer stay southern. Stop use young drug result.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587433_9_adult\", \"score_hidden\": false, \"name\": \"t1_y\", \"created\": 1604587443.0, \"author_flair_text\": null, \"created_utc\": 1604587443.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "977" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "357" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_y&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 99-nR7TNhR7aRx5VSaJdVXPHwAZ-Qk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 100-oirxdxdzHvwlbpb8WFQFCZbt9Vs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_y&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_t\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1d\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDTEYCKH6GX99WRZG6299P\", \"parent_id\": \"t3_1d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sound author his hundred result movie. Answer stay southern. Stop use young drug result.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESound author his hundred result movie. Answer stay southern. Stop use young drug result.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587433_9_adult\", \"score_hidden\": false, \"name\": \"t1_y\", \"created\": 1604587443.0, \"author_flair_text\": null, \"created_utc\": 1604587443.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1022" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2BMzr%2B0mvl1IRAeBKYStd2TFz0IOQxGXIH%2FC7uFf9%2BbdrN9E96MgvJz0SIcObufH9MwDCR1YVlzA%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_y&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 100-oirxdxdzHvwlbpb8WFQFCZbt9Vs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1d/_/y?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587433_9_adult\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIf contain long I full believe. Player minute new clearly until inside. Present democratic more.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"If contain long I full believe. Player minute new clearly until inside. Present democratic more.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDT5DA29PN7KEX3SYYR9CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587433_9_adult\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/1604587433_9_adult/comments/1d/top_then_project_dark_nearly_speech_everyone/\", \"locked\": false, \"name\": \"t3_1d\", \"created\": 1604587440.0, \"url\": \"http://reddit.local/r/1604587433_9_adult/comments/1d/top_then_project_dark_nearly_speech_everyone/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Top then project. Dark nearly speech everyone.\", \"created_utc\": 1604587440.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_t\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1d\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDTEYCKH6GX99WRZG6299P\", \"parent_id\": \"t3_1d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sound author his hundred result movie. Answer stay southern. Stop use young drug result.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESound author his hundred result movie. Answer stay southern. Stop use young drug result.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587433_9_adult\", \"score_hidden\": false, \"name\": \"t1_y\", \"created\": 1604587443.0, \"author_flair_text\": null, \"created_utc\": 1604587443.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2727" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4bgNhZr5u5KR2qefuULKqI%2FVxFIOq5HMDowHZ6Mswpt5wY1S3O4K7aQByvJJyxVtkwtRhNJNHQn7oEuWx%2FQZwV0d6ZHUXZjl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1d/_/y?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 100-oirxdxdzHvwlbpb8WFQFCZbt9Vs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=i543MH1IUhkdFz8M7j; loidcreated=2020-11-05T14%3A43%3A50.243Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1604587433_9_adult/about/moderators/?user=01EPCDTEYCKH6GX99WRZG6299P&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ed3IWoHgSA5bkzXjxpkdkloKPqLcD70mntoHJU4sAweoyn7yTgTGpn5FzHyIutTZ1nX8PJLQ%2FQ%2F0kV4IvksbuVEVGjcWvT0E" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1604587433_9_adult/about/moderators/?user=01EPCDTEYCKH6GX99WRZG6299P&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_removed_comment[staff_user-200].json b/cassettes/channels.views.comments_test.test_get_removed_comment[staff_user-200].json deleted file mode 100644 index 3e501c67eb..0000000000 --- a/cassettes/channels.views.comments_test.test_get_removed_comment[staff_user-200].json +++ /dev/null @@ -1,934 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-11-05T14:44:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVBFC808BXDM43QK4JRFK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNsQrCMBiEX6VkFIWEFGndJA1SrHZwEF1CTH5pUNKQFLUV393GTo73cd/dG0mlIATRtTewaJUggtMFEWynt5UBldEA+aG+Z6ymp4HtSzRPELyc8RCEiQJdYjyyny+63kEcuYD04GM3qHZCs5g8XEex+X+relbkhON1qp9ntSmltZwfB2caHB0ND6NAGB2Hp4A+X0X+FQS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=9fmv4xT8IdTJp6L8on; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:44:29 GMT", - "loidcreated=2020-11-05T14%3A44%3A29.215Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:44:29 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVBFC808BXDM43QK4JRFK" - } - }, - { - "recorded_at": "2020-11-05T14:44:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVERKNH4T0ABBKKPNX2J2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MNU1izIJTjcLzokydbLQDfEKq3JNN8ixiErxMcpW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLblx/ulh5d5uiY7poSXhbqaJMen+Hr6FVQkhnuC9KSklmUmp8ZnpoAMhnCUagGjNkTDuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVERKNH4T0ABBKKPNX2J2" - } - }, - { - "recorded_at": "2020-11-05T14:44:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Material+treatment+option+where+wind.+Other+end+reality+against+agree.%0AIf+serve+nothing+lose.+Computer+add+risk+media+hit+fine.+Test+dinner+kind+hospital+safe+just+own.%0AYourself+heavy+long+clearly+direction+money+know.+Campaign+source+understand+modern+everybody+design+continue.+Provide+drive+policy+page+decade+reduce+personal+popular.%0AChair+account+rich+key+site+hand.+Window+education+audience+information+nature+edge+agent.+Much+exactly+wall+report.&link_type=any&name=1604587472_11_lead&public_description=Pull+region+it+court+sister+day+grow.+Billion+exactly+attack+imagine.&title=Successful+address+join+memory.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105-6Z4Sg6SlZ5B8-TJVzEg0l8ZdL2k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "696" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "328" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVMZHJMFA9MTSD3QA3NRJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQrCMBREr1KyFIXUShF3IipoKZgogptPm/zQKNqYlGAQ725jVy7nMW/mTSoh0Dno2hs+yCIhKc0n6VNd+f4YvC/1Bs6q5Jdizq0s/ImME4Ivoy060FHIckp79vOhCwbjSI2VRRu7TrQDGsVkUfVi8/8WZoe14lvPqrAyd6BZsM1uumSUuehI9FogaBmHh0A+X4P5BDy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDVMZHJMFA9MTSD3QA3NRJ" - } - }, - { - "recorded_at": "2020-11-05T14:44:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1604587472_11_lead&text=Win+similar+music+put.&title=Feel+Mr+begin+tend." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-1_CMdKLiec83se9SOl8CO3YzCNI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "130" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1604587472_11_lead/comments/1f/feel_mr_begin_tend/\", \"id\": \"1f\", \"name\": \"t3_1f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "147" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "321" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-1_CMdKLiec83se9SOl8CO3YzCNI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587472_11_lead\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWin similar music put.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Win similar music put.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDVBFC808BXDM43QK4JRFK\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587472_11_lead\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587472_11_lead/comments/1f/feel_mr_begin_tend/\", \"locked\": false, \"name\": \"t3_1f\", \"created\": 1604587479.0, \"url\": \"http://reddit.local/r/1604587472_11_lead/comments/1f/feel_mr_begin_tend/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Feel Mr begin tend.\", \"created_utc\": 1604587479.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1572" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "321" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=WKiVZoNazH85n5OSPym4kSvp1JbSGRXSfV00Un5VSfLc0NkzR0vdCbUK9tNVwLuUbxmI65Vbrpw2ouyctJZccFJekFGM6sIn" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Yard+address+form+fact+view+him+many.+Three+show+which+thought+billion.&thing_id=t3_1f" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 106-1qfjSKTyvvNiF_WfNSZL8SrdLvU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_v\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1f\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDVMZHJMFA9MTSD3QA3NRJ\", \"parent_id\": \"t3_1f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Yard address form fact view him many. Three show which thought billion.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EYard address form fact view him many. Three show which thought billion.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587472_11_lead\", \"score_hidden\": false, \"name\": \"t1_10\", \"created\": 1604587482.0, \"author_flair_text\": null, \"created_utc\": 1604587482.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "945" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_10&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105-6Z4Sg6SlZ5B8-TJVzEg0l8ZdL2k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105-6Z4Sg6SlZ5B8-TJVzEg0l8ZdL2k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_10&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_v\", \"banned_by\": \"01EPCDVERKNH4T0ABBKKPNX2J2\", \"removal_reason\": null, \"link_id\": \"t3_1f\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EPCDVMZHJMFA9MTSD3QA3NRJ\", \"parent_id\": \"t3_1f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Yard address form fact view him many. Three show which thought billion.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EYard address form fact view him many. Three show which thought billion.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587472_11_lead\", \"score_hidden\": false, \"name\": \"t1_10\", \"created\": 1604587482.0, \"author_flair_text\": null, \"created_utc\": 1604587482.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1009" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NikhI0HYzQHxWWMAMgErPJC%2B2AQ7WZluYCUpQtbtRZEYqH9FDpsXp6i43lc9kDB3611BSXTdWrk%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_10&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105-6Z4Sg6SlZ5B8-TJVzEg0l8ZdL2k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1f/_/10?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587472_11_lead\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWin similar music put.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Win similar music put.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EPCDVBFC808BXDM43QK4JRFK\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587472_11_lead\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587472_11_lead/comments/1f/feel_mr_begin_tend/\", \"locked\": false, \"name\": \"t3_1f\", \"created\": 1604587479.0, \"url\": \"http://reddit.local/r/1604587472_11_lead/comments/1f/feel_mr_begin_tend/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Feel Mr begin tend.\", \"created_utc\": 1604587479.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_v\", \"banned_by\": \"01EPCDVERKNH4T0ABBKKPNX2J2\", \"removal_reason\": null, \"link_id\": \"t3_1f\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EPCDVMZHJMFA9MTSD3QA3NRJ\", \"parent_id\": \"t3_1f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Yard address form fact view him many. Three show which thought billion.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EYard address form fact view him many. Three show which thought billion.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587472_11_lead\", \"score_hidden\": false, \"name\": \"t1_10\", \"created\": 1604587482.0, \"author_flair_text\": null, \"created_utc\": 1604587482.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2483" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=N6owwlNMcBzzZmxhSfRXyHaxjk2P7uxThNeao01oD5IsL0tCmKpDh4kM8ZH8ZbUX95I1WrFmu0N8CbErOeSHQ19G5AhVnFox" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1f/_/10?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105-6Z4Sg6SlZ5B8-TJVzEg0l8ZdL2k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9fmv4xT8IdTJp6L8on; loidcreated=2020-11-05T14%3A44%3A29.215Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1604587472_11_lead/about/moderators/?user=01EPCDVERKNH4T0ABBKKPNX2J2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1604587472.0, \"mod_permissions\": [\"all\"], \"name\": \"01EPCDVERKNH4T0ABBKKPNX2J2\", \"id\": \"t2_2x\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2BRTnamxJm8%2FBbaZhiP5YxmHh014mBUJqYU1LX7i8eDA5QO53zeqtX7I%2BOeXNtYJLAu7lj7HEgEsR%2FotGpbBu5YcvPuCULl7L" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1604587472_11_lead/about/moderators/?user=01EPCDVERKNH4T0ABBKKPNX2J2&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_get_removed_comment[user-404].json b/cassettes/channels.views.comments_test.test_get_removed_comment[user-404].json deleted file mode 100644 index 77f52eef8f..0000000000 --- a/cassettes/channels.views.comments_test.test_get_removed_comment[user-404].json +++ /dev/null @@ -1,845 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-11-05T14:44:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTRDD0S27V71Y9KA5HE5T" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MNT1zTE2LHIrLzKMjDCPKksptEjJdjP39Mp2DzJR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVFQaHVDg5Zkelm5okZQV7BmVWBRn5pRiUFpeD9KSklmUmp8ZnpoAMhnCUagEPcsmpuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=SlytKcEgaXRY8JSh1q; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:44:10 GMT", - "loidcreated=2020-11-05T14%3A44%3A09.734Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 05-Nov-2022 14:44:10 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTRDD0S27V71Y9KA5HE5T" - } - }, - { - "recorded_at": "2020-11-05T14:44:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTVQTKJQMPAX0E9B9QZXB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQuCMACF/4rsGAUrKaSbFhOypA4WdBk6XzVEnZuEFv33XJ46vo/3vfcmqRAwhrd1gYqsHTKni5nqSt8H81R6OtfYsyt/ec0yanbhgUwdgk5JDcOlFdwVpQP7+bztFexIhlRD264R9YgmNmncBvHx/1YV5XaTBJc+YWWAIhYmcpswvkfHxDo5nlKAy9wOj4F8vt4UaK64AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDTVQTKJQMPAX0E9B9QZXB" - } - }, - { - "recorded_at": "2020-11-05T14:44:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Moment+election+goal+look+response.+Listen+hope+least+south+break+analysis+must.+Short+nation+fast+fund.%0AElection+maybe+but+sense+itself.+Occur+reduce+culture+from+say.+Improve+thus+last+be+friend+whatever+star+condition.%0AMention+service+perform+scene+hot.+Along+this+peace+question+do+together+today.%0AHour+security+discussion+within+often.%0AWhat+difficult+seem+stage+full.+Thousand+indeed+consumer+be+reach+what.&link_type=any&name=1604587453_10_item&public_description=Newspaper+meet+team+enjoy+campaign.+Budget+training+sing+second.&title=Only+cup+at+very+here+team+senior.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 102-pxmAAeF8paQVoeLFZ_z8q5KqJGM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "654" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "347" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDV204J8NZ5WKDCYRGHH8F" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MNb1sSwvdfNKzSw2d3EPzDOMzPYN9i8urjAMiPBV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaF51d5uZX5hkcZGKbnlcW7pIWmZ2blhBYUZzqC9KSklmUmp8ZnpoAMhnCUagGlbDtfuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EPCDV204J8NZ5WKDCYRGHH8F" - } - }, - { - "recorded_at": "2020-11-05T14:44:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1604587453_10_item&text=Magazine+thing+range+difficult.+Piece+send+material+off+cover.+Art+tend+guess+away+would.&title=Morning+serious+true." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 101-Ml31rFwr1YX7Zvdq8dkF7IJkGR4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "199" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1604587453_10_item/comments/1e/morning_serious_true/\", \"id\": \"1e\", \"name\": \"t3_1e\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "341" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 101-Ml31rFwr1YX7Zvdq8dkF7IJkGR4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587453_10_item\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMagazine thing range difficult. Piece send material off cover. Art tend guess away would.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Magazine thing range difficult. Piece send material off cover. Art tend guess away would.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDTRDD0S27V71Y9KA5HE5T\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587453_10_item\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587453_10_item/comments/1e/morning_serious_true/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1604587459.0, \"url\": \"http://reddit.local/r/1604587453_10_item/comments/1e/morning_serious_true/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Morning serious true.\", \"created_utc\": 1604587459.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1712" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "341" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=iiAK5545qlcvGS0Win%2BhPvxZrq%2BDhtBrl6jvgvhboGvb9qrK7WGOLIXuz6Ks7RW4G2QJFlm5rk0q6xHtjPvuWZFOvq4nHkx3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Fast+guess+keep+reach+at.+Customer+production+hard+two+shoulder.&thing_id=t3_1e" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 103-L9wuFJeis7DGQn1YkMSOssx1PXM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "98" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_u\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EPCDV204J8NZ5WKDCYRGHH8F\", \"parent_id\": \"t3_1e\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Fast guess keep reach at. Customer production hard two shoulder.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFast guess keep reach at. Customer production hard two shoulder.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587453_10_item\", \"score_hidden\": false, \"name\": \"t1_z\", \"created\": 1604587462.0, \"author_flair_text\": null, \"created_utc\": 1604587462.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "929" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "338" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_z&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 102-pxmAAeF8paQVoeLFZ_z8q5KqJGM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "334" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 101-Ml31rFwr1YX7Zvdq8dkF7IJkGR4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_z&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_u\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1e\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"[deleted]\", \"parent_id\": \"t3_1e\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"[removed]\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E[removed]\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1604587453_10_item\", \"score_hidden\": false, \"name\": \"t1_z\", \"created\": 1604587462.0, \"author_flair_text\": null, \"created_utc\": 1604587462.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "334" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=83hUJk7wE1p2B4DbOrLqGkYPGycdaXj8AbjNrZbU9My6IrOJDZ%2B6DmaEXf1QqH4fXmmOlR7SSJc%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_z&raw_json=1" - } - }, - { - "recorded_at": "2020-11-05T14:44:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 101-Ml31rFwr1YX7Zvdq8dkF7IJkGR4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=SlytKcEgaXRY8JSh1q; loidcreated=2020-11-05T14%3A44%3A09.734Z" - ], - "User-Agent": [ - "MIT-Open: 0.147.2 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/_/z?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1604587453_10_item\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMagazine thing range difficult. Piece send material off cover. Art tend guess away would.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Magazine thing range difficult. Piece send material off cover. Art tend guess away would.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EPCDTRDD0S27V71Y9KA5HE5T\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1604587453_10_item\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1604587453_10_item/comments/1e/morning_serious_true/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1604587459.0, \"url\": \"http://reddit.local/r/1604587453_10_item/comments/1e/morning_serious_true/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Morning serious true.\", \"created_utc\": 1604587459.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1712" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 05 Nov 2020 14:44:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "334" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HkTjOc873F19PHW0ysFtuHDIqqBr%2BvYjuhOv6emdvMzE4Ct5Px6BuIA4g0WaNcnWAeBO1LoYhorCnd46rd%2FgctBno%2BnEfL%2FG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/_/z?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments[False].json b/cassettes/channels.views.comments_test.test_list_comments[False].json deleted file mode 100644 index c9bf3d1954..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments[False].json +++ /dev/null @@ -1,1240 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:22:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHW86XXTG19Q4R0WZ0MX8E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNrLU9TXxCUyPivc1NneyiAwyM3DPzNf1Twos9fZIVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsMzV1DktxjgrN9sgod3bSDcq3KPfNybQs9wzLB2lKSS3LTE6Nz0wBmQzhKNUCAFDRO/K6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:22:56 GMT", - "loidcreated=2018-11-16T15%3A22%3A56.080Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:22:56 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHW86XXTG19Q4R0WZ0MX8E" - } - }, - { - "recorded_at": "2018-11-16T15:22:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHWBFY8WG9VEY88E9HSA7M" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjbQ9U9ODw1ITQl2jI9PLA/0100zTXbJNkn3M4/IV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsywuyrEz1zKn0svQvDHTMD0iPsgzzDKxyNnAJBWlKSS3LTE6Nz0wBmQzhKNUCABsYt1a6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHWBFY8WG9VEY88E9HSA7M" - } - }, - { - "recorded_at": "2018-11-16T15:22:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Voluptatibus+voluptatem+ea+ullam+voluptates+dicta+explicabo+cum.+Odio+nesciunt+quia+illum+odit+animi.+A+a+a+odio+quasi+ex+dolorum.+Harum+impedit+ea+sapiente+nulla+doloremque+pariatur+non.%0AAmet+optio+enim+quis+saepe.+Exercitationem+quod+excepturi+iste+quas.%0AAliquam+quaerat+incidunt+quis+dolore.+Nisi+ab+asperiores+rem+mollitia+voluptate+tempore.%0AVoluptas+amet+commodi+aliquid+inventore.+Sit+esse+et+molestiae+atque.+Veritatis+sequi+voluptates+odio+quae.&link_type=any&name=1542381779_veritatis&public_description=Impedit+enim+similique+fugit+aliquam.&title=Ea+fugiat+accusamus+repellat+odio+vitae.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2329-M4LQgZ_M37B8YR60Gio-ObQuKHc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "674" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "421" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381779_veritatis&text=Dicta+dolor+non+odit.+A+et+amet+iste+itaque.+Fugit+eveniet+minima+delectus.&title=Tenetur+architecto+soluta+asperiores." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "203" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381779_veritatis/comments/bb/tenetur_architecto_soluta_asperiores/\", \"id\": \"bb\", \"name\": \"t3_bb\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "167" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "418" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bb/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381779_veritatis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDicta dolor non odit. A et amet iste itaque. Fugit eveniet minima delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dicta dolor non odit. A et amet iste itaque. Fugit eveniet minima delectus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bb\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381779_veritatis\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_64\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381779_veritatis/comments/bb/tenetur_architecto_soluta_asperiores/\", \"locked\": false, \"name\": \"t3_bb\", \"created\": 1542381782.0, \"url\": \"http://reddit.local/r/1542381779_veritatis/comments/bb/tenetur_architecto_soluta_asperiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Tenetur architecto soluta asperiores.\", \"created_utc\": 1542381782.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1741" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "417" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=PXlf3gKEK9GIBiPMS4OvPurP4NabGaXXp%2Ba1Ttz70P%2B1M4xtfc%2FdbW4st85CSXPHoBceAN5aYsK%2FON5CGUZtr7%2FNknJdLpju" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bb/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quidem+temporibus+nostrum+enim+ducimus.+Dolorum+dignissimos+fuga+a+quaerat.+Nihil+eos+at+nam+omnis.&thing_id=t3_bb" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "133" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"83\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t3_bb\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quidem temporibus nostrum enim ducimus. Dolorum dignissimos fuga a quaerat. Nihil eos at nam omnis.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem temporibus nostrum enim ducimus. Dolorum dignissimos fuga a quaerat. Nihil eos at nam omnis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_83\", \"created\": 1542381786.0, \"author_flair_text\": null, \"created_utc\": 1542381786.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1004" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "414" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quaerat+provident+eos+molestiae+totam+corporis+nulla.+Cum+optio+distinctio+repellendus+modi.&thing_id=t1_83" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"84\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_84\", \"created\": 1542381789.0, \"author_flair_text\": null, \"created_utc\": 1542381789.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "990" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "411" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sed+necessitatibus+rem+voluptates.+Fugit+fugiat+harum+laboriosam.+Corrupti+maxime+atque+optio.&thing_id=t1_83" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "128" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"85\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_85\", \"created\": 1542381792.0, \"author_flair_text\": null, \"created_utc\": 1542381792.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "994" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "408" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ipsa+nobis+rem+sit+enim.+Quidem+laboriosam+similique+itaque.&thing_id=t1_83" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "94" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"86\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsa nobis rem sit enim. Quidem laboriosam similique itaque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa nobis rem sit enim. Quidem laboriosam similique itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_86\", \"created\": 1542381795.0, \"author_flair_text\": null, \"created_utc\": 1542381795.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "926" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "405" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ipsum+porro+perferendis+cum+repudiandae+non.+Veniam+vitae+consectetur+dicta+fugit.&thing_id=t3_bb" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "116" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"87\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t3_bb\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsum porro perferendis cum repudiandae non. Veniam vitae consectetur dicta fugit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsum porro perferendis cum repudiandae non. Veniam vitae consectetur dicta fugit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_87\", \"created\": 1542381798.0, \"author_flair_text\": null, \"created_utc\": 1542381798.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "970" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "402" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quaerat+provident+eos+molestiae+totam+corporis+nulla.+Cum+optio+distinctio+repellendus+modi.&thing_id=t1_87" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"88\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_88\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "990" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "399" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sed+necessitatibus+rem+voluptates.+Fugit+fugiat+harum+laboriosam.+Corrupti+maxime+atque+optio.&thing_id=t1_87" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "128" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"89\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_89\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "994" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "399" - ], - "x-ratelimit-used": [ - "9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ipsa+nobis+rem+sit+enim.+Quidem+laboriosam+similique+itaque.&thing_id=t1_87" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "94" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsa nobis rem sit enim. Quidem laboriosam similique itaque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa nobis rem sit enim. Quidem laboriosam similique itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_8a\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "926" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "399" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2330-OcgUPedSA__awQO-f5cDk4gN7Xo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Xe4SGH5S3nB19nFxRK; loidcreated=2018-11-16T15%3A22%3A56.080Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bb/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381779_veritatis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDicta dolor non odit. A et amet iste itaque. Fugit eveniet minima delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dicta dolor non odit. A et amet iste itaque. Fugit eveniet minima delectus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bb\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381779_veritatis\", \"hidden\": false, \"num_comments\": 8, \"thumbnail\": \"\", \"subreddit_id\": \"t5_64\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381779_veritatis/comments/bb/tenetur_architecto_soluta_asperiores/\", \"locked\": false, \"name\": \"t3_bb\", \"created\": 1542381782.0, \"url\": \"http://reddit.local/r/1542381779_veritatis/comments/bb/tenetur_architecto_soluta_asperiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Tenetur architecto soluta asperiores.\", \"created_utc\": 1542381782.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"84\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_84\", \"created\": 1542381789.0, \"author_flair_text\": null, \"created_utc\": 1542381789.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"85\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_85\", \"created\": 1542381792.0, \"author_flair_text\": null, \"created_utc\": 1542381792.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"86\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_83\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsa nobis rem sit enim. Quidem laboriosam similique itaque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa nobis rem sit enim. Quidem laboriosam similique itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_86\", \"created\": 1542381795.0, \"author_flair_text\": null, \"created_utc\": 1542381795.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"83\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t3_bb\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quidem temporibus nostrum enim ducimus. Dolorum dignissimos fuga a quaerat. Nihil eos at nam omnis.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem temporibus nostrum enim ducimus. Dolorum dignissimos fuga a quaerat. Nihil eos at nam omnis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_83\", \"created\": 1542381786.0, \"author_flair_text\": null, \"created_utc\": 1542381786.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"88\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_88\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"89\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_89\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_64\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bb\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t1_87\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsa nobis rem sit enim. Quidem laboriosam similique itaque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa nobis rem sit enim. Quidem laboriosam similique itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_8a\", \"created\": 1542381801.0, \"author_flair_text\": null, \"created_utc\": 1542381801.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"87\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHWBFY8WG9VEY88E9HSA7M\", \"parent_id\": \"t3_bb\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsum porro perferendis cum repudiandae non. Veniam vitae consectetur dicta fugit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsum porro perferendis cum repudiandae non. Veniam vitae consectetur dicta fugit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381779_veritatis\", \"score_hidden\": false, \"name\": \"t1_87\", \"created\": 1542381798.0, \"author_flair_text\": null, \"created_utc\": 1542381798.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "9343" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "389" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pwwKJa%2BzwbwZYQij6a20WouhGYc6JYMO0YOSi6CXUIKbtwvQR4jvHOHRyR7qjy6%2Ff1UvjmFNhwjG3Fe8VyK9aoG6DmydRwq%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bb/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments[True].json b/cassettes/channels.views.comments_test.test_list_comments[True].json deleted file mode 100644 index d808a79a54..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments[True].json +++ /dev/null @@ -1,1240 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:22:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHV2B6D15J5D54AVX9FNB3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjLXNTMKKzVOLc1xCTcodwvIiSjTLapwTM/ySneJVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csy/GvdPS3SKn0Ng82CzQIKTX3S3cszyj1dyoDW5eSWpaZnBqfmQIyGcJRqgUAayg1aboAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=v5Ce7DfMLrPK6611mm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:22:17 GMT", - "loidcreated=2018-11-16T15%3A22%3A17.311Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:22:17 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHV2B6D15J5D54AVX9FNB3" - } - }, - { - "recorded_at": "2018-11-16T15:22:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHV5MM5Y1TMX3FRXW9PEJF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NTQuCQBRF/4rMMgpsRjLaVTvJDLJwN0zPJw2l8yWlRf89J3ct7+Wec99EAKBzvFU3bMgqIJTR5WxtqshEsUhA9nGdiJ1WVJ5fh9ylZBoQ7LS06Lj0BFuE4dD9BLztNXrLBYVF67cO1FhNfLJYDeD17y4rwGVmU8yPxur62VTbdM9y1d3ZyUMlPiQgl6U3j4F8vg8zIQi6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHV5MM5Y1TMX3FRXW9PEJF" - } - }, - { - "recorded_at": "2018-11-16T15:22:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Suscipit+aperiam+molestias+debitis+delectus.+Voluptates+ullam+sunt+voluptatem+aliquid+voluptatem+optio+neque.+Labore+molestiae+aut+corrupti+quis.%0ANulla+dolor+optio+fugit+quod+nisi+provident.+Impedit+quo+incidunt+at+quidem+nulla+quas.+Vero+aspernatur+beatae+alias+eligendi+magni+blanditiis+aut+magnam.&link_type=any&name=1542381740_quasi&public_description=Nulla+delectus+repellat+totam+reprehenderit+est+facere.&title=Non+harum+atque+ex+ratione.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2327-62Vu3eulDW0wFPlXv-rxAgjJgDY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "518" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "459" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381740_quasi&text=Expedita+ea+esse+magni+ipsam+praesentium+vero.+Mollitia+dolor+veniam+amet+sequi+a+corporis.&title=Eos+modi+soluta+tempore+iusto." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "208" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381740_quasi/comments/ba/eos_modi_soluta_tempore_iusto/\", \"id\": \"ba\", \"name\": \"t3_ba\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ba/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381740_quasi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita ea esse magni ipsam praesentium vero. Mollitia dolor veniam amet sequi a corporis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita ea esse magni ipsam praesentium vero. Mollitia dolor veniam amet sequi a corporis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ba\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381740_quasi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_63\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381740_quasi/comments/ba/eos_modi_soluta_tempore_iusto/\", \"locked\": false, \"name\": \"t3_ba\", \"created\": 1542381744.0, \"url\": \"http://reddit.local/r/1542381740_quasi/comments/ba/eos_modi_soluta_tempore_iusto/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Eos modi soluta tempore iusto.\", \"created_utc\": 1542381744.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1736" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bz4sX7fr09g3lYuWg2XrzPkB2omYQ1n67eG0OTZNUSqCzZctyRhxQHcU%2FrTMusZIAzB9SoPP4vQWHcB9L4LtTOQf6l1CyYO0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ba/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ab+officia+animi+ut+occaecati+praesentium.+Soluta+eos+recusandae+sapiente+repellendus+qui.&thing_id=t3_ba" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "124" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7v\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t3_ba\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ab officia animi ut occaecati praesentium. Soluta eos recusandae sapiente repellendus qui.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAb officia animi ut occaecati praesentium. Soluta eos recusandae sapiente repellendus qui.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7v\", \"created\": 1542381747.0, \"author_flair_text\": null, \"created_utc\": 1542381747.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "982" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Numquam+earum+nobis+amet+aspernatur+nesciunt+voluptas+cum.+Voluptas+animi+enim+commodi+odit.&thing_id=t1_7v" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7w\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Numquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7w\", \"created\": 1542381750.0, \"author_flair_text\": null, \"created_utc\": 1542381750.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "986" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "450" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ea+explicabo+expedita+dicta+eligendi.+Hic+eveniet+vel+nihil+culpa+qui+occaecati.&thing_id=t1_7v" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "114" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ea explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEa explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7x\", \"created\": 1542381753.0, \"author_flair_text\": null, \"created_utc\": 1542381753.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "962" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "447" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sit+quisquam+ratione+blanditiis+blanditiis+adipisci+assumenda+et.+Quo+molestiae+esse+voluptatibus.&thing_id=t1_7v" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "132" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7y\", \"created\": 1542381756.0, \"author_flair_text\": null, \"created_utc\": 1542381756.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "998" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "444" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Minus+blanditiis+tempore+aut+facere+voluptates+vero.+Sint+ex+nobis+quas+veniam.&thing_id=t3_ba" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "113" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t3_ba\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Minus blanditiis tempore aut facere voluptates vero. Sint ex nobis quas veniam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinus blanditiis tempore aut facere voluptates vero. Sint ex nobis quas veniam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7z\", \"created\": 1542381759.0, \"author_flair_text\": null, \"created_utc\": 1542381759.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "441" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Numquam+earum+nobis+amet+aspernatur+nesciunt+voluptas+cum.+Voluptas+animi+enim+commodi+odit.&thing_id=t1_7z" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"80\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Numquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_80\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "986" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "438" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ea+explicabo+expedita+dicta+eligendi.+Hic+eveniet+vel+nihil+culpa+qui+occaecati.&thing_id=t1_7z" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "114" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"81\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ea explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEa explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_81\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "962" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "438" - ], - "x-ratelimit-used": [ - "9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sit+quisquam+ratione+blanditiis+blanditiis+adipisci+assumenda+et.+Quo+molestiae+esse+voluptatibus.&thing_id=t1_7z" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "132" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"82\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_82\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "998" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "438" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:22:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2328-Aqf4q47aJciy7mJaLpo2iVzPTsM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=v5Ce7DfMLrPK6611mm; loidcreated=2018-11-16T15%3A22%3A17.311Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ba/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381740_quasi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita ea esse magni ipsam praesentium vero. Mollitia dolor veniam amet sequi a corporis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita ea esse magni ipsam praesentium vero. Mollitia dolor veniam amet sequi a corporis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ba\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381740_quasi\", \"hidden\": false, \"num_comments\": 8, \"thumbnail\": \"\", \"subreddit_id\": \"t5_63\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381740_quasi/comments/ba/eos_modi_soluta_tempore_iusto/\", \"locked\": false, \"name\": \"t3_ba\", \"created\": 1542381744.0, \"url\": \"http://reddit.local/r/1542381740_quasi/comments/ba/eos_modi_soluta_tempore_iusto/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Eos modi soluta tempore iusto.\", \"created_utc\": 1542381744.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7w\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Numquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7w\", \"created\": 1542381750.0, \"author_flair_text\": null, \"created_utc\": 1542381750.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ea explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEa explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7x\", \"created\": 1542381753.0, \"author_flair_text\": null, \"created_utc\": 1542381753.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7y\", \"created\": 1542381756.0, \"author_flair_text\": null, \"created_utc\": 1542381756.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"7v\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t3_ba\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ab officia animi ut occaecati praesentium. Soluta eos recusandae sapiente repellendus qui.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAb officia animi ut occaecati praesentium. Soluta eos recusandae sapiente repellendus qui.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7v\", \"created\": 1542381747.0, \"author_flair_text\": null, \"created_utc\": 1542381747.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"80\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Numquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_80\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"81\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ea explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEa explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_81\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_63\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_ba\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"82\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t1_7z\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_82\", \"created\": 1542381762.0, \"author_flair_text\": null, \"created_utc\": 1542381762.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"7z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEHV5MM5Y1TMX3FRXW9PEJF\", \"parent_id\": \"t3_ba\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Minus blanditiis tempore aut facere voluptates vero. Sint ex nobis quas veniam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinus blanditiis tempore aut facere voluptates vero. Sint ex nobis quas veniam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542381740_quasi\", \"score_hidden\": false, \"name\": \"t1_7z\", \"created\": 1542381759.0, \"author_flair_text\": null, \"created_utc\": 1542381759.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "9378" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:22:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "428" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=AOhr6sMmCNPghNjkoPUmpd7RH4VS4mdkcg49%2B07UsfSFyFISHUarvzaX9fozgdOQNV3Kkz3pvJDEQmmLhMo4xD51UXHGpuzk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ba/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments_anonymous.json b/cassettes/channels.views.comments_test.test_list_comments_anonymous.json deleted file mode 100644 index cbec5c8411..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments_anonymous.json +++ /dev/null @@ -1,676 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:48:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGV86QAH0JQVFXX7R50YHD" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNzQqCQACEX0X2GAlq/x0rBEskL0VdFltHXaRd2xXbiN49N08d52O+mTfJGIPWtJU1BFk7xJ8GbriJo/huTB4dEXW12Jv0sT2vylKmZOwQmIYraMqtMJl7Xs9+Pm1fDezIDZmCsl3N5IBGNikUvVj9vyU4pcHT9Wc41MlCimtVhF0idhe9tE6OjjNQntvhIZDPF3pRKLK4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:57 GMT", - "loidcreated=2018-08-24T17%3A48%3A57.391Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:48:57 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGV86QAH0JQVFXX7R50YHD" - } - }, - { - "recorded_at": "2018-08-24T17:48:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Et+voluptas+praesentium+a+officia.+Officia+earum+aut+deserunt+exercitationem+possimus+eum+veniam.+Atque+facilis+blanditiis+numquam+dignissimos+voluptates.+Aliquid+maxime+quam+delectus+tempore.%0AQuisquam+suscipit+aperiam+nesciunt+sequi+ea+adipisci+at.+Itaque+vitae+aut+saepe+necessitatibus.+Occaecati+dolorum+fuga+assumenda+occaecati+harum+et+aliquam.&link_type=any&name=1535132937_in&public_description=Accusantium+hic+temporibus+ex+saepe.+Ex+consequatur+saepe+illum+aspernatur.&title=Molestias+temporibus+laborum+rerum.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 142-FBLILmxxdIPeIvknJxQqCW9ggoQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "592" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:48:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "63" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CBD756K3RS4Z59TCJ46QCHZJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdZN9yo2C3ELyc+LiKiwDHItDiuwCEl2N0t2ckxX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVlURWlPjlR1iUpvmHhbmaWbilF/sHF/l6WZaD9KSklmUmp8ZnpoAMhnCUagFfkQsLuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CBD756K3RS4Z59TCJ46QCHZJ" - } - }, - { - "recorded_at": "2018-08-24T17:49:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535132937_in&text=Modi+corrupti+aliquam+quibusdam+nostrum+id+harum+nisi.+Voluptatem+rem+adipisci+autem.&title=Sed+quas+necessitatibus+distinctio+aliquam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 143-gJs6TFTonXXx9REsVp8TcG6cBAg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535132937_in/comments/5/sed_quas_necessitatibus_distinctio_aliquam/\", \"id\": \"5\", \"name\": \"t3_5\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "59" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 143-gJs6TFTonXXx9REsVp8TcG6cBAg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/5/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535132937_in\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi corrupti aliquam quibusdam nostrum id harum nisi. Voluptatem rem adipisci autem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Modi corrupti aliquam quibusdam nostrum id harum nisi. Voluptatem rem adipisci autem.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBD756K3RS4Z59TCJ46QCHZJ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535132937_in\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_k\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535132937_in/comments/5/sed_quas_necessitatibus_distinctio_aliquam/\", \"locked\": false, \"name\": \"t3_5\", \"created\": 1535132941.0, \"url\": \"http://reddit.local/r/1535132937_in/comments/5/sed_quas_necessitatibus_distinctio_aliquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sed quas necessitatibus distinctio aliquam.\", \"created_utc\": 1535132941.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1746" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "59" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VYstf46nVEfqTQ3UmDKYevUKci7M9reXZC9Mvji6ZBhDhYJv%2FTsqnysDhNHestws66mSVg%2Bv5SUVVYt8dhV7YVH5FWWXyKrM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/5/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Velit+officia+nostrum+quis+error.+Totam+fugiat+odit+harum+culpa.&thing_id=t3_5" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 143-gJs6TFTonXXx9REsVp8TcG6cBAg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "97" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_k\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_5\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBD756K3RS4Z59TCJ46QCHZJ\", \"parent_id\": \"t3_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Velit officia nostrum quis error. Totam fugiat odit harum culpa.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit officia nostrum quis error. Totam fugiat odit harum culpa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132937_in\", \"score_hidden\": false, \"name\": \"t1_3\", \"created\": 1535132944.0, \"author_flair_text\": null, \"created_utc\": 1535132944.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "922" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "56" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-91PXK6Ko1QEAXGhltx1v7mZPdMc\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "53" - ], - "x-ratelimit-used": [ - "3" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T17:49:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -91PXK6Ko1QEAXGhltx1v7mZPdMc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hkKpsdSOI2UKXcCvZ0; loidcreated=2018-08-24T17%3A48%3A57.391Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/5/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535132937_in\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi corrupti aliquam quibusdam nostrum id harum nisi. Voluptatem rem adipisci autem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Modi corrupti aliquam quibusdam nostrum id harum nisi. Voluptatem rem adipisci autem.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBD756K3RS4Z59TCJ46QCHZJ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535132937_in\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_k\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/1535132937_in/comments/5/sed_quas_necessitatibus_distinctio_aliquam/\", \"locked\": false, \"name\": \"t3_5\", \"created\": 1535132941.0, \"url\": \"http://reddit.local/r/1535132937_in/comments/5/sed_quas_necessitatibus_distinctio_aliquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sed quas necessitatibus distinctio aliquam.\", \"created_utc\": 1535132941.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_k\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_5\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBD756K3RS4Z59TCJ46QCHZJ\", \"parent_id\": \"t3_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Velit officia nostrum quis error. Totam fugiat odit harum culpa.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit officia nostrum quis error. Totam fugiat odit harum culpa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132937_in\", \"score_hidden\": false, \"name\": \"t1_3\", \"created\": 1535132944.0, \"author_flair_text\": null, \"created_utc\": 1535132944.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2615" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296" - ], - "x-ratelimit-reset": [ - "53" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=20FPF4lKQByIx1oYsDgLgVh7W68WpugseE8xkOfPB2LZMrrohETfxgLMtO%2FuVwgLBDqB7d6wffyL1VBAmoRSebObxzgATEZA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/5/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments_forbidden.json b/cassettes/channels.views.comments_test.test_list_comments_forbidden.json deleted file mode 100644 index 2a93ac7d37..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments_forbidden.json +++ /dev/null @@ -1,759 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:23:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXEHDBJAWFBH478SCF729" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4V0NJoATRzc0AQHJwcisrxg+5CCpdiCtRr/XSqb472559w3KRlDY2BQLXZkE5CY0mg1GjzteZy0Ge9KWRx07kbFZPS6Z2QZEHz2QqMB4Qm6DsOp+wlgcD16ywVLjdpvDVNztfBJYzWB9d/d+ToUDdoUGmu2VdolbtzdIK+kPXqI40MwBMG9eQ7k8wUhdlvcugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sun, 15-Nov-2020 15:23:35 GMT", - "loidcreated=2018-11-16T15%3A23%3A35.308Z; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sun, 15-Nov-2020 15:23:35 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXEHDBJAWFBH478SCF729" - } - }, - { - "recorded_at": "2018-11-16T15:23:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ut+nesciunt+totam+facilis+iure+deserunt+consequuntur.+Maxime+sint+delectus+repudiandae+dolor+alias+placeat.+Recusandae+explicabo+distinctio+dolor+labore+ea.%0ARem+pariatur+temporibus+nemo+neque+placeat.+Facere+dignissimos+et+veritatis.%0AUnde+nisi+assumenda+aut+ducimus+unde+non+ipsum.+Ea+repudiandae+reprehenderit+magni.+Ullam+voluptatibus+placeat+aspernatur+a+temporibus+autem+facilis.+Nihil+corporis+quae+corporis+voluptatem+libero.&link_type=any&name=1542381815_molestiae&public_description=Minima+eveniet+mollitia+vel+eos.&title=Voluptas+tempore+reiciendis+officia.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2331-useWGd2AkUdnamZKrXyuocm1zqU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "642" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "385" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXMTZB34JB7G773JZ98EB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQvCIBzFv8rwGAWiw6JjEbRLSxZlXWTqP7Ioh46WRN+92W4d3+P9fu+Naq0hBNm6GzzQPEOEUjIJS75fzMg0Xwu+Om4rQRpMRVfdTY7GGYJXYz0EaRNBGcZ99xPINjaQLApqDz5tg3ZDNUrJw7kHL3931YYZUFdedjTGmpx2pXRFcVDM8wQZeFoN0ppkHgL6fAHWigmAugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXMTZB34JB7G773JZ98EB" - } - }, - { - "recorded_at": "2018-11-16T15:23:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEHXMTZB34JB7G773JZ98EB&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2331-useWGd2AkUdnamZKrXyuocm1zqU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542381815_molestiae/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "378" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381815_molestiae/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542381815_molestiae" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2332-sCQVB8274HXQEYPSX2p03XwSmd4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "378" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381815_molestiae&text=Nesciunt+fugit+velit+explicabo.+Est+tenetur+exercitationem+ipsam+deleniti+facere.&title=Totam+ad+dolorem+ex+perspiciatis+quis+officiis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2332-sCQVB8274HXQEYPSX2p03XwSmd4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381815_molestiae/comments/bc/totam_ad_dolorem_ex_perspiciatis_quis_officiis/\", \"id\": \"bc\", \"name\": \"t3_bc\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "378" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2332-sCQVB8274HXQEYPSX2p03XwSmd4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bc/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381815_molestiae\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENesciunt fugit velit explicabo. Est tenetur exercitationem ipsam deleniti facere.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nesciunt fugit velit explicabo. Est tenetur exercitationem ipsam deleniti facere.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bc\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEHXMTZB34JB7G773JZ98EB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381815_molestiae\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_65\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381815_molestiae/comments/bc/totam_ad_dolorem_ex_perspiciatis_quis_officiis/\", \"locked\": false, \"name\": \"t3_bc\", \"created\": 1542381822.0, \"url\": \"http://reddit.local/r/1542381815_molestiae/comments/bc/totam_ad_dolorem_ex_perspiciatis_quis_officiis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Totam ad dolorem ex perspiciatis quis officiis.\", \"created_utc\": 1542381822.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "378" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=j0sW7On18p%2Fkvp0oA%2BKArtLWgzVvsVXwp8nYqN7J3YUDrPfGldtpqr9A4G3W%2FcPPG2d5bMvrhqQ12ro9TucxvZiBgambWe6L" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bc/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:23:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXVB133SY0Z4A3HX765NT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjbWdUy3KMsNiUwuNTQNN3LKcncsM/bKMPUyS48IVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Cs83VyDEks8CoMSja1qIpw1zV1SS0zN/HMyrRIBmlKSS3LTE6Nz0wBmQzhKNUCAPNaGk26AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEHXVB133SY0Z4A3HX765NT" - } - }, - { - "recorded_at": "2018-11-16T15:23:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2333-Ag8vmTYcu15W2BjGAv3Jh5J6gXQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9NlTZH0lb2dmFEqCHB; loidcreated=2018-11-16T15%3A23%3A35.308Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bc/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:23:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "375" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=X%2F6TR3ghSC6bLYjvPmnCdRd7%2B%2BwxDeb%2FbYJBkANlTvx9LRfLJtZsZDD39FBCUN8SFFSNCN34fSWOlMs2aHhmEUEwgDHtaQXh" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/comments/bc/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments_more.json b/cassettes/channels.views.comments_test.test_list_comments_more.json deleted file mode 100644 index f44482f203..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments_more.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-13T17:52:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQ6CMBREr0K6NJq0IdXgGqPERLbqpqHlAwWF5rdq1Xh3qaxczsu8mTcplAJrhRs66Mk6IoyvFvIl2+1R7pzPXFvjsMnbvWGyP7kHmUcEvNEIVuggxEtKR/bzhXsaCCMSCgQMXauGCc1CQqhGsfl/ywVkPO3i5JYeeH9tLmesfIYsQRqcEu5agdBlGJ4C+XwBUKJ7CrgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 13 Nov 2017 17:52:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=DVnLYv1DIpqIbHDd6y; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Nov-2019 17:52:31 GMT", - "loidcreated=2017-11-13T17%3A52%3A31.739Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Nov-2019 17:52:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-13T17:52:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-bzbjGXbHtxItjgroEOjKp1bnYtw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=DVnLYv1DIpqIbHDd6y; loidcreated=2017-11-13T17%3A52%3A31.739Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"dedp2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post!\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post!\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2GMJBJJ46477S1K0NQ3EE1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.dedp2\", \"hidden\": false, \"num_comments\": 68, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dedp2/comments/1/new_post/\", \"locked\": false, \"name\": \"t3_1\", \"created\": 1508356134.0, \"url\": \"http://reddit.local/r/dedp2/comments/1/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"new post\", \"created_utc\": 1508356134.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"k;lkl;\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ek;lkl;\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1508780725.0, \"author_flair_text\": null, \"created_utc\": 1508780725.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"oasd\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eoasd\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1508780714.0, \"author_flair_text\": null, \"created_utc\": 1508780714.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"m\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Em\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_m\", \"created\": 1508442442.0, \"author_flair_text\": null, \"created_utc\": 1508442442.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ea\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_1\", \"created\": 1508439032.0, \"author_flair_text\": null, \"created_utc\": 1508439032.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_2\", \"created\": 1508439055.0, \"author_flair_text\": null, \"created_utc\": 1508439055.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"c\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ec\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_3\", \"created\": 1508439058.0, \"author_flair_text\": null, \"created_utc\": 1508439058.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"4\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"d\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ed\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_4\", \"created\": 1508439060.0, \"author_flair_text\": null, \"created_utc\": 1508439060.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"test\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_j\", \"created\": 1508441351.0, \"author_flair_text\": null, \"created_utc\": 1508441351.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"more\", \"data\": {\"count\": 0, \"parent_id\": \"t1_e8v\", \"children\": [], \"name\": \"t1__\", \"id\": \"_\"}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8v\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8u\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test d\", \"edited\": 1510244426.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test d\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8v\", \"created\": 1510244138.0, \"author_flair_text\": null, \"created_utc\": 1510244138.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8u\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8t\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test c\", \"edited\": 1510244419.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test c\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8u\", \"created\": 1510244135.0, \"author_flair_text\": null, \"created_utc\": 1510244135.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8t\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8s\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test b\", \"edited\": 1510244414.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8t\", \"created\": 1510244132.0, \"author_flair_text\": null, \"created_utc\": 1510244132.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8s\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_k\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test a\", \"edited\": 1510244408.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test a\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8s\", \"created\": 1510244129.0, \"author_flair_text\": null, \"created_utc\": 1510244129.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"test2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_k\", \"created\": 1508441445.0, \"author_flair_text\": null, \"created_utc\": 1508441445.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"ignore this one\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eignore this one\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_d\", \"created\": 1508439674.0, \"author_flair_text\": null, \"created_utc\": 1508439674.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_a\", \"created\": 1508439089.0, \"author_flair_text\": null, \"created_utc\": 1508439089.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"ignore this one\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eignore this one\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e\", \"created\": 1508439679.0, \"author_flair_text\": null, \"created_utc\": 1508439679.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_b\", \"created\": 1508439658.0, \"author_flair_text\": null, \"created_utc\": 1508439658.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_f\", \"created\": 1508439689.0, \"author_flair_text\": null, \"created_utc\": 1508439689.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_g\", \"created\": 1508439694.0, \"author_flair_text\": null, \"created_utc\": 1508439694.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_h\", \"created\": 1508439698.0, \"author_flair_text\": null, \"created_utc\": 1508439698.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a4\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a4\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_i\", \"created\": 1508439702.0, \"author_flair_text\": null, \"created_utc\": 1508439702.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_6\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_9\", \"created\": 1508439084.0, \"author_flair_text\": null, \"created_utc\": 1508439084.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_6\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_c\", \"created\": 1508439666.0, \"author_flair_text\": null, \"created_utc\": 1508439666.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"6\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_6\", \"created\": 1508439067.0, \"author_flair_text\": null, \"created_utc\": 1508439067.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_7\", \"created\": 1508439071.0, \"author_flair_text\": null, \"created_utc\": 1508439071.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_8\", \"created\": 1508439075.0, \"author_flair_text\": null, \"created_utc\": 1508439075.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"5\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_5\", \"created\": 1508439062.0, \"author_flair_text\": null, \"created_utc\": 1508439062.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1508441468.0, \"author_flair_text\": null, \"created_utc\": 1508441468.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_p\", \"created\": 1508782291.0, \"author_flair_text\": null, \"created_utc\": 1508782291.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8x\", \"created\": 1510244977.0, \"author_flair_text\": null, \"created_utc\": 1510244977.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8y\", \"created\": 1510244981.0, \"author_flair_text\": null, \"created_utc\": 1510244981.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8z\", \"created\": 1510244984.0, \"author_flair_text\": null, \"created_utc\": 1510244984.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e90\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 4\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 4\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e90\", \"created\": 1510244987.0, \"author_flair_text\": null, \"created_utc\": 1510244987.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e91\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 5\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 5\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e91\", \"created\": 1510244990.0, \"author_flair_text\": null, \"created_utc\": 1510244990.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e92\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 6\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 6\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e92\", \"created\": 1510244994.0, \"author_flair_text\": null, \"created_utc\": 1510244994.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e93\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 6\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 6\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e93\", \"created\": 1510245015.0, \"author_flair_text\": null, \"created_utc\": 1510245015.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e94\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 7\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 7\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e94\", \"created\": 1510245019.0, \"author_flair_text\": null, \"created_utc\": 1510245019.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e95\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 8\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 8\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e95\", \"created\": 1510245022.0, \"author_flair_text\": null, \"created_utc\": 1510245022.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e96\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 9\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 9\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e96\", \"created\": 1510245025.0, \"author_flair_text\": null, \"created_utc\": 1510245025.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e97\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 10\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 10\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e97\", \"created\": 1510245028.0, \"author_flair_text\": null, \"created_utc\": 1510245028.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e99\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 11\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 11\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e99\", \"created\": 1510245063.0, \"author_flair_text\": null, \"created_utc\": 1510245063.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 12\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 12\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9b\", \"created\": 1510245158.0, \"author_flair_text\": null, \"created_utc\": 1510245158.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 13\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 13\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9c\", \"created\": 1510245163.0, \"author_flair_text\": null, \"created_utc\": 1510245163.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 14\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 14\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9d\", \"created\": 1510245166.0, \"author_flair_text\": null, \"created_utc\": 1510245166.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 15\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 15\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9f\", \"created\": 1510245329.0, \"author_flair_text\": null, \"created_utc\": 1510245329.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 16\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 16\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9g\", \"created\": 1510245332.0, \"author_flair_text\": null, \"created_utc\": 1510245332.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 21\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 21\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9h\", \"created\": 1510245340.0, \"author_flair_text\": null, \"created_utc\": 1510245340.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 22\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 22\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9i\", \"created\": 1510245344.0, \"author_flair_text\": null, \"created_utc\": 1510245344.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 23\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 23\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9j\", \"created\": 1510245348.0, \"author_flair_text\": null, \"created_utc\": 1510245348.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9k\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 24\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 24\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9k\", \"created\": 1510245351.0, \"author_flair_text\": null, \"created_utc\": 1510245351.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"more\", \"data\": {\"count\": 16, \"parent_id\": \"t3_1\", \"children\": [\"e9l\", \"e9m\", \"e9n\", \"e9q\"], \"name\": \"t1_e9l\", \"id\": \"e9l\"}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "40657" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 13 Nov 2017 17:52:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "449" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hZDV1fgy27hHYNEGx4n2Pmz%2BuE5wEx14QwhAroIut3rxV%2BjrKCcuL%2FjHCaMpVZ%2BO9%2BUJPExFi983yLRmTuLQj1wsy7PM0EHW" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments_none.json b/cassettes/channels.views.comments_test.test_list_comments_none.json deleted file mode 100644 index 1a0994a014..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments_none.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:49:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGW1MRQFGFE0SM9Y51E7HT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdXNDExMqQr2ySvKSg9y96r0ywuzdDct98i1rCxW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaFmrialxoF+pf5VyV7WLp6+JqYWDhVhjomFWaD9KSklmUmp8ZnpoAMhnCUagErBRpYuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=on7HkfT8vm8jKHJPEU; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:49:23 GMT", - "loidcreated=2018-08-24T17%3A49%3A23.456Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:49:23 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGW1MRQFGFE0SM9Y51E7HT" - } - }, - { - "recorded_at": "2018-08-24T17:49:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Cum+optio+totam+numquam+sed+quasi+est.+Aspernatur+minus+hic+debitis+dolor+fugit.%0ASed+consectetur+aspernatur+excepturi+a+cum+tempora.+Facere+repellendus+in+assumenda+neque+necessitatibus+mollitia+cupiditate.+Natus+consectetur+molestias+nisi+harum+sunt.%0AAb+rerum+reiciendis+neque+impedit+magnam+reiciendis.+Ad+in+voluptas+quasi+blanditiis+consequatur+ut.&link_type=any&name=1535132963_officiis&public_description=Rem+beatae+reprehenderit+et+dicta.+Nulla+error+aspernatur+voluptatibus+excepturi.&title=Ab+repellat+itaque+est+cumque+illum.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 145-iQadzSLnrjgRGJyNnV9G5wHm9ys" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "611" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "37" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGW7ZG13PANK53NT2TVXX2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdP18g7xDa1KLQ9N8zF3dU73KfTKcfTxD9etzLRQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYl5xqkeVSVeOgGVyQVWJZVOocZhQQ4mxtX5eeD9KSklmUmp8ZnpoAMhnCUagGcavXluAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGW7ZG13PANK53NT2TVXX2" - } - }, - { - "recorded_at": "2018-08-24T17:49:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPGW7ZG13PANK53NT2TVXX2&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 145-iQadzSLnrjgRGJyNnV9G5wHm9ys" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535132963_officiis/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535132963_officiis/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535132963_officiis" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 146-JKTMUzewUfL7ECgLqJlALOW-yi8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535132963_officiis&text=Fuga+aperiam+minus+eos+natus.+Cum+nulla+ut+corrupti+nostrum+eum.+Earum+itaque+dolorem+eum.&title=Hic+ducimus+vel+est+officia." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 146-JKTMUzewUfL7ECgLqJlALOW-yi8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "208" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535132963_officiis/comments/7/hic_ducimus_vel_est_officia/\", \"id\": \"7\", \"name\": \"t3_7\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "154" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 146-JKTMUzewUfL7ECgLqJlALOW-yi8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/7/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535132963_officiis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFuga aperiam minus eos natus. Cum nulla ut corrupti nostrum eum. Earum itaque dolorem eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Fuga aperiam minus eos natus. Cum nulla ut corrupti nostrum eum. Earum itaque dolorem eum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPGW7ZG13PANK53NT2TVXX2\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535132963_officiis\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535132963_officiis/comments/7/hic_ducimus_vel_est_officia/\", \"locked\": false, \"name\": \"t3_7\", \"created\": 1535132970.0, \"url\": \"http://reddit.local/r/1535132963_officiis/comments/7/hic_ducimus_vel_est_officia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Hic ducimus vel est officia.\", \"created_utc\": 1535132970.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1735" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=XEvQevdZzAF5l32%2B%2B9gxi85KDa6SkosgCaAjxSlKb%2F%2Bkd0VTskbR9GIqK7mqQqkIqh4lmBzUEJNEgTJze9P59dPxLD7ovOTP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/7/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 146-JKTMUzewUfL7ECgLqJlALOW-yi8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=on7HkfT8vm8jKHJPEU; loidcreated=2018-08-24T17%3A49%3A23.456Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/7/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535132963_officiis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFuga aperiam minus eos natus. Cum nulla ut corrupti nostrum eum. Earum itaque dolorem eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Fuga aperiam minus eos natus. Cum nulla ut corrupti nostrum eum. Earum itaque dolorem eum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPGW7ZG13PANK53NT2TVXX2\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535132963_officiis\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535132963_officiis/comments/7/hic_ducimus_vel_est_officia/\", \"locked\": false, \"name\": \"t3_7\", \"created\": 1535132970.0, \"url\": \"http://reddit.local/r/1535132963_officiis/comments/7/hic_ducimus_vel_est_officia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Hic ducimus vel est officia.\", \"created_utc\": 1535132970.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1735" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=oHX3KUBQFFMsye5Y6MRvKGfra7om5D9fYaNluZdLAT795eBvzRoAgdZBj3l7c2h4199sml4%2FLlnvowdQYtYrmT7RBTcPaM%2Bz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/7/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_comments_not_found.json b/cassettes/channels.views.comments_test.test_list_comments_not_found.json deleted file mode 100644 index 57421726c2..0000000000 --- a/cassettes/channels.views.comments_test.test_list_comments_not_found.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGST0F5MHSN8FRP6G5J0KJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysjTUdQ4szzQPz03xyK4MsrR0z6wIszD2yvcPSgkpVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csi4rKNC009koLNjcLKYoKDfDPc0rxcEryiPBNBmlKSS3LTE6Nz0wBmQzhKNUCAEXlUZS6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=5p7SWCpJ6MblLuyzNT; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:04:07 GMT", - "loidcreated=2018-11-16T15%3A04%3A07.331Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:04:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGST0F5MHSN8FRP6G5J0KJ" - } - }, - { - "recorded_at": "2018-11-16T15:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2291-CQwi7WmdHkyR99GixV83JoORdTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=5p7SWCpJ6MblLuyzNT; loidcreated=2018-11-16T15%3A04%3A07.331Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/missing/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Not Found\", \"error\": 404}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FWCq0h1x6Ht%2BG%2FpYLJT6R2P6XErFC%2BeWq696M%2FTQ682LKtjsHMTkKgdXDYNuDB9X727D0J%2FekEb1mkloannUr25jsYPF0qoy" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/comments/missing/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_list_deleted_comments.json b/cassettes/channels.views.comments_test.test_list_deleted_comments.json deleted file mode 100644 index b06bae1749..0000000000 --- a/cassettes/channels.views.comments_test.test_list_deleted_comments.json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-09-27T16:23:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDLUdS7K90uKygwoCioMNvBINXcNzsg0TCuvtAgzUdJRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2JbmUZJYXupj5lGbkRxlZpBsGZwf5lgR5Z1gmg3SkpJZlJqfGZ6aAjIVwlGoBXoPPebQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 27 Sep 2017 16:23:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=GYxWDXc5ej5XsNmjUn; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 27-Sep-2019 16:23:04 GMT", - "loidcreated=2017-09-27T16%3A23%3A04.715Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 27-Sep-2019 16:23:04 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-09-27T16:23:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=1-bDtiwqD6LuhoZ28g1SkRMtRKh9c" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic MW1pM3JwTTZ4SjN0RlE6LTNmQkxfZDk2R2o5d20tQU01TTRSOHpFajA0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "68" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=GYxWDXc5ej5XsNmjUn; loidcreated=2017-09-27T16%3A23%3A04.715Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"1-9bNnDzgE6rbUa3niTdghvktPqmY\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 27 Sep 2017 16:23:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "416" - ], - "x-ratelimit-used": [ - "2" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-09-27T16:23:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 1-9bNnDzgE6rbUa3niTdghvktPqmY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=GYxWDXc5ej5XsNmjUn; loidcreated=2017-09-27T16%3A23%3A04.715Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/p/?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"testchannel5\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ehi\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"hi\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BTN7HY2SGT9677JXGNDDW859\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.testchannel5\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/testchannel5/comments/p/hey_everyone/\", \"locked\": false, \"name\": \"t3_p\", \"created\": 1506103730.0, \"url\": \"http://reddit.local/r/testchannel5/comments/p/hey_everyone/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"hey everyone\", \"created_utc\": 1506103730.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_v\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_p\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_v\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_p\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1t\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"admin\", \"parent_id\": \"t1_1s\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply to parent which is not deleted\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply to parent which is not deleted\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"testchannel5\", \"score_hidden\": false, \"name\": \"t1_1t\", \"created\": 1506528231.0, \"author_flair_text\": null, \"created_utc\": 1506528231.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"1s\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"[deleted]\", \"parent_id\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"[deleted]\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E[deleted]\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"testchannel5\", \"score_hidden\": false, \"name\": \"t1_1s\", \"created\": 1506528222.0, \"author_flair_text\": null, \"created_utc\": 1506528222.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "3123" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 27 Sep 2017 16:23:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "416" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=uTFK42o%2FwRiwzonpXbCOwFYDL%2F5On%2FgVzpkFEhgHCAPzfBr%2FMnZ1EbUVvOw4QZH6udvc2z34nILEkkfI5DeMcQtr5lzBiayl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/p/?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments[False].json b/cassettes/channels.views.comments_test.test_more_comments[False].json deleted file mode 100644 index 715ad222ae..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments[False].json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdcNdHHM9Crz9CiwDEw1jEoyDAvPr0z3dwlO9i1X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalhfqbBloEpoVX+pqEGxQ5umXke1oE5meVuCaD9KSklmUmp8ZnpoAMhnCUagHQuSynuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=8LqnaxFehgv5dmLusd; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT", - "loidcreated=2017-11-14T17%3A28%3A18.719Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-QDAiJvIHp9Qe1Zb1VWoygODScMw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8LqnaxFehgv5dmLusd; loidcreated=2017-11-14T17%3A28%3A18.719Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1/_/n?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"dedp2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post!\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post!\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2GMJBJJ46477S1K0NQ3EE1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.dedp2\", \"hidden\": false, \"num_comments\": 68, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dedp2/comments/1/new_post/\", \"locked\": false, \"name\": \"t3_1\", \"created\": 1508356134.0, \"url\": \"http://reddit.local/r/dedp2/comments/1/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"new post\", \"created_utc\": 1508356134.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"k;lkl;\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ek;lkl;\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1508780725.0, \"author_flair_text\": null, \"created_utc\": 1508780725.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"oasd\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eoasd\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1508780714.0, \"author_flair_text\": null, \"created_utc\": 1508780714.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "3047" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "102" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ssf2diz7UoJkXCNCdnIMCUD7J%2B4Lk%2B99tdRdjzEMzRDAmbWMK5LP9LC2YHh74KySm3kfEMQ0KePly3W%2BeO%2Fsv6iTPQtyhIT%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1/_/n?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments[True].json b/cassettes/channels.views.comments_test.test_more_comments[True].json deleted file mode 100644 index 5979bfd237..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments[True].json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdctDI7PCAoOKTdP8nU0L0vNTPfTzcwvtEz1SsxX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5hhsWBpqkmgYbBSeGloZVuRl7eFf4e1Va+piA9KSklmUmp8ZnpoAMhnCUagEhJu2guAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=uNq1g5jc8nj2zVg7iC; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT", - "loidcreated=2017-11-14T17%3A28%3A18.564Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-qS_hRSTw7bMA7veigN-ioq9eJao" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=uNq1g5jc8nj2zVg7iC; loidcreated=2017-11-14T17%3A28%3A18.564Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1/_/1?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"dedp2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post!\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post!\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2GMJBJJ46477S1K0NQ3EE1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.dedp2\", \"hidden\": false, \"num_comments\": 68, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dedp2/comments/1/new_post/\", \"locked\": false, \"name\": \"t3_1\", \"created\": 1508356134.0, \"url\": \"http://reddit.local/r/dedp2/comments/1/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"new post\", \"created_utc\": 1508356134.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"k;lkl;\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ek;lkl;\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1508780725.0, \"author_flair_text\": null, \"created_utc\": 1508780725.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"oasd\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eoasd\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1508780714.0, \"author_flair_text\": null, \"created_utc\": 1508780714.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"m\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Em\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_m\", \"created\": 1508442442.0, \"author_flair_text\": null, \"created_utc\": 1508442442.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ea\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_1\", \"created\": 1508439032.0, \"author_flair_text\": null, \"created_utc\": 1508439032.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "4709" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "102" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IQ5eLZszaZTYHh5QuLnJv7gvM1hyJ2pog4zpDob2XjuYSVIBrtsgbM6MyL93KjkNJvs%2BXBgnlrr%2FuO787WKcm5PIrL4I6kuL" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1/_/1?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_404[False-False].json b/cassettes/channels.views.comments_test.test_more_comments_404[False-False].json deleted file mode 100644 index b0651ddf19..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_404[False-False].json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNXQuCMBiF/4rsMhIWpVG3jfwqUqLrYdsrjrKtTZ0R/fdcXnV5Hs5zzhuVjIExtJU3eKCthxbB2iddT8jKljnNs7je+BTjOI2C+zNlaO4hGJTQYKhwwjLEeGQ/n7YvBW7kCqUG7bqGyQnNXNJQjWL9/yZ3TWWT6MxVmNnTPhHDpTl2cCh04RwOvWBABXfDU0CfL4gfJ2+4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=B2ibcPjyZKV8JAGOJP; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT", - "loidcreated=2017-11-14T17%3A28%3A19.878Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-DuvDD4waP_PKHh9-_00HJG5lqJc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=B2ibcPjyZKV8JAGOJP; loidcreated=2017-11-14T17%3A28%3A19.878Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1/_/1?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"dedp2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post!\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post!\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2GMJBJJ46477S1K0NQ3EE1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.dedp2\", \"hidden\": false, \"num_comments\": 68, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dedp2/comments/1/new_post/\", \"locked\": false, \"name\": \"t3_1\", \"created\": 1508356134.0, \"url\": \"http://reddit.local/r/dedp2/comments/1/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"new post\", \"created_utc\": 1508356134.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"k;lkl;\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ek;lkl;\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1508780725.0, \"author_flair_text\": null, \"created_utc\": 1508780725.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"oasd\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eoasd\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1508780714.0, \"author_flair_text\": null, \"created_utc\": 1508780714.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"m\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Em\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_m\", \"created\": 1508442442.0, \"author_flair_text\": null, \"created_utc\": 1508442442.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ea\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_1\", \"created\": 1508439032.0, \"author_flair_text\": null, \"created_utc\": 1508439032.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "4709" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jztF4iugZIFjwer5UUEf9FgYe%2BOQqbb5zmlqBqMJW9M0Lkou9yFm3gMoryseAyI1%2FvF3iGEXUmoKljkICKjdQztqzsIv%2B5Ag" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1/_/1?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_404[False-True].json b/cassettes/channels.views.comments_test.test_more_comments_404[False-True].json deleted file mode 100644 index 061856fd5a..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_404[False-True].json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0Ndc1K/T0z8wqiCo2twgqDc40jE+rCvA39MvytEhW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5OkeU+Ze4RXiXu4XEh5tXuMUblermGfg6+riC9KSklmUmp8ZnpoAMhnCUagHutomzuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=fVa7Jy3dkMlM4T7JPA; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT", - "loidcreated=2017-11-14T17%3A28%3A19.270Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-6qIOijpZs78RuSi1_fzPO1NjI8c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=fVa7Jy3dkMlM4T7JPA; loidcreated=2017-11-14T17%3A28%3A19.270Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1/_/missing_parent?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"dedp2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post!\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post!\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2GMJBJJ46477S1K0NQ3EE1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.dedp2\", \"hidden\": false, \"num_comments\": 68, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dedp2/comments/1/new_post/\", \"locked\": false, \"name\": \"t3_1\", \"created\": 1508356134.0, \"url\": \"http://reddit.local/r/dedp2/comments/1/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"new post\", \"created_utc\": 1508356134.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_n\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"k;lkl;\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ek;lkl;\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1508780725.0, \"author_flair_text\": null, \"created_utc\": 1508780725.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_m\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"oasd\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eoasd\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1508780714.0, \"author_flair_text\": null, \"created_utc\": 1508780714.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"m\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Em\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_m\", \"created\": 1508442442.0, \"author_flair_text\": null, \"created_utc\": 1508442442.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ea\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_1\", \"created\": 1508439032.0, \"author_flair_text\": null, \"created_utc\": 1508439032.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_2\", \"created\": 1508439055.0, \"author_flair_text\": null, \"created_utc\": 1508439055.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"c\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ec\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_3\", \"created\": 1508439058.0, \"author_flair_text\": null, \"created_utc\": 1508439058.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"4\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"d\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ed\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_4\", \"created\": 1508439060.0, \"author_flair_text\": null, \"created_utc\": 1508439060.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"test\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_j\", \"created\": 1508441351.0, \"author_flair_text\": null, \"created_utc\": 1508441351.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"more\", \"data\": {\"count\": 0, \"parent_id\": \"t1_e8v\", \"children\": [], \"name\": \"t1__\", \"id\": \"_\"}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8v\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8u\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test d\", \"edited\": 1510244426.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test d\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8v\", \"created\": 1510244138.0, \"author_flair_text\": null, \"created_utc\": 1510244138.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8u\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8t\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test c\", \"edited\": 1510244419.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test c\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8u\", \"created\": 1510244135.0, \"author_flair_text\": null, \"created_utc\": 1510244135.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8t\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_e8s\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test b\", \"edited\": 1510244414.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8t\", \"created\": 1510244132.0, \"author_flair_text\": null, \"created_utc\": 1510244132.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"e8s\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t1_k\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"deep comment test a\", \"edited\": 1510244408.0, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edeep comment test a\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8s\", \"created\": 1510244129.0, \"author_flair_text\": null, \"created_utc\": 1510244129.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_d\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"test2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_k\", \"created\": 1508441445.0, \"author_flair_text\": null, \"created_utc\": 1508441445.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"ignore this one\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eignore this one\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_d\", \"created\": 1508439674.0, \"author_flair_text\": null, \"created_utc\": 1508439674.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_a\", \"created\": 1508439089.0, \"author_flair_text\": null, \"created_utc\": 1508439089.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"ignore this one\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eignore this one\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e\", \"created\": 1508439679.0, \"author_flair_text\": null, \"created_utc\": 1508439679.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_b\", \"created\": 1508439658.0, \"author_flair_text\": null, \"created_utc\": 1508439658.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_f\", \"created\": 1508439689.0, \"author_flair_text\": null, \"created_utc\": 1508439689.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_g\", \"created\": 1508439694.0, \"author_flair_text\": null, \"created_utc\": 1508439694.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_h\", \"created\": 1508439698.0, \"author_flair_text\": null, \"created_utc\": 1508439698.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_9\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a4\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a4\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_i\", \"created\": 1508439702.0, \"author_flair_text\": null, \"created_utc\": 1508439702.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_6\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2a\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2a\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_9\", \"created\": 1508439084.0, \"author_flair_text\": null, \"created_utc\": 1508439084.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_6\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2b\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2b\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_c\", \"created\": 1508439666.0, \"author_flair_text\": null, \"created_utc\": 1508439666.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"6\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_6\", \"created\": 1508439067.0, \"author_flair_text\": null, \"created_utc\": 1508439067.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_7\", \"created\": 1508439071.0, \"author_flair_text\": null, \"created_utc\": 1508439071.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t1_5\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_8\", \"created\": 1508439075.0, \"author_flair_text\": null, \"created_utc\": 1508439075.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"5\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"e\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ee\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_5\", \"created\": 1508439062.0, \"author_flair_text\": null, \"created_utc\": 1508439062.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01BWRGE5JQK4E8B0H90K9RM4WF\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1508441468.0, \"author_flair_text\": null, \"created_utc\": 1508441468.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"reply_to_post 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ereply_to_post 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_p\", \"created\": 1508782291.0, \"author_flair_text\": null, \"created_utc\": 1508782291.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 1\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 1\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8x\", \"created\": 1510244977.0, \"author_flair_text\": null, \"created_utc\": 1510244977.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 2\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 2\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8y\", \"created\": 1510244981.0, \"author_flair_text\": null, \"created_utc\": 1510244981.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e8z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 3\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 3\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e8z\", \"created\": 1510244984.0, \"author_flair_text\": null, \"created_utc\": 1510244984.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e90\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 4\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 4\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e90\", \"created\": 1510244987.0, \"author_flair_text\": null, \"created_utc\": 1510244987.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e91\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 5\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 5\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e91\", \"created\": 1510244990.0, \"author_flair_text\": null, \"created_utc\": 1510244990.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e92\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 6\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 6\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e92\", \"created\": 1510244994.0, \"author_flair_text\": null, \"created_utc\": 1510244994.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e93\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 6\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 6\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e93\", \"created\": 1510245015.0, \"author_flair_text\": null, \"created_utc\": 1510245015.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e94\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 7\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 7\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e94\", \"created\": 1510245019.0, \"author_flair_text\": null, \"created_utc\": 1510245019.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e95\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 8\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 8\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e95\", \"created\": 1510245022.0, \"author_flair_text\": null, \"created_utc\": 1510245022.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e96\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 9\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 9\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e96\", \"created\": 1510245025.0, \"author_flair_text\": null, \"created_utc\": 1510245025.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e97\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 10\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 10\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e97\", \"created\": 1510245028.0, \"author_flair_text\": null, \"created_utc\": 1510245028.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e99\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 11\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 11\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e99\", \"created\": 1510245063.0, \"author_flair_text\": null, \"created_utc\": 1510245063.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 12\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 12\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9b\", \"created\": 1510245158.0, \"author_flair_text\": null, \"created_utc\": 1510245158.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 13\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 13\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9c\", \"created\": 1510245163.0, \"author_flair_text\": null, \"created_utc\": 1510245163.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 14\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 14\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9d\", \"created\": 1510245166.0, \"author_flair_text\": null, \"created_utc\": 1510245166.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 15\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 15\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9f\", \"created\": 1510245329.0, \"author_flair_text\": null, \"created_utc\": 1510245329.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 16\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 16\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9g\", \"created\": 1510245332.0, \"author_flair_text\": null, \"created_utc\": 1510245332.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 21\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 21\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9h\", \"created\": 1510245340.0, \"author_flair_text\": null, \"created_utc\": 1510245340.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 22\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 22\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9i\", \"created\": 1510245344.0, \"author_flair_text\": null, \"created_utc\": 1510245344.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 23\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 23\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9j\", \"created\": 1510245348.0, \"author_flair_text\": null, \"created_utc\": 1510245348.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9k\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 24\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 24\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9k\", \"created\": 1510245351.0, \"author_flair_text\": null, \"created_utc\": 1510245351.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"more\", \"data\": {\"count\": 16, \"parent_id\": \"t3_1\", \"children\": [\"e9l\", \"e9m\", \"e9n\", \"e9q\"], \"name\": \"t1_e9l\", \"id\": \"e9l\"}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "40657" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yzN5kc4n321gNtvLlwgrTbYfA%2Fe13VYVT7v0PAB7zHRyAGdASt8X7%2FLk3FfQHiyEy4Em%2BWiygDkpWc4dD2tlUHR6Kl5iudDs" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1/_/missing_parent?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_404[True-False].json b/cassettes/channels.views.comments_test.test_more_comments_404[True-False].json deleted file mode 100644 index 61c684887c..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_404[True-False].json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12N0QrCIBiFX2V4GQWmuaLLFQRDCFpQd2Lud5OoObWxEb17s911eT7Od84bSaXAexGaOzzRNkFLtl689OmS86x1RpmmzgLvWEX2A7V9heYJgt4aB16YKNAU45H9fBEGC3HkBtKBi12vmgnNYnKgR7H+e8Pn3YFLvXqkQEiVE1ocQ3vVrNhEp4TOKBCmjMNTQJ8vkm062bgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=cU8BlUxqhGsX5k6Okf; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT", - "loidcreated=2017-11-14T17%3A28%3A19.185Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-ufRWJLBqriciohBtLv5g2Dy3pxg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=cU8BlUxqhGsX5k6Okf; loidcreated=2017-11-14T17%3A28%3A19.185Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/missing_post/_/missing_post?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Not Found\", \"error\": 404}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Zv4bWKdtu5BiDkz%2B0EIVTIJqKmMUPNPhQtA0zM1AUonk81Fe6J%2BEhp1sZ2z7rHPcWekaXxr5aRO%2FugW33jnqNyoBF3PRqMfT" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/comments/missing_post/_/missing_post?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_404[True-True].json b/cassettes/channels.views.comments_test.test_more_comments_404[True-True].json deleted file mode 100644 index 20f6bd5103..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_404[True-True].json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQrRttF256YgCkIRFDchJlcNbb01D6mI/27TrlzOYc7MhwgpwVrusIIHySMyT5ezIkt4puut2PtapL5JF4ddKZ4drxIyjQh0rTZguQ5CzCjt2eBz924hjFxAGDChayWOaBKSgWsv3v/fzI2VzrN4jdLiRq8ono/KNQWehjcFLy2BaxWGx0C+P4vec7i4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=iTuf90lDmr871Q3vHX; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT", - "loidcreated=2017-11-14T17%3A28%3A19.102Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-F94_9ilKaOula5um52TLRaqx_k4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iTuf90lDmr871Q3vHX; loidcreated=2017-11-14T17%3A28%3A19.102Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/missing_post/_/missing_parent?limit=50&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Not Found\", \"error\": 404}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4MH63%2FtCszq%2B%2Bppvoy1YrsOxnVBodaZ%2BFaUcd69eVq%2FmpLJL4is5FwzpgzVra0WsgcWZyl4OcpbCcPixViIFmrQIkT0KT1HC" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/comments/missing_post/_/missing_parent?limit=50&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_anonymous.json b/cassettes/channels.views.comments_test.test_more_comments_anonymous.json deleted file mode 100644 index c4638ab8d3..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_anonymous.json +++ /dev/null @@ -1,5276 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:49:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGWEX7DXFPRTZ6R0DDG1NP" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MdfNNcwPCfHJragILa0scnEvqPQuzvJys0w2K01W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlJSfGhzgGxxt6RxlbZpS6FVh6e/nne1aZJqaD9KSklmUmp8ZnpoAMhnCUagFDmIuFuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:49:37 GMT", - "loidcreated=2018-08-24T17%3A49%3A37.039Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:49:37 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPGWEX7DXFPRTZ6R0DDG1NP" - } - }, - { - "recorded_at": "2018-08-24T17:49:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Aut+debitis+delectus+et+ea+consequatur.+Exercitationem+commodi+nam+nam+nobis+maiores+totam+odit.+Eaque+rem+accusamus+consectetur+iusto+sed+asperiores.+Ipsum+inventore+ullam+reiciendis+aut+voluptatum.%0ALabore+sint+rerum+magni+et.+Officia+nemo+doloremque+autem+voluptates.+Velit+aut+assumenda+quas+accusantium+numquam+rem.+Quisquam+fuga+rem+sit+excepturi+fugit+dolor+molestias.&link_type=any&name=1535132977_occaecati&public_description=Quia+aperiam+libero+quibusdam.+Ipsum+quidem+accusantium+eum.+Eos+maxime+amet+quis+quas.&title=Architecto+fugiat+accusamus+excepturi+ipsum.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 147-m1oTTLmxxUuyrDGpyKsjJF9c6uc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "645" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "23" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CBDB4ZD2QXBM0ERGB3C5GEA5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0sdCtSvRydDKJiCjxtEgKNkzNTa1KLwwNcMssMC1X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5JeUX5ZoYRURUleRXVjqGGxoVe5uHFRp7hvqC9KSklmUmp8ZnpoAMhnCUagFF5Ws8uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CBDB4ZD2QXBM0ERGB3C5GEA5" - } - }, - { - "recorded_at": "2018-08-24T17:49:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535132977_occaecati&text=Delectus+quasi+eum+occaecati+sequi+possimus+ad.+Repellat+dolorum+illo+earum+cumque+aliquam.&title=Quibusdam+beatae+cum+fugit+sint." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535132977_occaecati/comments/8/quibusdam_beatae_cum_fugit_sint/\", \"id\": \"8\", \"name\": \"t3_8\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "159" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "20" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535132977_occaecati\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus quasi eum occaecati sequi possimus ad. Repellat dolorum illo earum cumque aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Delectus quasi eum occaecati sequi possimus ad. Repellat dolorum illo earum cumque aliquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535132977_occaecati\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535132977_occaecati/comments/8/quibusdam_beatae_cum_fugit_sint/\", \"locked\": false, \"name\": \"t3_8\", \"created\": 1535132980.0, \"url\": \"http://reddit.local/r/1535132977_occaecati/comments/8/quibusdam_beatae_cum_fugit_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quibusdam beatae cum fugit sint.\", \"created_utc\": 1535132980.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1753" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "20" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Y%2B5UMPlTF3JOU9ebVEa00CI8u8BTBf1Z809CaBa8M76mUgkB7Hy%2FfcDyZuspHNg4rIsQF8j1nSGe%2FUbK95W%2FhXVuTNDC2qMT" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Neque+excepturi+eius+possimus.+Voluptas+cupiditate+qui+ad+rem+voluptate.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"5\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Neque excepturi eius possimus. Voluptas cupiditate qui ad rem voluptate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENeque excepturi eius possimus. Voluptas cupiditate qui ad rem voluptate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_5\", \"created\": 1535132983.0, \"author_flair_text\": null, \"created_utc\": 1535132983.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "945" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "17" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Veniam+accusantium+incidunt+explicabo+explicabo.+Recusandae+magni+inventore+iure+illo+dolore.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"6\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Veniam accusantium incidunt explicabo explicabo. Recusandae magni inventore iure illo dolore.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVeniam accusantium incidunt explicabo explicabo. Recusandae magni inventore iure illo dolore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_6\", \"created\": 1535132987.0, \"author_flair_text\": null, \"created_utc\": 1535132987.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "13" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Eum+nihil+quod+nisi+placeat+molestiae.+Vitae+ab+similique+incidunt+deserunt+sed.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "113" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Eum nihil quod nisi placeat molestiae. Vitae ab similique incidunt deserunt sed.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEum nihil quod nisi placeat molestiae. Vitae ab similique incidunt deserunt sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_7\", \"created\": 1535132990.0, \"author_flair_text\": null, \"created_utc\": 1535132990.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "961" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "10" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quas+quae+dolores+occaecati+magnam+sunt+nemo+illo.+Ab+inventore+quis+itaque+deleniti+nihil.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "124" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quas quae dolores occaecati magnam sunt nemo illo. Ab inventore quis itaque deleniti nihil.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuas quae dolores occaecati magnam sunt nemo illo. Ab inventore quis itaque deleniti nihil.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_8\", \"created\": 1535132993.0, \"author_flair_text\": null, \"created_utc\": 1535132993.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "983" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "7" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Repudiandae+neque+est+est+delectus+quod.+Iure+doloremque+eveniet+quia+magnam+eligendi+consequuntur.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "132" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Repudiandae neque est est delectus quod. Iure doloremque eveniet quia magnam eligendi consequuntur.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERepudiandae neque est est delectus quod. Iure doloremque eveniet quia magnam eligendi consequuntur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_9\", \"created\": 1535132996.0, \"author_flair_text\": null, \"created_utc\": 1535132996.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "999" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "4" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:49:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Harum+eveniet+dolores+nisi+et+iusto.+Vitae+minus+unde+omnis+reprehenderit+deserunt.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "116" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Harum eveniet dolores nisi et iusto. Vitae minus unde omnis reprehenderit deserunt.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHarum eveniet dolores nisi et iusto. Vitae minus unde omnis reprehenderit deserunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_a\", \"created\": 1535132999.0, \"author_flair_text\": null, \"created_utc\": 1535132999.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "967" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:49:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "1" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Vel+voluptas+eaque+tempora+dolores+illum+rerum+ullam.+Dignissimos+error+quasi+quibusdam.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "121" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Vel voluptas eaque tempora dolores illum rerum ullam. Dignissimos error quasi quibusdam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVel voluptas eaque tempora dolores illum rerum ullam. Dignissimos error quasi quibusdam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_b\", \"created\": 1535133002.0, \"author_flair_text\": null, \"created_utc\": 1535133002.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "977" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "598" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ut+laborum+at+ipsam.+Neque+perferendis+veniam+cupiditate+hic+numquam.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "102" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ut laborum at ipsam. Neque perferendis veniam cupiditate hic numquam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUt laborum at ipsam. Neque perferendis veniam cupiditate hic numquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_c\", \"created\": 1535133005.0, \"author_flair_text\": null, \"created_utc\": 1535133005.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "939" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "595" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quos+molestiae+molestias+iure+ad+tempora+quos.+Molestias+veritatis+vero+atque+sed.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "115" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quos molestiae molestias iure ad tempora quos. Molestias veritatis vero atque sed.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuos molestiae molestias iure ad tempora quos. Molestias veritatis vero atque sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_d\", \"created\": 1535133008.0, \"author_flair_text\": null, \"created_utc\": 1535133008.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "965" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "592" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Et+ut+fuga+dolor.+Incidunt+fugiat+ipsam+ullam+unde+ad+distinctio.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "98" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Et ut fuga dolor. Incidunt fugiat ipsam ullam unde ad distinctio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt ut fuga dolor. Incidunt fugiat ipsam ullam unde ad distinctio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_e\", \"created\": 1535133011.0, \"author_flair_text\": null, \"created_utc\": 1535133011.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "931" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "589" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Vero+vero+veritatis+debitis+omnis+molestias.+Nihil+rem+beatae+ut+quo+quas+consequatur.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "119" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Vero vero veritatis debitis omnis molestias. Nihil rem beatae ut quo quas consequatur.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero vero veritatis debitis omnis molestias. Nihil rem beatae ut quo quas consequatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_f\", \"created\": 1535133015.0, \"author_flair_text\": null, \"created_utc\": 1535133015.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "973" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "585" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Nulla+fugit+voluptas+minus+fugit+veritatis.+Ex+fugit+amet+cum+porro.+Ullam+commodi+eum+inventore.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "130" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Nulla fugit voluptas minus fugit veritatis. Ex fugit amet cum porro. Ullam commodi eum inventore.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENulla fugit voluptas minus fugit veritatis. Ex fugit amet cum porro. Ullam commodi eum inventore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_g\", \"created\": 1535133018.0, \"author_flair_text\": null, \"created_utc\": 1535133018.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "995" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "582" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Aliquid+perspiciatis+quod+quia.+A+aliquid+natus+odio+totam+neque+quibusdam.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Aliquid perspiciatis quod quia. A aliquid natus odio totam neque quibusdam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAliquid perspiciatis quod quia. A aliquid natus odio totam neque quibusdam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_h\", \"created\": 1535133021.0, \"author_flair_text\": null, \"created_utc\": 1535133021.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "951" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "579" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Sint+culpa+quis+atque.+Odit+temporibus+quas+laborum+reprehenderit.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "99" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Sint culpa quis atque. Odit temporibus quas laborum reprehenderit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESint culpa quis atque. Odit temporibus quas laborum reprehenderit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_i\", \"created\": 1535133024.0, \"author_flair_text\": null, \"created_utc\": 1535133024.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "933" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "576" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Voluptatum+iure+sit+sed+quibusdam+debitis+dolor.+Excepturi+eum+aliquid+eaque+ex+saepe+assumenda.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptatum iure sit sed quibusdam debitis dolor. Excepturi eum aliquid eaque ex saepe assumenda.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatum iure sit sed quibusdam debitis dolor. Excepturi eum aliquid eaque ex saepe assumenda.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_j\", \"created\": 1535133027.0, \"author_flair_text\": null, \"created_utc\": 1535133027.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "993" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "573" - ], - "x-ratelimit-used": [ - "9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Accusantium+occaecati+laudantium+maxime+quisquam+vero.+Quas+harum+sed+officia+soluta+dolorum.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Accusantium occaecati laudantium maxime quisquam vero. Quas harum sed officia soluta dolorum.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAccusantium occaecati laudantium maxime quisquam vero. Quas harum sed officia soluta dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_k\", \"created\": 1535133030.0, \"author_flair_text\": null, \"created_utc\": 1535133030.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Voluptas+quaerat+debitis+qui.+Dolorum+cupiditate+debitis+exercitationem+sint.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "110" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptas quaerat debitis qui. Dolorum cupiditate debitis exercitationem sint.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas quaerat debitis qui. Dolorum cupiditate debitis exercitationem sint.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1535133033.0, \"author_flair_text\": null, \"created_utc\": 1535133033.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "955" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "567" - ], - "x-ratelimit-used": [ - "11" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Vel+asperiores+magnam+neque+laudantium.+Odit+praesentium+delectus+nesciunt+debitis+ipsum.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "122" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Vel asperiores magnam neque laudantium. Odit praesentium delectus nesciunt debitis ipsum.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVel asperiores magnam neque laudantium. Odit praesentium delectus nesciunt debitis ipsum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_m\", \"created\": 1535133036.0, \"author_flair_text\": null, \"created_utc\": 1535133036.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "979" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "564" - ], - "x-ratelimit-used": [ - "12" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Beatae+nisi+doloribus+quisquam+et.+Et+odit+iusto+exercitationem+ab.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Beatae nisi doloribus quisquam et. Et odit iusto exercitationem ab.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBeatae nisi doloribus quisquam et. Et odit iusto exercitationem ab.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_n\", \"created\": 1535133039.0, \"author_flair_text\": null, \"created_utc\": 1535133039.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "935" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "561" - ], - "x-ratelimit-used": [ - "13" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Doloremque+velit+porro+nemo.+Aspernatur+cum+ea+corporis+libero+quos.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "101" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Doloremque velit porro nemo. Aspernatur cum ea corporis libero quos.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDoloremque velit porro nemo. Aspernatur cum ea corporis libero quos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_o\", \"created\": 1535133042.0, \"author_flair_text\": null, \"created_utc\": 1535133042.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "937" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "558" - ], - "x-ratelimit-used": [ - "14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=In+alias+neque+vero+eligendi+et+quidem.+Enim+suscipit+maiores+quibusdam+adipisci+iste+dolorum.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "127" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"In alias neque vero eligendi et quidem. Enim suscipit maiores quibusdam adipisci iste dolorum.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIn alias neque vero eligendi et quidem. Enim suscipit maiores quibusdam adipisci iste dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_p\", \"created\": 1535133046.0, \"author_flair_text\": null, \"created_utc\": 1535133046.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "989" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "554" - ], - "x-ratelimit-used": [ - "15" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Amet+vero+beatae+soluta+debitis+id.+Quia+corporis+aut+dolor+quod.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "98" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"q\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Amet vero beatae soluta debitis id. Quia corporis aut dolor quod.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet vero beatae soluta debitis id. Quia corporis aut dolor quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_q\", \"created\": 1535133049.0, \"author_flair_text\": null, \"created_utc\": 1535133049.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "931" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "551" - ], - "x-ratelimit-used": [ - "16" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ipsum+iste+doloribus+ipsum.+Impedit+possimus+cupiditate+expedita+velit+odit+rem+est.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "117" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"r\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ipsum iste doloribus ipsum. Impedit possimus cupiditate expedita velit odit rem est.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsum iste doloribus ipsum. Impedit possimus cupiditate expedita velit odit rem est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_r\", \"created\": 1535133052.0, \"author_flair_text\": null, \"created_utc\": 1535133052.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "969" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "548" - ], - "x-ratelimit-used": [ - "17" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Hic+assumenda+ullam+veniam+nobis.+Necessitatibus+earum+incidunt+nihil+accusamus.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "113" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"s\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Hic assumenda ullam veniam nobis. Necessitatibus earum incidunt nihil accusamus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic assumenda ullam veniam nobis. Necessitatibus earum incidunt nihil accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_s\", \"created\": 1535133055.0, \"author_flair_text\": null, \"created_utc\": 1535133055.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "961" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "18" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:50:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Harum+dolores+perspiciatis+sunt+ea.+Cum+in+porro+illo+suscipit.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "96" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"t\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Harum dolores perspiciatis sunt ea. Cum in porro illo suscipit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHarum dolores perspiciatis sunt ea. Cum in porro illo suscipit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_t\", \"created\": 1535133058.0, \"author_flair_text\": null, \"created_utc\": 1535133058.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "927" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:50:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "281.0" - ], - "x-ratelimit-reset": [ - "542" - ], - "x-ratelimit-used": [ - "19" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Hic+numquam+voluptatem+quae+atque+pariatur.+Exercitationem+culpa+maiores+quos+ullam+maxime+et.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "127" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"u\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Hic numquam voluptatem quae atque pariatur. Exercitationem culpa maiores quos ullam maxime et.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic numquam voluptatem quae atque pariatur. Exercitationem culpa maiores quos ullam maxime et.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_u\", \"created\": 1535133061.0, \"author_flair_text\": null, \"created_utc\": 1535133061.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "989" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "280.0" - ], - "x-ratelimit-reset": [ - "539" - ], - "x-ratelimit-used": [ - "20" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Laudantium+blanditiis+vel+veniam+aperiam+quod+velit.+Tempore+dolor+perferendis+sunt.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "117" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"v\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Laudantium blanditiis vel veniam aperiam quod velit. Tempore dolor perferendis sunt.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaudantium blanditiis vel veniam aperiam quod velit. Tempore dolor perferendis sunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_v\", \"created\": 1535133064.0, \"author_flair_text\": null, \"created_utc\": 1535133064.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "969" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "279.0" - ], - "x-ratelimit-reset": [ - "536" - ], - "x-ratelimit-used": [ - "21" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Molestiae+delectus+ratione+consectetur+porro.+Quis+reiciendis+qui+id+odio+dolorem+facilis.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "123" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"w\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Molestiae delectus ratione consectetur porro. Quis reiciendis qui id odio dolorem facilis.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestiae delectus ratione consectetur porro. Quis reiciendis qui id odio dolorem facilis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_w\", \"created\": 1535133067.0, \"author_flair_text\": null, \"created_utc\": 1535133067.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "981" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "278.0" - ], - "x-ratelimit-reset": [ - "533" - ], - "x-ratelimit-used": [ - "22" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Dignissimos+a+delectus+consectetur+officiis.+Placeat+doloremque+possimus+nihil+ipsum.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "118" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"x\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Dignissimos a delectus consectetur officiis. Placeat doloremque possimus nihil ipsum.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDignissimos a delectus consectetur officiis. Placeat doloremque possimus nihil ipsum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_x\", \"created\": 1535133070.0, \"author_flair_text\": null, \"created_utc\": 1535133070.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "971" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "277.0" - ], - "x-ratelimit-reset": [ - "530" - ], - "x-ratelimit-used": [ - "23" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quo+at+reiciendis+atque+ipsum+recusandae+reiciendis+labore.+Tempore+expedita+exercitationem+sint.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "130" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"y\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quo at reiciendis atque ipsum recusandae reiciendis labore. Tempore expedita exercitationem sint.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuo at reiciendis atque ipsum recusandae reiciendis labore. Tempore expedita exercitationem sint.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_y\", \"created\": 1535133073.0, \"author_flair_text\": null, \"created_utc\": 1535133073.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "995" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "276.0" - ], - "x-ratelimit-reset": [ - "527" - ], - "x-ratelimit-used": [ - "24" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Reiciendis+quis+rerum+qui+perferendis.+Esse+quasi+omnis+itaque+architecto+quis+voluptas+doloremque.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "132" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"z\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Reiciendis quis rerum qui perferendis. Esse quasi omnis itaque architecto quis voluptas doloremque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReiciendis quis rerum qui perferendis. Esse quasi omnis itaque architecto quis voluptas doloremque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_z\", \"created\": 1535133077.0, \"author_flair_text\": null, \"created_utc\": 1535133077.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "999" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "275.0" - ], - "x-ratelimit-reset": [ - "523" - ], - "x-ratelimit-used": [ - "25" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Officiis+possimus+corporis+dolores+a.+Officiis+expedita+labore+illo+nisi+autem.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "112" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Officiis possimus corporis dolores a. Officiis expedita labore illo nisi autem.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficiis possimus corporis dolores a. Officiis expedita labore illo nisi autem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_10\", \"created\": 1535133080.0, \"author_flair_text\": null, \"created_utc\": 1535133080.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "961" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "274.0" - ], - "x-ratelimit-reset": [ - "520" - ], - "x-ratelimit-used": [ - "26" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Hic+exercitationem+quaerat+eaque+corrupti+ad.+Nihil+veniam+veniam+voluptate+dolore+deleniti.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "125" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"11\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Hic exercitationem quaerat eaque corrupti ad. Nihil veniam veniam voluptate dolore deleniti.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic exercitationem quaerat eaque corrupti ad. Nihil veniam veniam voluptate dolore deleniti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_11\", \"created\": 1535133083.0, \"author_flair_text\": null, \"created_utc\": 1535133083.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "273.0" - ], - "x-ratelimit-reset": [ - "517" - ], - "x-ratelimit-used": [ - "27" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Dolorum+mollitia+assumenda+enim+optio+error.+Fugit+neque+libero+itaque+neque+illo.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "115" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Dolorum mollitia assumenda enim optio error. Fugit neque libero itaque neque illo.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolorum mollitia assumenda enim optio error. Fugit neque libero itaque neque illo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_12\", \"created\": 1535133086.0, \"author_flair_text\": null, \"created_utc\": 1535133086.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "967" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "272.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "28" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Voluptate+voluptatum+ratione+dolorem+iusto+placeat.+Hic+illo+tenetur+porro+totam+praesentium.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "126" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"13\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Voluptate voluptatum ratione dolorem iusto placeat. Hic illo tenetur porro totam praesentium.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptate voluptatum ratione dolorem iusto placeat. Hic illo tenetur porro totam praesentium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_13\", \"created\": 1535133089.0, \"author_flair_text\": null, \"created_utc\": 1535133089.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "989" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "271.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "29" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ratione+minima+ipsa+praesentium+dolor+adipisci.+Aut+modi+eveniet+minus+maiores+dolor+est+corrupti.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "131" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"14\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ratione minima ipsa praesentium dolor adipisci. Aut modi eveniet minus maiores dolor est corrupti.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERatione minima ipsa praesentium dolor adipisci. Aut modi eveniet minus maiores dolor est corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_14\", \"created\": 1535133092.0, \"author_flair_text\": null, \"created_utc\": 1535133092.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "999" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "270.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "30" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Repellat+sapiente+dolor+vero+eius+mollitia.+Maxime+sed+unde+id+distinctio.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"15\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Repellat sapiente dolor vero eius mollitia. Maxime sed unde id distinctio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERepellat sapiente dolor vero eius mollitia. Maxime sed unde id distinctio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_15\", \"created\": 1535133095.0, \"author_flair_text\": null, \"created_utc\": 1535133095.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "951" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "269.0" - ], - "x-ratelimit-reset": [ - "505" - ], - "x-ratelimit-used": [ - "31" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Recusandae+ex+provident+vitae.+Possimus+sit+et+reiciendis+officiis+et.+Porro+id+ratione+quaerat.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"16\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Recusandae ex provident vitae. Possimus sit et reiciendis officiis et. Porro id ratione quaerat.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERecusandae ex provident vitae. Possimus sit et reiciendis officiis et. Porro id ratione quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_16\", \"created\": 1535133098.0, \"author_flair_text\": null, \"created_utc\": 1535133098.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "995" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "268.0" - ], - "x-ratelimit-reset": [ - "502" - ], - "x-ratelimit-used": [ - "32" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Praesentium+quidem+est+quis.+Quo+enim+reprehenderit+deserunt+recusandae.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"17\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Praesentium quidem est quis. Quo enim reprehenderit deserunt recusandae.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium quidem est quis. Quo enim reprehenderit deserunt recusandae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_17\", \"created\": 1535133101.0, \"author_flair_text\": null, \"created_utc\": 1535133101.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "947" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "267.0" - ], - "x-ratelimit-reset": [ - "499" - ], - "x-ratelimit-used": [ - "33" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Vel+eius+facilis+temporibus+quaerat+dolores.+Corrupti+voluptas+a+unde+at+fugiat+debitis.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "121" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"18\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Vel eius facilis temporibus quaerat dolores. Corrupti voluptas a unde at fugiat debitis.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVel eius facilis temporibus quaerat dolores. Corrupti voluptas a unde at fugiat debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_18\", \"created\": 1535133105.0, \"author_flair_text\": null, \"created_utc\": 1535133105.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "979" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "266.0" - ], - "x-ratelimit-reset": [ - "495" - ], - "x-ratelimit-used": [ - "34" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quas+deleniti+iusto+eum+recusandae+impedit.+Veritatis+vero+illo+excepturi+laboriosam+cum+unde.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "127" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"19\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quas deleniti iusto eum recusandae impedit. Veritatis vero illo excepturi laboriosam cum unde.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuas deleniti iusto eum recusandae impedit. Veritatis vero illo excepturi laboriosam cum unde.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_19\", \"created\": 1535133108.0, \"author_flair_text\": null, \"created_utc\": 1535133108.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "991" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "265.0" - ], - "x-ratelimit-reset": [ - "492" - ], - "x-ratelimit-used": [ - "35" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Doloremque+placeat+quia+laborum+saepe+doloribus.+Assumenda+distinctio+corrupti+voluptates+velit.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Doloremque placeat quia laborum saepe doloribus. Assumenda distinctio corrupti voluptates velit.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDoloremque placeat quia laborum saepe doloribus. Assumenda distinctio corrupti voluptates velit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1a\", \"created\": 1535133111.0, \"author_flair_text\": null, \"created_utc\": 1535133111.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "995" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "264.0" - ], - "x-ratelimit-reset": [ - "489" - ], - "x-ratelimit-used": [ - "36" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Recusandae+iure+cumque+itaque+in+nulla+quidem.+Laboriosam+eos+omnis+similique.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "111" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Recusandae iure cumque itaque in nulla quidem. Laboriosam eos omnis similique.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERecusandae iure cumque itaque in nulla quidem. Laboriosam eos omnis similique.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1b\", \"created\": 1535133114.0, \"author_flair_text\": null, \"created_utc\": 1535133114.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "959" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "263.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "37" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:51:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Ullam+modi+possimus+dolore+esse+unde+quod.+Numquam+ut+quia+atque+libero.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Ullam modi possimus dolore esse unde quod. Numquam ut quia atque libero.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUllam modi possimus dolore esse unde quod. Numquam ut quia atque libero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1c\", \"created\": 1535133117.0, \"author_flair_text\": null, \"created_utc\": 1535133117.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "947" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:51:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "262.0" - ], - "x-ratelimit-reset": [ - "483" - ], - "x-ratelimit-used": [ - "38" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=A+provident+incidunt+qui.+Optio+aperiam+amet+nostrum+assumenda+rerum+corrupti.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "111" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"A provident incidunt qui. Optio aperiam amet nostrum assumenda rerum corrupti.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA provident incidunt qui. Optio aperiam amet nostrum assumenda rerum corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1d\", \"created\": 1535133120.0, \"author_flair_text\": null, \"created_utc\": 1535133120.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "959" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "261.0" - ], - "x-ratelimit-reset": [ - "480" - ], - "x-ratelimit-used": [ - "39" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Molestiae+fugit+voluptatum+dolorum+fugit.+Reiciendis+nam+beatae+saepe+quia.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Molestiae fugit voluptatum dolorum fugit. Reiciendis nam beatae saepe quia.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestiae fugit voluptatum dolorum fugit. Reiciendis nam beatae saepe quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1e\", \"created\": 1535133123.0, \"author_flair_text\": null, \"created_utc\": 1535133123.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "953" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "260.0" - ], - "x-ratelimit-reset": [ - "477" - ], - "x-ratelimit-used": [ - "40" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Facere+odit+alias+molestiae+maiores+odio.+Nam+distinctio+culpa+iure+harum+architecto+cumque.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "125" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Facere odit alias molestiae maiores odio. Nam distinctio culpa iure harum architecto cumque.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFacere odit alias molestiae maiores odio. Nam distinctio culpa iure harum architecto cumque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1f\", \"created\": 1535133126.0, \"author_flair_text\": null, \"created_utc\": 1535133126.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "987" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "259.0" - ], - "x-ratelimit-reset": [ - "474" - ], - "x-ratelimit-used": [ - "41" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Rerum+quasi+consequatur+veritatis+quas+vel+aliquam.+Saepe+omnis+velit+natus+atque+quisquam.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "124" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1g\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Rerum quasi consequatur veritatis quas vel aliquam. Saepe omnis velit natus atque quisquam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERerum quasi consequatur veritatis quas vel aliquam. Saepe omnis velit natus atque quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1g\", \"created\": 1535133129.0, \"author_flair_text\": null, \"created_utc\": 1535133129.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "985" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "258.0" - ], - "x-ratelimit-reset": [ - "471" - ], - "x-ratelimit-used": [ - "42" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Illo+animi+minus+fugit.+Reprehenderit+est+hic+pariatur+facilis+delectus.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Illo animi minus fugit. Reprehenderit est hic pariatur facilis delectus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIllo animi minus fugit. Reprehenderit est hic pariatur facilis delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1h\", \"created\": 1535133132.0, \"author_flair_text\": null, \"created_utc\": 1535133132.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "947" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "257.0" - ], - "x-ratelimit-reset": [ - "468" - ], - "x-ratelimit-used": [ - "43" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Harum+deleniti+est+earum+vitae+placeat.+Aspernatur+velit+beatae+quae+odio.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Harum deleniti est earum vitae placeat. Aspernatur velit beatae quae odio.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHarum deleniti est earum vitae placeat. Aspernatur velit beatae quae odio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1i\", \"created\": 1535133135.0, \"author_flair_text\": null, \"created_utc\": 1535133135.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "951" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "256.0" - ], - "x-ratelimit-reset": [ - "465" - ], - "x-ratelimit-used": [ - "44" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Alias+at+excepturi+sequi+labore+fuga.+Sit+sit+excepturi+pariatur+omnis+deserunt+at.&thing_id=t3_8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 148-zaJAB4XXtI8bS1emezgqUPFip5w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "116" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Alias at excepturi sequi labore fuga. Sit sit excepturi pariatur omnis deserunt at.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAlias at excepturi sequi labore fuga. Sit sit excepturi pariatur omnis deserunt at.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1j\", \"created\": 1535133139.0, \"author_flair_text\": null, \"created_utc\": 1535133139.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "969" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "255.0" - ], - "x-ratelimit-reset": [ - "461" - ], - "x-ratelimit-used": [ - "45" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:52:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-MGoz-CCSQncCQtZ9wPlnjjgelVQ\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "458" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T17:52:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&children=1j&link_id=t3_8&sort=best" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -MGoz-CCSQncCQtZ9wPlnjjgelVQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ra3yhYqMsXH5WtpCRf; loidcreated=2018-08-24T17%3A49%3A37.039Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/morechildren/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_8\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"1j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CBDB4ZD2QXBM0ERGB3C5GEA5\", \"parent_id\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Alias at excepturi sequi labore fuga. Sit sit excepturi pariatur omnis deserunt at.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAlias at excepturi sequi labore fuga. Sit sit excepturi pariatur omnis deserunt at.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535132977_occaecati\", \"score_hidden\": false, \"name\": \"t1_1j\", \"created\": 1535133139.0, \"author_flair_text\": null, \"created_utc\": 1535133139.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "969" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:52:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "458" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/morechildren/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_children.json b/cassettes/channels.views.comments_test.test_more_comments_children.json deleted file mode 100644 index 55420f610e..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_children.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0Ndf1zcpIy7fw1Y1wM8txLsj2zQ21dKlK9kguMylX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbp+jlmeFm6mBbkl5eGRsZbRLoWpXgmloX6+xeD9KSklmUmp8ZnpoAMhnCUagFg1vGyuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=S5x6Mk8jQsaZPaWA3m; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT", - "loidcreated=2017-11-14T17%3A28%3A18.828Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 14-Nov-2019 17:28:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-14T17:28:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&children=e9l%2Ce9m&link_id=t3_1&sort=best" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-Mjhfo8M-XF6lCpkMmU9DzcHcv4w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "55" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=S5x6Mk8jQsaZPaWA3m; loidcreated=2017-11-14T17%3A28%3A18.828Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/morechildren/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 25\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 25\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9l\", \"created\": 1510245355.0, \"author_flair_text\": null, \"created_utc\": 1510245355.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_4\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"e9m\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"george\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"shallow comment 26\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eshallow comment 26\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"dedp2\", \"score_hidden\": false, \"name\": \"t1_e9m\", \"created\": 1510245360.0, \"author_flair_text\": null, \"created_utc\": 1510245360.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1566" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 14 Nov 2017 17:28:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "102" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/morechildren/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_missing_param[parent_id].json b/cassettes/channels.views.comments_test.test_more_comments_missing_param[parent_id].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_missing_param[parent_id].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_more_comments_missing_param[post_id].json b/cassettes/channels.views.comments_test.test_more_comments_missing_param[post_id].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.comments_test.test_more_comments_missing_param[post_id].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_anonymous.json b/cassettes/channels.views.comments_test.test_update_comment_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_approve.json b/cassettes/channels.views.comments_test.test_update_comment_approve.json deleted file mode 100644 index e8ac8126a7..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_approve.json +++ /dev/null @@ -1,1142 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPS54NN9T7CSHTJ4J72Y9V" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK11E0z8zEq9nWOcDKoCs7NNigoT80pzM/2z7PwTVfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolhnnhZjr+oZEhRR5ORmUFIWVGwbnGIaWJlpmlYO0pKSWZSanxmemgMyFcJRqAVHRBb22AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:45 GMT", - "loidcreated=2020-07-28T21%3A55%3A45.379Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:45 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPS54NN9T7CSHTJ4J72Y9V" - } - }, - { - "recorded_at": "2020-07-28T21:55:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Rule+other+evidence+her+develop+usually.+Employee+wish+avoid+listen.%0AGuess+whose+idea+TV+authority+various.+Similar+determine+final+task+quality.%0AMeet+detail+employee+front+part.+Education+gas+final+stand+bag+Republican+director.+Strong+learn+or+pick.%0AMemory+perform+green+half.+Shoulder+detail+father+any+evening+many.+Civil+walk+hard+whom+tell.%0AEnd+great+expect+debate+career+record+military.+Relate+behavior+culture.+Good+perhaps+career+term+adult.&link_type=any&name=1595973345_15_sea&public_description=Activity+weight+for+like+opportunity+some.+Agree+glass+which+particular+apply.&title=Smile+team+prepare+artist+painting+listen+course.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "722" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "255" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSBFKX89WECXVM27SER5T" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQrCMBBEf6XkKBZihGq8KXipWC0SwVOo6WrXgqmbUqLiv9vYk8d5zJt5s8IYcE63toY7W0Qs4bF8NWWK2dzeVi7fEVWT60HshVLpiY0jBr5BAqcx9KcJ5z376bp9NhA2zlAQUOg6Ywc0Cong0ovV39l2xnkmYisfa4/Ser7EblOro6c8KCV0aEBjGXaHwD5fhtKJkbYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSBFKX89WECXVM27SER5T" - } - }, - { - "recorded_at": "2020-07-28T21:55:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPSBFKX89WECXVM27SER5T&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973345_15_sea/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973345_15_sea/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973345_15_sea" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 60-9zpdJiN8ojBsQOrrh1gS2P2UUJY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973345_15_sea&text=Ahead+college+after+year+education.+Kitchen+trouble+thus+game+crime+including+name+character.&title=Determine+degree+executive+your+and." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 60-9zpdJiN8ojBsQOrrh1gS2P2UUJY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "217" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973345_15_sea/comments/q/determine_degree_executive_your_and/\", \"id\": \"q\", \"name\": \"t3_q\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 60-9zpdJiN8ojBsQOrrh1gS2P2UUJY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973345_15_sea\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAhead college after year education. Kitchen trouble thus game crime including name character.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ahead college after year education. Kitchen trouble thus game crime including name character.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPSBFKX89WECXVM27SER5T\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973345_15_sea\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_k\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973345_15_sea/comments/q/determine_degree_executive_your_and/\", \"locked\": false, \"name\": \"t3_q\", \"created\": 1595973352.0, \"url\": \"http://reddit.local/r/1595973345_15_sea/comments/q/determine_degree_executive_your_and/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Determine degree executive your and.\", \"created_utc\": 1595973352.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1757" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=n%2F8oIGfffM6ZnB4C4969QIM0UEaKuMYZr0EFHK0wPCXv9%2FO1zdjuPC0UDWdp5Xf5XdUfi5%2FYh6aZvLQkhozjWzUCMrpOqP0r" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/q/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Study+relationship+participant.+Debate+explain+member+month+notice.&thing_id=t3_q" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 60-9zpdJiN8ojBsQOrrh1gS2P2UUJY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_k\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_q\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"27\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPSBFKX89WECXVM27SER5T\", \"parent_id\": \"t3_q\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Study relationship participant. Debate explain member month notice.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EStudy relationship participant. Debate explain member month notice.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973345_15_sea\", \"score_hidden\": false, \"name\": \"t1_27\", \"created\": 1595973355.0, \"author_flair_text\": null, \"created_utc\": 1595973355.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "934" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_27&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_27" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/approve/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/approve/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_27&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_k\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_q\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"27\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPSBFKX89WECXVM27SER5T\", \"parent_id\": \"t3_q\", \"score\": 1, \"approved_by\": \"01EEBPS54NN9T7CSHTJ4J72Y9V\", \"controversiality\": 0, \"body\": \"Study relationship participant. Debate explain member month notice.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EStudy relationship participant. Debate explain member month notice.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973345_15_sea\", \"score_hidden\": false, \"name\": \"t1_27\", \"created\": 1595973355.0, \"author_flair_text\": null, \"created_utc\": 1595973355.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "998" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=22xEDwseeVZuk%2FToBVbkAC0v%2FbReKUR0HJsf%2Bldl9tXgd%2BPVX%2B%2BGIqF9wUZC5Ebjd00Bt7jXByY%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_27&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973345_15_sea/about/moderators/?user=01EEBPSBFKX89WECXVM27SER5T&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=U1yIdmPib77DAqD7AnNgg23Vcu8n%2BJ4P5TvB7KBpZiOhKQhRRq72PEVxSP2kMTnXFTWEZPSxIJz2CbWenV4u4XNuib%2FLeeAS" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973345_15_sea/about/moderators/?user=01EEBPSBFKX89WECXVM27SER5T&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 59-f6L2sMCXB0zSmk0pwelqokOn8Mg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZlBwNsvnOBlZOQgLpm; loidcreated=2020-07-28T21%3A55%3A45.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_27&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_k\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_q\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"27\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPSBFKX89WECXVM27SER5T\", \"parent_id\": \"t3_q\", \"score\": 1, \"approved_by\": \"01EEBPS54NN9T7CSHTJ4J72Y9V\", \"controversiality\": 0, \"body\": \"Study relationship participant. Debate explain member month notice.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EStudy relationship participant. Debate explain member month notice.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973345_15_sea\", \"score_hidden\": false, \"name\": \"t1_27\", \"created\": 1595973355.0, \"author_flair_text\": null, \"created_utc\": 1595973355.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "998" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=lp5Oa1FCSgCgq0A6iO7%2BFsVlpcUZaJ0TPg2p4Jx7xt5JXwdfzC62I5a8N5jB3hswoRwauGSZoQ4%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_27&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_clear_downvote.json b/cassettes/channels.views.comments_test.test_update_comment_clear_downvote.json deleted file mode 100644 index cf14caeafd..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_clear_downvote.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRH9CBWSSVV0N2FNAKGVE" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQvCIBzFv8rwGA2ElrBuxqBDEtRhRBcx/btE5pauZkTfvdlOHd+P93vvjYSUEAIfOgsObTK0JjmxbGRKPI64itXISH3Gce+coTVFywxB7I2HwE3qrwjGE/vpfHj1kDauIDz41A2ym9EiJQ96Em9/Z5Re2C5vLaP6cJeuKDUvrSna07ZJioKnkcCNSrtzQJ8vUs0jMrYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=gwU92VhCWUpgNRkq0d; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:25 GMT", - "loidcreated=2020-07-28T21%3A55%3A25.046Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:25 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRH9CBWSSVV0N2FNAKGVE" - } - }, - { - "recorded_at": "2020-07-28T21:55:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 56-6kLwLdauQ0DxDwL6VX0xKnniAVA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=gwU92VhCWUpgNRkq0d; loidcreated=2020-07-28T21%3A55%3A25.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "275" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ZD%2FX5Co2XUQTH5o1lDafdsY%2BsFCj2aXQXunp%2F43tUf111z80jd58uRw3qbYv4I5yNeM9RAIy6dQ%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 56-6kLwLdauQ0DxDwL6VX0xKnniAVA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=gwU92VhCWUpgNRkq0d; loidcreated=2020-07-28T21%3A55%3A25.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "275" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=1PbWqsG0VfujBWggtn6to5%2FCr9mB3EU9iDxTXUehde5kTeKkqY5VTPNbIsYi5o18MDUefBANRrpXf4TfkiTfOXl1PW8YF%2FEb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 56-6kLwLdauQ0DxDwL6VX0xKnniAVA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=gwU92VhCWUpgNRkq0d; loidcreated=2020-07-28T21%3A55%3A25.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "275" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=GxuGsf%2BOPiuoPV2YOUkXl7Z3BLxd8pl5RST8m3K%2BSCpgYFFxTCdt4Ff1Y0qHiMSVKoItPy8wsDc%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_clear_upvote.json b/cassettes/channels.views.comments_test.test_update_comment_clear_upvote.json deleted file mode 100644 index 3d421a4157..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_clear_upvote.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRDRPKMWN6AZATW4C57HT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI11c1NLSsNt/TNjk+uMsoq889JKTC2rHLSLayo9FTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolrmnGuXnlaWHh+qaRIYVRqblV7gbBCUVepRapIO0pKSWZSanxmemgMyFcJRqAU98bHe2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=yW4en4d9bl0zu90qvQ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:21 GMT", - "loidcreated=2020-07-28T21%3A55%3A21.439Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRDRPKMWN6AZATW4C57HT" - } - }, - { - "recorded_at": "2020-07-28T21:55:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 55-mevuW9Mk_cz2jvOldp39zB-qxyI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yW4en4d9bl0zu90qvQ; loidcreated=2020-07-28T21%3A55%3A21.439Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_6&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"6\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"mitodl\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"dfasdfmaslkdf\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edfasdfmaslkdf\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_6\", \"created\": 1593536980.0, \"author_flair_text\": null, \"created_utc\": 1593536980.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "846" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=isHsL8nJXS8nke5WdZ9F44wFqpMqu3LkZUmWtyFGObbVnTR5jFBwh5FoT%2Fe8zxJr56TkB0AVKWs%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_6&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 55-mevuW9Mk_cz2jvOldp39zB-qxyI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yW4en4d9bl0zu90qvQ; loidcreated=2020-07-28T21%3A55%3A21.439Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/public_channel/about/moderators/?user=mitodl&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1593036144.0, \"mod_permissions\": [\"all\"], \"name\": \"mitodl\", \"id\": \"t2_2\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "128" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MZP4oE7zgadpEhFde%2BDtHi0xP2AvlRFC2m8qp1YYef5he1nNABrC2hjbrooeR%2BGJksC1ZASNRVP516xDCVAjpbxHWR8dPQl4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/public_channel/about/moderators/?user=mitodl&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 55-mevuW9Mk_cz2jvOldp39zB-qxyI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yW4en4d9bl0zu90qvQ; loidcreated=2020-07-28T21%3A55%3A21.439Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_6&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"6\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"mitodl\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"dfasdfmaslkdf\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Edfasdfmaslkdf\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_6\", \"created\": 1593536980.0, \"author_flair_text\": null, \"created_utc\": 1593536980.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "846" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wgMvy8bsvzMji2KugKapTcBnk%2BrgqD4XPnJCxJczBhXZOpLqVXjf7wFecGcP7cOc%2FC75fBCoXNE%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_6&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_downvote.json b/cassettes/channels.views.comments_test.test_update_comment_downvote.json deleted file mode 100644 index 851d1d68cc..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_downvote.json +++ /dev/null @@ -1,433 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRA7M2V8PCY0VM1REBXFT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI10bWo0vUOL0r28clOTLcwL3IyDgpMtMw2yUgvTFfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpUUeoRHepj6p5bHO0ZYpIcaRuSYhHuEmxaUO4K0pKSWZSanxmemgMyFcJRqAShQr6G2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=11C34iROkJpipiPk3d; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:18 GMT", - "loidcreated=2020-07-28T21%3A55%3A17.827Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRA7M2V8PCY0VM1REBXFT" - } - }, - { - "recorded_at": "2020-07-28T21:55:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 54-8z-KWrcLLkag87rB3RQa9k4hgqg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=11C34iROkJpipiPk3d; loidcreated=2020-07-28T21%3A55%3A17.827Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 2, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 2}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zsIeod5Z0i4oOzLxNRCTjnDfXkvkjKRKiHyw%2FN67g72gH6zroT53jhJ1pDEUeT%2F0d2UjoIZE6CU%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&dir=-1&id=t1_l" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 54-8z-KWrcLLkag87rB3RQa9k4hgqg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "28" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=11C34iROkJpipiPk3d; loidcreated=2020-07-28T21%3A55%3A17.827Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/vote/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/vote/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 54-8z-KWrcLLkag87rB3RQa9k4hgqg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=11C34iROkJpipiPk3d; loidcreated=2020-07-28T21%3A55%3A17.827Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=H983EkzL%2FDMwc%2Fk3ECFL6l5tYXOzXHn8akYd64hDXQ7BbELL%2BxnuEDt3vKKdPQwIrW98oPGdUjkx90zHGeTHFbqt9lkgzWRF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 54-8z-KWrcLLkag87rB3RQa9k4hgqg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=11C34iROkJpipiPk3d; loidcreated=2020-07-28T21%3A55%3A17.827Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": false, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "848" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jkPuxTAM8XlS8oSKa2lM3tbLVPhyZnjbzekpMPrH1UF8cymUhQ4IV%2FsNlkqmHOrFb0mW0RVE0aA%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_forbidden.json b/cassettes/channels.views.comments_test.test_update_comment_forbidden.json deleted file mode 100644 index 0ed829bb5d..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_forbidden.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPR391T74XHPS9VD1GQG8D" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI10g1yS64sdjFxD3Yzykstytd18i4pNSwoNYovCVTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolnlYGkYUGeT5eBcZRFkW5RQWupi6+oTnBod554O0pKSWZSanxmemgMyFcJRqAWV5E8O2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=NtAdtZ4jK5AOwBkdCD; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:11 GMT", - "loidcreated=2020-07-28T21%3A55%3A10.710Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:11 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPR391T74XHPS9VD1GQG8D" - } - }, - { - "recorded_at": "2020-07-28T21:55:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=updated+text&thing_id=t1_e8h" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 52-RFcysD4GSF2nero-BKtu1pu2_tQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "47" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=NtAdtZ4jK5AOwBkdCD; loidcreated=2020-07-28T21%3A55%3A10.710Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/editusertext/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [[\"NOT_AUTHOR\", \"you can't do that\", \"thing_id\"]]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "71" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "289" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/editusertext/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_ignore_reports.json b/cassettes/channels.views.comments_test.test_update_comment_ignore_reports.json deleted file mode 100644 index a6054a2aa7..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_ignore_reports.json +++ /dev/null @@ -1,1142 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:56:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSN7RGDP90YH3B7ND28XG" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz1C3zNCiIz61wLLd0LDAxMPXL9qhKqYgI8kgKyFfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolgVnpgf4hYUa5plXhAcUJOYFpwVVBQZGWRT6eYK0pKSWZSanxmemgMyFcJRqAbcovIK2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:02 GMT", - "loidcreated=2020-07-28T21%3A56%3A01.844Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:02 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSN7RGDP90YH3B7ND28XG" - } - }, - { - "recorded_at": "2020-07-28T21:56:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Public+movie+street.+At+account+citizen+movement+me+natural.%0AChair+anything+everyone+all+heavy+for.+Positive+so+leader+candidate+all+probably+anyone.%0AYou+character+project+each+style.+Example+unit+who+media+politics+issue.+Work+understand+stop+town+receive+join+effort+could.+Some+do+vote.%0ATeam+camera+commercial+tree+draw+century.+Change+Mr+need+apply.%0AResource+as+task+for+type.+State+west+amount+war+accept.+Like+pay+read+area+choose+charge+company.&link_type=any&name=1595973362_16_service&public_description=Commercial+strategy+those+almost.+Eight+national+reality+practice+area+nothing.&title=Involve+protect+necessary+win+cut+cell+both.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "723" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSVQ6EQJKHDD7K8F9R8EX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz0s0FgqxI8/KSwJQi51LL1LLkCD//QK+qyvJ8JR0FpdSKgsyi1OL4TJB6YzMDA6AYWHt8SWVBKsiMpNTEotQikNri5HyIkBaIV5SaBtSYgWJZiFlySU6lrnugd5RrZVWBW3i+b2FAcLZrWXo2SEtKallmcmp8ZgrIXAhHqRYATLYRNLYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPSVQ6EQJKHDD7K8F9R8EX" - } - }, - { - "recorded_at": "2020-07-28T21:56:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPSVQ6EQJKHDD7K8F9R8EX&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973362_16_service/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "232" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973362_16_service/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973362_16_service" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 62-mmmmjY7wtQdrCu9evcXNOQJzywo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "232" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973362_16_service&text=Lead+then+item+such+after+less+travel.+Step+natural+environmental+yeah.&title=Can+local+suddenly+nation+investment+drive+chair." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 62-mmmmjY7wtQdrCu9evcXNOQJzywo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973362_16_service/comments/r/can_local_suddenly_nation_investment_drive_chair/\", \"id\": \"r\", \"name\": \"t3_r\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "232" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 62-mmmmjY7wtQdrCu9evcXNOQJzywo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/r/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973362_16_service\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELead then item such after less travel. Step natural environmental yeah.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Lead then item such after less travel. Step natural environmental yeah.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPSVQ6EQJKHDD7K8F9R8EX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973362_16_service\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_l\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973362_16_service/comments/r/can_local_suddenly_nation_investment_drive_chair/\", \"locked\": false, \"name\": \"t3_r\", \"created\": 1595973368.0, \"url\": \"http://reddit.local/r/1595973362_16_service/comments/r/can_local_suddenly_nation_investment_drive_chair/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Can local suddenly nation investment drive chair.\", \"created_utc\": 1595973368.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "231" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FvYEJS1FOkBSIuNi9lYKIN%2Bs5JlfbmYaIzu9XC4S4Xtrr5Cl5ZkXTGqEBGSmBn0ppNNLlblp2JK3S1o4G2PGQEz6QNQkUGAe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/r/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Goal+bag+trade+clear+quality+address+him.+Energy+be+space+technology+entire.&thing_id=t3_r" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 62-mmmmjY7wtQdrCu9evcXNOQJzywo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_l\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_r\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"28\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPSVQ6EQJKHDD7K8F9R8EX\", \"parent_id\": \"t3_r\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Goal bag trade clear quality address him. Energy be space technology entire.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EGoal bag trade clear quality address him. Energy be space technology entire.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973362_16_service\", \"score_hidden\": false, \"name\": \"t1_28\", \"created\": 1595973372.0, \"author_flair_text\": null, \"created_utc\": 1595973372.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "956" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "228" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_28" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/approve/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/approve/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_28" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/ignore_reports/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/ignore_reports/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_28&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_l\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_r\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"28\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPSVQ6EQJKHDD7K8F9R8EX\", \"parent_id\": \"t3_r\", \"score\": 1, \"approved_by\": \"01EEBPSN7RGDP90YH3B7ND28XG\", \"controversiality\": 0, \"body\": \"Goal bag trade clear quality address him. Energy be space technology entire.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EGoal bag trade clear quality address him. Energy be space technology entire.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973362_16_service\", \"score_hidden\": false, \"name\": \"t1_28\", \"created\": 1595973372.0, \"author_flair_text\": null, \"created_utc\": 1595973372.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1020" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BUb7qqwh2ZsxGkWIdcuaMx2514Pk0pC2eb%2BcriwNGp6COw%2FMqfwmkN0Bt%2Bt0oKugNizUZYBqxdU%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_28&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973362_16_service/about/moderators/?user=01EEBPSVQ6EQJKHDD7K8F9R8EX&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sZUnUvPwXAwQsacCxpiXxowjiO%2FNmeeBN85HFp2jhqvc%2B7UTkBtdXVNZBngYRGGC2QVGYnXMZPCcyvMY9%2FGBCdeGpX7SBTr4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973362_16_service/about/moderators/?user=01EEBPSVQ6EQJKHDD7K8F9R8EX&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 61-vI0p_mxAw9Ap405NkHzdxXRHbPo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7bOUvhVDIBrIZAJIWp; loidcreated=2020-07-28T21%3A56%3A01.844Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_28&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_l\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_r\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"28\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPSVQ6EQJKHDD7K8F9R8EX\", \"parent_id\": \"t3_r\", \"score\": 1, \"approved_by\": \"01EEBPSN7RGDP90YH3B7ND28XG\", \"controversiality\": 0, \"body\": \"Goal bag trade clear quality address him. Energy be space technology entire.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EGoal bag trade clear quality address him. Energy be space technology entire.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973362_16_service\", \"score_hidden\": false, \"name\": \"t1_28\", \"created\": 1595973372.0, \"author_flair_text\": null, \"created_utc\": 1595973372.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1020" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=t1rNXxmyz6siYRqzADiw2Ko7zu%2Bxthcz9PfcE%2B4Xt6Q8bUhowRcIgMHGayKrAXEVEeZOH9iBk4I%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_28&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json b/cassettes/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json deleted file mode 100644 index 850729f95f..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json +++ /dev/null @@ -1,783 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:56:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPT5E25KFJDGM216124PJP" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz1jXL8vHTrQzNKtctdCmNdwvyLEqxKCo3CquoDFTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkollmmWuQFpGYUBugmVzqmGYbrpkcVVhj4B3hZmoC0pKSWZSanxmemgMyFcJRqAb5rOw22AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=j1Ee8BFTiunSam43P3; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:18 GMT", - "loidcreated=2020-07-28T21%3A56%3A18.443Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPT5E25KFJDGM216124PJP" - } - }, - { - "recorded_at": "2020-07-28T21:56:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPT8QDXEYY24C71BK7KPXJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz0XVyKjfLLY9KTAu3KEgzC/EK8fWONw0OMXYzM1DSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolnknB6cGOwaZV4W6lBQUZ4cVOVVV6eZlhwaG+YK0pKSWZSanxmemgMyFcJRqAZrCMW22AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPT8QDXEYY24C71BK7KPXJ" - } - }, - { - "recorded_at": "2020-07-28T21:56:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=School+suddenly+ahead+wife+someone+front+stock.+Answer+hot+lot+hold+decade.%0AAnother+issue+benefit+assume.+Worker+young+interest+night.+Tend+charge+worker+her+front.%0APossible+nice+my+style+visit+next.%0AToward+stock+black+teacher+entire+identify+today.+Hotel+while+fine+country+get+per+report.%0AHot+information+beautiful+career+between.+Save+air+left+section+method+big.+Sea+late+along+wife+third+first+much.%0AThen+final+into+option+dark+edge+blue.+Specific+quite+social+experience+out+kid+apply.&link_type=any&name=1595973382_17_deep&public_description=Theory+administration+value+everyone+final+purpose+prove.&title=Clearly+throw+factor+new.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 64-BBw6mwZafW8pf6TJTMK_5ST3F60" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "720" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "218" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPT5E25KFJDGM216124PJP&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 64-BBw6mwZafW8pf6TJTMK_5ST3F60" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973382_17_deep/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "215" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973382_17_deep/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973382_17_deep" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 63-6jLN-yUjw-qDu_FRIrd8rw2VxyQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "215" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973382_17_deep&text=Left+poor+baby+official+throughout.+Stuff+life+place+top+return.&title=Interesting+stage+general+scene." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 63-6jLN-yUjw-qDu_FRIrd8rw2VxyQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "185" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973382_17_deep/comments/s/interesting_stage_general_scene/\", \"id\": \"s\", \"name\": \"t3_s\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "215" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 63-6jLN-yUjw-qDu_FRIrd8rw2VxyQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/s/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973382_17_deep\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELeft poor baby official throughout. Stuff life place top return.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Left poor baby official throughout. Stuff life place top return.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPT5E25KFJDGM216124PJP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973382_17_deep\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973382_17_deep/comments/s/interesting_stage_general_scene/\", \"locked\": false, \"name\": \"t3_s\", \"created\": 1595973385.0, \"url\": \"http://reddit.local/r/1595973382_17_deep/comments/s/interesting_stage_general_scene/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Interesting stage general scene.\", \"created_utc\": 1595973385.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1691" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "215" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=RW8uk5Mk2k4ro%2FY3TNaZ6NJ8Tglr9JT4NbpR4ztNVv2O0Zcggqi7ItuLk%2Fy5ErrSjhtgu4HUlyYm4LxX7QZKVDrIt9emhdkd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/s/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Think+plan+fish+trip+best+phone.+Recently+until+garden+yeah+easy+growth.&thing_id=t3_s" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 63-6jLN-yUjw-qDu_FRIrd8rw2VxyQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "105" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_m\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_s\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"29\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPT5E25KFJDGM216124PJP\", \"parent_id\": \"t3_s\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Think plan fish trip best phone. Recently until garden yeah easy growth.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThink plan fish trip best phone. Recently until garden yeah easy growth.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973382_17_deep\", \"score_hidden\": false, \"name\": \"t1_29\", \"created\": 1595973388.0, \"author_flair_text\": null, \"created_utc\": 1595973388.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "945" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "212" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_29" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 63-6jLN-yUjw-qDu_FRIrd8rw2VxyQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=j1Ee8BFTiunSam43P3; loidcreated=2020-07-28T21%3A56%3A18.443Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/approve/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/api/approve/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_remove.json b/cassettes/channels.views.comments_test.test_update_comment_remove.json deleted file mode 100644 index 8341752597..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_remove.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRMTYJ6QA9V5GBJ7BECB5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WN0QqCMBiFX0X+yygYLDfoNiKhiBKxuhrb/KWpNdksjOjdc3rV5Tl85zsfkFqj96KzNT5gFUHMFyo/ZDo50Z2vGL1mPGX82D/jShUbmEeAfWscemECTxkhQzfORfduMTgUSocusF7bqZqF5LAchre/M9acL5Kse1Kbbpk2NN+XStptfWfjWYEvo1GYIninAN8fnxeAZrYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:29 GMT", - "loidcreated=2020-07-28T21%3A55%3A28.676Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:29 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRMTYJ6QA9V5GBJ7BECB5" - } - }, - { - "recorded_at": "2020-07-28T21:55:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Success+role+either+project+wide.+At+firm+night+letter.+Class+music+sell.%0AAfter+table+surface+serve+likely.+Two+material+material.+Reality+technology+show+many+best+agent.%0AHard+miss+door+project+the+white+support.+Be+lay+commercial+its+news+onto+charge.+Understand+recently+example+believe.+Room+be+thank+loss+natural+paper.%0AStructure+fight+seat+condition.+Hit+impact+build+side+tell.%0AFish+focus+toward+movement+cultural.+Wind+join+economy.+Son+ground+stand+radio+trouble+also.&link_type=any&name=1595973329_14_environ&public_description=Page+wrong+police+behavior+discussion+only+town.&title=Poor+yourself+course.+Main+hand+politics.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "714" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRV84XY6E1R34XY20EQJY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK10A2oqAo2LUgpiyrOLgxJrXLydS30My70TM/0TFbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolhkbphqXWPpXWrilBpZFmTqbeidHBZYGGYaEOYK0pKSWZSanxmemgMyFcJRqASXffOC2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPRV84XY6E1R34XY20EQJY" - } - }, - { - "recorded_at": "2020-07-28T21:55:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPRV84XY6E1R34XY20EQJY&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973329_14_environ/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973329_14_environ/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973329_14_environ" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 58-PxzS5pdvZskqTezBMEqN3qIgiIc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973329_14_environ&text=Pull+consider+up+firm+house+cell.+Theory+college+daughter+feel.&title=Share+work+change+stop." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 58-PxzS5pdvZskqTezBMEqN3qIgiIc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973329_14_environ/comments/p/share_work_change_stop/\", \"id\": \"p\", \"name\": \"t3_p\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "151" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 58-PxzS5pdvZskqTezBMEqN3qIgiIc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/p/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973329_14_environ\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPull consider up firm house cell. Theory college daughter feel.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Pull consider up firm house cell. Theory college daughter feel.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPRV84XY6E1R34XY20EQJY\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973329_14_environ\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_j\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973329_14_environ/comments/p/share_work_change_stop/\", \"locked\": false, \"name\": \"t3_p\", \"created\": 1595973335.0, \"url\": \"http://reddit.local/r/1595973329_14_environ/comments/p/share_work_change_stop/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Share work change stop.\", \"created_utc\": 1595973335.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1674" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=E0fAUuV0yeZKXYo5dqI7UW6zqPW6FTgTENUeCBmVDq%2FOcUC9d1khA78GP0USqZv2eogx%2FasVWDjygpSEws8scJjNT7oneN1%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/p/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Never+tonight+operation+member.+Half+writer+single+building+go+ahead.+Him+sound+few+dream+class.&thing_id=t3_p" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 58-PxzS5pdvZskqTezBMEqN3qIgiIc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_j\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_p\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"26\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPRV84XY6E1R34XY20EQJY\", \"parent_id\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Never tonight operation member. Half writer single building go ahead. Him sound few dream class.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENever tonight operation member. Half writer single building go ahead. Him sound few dream class.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973329_14_environ\", \"score_hidden\": false, \"name\": \"t1_26\", \"created\": 1595973339.0, \"author_flair_text\": null, \"created_utc\": 1595973339.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "996" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "261" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_26&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_26&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_j\", \"banned_by\": \"01EEBPRMTYJ6QA9V5GBJ7BECB5\", \"removal_reason\": null, \"link_id\": \"t3_p\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"26\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPRV84XY6E1R34XY20EQJY\", \"parent_id\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Never tonight operation member. Half writer single building go ahead. Him sound few dream class.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENever tonight operation member. Half writer single building go ahead. Him sound few dream class.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973329_14_environ\", \"score_hidden\": false, \"name\": \"t1_26\", \"created\": 1595973339.0, \"author_flair_text\": null, \"created_utc\": 1595973339.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1060" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jomQkjxb5PfXOvCLc5naFG6tJepMQFHcSzS69l%2Fvad0eM4b5wr31yOjKlxb4zWOO5ZgsopYDf%2BY%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_26&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973329_14_environ/about/moderators/?user=01EEBPRV84XY6E1R34XY20EQJY&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=J5nkQt2cdydbYuImKjT3dGAphsXG0uu9YvVeRVFv8efXtMZ00BH6eoPJBQSv%2F20c0eE%2BswU3YeRSqomHLyREsoZCyb4jUE5a" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973329_14_environ/about/moderators/?user=01EEBPRV84XY6E1R34XY20EQJY&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 57-bVNTcHQ3Ksj63YT7R67Pxu5jbdE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JAaNcD7PM7OnwDKFwZ; loidcreated=2020-07-28T21%3A55%3A28.676Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_26&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_j\", \"banned_by\": \"01EEBPRMTYJ6QA9V5GBJ7BECB5\", \"removal_reason\": null, \"link_id\": \"t3_p\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"26\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPRV84XY6E1R34XY20EQJY\", \"parent_id\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Never tonight operation member. Half writer single building go ahead. Him sound few dream class.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENever tonight operation member. Half writer single building go ahead. Him sound few dream class.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973329_14_environ\", \"score_hidden\": false, \"name\": \"t1_26\", \"created\": 1595973339.0, \"author_flair_text\": null, \"created_utc\": 1595973339.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1060" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mgWxheWZSpcrD2DjCnhC%2FhIuyPloD6Md0mMsxBi%2BvXnz%2F3S%2BYFC2KGCP%2FEk3qBLlEXTcVlIvejM%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_26&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_subscribe.json b/cassettes/channels.views.comments_test.test_update_comment_subscribe.json deleted file mode 100644 index f98a39e68c..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_subscribe.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:56:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPTRFENAMVB3H5AHTA4SW5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz1Q31zQrJswx2DUwNcDTySS3xyYmsKItItPAyLFfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpVlRJSllCZF6RYYF1clmnhklqeZVJT4hUeY+oK0pKSWZSanxmemgMyFcJRqAeMGopK2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=p76kWbuHQVDM2iENQk; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:38 GMT", - "loidcreated=2020-07-28T21%3A56%3A37.955Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:38 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPTRFENAMVB3H5AHTA4SW5" - } - }, - { - "recorded_at": "2020-07-28T21:56:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Agreement+participant+less+cut+about+appear+teacher.+Final+thing+without+open+school.+Trouble+poor+produce+new+than+responsibility+professional.%0AThen+hope+put+stage+guy+now.+Bill+affect+him+back+choice+perform.+Baby+tree+role+assume.%0AView+who+source+term+draw.%0ADirection+health+prove+population+great+air+onto.+Site+become+happen+gas.+Prevent+score+nearly+set+maybe+range+doctor.%0ABorn+high+easy+relationship+debate+strategy+system.+Study+effect+add.&link_type=any&name=1595973398_18_force&public_description=North+particularly+significant+floor+training.&title=Key+door+each+scene+raise+much.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 65-UMjTn9SEQePA2LetLlYxvXa8J1w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "672" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "202" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPTYX1XJZACSCAVPPN19JY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz0/X1inIyDq1I96jK9c/Pr6hMiUwptswvD0vOdlXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolnmaAm1OD3fzCjeKdHN1Lig0MA0PDvLIMHcvB2lJSS3LTE6Nz0wBmQvhKNUCAP2o24+2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPTYX1XJZACSCAVPPN19JY" - } - }, - { - "recorded_at": "2020-07-28T21:56:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPTYX1XJZACSCAVPPN19JY&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 65-UMjTn9SEQePA2LetLlYxvXa8J1w" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973398_18_force/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "196" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973398_18_force/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973398_18_force" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 66-MJZB3UxgHzmOooxydYds9owVckE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "195" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973398_18_force&text=Culture+accept+and+total.+Case+laugh+top+indeed+surface+class+help+physical.&title=Address+already+sense+key+member." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 66-MJZB3UxgHzmOooxydYds9owVckE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "199" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973398_18_force/comments/t/address_already_sense_key_member/\", \"id\": \"t\", \"name\": \"t3_t\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "159" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "195" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 66-MJZB3UxgHzmOooxydYds9owVckE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/t/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973398_18_force\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECulture accept and total. Case laugh top indeed surface class help physical.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Culture accept and total. Case laugh top indeed surface class help physical.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPTYX1XJZACSCAVPPN19JY\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973398_18_force\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973398_18_force/comments/t/address_already_sense_key_member/\", \"locked\": false, \"name\": \"t3_t\", \"created\": 1595973405.0, \"url\": \"http://reddit.local/r/1595973398_18_force/comments/t/address_already_sense_key_member/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Address already sense key member.\", \"created_utc\": 1595973405.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1722" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "195" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Gt7VhgbwdHFYq4cyJG%2BiPjSO6IERRW0odVweazNZYBMa2nPjDyln7pmTVB1ebh1QSxn8EPsmtXrtKLuyHlIiHSvSWBXYq%2Bnz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/t/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Likely+agree+where+daughter.+Lay+over+woman+station+believe+song+safe+particular.&thing_id=t3_t" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 66-MJZB3UxgHzmOooxydYds9owVckE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "114" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_t\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPTYX1XJZACSCAVPPN19JY\", \"parent_id\": \"t3_t\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Likely agree where daughter. Lay over woman station believe song safe particular.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELikely agree where daughter. Lay over woman station believe song safe particular.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973398_18_force\", \"score_hidden\": false, \"name\": \"t1_2a\", \"created\": 1595973408.0, \"author_flair_text\": null, \"created_utc\": 1595973408.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "964" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "192" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 65-UMjTn9SEQePA2LetLlYxvXa8J1w" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2a&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_t\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPTYX1XJZACSCAVPPN19JY\", \"parent_id\": \"t3_t\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Likely agree where daughter. Lay over woman station believe song safe particular.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELikely agree where daughter. Lay over woman station believe song safe particular.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973398_18_force\", \"score_hidden\": false, \"name\": \"t1_2a\", \"created\": 1595973408.0, \"author_flair_text\": null, \"created_utc\": 1595973408.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1004" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "189" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=XCarpPBXXeGD0PP8jKMb45udCwZxudyKoBo2KGub%2BY8KVmgt0zt3yPq698PU6G5hGVXANkd7L4Y%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2a&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 65-UMjTn9SEQePA2LetLlYxvXa8J1w" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973398_18_force/about/moderators/?user=01EEBPTYX1XJZACSCAVPPN19JY&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "189" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BQ2XHMGLyst%2BCKPT03wFPmPHOTPGj0Z8WoMTxSUdw5Gpxs33IEA%2Ba4df2QXstEeODK9UjfCdh%2FplqqvrA0jdYDcRCpf8pCOe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973398_18_force/about/moderators/?user=01EEBPTYX1XJZACSCAVPPN19JY&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:56:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 65-UMjTn9SEQePA2LetLlYxvXa8J1w" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=p76kWbuHQVDM2iENQk; loidcreated=2020-07-28T21%3A56%3A37.955Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2a&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_t\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPTYX1XJZACSCAVPPN19JY\", \"parent_id\": \"t3_t\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Likely agree where daughter. Lay over woman station believe song safe particular.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELikely agree where daughter. Lay over woman station believe song safe particular.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973398_18_force\", \"score_hidden\": false, \"name\": \"t1_2a\", \"created\": 1595973408.0, \"author_flair_text\": null, \"created_utc\": 1595973408.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1004" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "189" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vPMtLiLqDIq48rabL9kx%2FHmZ%2BAa%2B3n4Tc3MCh1h1ooU5rzDUGnf8xbSlxfGN3ZvpqK4%2F8WQdV1c%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2a&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_text.json b/cassettes/channels.views.comments_test.test_update_comment_text.json deleted file mode 100644 index d3d46944b6..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_text.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:07:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQEE8X64Q74GMJFNXYEQJJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WN0QqCMBiFX0V2GQmWsaxLGXQVGIhGN0O3X12Grm1FI3r3/POqy/NxvnPepBICrOVu7GEg+4DQXbhlWaFUHt57PTQlZafY1154l10SsgwIvLQyYLnCfkyjaGI/nTuvATdqqAwY7FoxzmiByUAzid3fWStl2uX6wGRZ9HDW11WbPI78tllbVCQ8lQCuJO7OgXy+hAc3uLYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:07:23 GMT", - "loidcreated=2020-07-28T22%3A07%3A22.846Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:07:23 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQEE8X64Q74GMJFNXYEQJJ" - } - }, - { - "recorded_at": "2020-07-28T22:07:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQEHJRET0S3J9ZQMEZWXHF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI30E3OsizKNLawLMiOLIjKjvTPSDSOyol3SvWr8lXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolkWYWzp6epmbZ1eYBgdZphRWhhf6JvmbuJuXJoO0pKSWZSanxmemgMyFcJRqATrfQi62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQEHJRET0S3J9ZQMEZWXHF" - } - }, - { - "recorded_at": "2020-07-28T22:07:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Enjoy+consumer+life+building.+Or+himself+sign+hair.+Lay+forward+eight+politics.%0APublic+commercial+decade+dark.+Arm+exist+today+carry.+Fall+sit+point+explain+east+available.+Discuss+particular+world+ahead+remain+listen.%0ASee+here+operation+them.+Religious+raise+official+relate+oil+power+heart.+Though+order+defense+suddenly+who.%0AUntil+blood+sure+floor.+Future+those+which+within+could+help+scientist.+Nice+which+member+star+exist+consumer.+Summer+effect+tough+compare+Democrat+less.&link_type=any&name=1595974046_14_save&public_description=Already+simply+no+pay+find+avoid+buy.+Public+identify+provide+kitchen.&title=Water+do+other.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 70-cj9ri389pkYpZkYOha3Zl_BeNzM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "709" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "154" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQEE8X64Q74GMJFNXYEQJJ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 70-cj9ri389pkYpZkYOha3Zl_BeNzM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974046_14_save/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "151" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974046_14_save/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974046_14_save" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "151" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974046_14_save&text=Television+member+a.+Edge+them+so+well+dream.+Though+magazine+development+while+general+large.&title=Drop+on+coach+under." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "203" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974046_14_save/comments/v/drop_on_coach_under/\", \"id\": \"v\", \"name\": \"t3_v\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "145" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "151" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/v/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974046_14_save\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETelevision member a. Edge them so well dream. Though magazine development while general large.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Television member a. Edge them so well dream. Though magazine development while general large.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQEE8X64Q74GMJFNXYEQJJ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974046_14_save\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974046_14_save/comments/v/drop_on_coach_under/\", \"locked\": false, \"name\": \"t3_v\", \"created\": 1595974049.0, \"url\": \"http://reddit.local/r/1595974046_14_save/comments/v/drop_on_coach_under/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Drop on coach under.\", \"created_utc\": 1595974049.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1715" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "151" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=KJgzXmkZVnk1Us5zT4sZWI8zLonrNXblHdrH1s3WPDaRVgkzT1kF4UmqxGUtPvcmbqYsJDpmEUb8sWJ0FwIoqWKhfbk5rL%2Fw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/v/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Also+determine+ever+radio+wife+reason+land.&thing_id=t3_v" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_v\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBQEE8X64Q74GMJFNXYEQJJ\", \"parent_id\": \"t3_v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Also determine ever radio wife reason land.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAlso determine ever radio wife reason land.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595974046_14_save\", \"score_hidden\": false, \"name\": \"t1_2c\", \"created\": 1595974052.0, \"author_flair_text\": null, \"created_utc\": 1595974052.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "887" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "148" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=updated+text&thing_id=t1_2c" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/editusertext/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_v\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBQEE8X64Q74GMJFNXYEQJJ\", \"parent_id\": \"t3_v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595974046_14_save\", \"score_hidden\": false, \"name\": \"t1_2c\", \"created\": 1595974052.0, \"author_flair_text\": null, \"created_utc\": 1595974052.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "825" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "144" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/editusertext/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2c&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_v\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBQEE8X64Q74GMJFNXYEQJJ\", \"parent_id\": \"t3_v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595974046_14_save\", \"score_hidden\": false, \"name\": \"t1_2c\", \"created\": 1595974052.0, \"author_flair_text\": null, \"created_utc\": 1595974052.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "870" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "144" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bLUCuXdQyum8xIU4XBsXckqn3hw0vPhkwsUq4FHiKOuc40qJSuoi5EGnZ65IP8bZIuZN71JZT3w%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2c&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974046_14_save/about/moderators/?user=01EEBQEE8X64Q74GMJFNXYEQJJ&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "144" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=PhY5YrsQiv7TDOgEsvDI%2BxXuEgf%2FZwSYn%2FMyPkodzjl0Jp7F%2FWu1cmUuzlZqRzZ6CsW3DmVbXZt1j%2FbvvnqZ2k3yQKTr5as3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974046_14_save/about/moderators/?user=01EEBQEE8X64Q74GMJFNXYEQJJ&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:07:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 69-7DPViiT-qkpnfW6DQ3ybycytPZ8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=d5MWkkbdIyiTmiq9V5; loidcreated=2020-07-28T22%3A07%3A22.846Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2c&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_v\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBQEE8X64Q74GMJFNXYEQJJ\", \"parent_id\": \"t3_v\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595974046_14_save\", \"score_hidden\": false, \"name\": \"t1_2c\", \"created\": 1595974052.0, \"author_flair_text\": null, \"created_utc\": 1595974052.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "870" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:07:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "144" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=GI77rHR%2BxCkij7usuvqFfkxfhOu1%2BB1v8Bvv3lgNSOXXye6hUSC3A5qZ1uEF5eOBJMHd51CNYIM%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2c&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_text_moderator.json b/cassettes/channels.views.comments_test.test_update_comment_text_moderator.json deleted file mode 100644 index 83f2002751..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_text_moderator.json +++ /dev/null @@ -1,1234 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T23:41:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBWTMJA2K42Y2PY57W6PW4R" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MNHN97bIMvYKdw2uCgqzyDYp9/ByCw1IDcgzTHdV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLaVVOWkFaYEGwXmFnslRZkHJaYbWISkWRpZ5oP0pKSWZSanxmemgAyGcJRqAYyhke24AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ToxecEW6EVrNnNgt3A; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 23:41:25 GMT", - "loidcreated=2020-07-28T23%3A41%3A25.279Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 23:41:25 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBWTMJA2K42Y2PY57W6PW4R" - } - }, - { - "recorded_at": "2020-07-28T23:41:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBWTQRY4357W2RNY3G258HH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0MNXVdc2udHLV9Q9N9Ck0KM6IyEgLMy5ODC0LiHRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5RFma5BYXu1hYOBemBhmVpBpmBfnlZ4QkpjqC9KSklmUmp8ZnpoAMhnCUagGboumkuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBWTQRY4357W2RNY3G258HH" - } - }, - { - "recorded_at": "2020-07-28T23:41:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Remember+really+leave.+Act+remain+every+break+whole+with.+Specific+Mr+actually+community+produce+approach.%0APretty+catch+himself+staff+necessary+adult+forget.+Ok+show+wish.+Performance+travel+notice+discuss+step+hospital+goal.%0ATrial+right+change+pick+certainly+decade+paper+again.+Whatever+worry+lose+Democrat+his+budget.+Yes+artist+his+age+whole+idea+meeting.+Nor+talk+win+especially.%0AHuge+weight+or+teach+both.+Rate+evening+could+especially+reveal.&link_type=any&name=1595979688_16_what&public_description=Suffer+artist+eight+learn.&title=Purpose+her+expect+oil.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105--EkyBE-OUaLq0shXhfV3saUvPYE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "641" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "512" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBWTMJA2K42Y2PY57W6PW4R&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105--EkyBE-OUaLq0shXhfV3saUvPYE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595979688_16_what/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595979688_16_what/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595979688_16_what" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBWTMJA2K42Y2PY57W6PW4R&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 105--EkyBE-OUaLq0shXhfV3saUvPYE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595979688_16_what/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595979688_16_what/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595979688_16_what/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595979688_16_what/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595979688_16_what&text=Quite+thus+right+reach+law+visit.+Case+important+fire+boy+hit.&title=Family+challenge+old." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595979688_16_what/comments/1a/family_challenge_old/\", \"id\": \"1a\", \"name\": \"t3_1a\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595979688_16_what\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuite thus right reach law visit. Case important fire boy hit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quite thus right reach law visit. Case important fire boy hit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595979688_16_what\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_16\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595979688_16_what/comments/1a/family_challenge_old/\", \"locked\": false, \"name\": \"t3_1a\", \"created\": 1595979692.0, \"url\": \"http://reddit.local/r/1595979688_16_what/comments/1a/family_challenge_old/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Family challenge old.\", \"created_utc\": 1595979692.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1654" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "508" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pqJ4njYyhx0n855zp%2FPcMg58umbJZowKH0q5FMnWHRJ7n%2FZhiG%2BomFAD8QS%2Ba5K3%2BEh2jYGjRh9o4Sa4vGVtor4z9xX2OsgG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=What+animal+threat+read+relationship+director.+Measure+left+enjoy+summer.&thing_id=t3_1a" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_16\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"parent_id\": \"t3_1a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"What animal threat read relationship director. Measure left enjoy summer.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWhat animal threat read relationship director. Measure left enjoy summer.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595979688_16_what\", \"score_hidden\": false, \"name\": \"t1_2f\", \"created\": 1595979695.0, \"author_flair_text\": null, \"created_utc\": 1595979695.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "945" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "505" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=updated+text&thing_id=t1_2f" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/editusertext/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_16\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"parent_id\": \"t3_1a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595979688_16_what\", \"score_hidden\": false, \"name\": \"t1_2f\", \"created\": 1595979695.0, \"author_flair_text\": null, \"created_utc\": 1595979695.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "823" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "502" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/editusertext/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2f&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_16\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"parent_id\": \"t3_1a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595979688_16_what\", \"score_hidden\": false, \"name\": \"t1_2f\", \"created\": 1595979695.0, \"author_flair_text\": null, \"created_utc\": 1595979695.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "868" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "502" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=KU8l3JDIK8U0dFqid5PapfMLQSdYT89V%2B7bWcpjt8%2Fvt83bafl%2FYfczvn1XehqwmIZRxreMNGZ8%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2f&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595979688_16_what/about/moderators/?user=01EEBWTMJA2K42Y2PY57W6PW4R&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1595979692.0, \"mod_permissions\": [\"all\"], \"name\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"id\": \"t2_2w\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "502" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2R%2FLWwOTDtgillUNMmC65e8IrjOiYtzJhfW8Ao2FaVnL71UNo6Yt4Ya29KzHL55lHbXcBlUWKWGPHJeTX1tRsc2OiLT7GeuK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595979688_16_what/about/moderators/?user=01EEBWTMJA2K42Y2PY57W6PW4R&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T23:41:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 104-oK8j3JWESzRV8k4wHJFUPePn1gE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ToxecEW6EVrNnNgt3A; loidcreated=2020-07-28T23%3A41%3A25.279Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2f&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_16\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2f\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBWTMJA2K42Y2PY57W6PW4R\", \"parent_id\": \"t3_1a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"updated text\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eupdated text\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595979688_16_what\", \"score_hidden\": false, \"name\": \"t1_2f\", \"created\": 1595979695.0, \"author_flair_text\": null, \"created_utc\": 1595979695.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "868" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 23:41:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "502" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2ap%2BKDpYY99SLzlI%2B9RtvtjvpIr%2FDtd9r4B6onJhFCc9pOLShzDAHMtgRXvC7nBSxIXKpVbuezo%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2f&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_unsubscribe.json b/cassettes/channels.views.comments_test.test_update_comment_unsubscribe.json deleted file mode 100644 index f3152f7a94..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_unsubscribe.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:56:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPV8JXGJ2GQSMGWJG2C3M4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIz1/VwTSrwscj08a1MTTM0Mq408kl3tTTKKs83NlDSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljlVORsU5/vkpGWF5IQHGnqEJnsW56b7p6QlR4K0pKSWZSanxmemgMyFcJRqAUIV5Hm2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=yWpaJdK24yG8FBIVRG; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:54 GMT", - "loidcreated=2020-07-28T21%3A56%3A54.436Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:56:54 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPV8JXGJ2GQSMGWJG2C3M4" - } - }, - { - "recorded_at": "2020-07-28T21:56:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Explain+thought+pressure+admit.%0ABreak+around+purpose+say+indicate+series+culture.%0AElse+certainly+actually+yet+fine+section.+Others+newspaper+general+nation.+Treat+morning+old+rule+whether.%0AOrder+shoulder+computer.+Hour+billion+increase+simply+hair.%0ACut+happen+discover+one+imagine+leave+lawyer+floor.+Wall+reason+speak+arrive+past+land+over.+The+peace+enjoy+including.%0AIdea+land+church+soldier+table+focus.+Tell+red+oil.+They+quality+it+although+spend.+Often+just+statement+process+position.&link_type=any&name=1595973414_19_stateme&public_description=Spend+remember+important+customer+heavy+garden+forget.+Choice+man+customer.&title=See+important+thus+hard+power+capital+knowledge.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 67-HEbpL8iLMyef123y2LgE92jwo30" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "764" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:56:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "186" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPVF1SXSB6FNRZECP1FFN5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKz0DVyDHdxTHKKtPDI8jEPsjB1cystNShPcc82NFHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqUnewSGGJo6OlUVWxRHFmT5m+Z6RPpF+ERYgC1LSS3LTE6Nz0wBmQvhKNUCAEdCH8y2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPVF1SXSB6FNRZECP1FFN5" - } - }, - { - "recorded_at": "2020-07-28T21:57:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBPVF1SXSB6FNRZECP1FFN5&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 67-HEbpL8iLMyef123y2LgE92jwo30" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595973414_19_stateme/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "179" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973414_19_stateme/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595973414_19_stateme" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 68-2AWDAbBY8HjL7R85FFuu0wdGk14" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "179" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595973414_19_stateme&text=Likely+worker+source+between+already+author+add+democratic.+Appear+well+gas.&title=Sort+speak+write+affect+gun+story." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 68-2AWDAbBY8HjL7R85FFuu0wdGk14" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "202" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595973414_19_stateme/comments/u/sort_speak_write_affect_gun_story/\", \"id\": \"u\", \"name\": \"t3_u\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "162" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "179" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 68-2AWDAbBY8HjL7R85FFuu0wdGk14" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/u/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595973414_19_stateme\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELikely worker source between already author add democratic. Appear well gas.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Likely worker source between already author add democratic. Appear well gas.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBPVF1SXSB6FNRZECP1FFN5\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595973414_19_stateme\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595973414_19_stateme/comments/u/sort_speak_write_affect_gun_story/\", \"locked\": false, \"name\": \"t3_u\", \"created\": 1595973421.0, \"url\": \"http://reddit.local/r/1595973414_19_stateme/comments/u/sort_speak_write_affect_gun_story/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sort speak write affect gun story.\", \"created_utc\": 1595973421.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1733" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "179" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=tE40neQ%2FpyyKGFGhkvWA7O7pdaAr7ltjQa1k1CTPQR5i6CU36DJQa3xVftG35K3m33Wvu7Xm8kncF9qi%2FtkaYna2rf1Hy9kR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/u/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Exist+cup+we+fire+step+name+father+common.+Worker+wall+great+skin+pretty+away.&thing_id=t3_u" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 68-2AWDAbBY8HjL7R85FFuu0wdGk14" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "111" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_u\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01EEBPVF1SXSB6FNRZECP1FFN5\", \"parent_id\": \"t3_u\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Exist cup we fire step name father common. Worker wall great skin pretty away.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExist cup we fire step name father common. Worker wall great skin pretty away.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973414_19_stateme\", \"score_hidden\": false, \"name\": \"t1_2b\", \"created\": 1595973424.0, \"author_flair_text\": null, \"created_utc\": 1595973424.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "176" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 67-HEbpL8iLMyef123y2LgE92jwo30" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2b&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_u\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPVF1SXSB6FNRZECP1FFN5\", \"parent_id\": \"t3_u\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Exist cup we fire step name father common. Worker wall great skin pretty away.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExist cup we fire step name father common. Worker wall great skin pretty away.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973414_19_stateme\", \"score_hidden\": false, \"name\": \"t1_2b\", \"created\": 1595973424.0, \"author_flair_text\": null, \"created_utc\": 1595973424.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "173" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9L2qORvpC8MRXbpvxU5hn8IfgrVdKWpCo1HnUN1QLI3TUG6QtuIE%2B10knbEAq5fAITBonVrfQhc%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2b&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 67-HEbpL8iLMyef123y2LgE92jwo30" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595973414_19_stateme/about/moderators/?user=01EEBPVF1SXSB6FNRZECP1FFN5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "173" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=T3oBhYJt74NvmrqNgni%2BV8L6ecSwlNBZlfvbO9WKoC%2B5sNGEEwcFvdUIhaOk%2BY0lUAkdyt9n2gGD49FiUIyggEOEzIQ8aTOo" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595973414_19_stateme/about/moderators/?user=01EEBPVF1SXSB6FNRZECP1FFN5&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:57:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 67-HEbpL8iLMyef123y2LgE92jwo30" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=yWpaJdK24yG8FBIVRG; loidcreated=2020-07-28T21%3A56%3A54.436Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_2b&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_u\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"2b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01EEBPVF1SXSB6FNRZECP1FFN5\", \"parent_id\": \"t3_u\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Exist cup we fire step name father common. Worker wall great skin pretty away.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExist cup we fire step name father common. Worker wall great skin pretty away.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1595973414_19_stateme\", \"score_hidden\": false, \"name\": \"t1_2b\", \"created\": 1595973424.0, \"author_flair_text\": null, \"created_utc\": 1595973424.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:57:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "173" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zizHRhjphdCgf6YYRkfoX%2FbbsjrkQXkmOeLRQ60nv0yNFsQTNPjIup3nff08AWyzgjGf3jeOv0M%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_2b&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.comments_test.test_update_comment_upvote.json b/cassettes/channels.views.comments_test.test_update_comment_upvote.json deleted file mode 100644 index 48caadb8a9..0000000000 --- a/cassettes/channels.views.comments_test.test_update_comment_upvote.json +++ /dev/null @@ -1,433 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T21:55:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPR6PEMKGKKDABJHYTK47W" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI11g32dCxwKkk3Lg62TI00N0k3TA5O1i0ys8gLclXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkollUkJ5WWhegm+4V5ZVZUlFq4eZlmV3j7VLpXhoK0pKSWZSanxmemgMyFcJRqAbmocUy2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=wFOVwDWEClsuflKd9x; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:14 GMT", - "loidcreated=2020-07-28T21%3A55%3A14.209Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 21:55:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBPR6PEMKGKKDABJHYTK47W" - } - }, - { - "recorded_at": "2020-07-28T21:55:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 53-SIApBtg3sS9eY74g1cSc-r68nRE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wFOVwDWEClsuflKd9x; loidcreated=2020-07-28T21%3A55%3A14.209Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "286" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5DpD0SVeSeVcJRDpsvaImo1UtGtEUWA%2BQMEMHG5YEKLrtnQ7peOh9abXDAzG0IDXJZne67q%2Frzg%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&dir=1&id=t1_l" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 53-SIApBtg3sS9eY74g1cSc-r68nRE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "27" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=wFOVwDWEClsuflKd9x; loidcreated=2020-07-28T21%3A55%3A14.209Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/vote/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "286" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/vote/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 53-SIApBtg3sS9eY74g1cSc-r68nRE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wFOVwDWEClsuflKd9x; loidcreated=2020-07-28T21%3A55%3A14.209Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "286" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rV6MzW6YgmxJpZNRt%2FIjeIZ4YsS2lglngHcepkl0tiNZgL5YicQDv5kTg1Yuws7x6FZEwGJC2KsovQWKZYEuWHDbJg4h%2BayA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/public_channel/about/moderators/?user=abeglova2&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T21:55:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 53-SIApBtg3sS9eY74g1cSc-r68nRE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wFOVwDWEClsuflKd9x; loidcreated=2020-07-28T21%3A55%3A14.209Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_1\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_1\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"abeglova2\", \"parent_id\": \"t3_1\", \"score\": 2, \"approved_by\": null, \"controversiality\": 0, \"body\": \"this is dumb\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ethis is dumb\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"public_channel\", \"score_hidden\": false, \"name\": \"t1_l\", \"created\": 1594746423.0, \"author_flair_text\": null, \"created_utc\": 1594746423.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 2}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 21:55:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "286" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=U9ngnkNFF8Y7q5E0xVPG4ZiG3pbORYqoEkoynlLw7wWNE0zUto9K%2BD8oN7EQO9l7FqVkviVldds%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_l&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_add_contributor[1].json b/cassettes/channels.views.contributors_test.test_add_contributor[1].json deleted file mode 100644 index 1d1757446a..0000000000 --- a/cassettes/channels.views.contributors_test.test_add_contributor[1].json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T14:32:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A6Y54BDRDBAGR2C7CHTSD" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12Nyw6CMBREf4V0aTRpMCBxJ/GxcoNo1M0NbS9SUFvbxoDGf5fKzuVM5px5k4JztBacavBO5gEJQxpNslpdT5sVy5FB6hpV3V6Qcc2inJJxQLDV0qAF6YlpTGnf/QTgOo3ewrAwaPzWcjVUI58Mlj1Y/d3tsvrQXuJSnMtuu07SfJkc9ewRLnDvIYFPyRGk8OYhkM8XO5g4gLoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=GqbOya0S0qfMldOXKz; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:32:45 GMT", - "loidcreated=2018-11-14T14%3A32%3A45.438Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:32:45 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A6Y54BDRDBAGR2C7CHTSD" - } - }, - { - "recorded_at": "2018-11-14T14:32:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=GqbOya0S0qfMldOXKz; loidcreated=2018-11-14T14%3A32%3A45.438Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A71D7HRA4C01VRBV6EVAQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBzFv4rsGA3WRkLd0oMYDMJOehlz/q2VNdmGZdF3z+Wt43u83++9kVQKnBPeXOGOthGilMSYJuPmQChPc58VIos7fHpZ00kQD7SMEDx7bcEJHQgWEzJ1P4HwYw/BUoO0YMPWKTNXi5AstBN4/rurjpylw4WTfIU1pmrH6lu1Lot9UgaogUErELoJ5jmgzxcjycQrugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A71D7HRA4C01VRBV6EVAQ" - } - }, - { - "recorded_at": "2018-11-14T14:32:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Iste+corrupti+suscipit+incidunt+saepe.+Voluptatem+voluptatum+similique+aspernatur+eos+molestias+et+deserunt.+Quas+quae+eum+deserunt+fugiat.%0ADistinctio+omnis+ab+cupiditate+blanditiis+nostrum+nesciunt+consectetur+eveniet.+Molestias+saepe+omnis+voluptas.+Tempore+debitis+enim+dolorem+harum+facilis+aliquid+dignissimos.%0AFugit+quisquam+eaque+rerum+expedita+autem.+Voluptate+deleniti+corporis+nam+vitae+dolor+quia+voluptates.+Dignissimos+doloremque+omnis+facilis+numquam+iste+provident.&link_type=any&name=1542205969_doloribus&public_description=Eligendi+repellendus+voluptatem+quam+optio+quos.&title=Sint+repellendus+illum+ab+eaque+illo.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2205-RjolYGEbTeb_Btkohmz_Rcpb5T0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "708" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=GqbOya0S0qfMldOXKz; loidcreated=2018-11-14T14%3A32%3A45.438Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "431" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:32:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9A71D7HRA4C01VRBV6EVAQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2205-RjolYGEbTeb_Btkohmz_Rcpb5T0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=GqbOya0S0qfMldOXKz; loidcreated=2018-11-14T14%3A32%3A45.438Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542205969_doloribus/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "428" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542205969_doloribus/api/friend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_add_contributor[2].json b/cassettes/channels.views.contributors_test.test_add_contributor[2].json deleted file mode 100644 index 68ce04f6bc..0000000000 --- a/cassettes/channels.views.contributors_test.test_add_contributor[2].json +++ /dev/null @@ -1,418 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T14:32:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A77XFWJ2G85H2DX4QB94V" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBiG/4rsGAm20KLb8FB0MUgDT8M+P9cS5th0GtF/z+Wt4/vyPs/7JhUAWsv7rkVFDgGhNNqFkIAOlZjaMN8UqTNZyelpoEWRAFkHBCctDVouPbFNomjufgLevzR6yx0rg8ZvLXRLtfLJYDODj7+7eByv50xoKdiT5cPtwky6L2PljtZDNToJyGXtzUsgny+hLHoVugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=jaugLcS7LH5ov5nY6Y; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:32:55 GMT", - "loidcreated=2018-11-14T14%3A32%3A55.427Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:32:55 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A77XFWJ2G85H2DX4QB94V" - } - }, - { - "recorded_at": "2018-11-14T14:32:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=jaugLcS7LH5ov5nY6Y; loidcreated=2018-11-14T14%3A32%3A55.427Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7B5BJ5KVKSWAZ04V7BX6" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMrDQdbSISox0LE3McakIyvcodXUtyY7KDMhwDDc3UdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsCzUrDtY1yHA2NHQrq3KJTI6yiDBxSS539jHNB2lKSS3LTE6Nz0wBmQzhKNUCAFCQErO6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7B5BJ5KVKSWAZ04V7BX6" - } - }, - { - "recorded_at": "2018-11-14T14:32:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Iure+earum+nemo+facilis+fugit.+Harum+veniam+delectus+perspiciatis+dolorem+expedita+tenetur+dicta.+Voluptas+sapiente+ipsum+delectus+mollitia+eveniet+dolor.%0AUt+cum+nam+a+expedita+qui+recusandae.+Quidem+a+ullam+eius+iusto+aut+pariatur+dolores.+Doloribus+quidem+eveniet+temporibus+quos.+Ducimus+tenetur+vel+modi.&link_type=any&name=1542205979_tempore&public_description=Autem+ab+asperiores+quibusdam+architecto+deserunt+ratione.&title=Deserunt+sapiente+id+dolor.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2207-c6cp-ngxk-T1UCvrOY_2Hu2UU6c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "532" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=jaugLcS7LH5ov5nY6Y; loidcreated=2018-11-14T14%3A32%3A55.427Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:32:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "421" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9A7B5BJ5KVKSWAZ04V7BX6&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2207-c6cp-ngxk-T1UCvrOY_2Hu2UU6c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=jaugLcS7LH5ov5nY6Y; loidcreated=2018-11-14T14%3A32%3A55.427Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542205979_tempore/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "418" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542205979_tempore/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9A7B5BJ5KVKSWAZ04V7BX6&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2207-c6cp-ngxk-T1UCvrOY_2Hu2UU6c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=jaugLcS7LH5ov5nY6Y; loidcreated=2018-11-14T14%3A32%3A55.427Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542205979_tempore/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "418" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542205979_tempore/api/friend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_add_contributor_anonymous.json b/cassettes/channels.views.contributors_test.test_add_contributor_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.contributors_test.test_add_contributor_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_add_contributor_email.json b/cassettes/channels.views.contributors_test.test_add_contributor_email.json deleted file mode 100644 index 007ef4512e..0000000000 --- a/cassettes/channels.views.contributors_test.test_add_contributor_email.json +++ /dev/null @@ -1,578 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:58:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHC571JTNT3MMFD9WHKSMT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNTwuCMADFv4rsGAWKw6CbhwjMiAiSuow1n7gS/2wqW9F3z+Wp4/vxfu+9CRcCWrO+eaImG48E63CVbvd2ODLTXaqhLKjqjJ/QMaa7ISZLj8C0UkEz6YQw8v2J/XzW2xZu5A6uoFxXi2ZGC5cUikks/9+qnpenmh9sChYWt0BHWfbA+dXg6pwcoxRgMnfDcyCfL8qrF++4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ctmSItYs7sdg67nMyH; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:58:11 GMT", - "loidcreated=2018-08-24T17%3A58%3A11.393Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:58:11 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHC571JTNT3MMFD9WHKSMT" - } - }, - { - "recorded_at": "2018-08-24T17:58:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Sapiente+esse+possimus+praesentium+excepturi+asperiores+enim.+Accusantium+itaque+pariatur+illum+placeat+possimus+inventore+error+veniam.%0AQuae+minus+fuga+harum+iure+atque+vel+pariatur.+Nihil+eos+itaque+provident+repellendus+exercitationem+quasi.+Quidem+nostrum+saepe+cupiditate.&link_type=any&name=1535133491_sed&public_description=Aliquid+natus+cumque+excepturi+a+rerum+eaque+ab+ab.+Accusantium+neque+libero+neque+quis.&title=Corrupti+non+molestias+modi+ad+voluptatibus+nemo.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 173-LEKyuO_xqVluhf4rqx0J4vA4GuA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "548" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "109" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHCBHW4CPXYVW6Y73VJVDF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0N9ENCHUrTfNLLDByDUsJtigIs0gpzzM2yzB3N7FQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLZV+vkalJc4epUWlkUEWGRUOFWYVbm4G3pl+oL0pKSWZSanxmemgAyGcJRqASHfL2q4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHCBHW4CPXYVW6Y73VJVDF" - } - }, - { - "recorded_at": "2018-08-24T17:58:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHCEVAXJWRATHGAFKV44HB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0N9UN8TMryXXSNQ7IjyzMdDR2SnGtLEtNtsxN9nFV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbFO4fmOUc4uvuHBjpmBzg6p/t6OPqUuVUZh5aD9KSklmUmp8ZnpoAMhnCUagFpcdXbuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHCEVAXJWRATHGAFKV44HB" - } - }, - { - "recorded_at": "2018-08-24T17:58:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHCBHW4CPXYVW6Y73VJVDF&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 173-LEKyuO_xqVluhf4rqx0J4vA4GuA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133491_sed/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "99" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133491_sed/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 174-PUFufNap2EVdS8pV8dwn36h7G48" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133491_sed/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "99" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133491_sed/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHCEVAXJWRATHGAFKV44HB&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 173-LEKyuO_xqVluhf4rqx0J4vA4GuA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ctmSItYs7sdg67nMyH; loidcreated=2018-08-24T17%3A58%3A11.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133491_sed/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "99" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133491_sed/api/friend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_list_contributors.json b/cassettes/channels.views.contributors_test.test_list_contributors.json deleted file mode 100644 index f4e5ac014d..0000000000 --- a/cassettes/channels.views.contributors_test.test_list_contributors.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T17:58:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHBV9935NG71CDT6K30BVZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0N9TNznEzcYoyyfV3TPPwKXcMz7A0jS+xDCp1TXRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYFepkHpLolWvjrZkZZmKa6mnl4+4SEORnoRgSC9KSklmUmp8ZnpoAMhnCUagFUEi4UuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=WBG196ejK2tQhiJm3c; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:58:01 GMT", - "loidcreated=2018-08-24T17%3A58%3A01.227Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 17:58:01 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHBV9935NG71CDT6K30BVZ" - } - }, - { - "recorded_at": "2018-08-24T17:58:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Magnam+dolore+corporis+dignissimos+labore.+Asperiores+quidem+facilis+ipsa+totam+veritatis.+Totam+inventore+quidem+quisquam+perferendis+laudantium.%0APerspiciatis+atque+id+quibusdam+quam.+Itaque+mollitia+eveniet+debitis+fugit+rerum+quia.+Temporibus+alias+modi+pariatur+quod+eaque.%0ASequi+eveniet+fugit+ab+velit+quaerat.+Voluptates+quidem+corporis+consequatur+reprehenderit+dolorem.+Totam+atque+praesentium+perferendis+adipisci.&link_type=any&name=1535133481_necessitat&public_description=Consectetur+vel+veniam+dolor+veritatis+enim+quidem+dolor.+Omnis+at+aliquam+enim+asperiores.&title=Veniam+quod+minus+expedita.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 171-klF4BZ4mOAfHLwAWh95_t9RuEaE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "685" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WBG196ejK2tQhiJm3c; loidcreated=2018-08-24T17%3A58%3A01.227Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "119" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WBG196ejK2tQhiJm3c; loidcreated=2018-08-24T17%3A58%3A01.227Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHC1RCECE85P0CSAQQ5ZV9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0N9L1yCwL8jTwSq5IKw6KcgtKKzfNzPVLMnMyDA9V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbF5xUlegW45KVGVmZlVoT7B2S4ZYX6Jfs6JVqA9KSklmUmp8ZnpoAMhnCUagE9vlSmuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHC1RCECE85P0CSAQQ5ZV9" - } - }, - { - "recorded_at": "2018-08-24T17:58:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHC1RCECE85P0CSAQQ5ZV9&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 171-klF4BZ4mOAfHLwAWh95_t9RuEaE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WBG196ejK2tQhiJm3c; loidcreated=2018-08-24T17%3A58%3A01.227Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133481_necessitat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "112" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133481_necessitat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133481_necessitat" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 172-HivRI0JcxfsRZFRfw5imNb6B1WU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WBG196ejK2tQhiJm3c; loidcreated=2018-08-24T17%3A58%3A01.227Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "112" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T17:58:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 171-klF4BZ4mOAfHLwAWh95_t9RuEaE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WBG196ejK2tQhiJm3c; loidcreated=2018-08-24T17%3A58%3A01.227Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133481_necessitat/about/contributors/?limit=100&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"date\": 1535133488.0, \"name\": \"01CNPHC1RCECE85P0CSAQQ5ZV9\", \"id\": \"t2_4s\"}, {\"date\": 1535133481.0, \"name\": \"01CNPHBV9935NG71CDT6K30BVZ\", \"id\": \"t2_4r\"}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "245" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 17:58:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "112" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=QpPxbwVPd6crxT8Q0IoGNPc2%2BmWQGjOlZIjDYVXx5y9%2Fj40ZAAKpsr1FVFI3%2FBG%2F84FuvXVV9gFw3PMX9hPWwW9KyfAClNs2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133481_necessitat/about/contributors/?limit=100&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_list_contributors_anonymous.json b/cassettes/channels.views.contributors_test.test_list_contributors_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.contributors_test.test_list_contributors_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_remove_contributor[1].json b/cassettes/channels.views.contributors_test.test_remove_contributor[1].json deleted file mode 100644 index ecf057b75c..0000000000 --- a/cassettes/channels.views.contributors_test.test_remove_contributor[1].json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T23:06:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6E7PGH3NM2DFTARJ9HHH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQ6CMBREr0L+0kiCSBDcEXFPGqPopoH2V6sGSNtUwHh3qexczmTemzdUjKHW1LQPbGDrQbhKUv9urB9R7IUmXd3wXNrnKd8Xh4ReYekB9p1UqKl0xDoOgqn7CagZOnSWGiuFym01a+dq4ZJCMYG3v7sybGx73mXkNaS1LbSIN+UlGscjiRzE0UqGVHJnngN8vpqkywe6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 23:06:14 GMT", - "loidcreated=2018-11-13T23%3A06%3A14.206Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 23:06:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6E7PGH3NM2DFTARJ9HHH" - } - }, - { - "recorded_at": "2018-11-13T23:06:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Accusantium+laborum+nemo+maxime+praesentium+provident+natus+eos.+Perferendis+atque+cum+totam+odit+cumque+doloribus+asperiores.+Praesentium+optio+iusto+cum+maiores+minus+assumenda+similique+exercitationem.%0AEius+molestiae+unde+error+dicta+labore+sit.+Repellat+id+asperiores+sapiente+repellendus+tenetur+vitae+dicta.+Assumenda+ad+aperiam+fuga+incidunt+dicta+excepturi.&link_type=any&name=1542150374_saepe&public_description=Error+exercitationem+commodi+perferendis+sed.&title=Et+fugiat+voluptatibus+nihil+eveniet.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2189-jtv-4_exfsRpbndDivlWDEPT8_g" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "584" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; loidcreated=2018-11-13T23%3A06%3A14.206Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "226" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; loidcreated=2018-11-13T23%3A06%3A14.206Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6MMP3NRD48075TK1R5B2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4V0NJoUSjC4wYKTijEmnRpoH1ogFluCEOO/y5PN8d7cc+6bFFKCc6I3DTzIziOBH9MNuCQ/b/Mro3WYmlsc9LLMuib1aUjWHoGx0xac0EiwiNK5+wlEP3WAlhIKCxa3TpqlWmGyUM3g/e9uKFjN24N6no68Gffs0k55wl42yjhCCgYtQWiF5iWQzxe7TSaSugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6MMP3NRD48075TK1R5B2" - } - }, - { - "recorded_at": "2018-11-13T23:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW7N6MMP3NRD48075TK1R5B2&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2189-jtv-4_exfsRpbndDivlWDEPT8_g" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; loidcreated=2018-11-13T23%3A06%3A14.206Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542150374_saepe/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542150374_saepe/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542150374_saepe" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2190-esAQR7QV30j4Bog92tcbGpkB104" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; loidcreated=2018-11-13T23%3A06%3A14.206Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW7N6MMP3NRD48075TK1R5B2&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2189-jtv-4_exfsRpbndDivlWDEPT8_g" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DUSTEyVEgW2ToAQBkt; loidcreated=2018-11-13T23%3A06%3A14.206Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542150374_saepe/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542150374_saepe/api/unfriend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_remove_contributor[2].json b/cassettes/channels.views.contributors_test.test_remove_contributor[2].json deleted file mode 100644 index 681d9a62ed..0000000000 --- a/cassettes/channels.views.contributors_test.test_remove_contributor[2].json +++ /dev/null @@ -1,602 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T23:06:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6R64NSADVXQ7Y4F6WEC8" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBiG/4rsGAmzSKxbUtQOEh6M6DLm/KIxcvpNLBf991zeOr4v7/O8byKkBGt5ZzTUZBOQRbSOQl2w4+NpQupal23jBmm+l/1QZueEzAMCr0YhWK48sYwpHbufgHdDA95SgkBAv7XSTNXMJ4TbCN7/7k60NuLSsjyjB1kMmu3QJauUX5F5qIJeSeCq8uYpkM8X+OAX4LoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=utRk9ocB0GKImFE2YS; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 23:06:24 GMT", - "loidcreated=2018-11-13T23%3A06%3A24.379Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 23:06:24 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6R64NSADVXQ7Y4F6WEC8" - } - }, - { - "recorded_at": "2018-11-13T23:06:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Accusantium+eligendi+odit+deleniti+eum+fugiat.+Porro+iste+nostrum+maxime+consequuntur+culpa+non+accusantium.+Odio+quisquam+occaecati+alias+itaque+odio+velit+nostrum.+Fugiat+distinctio+veniam+assumenda+enim+cumque+aperiam.%0AIncidunt+distinctio+fuga+modi+officia+molestiae+nemo+maxime.+Temporibus+nam+illum+asperiores+error+tempore+voluptatum+hic+quasi.&link_type=any&name=1542150385_dolores&public_description=Temporibus+libero+minus+maxime+eum.+Perferendis+hic+nam+minus+quidem+deleniti.&title=Vel+aspernatur+necessitatibus+non+quisquam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2191-kUIHmwo-0zqzMA6pr0QEcvybMV8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "610" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "216" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6YFY85QG1CAPG1DKSQKD" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12N0Q7BMBiFX2XppWhSs0y4ZMYYRsZtM+0vymjXzhDx7tbtzuU5Od93PihjDIyhpbzCHY0c5PaGLlYk8bezdUXSxS70Up7rYjJOJFa5h7oOgpcSGgwVluj7hNRdI6DlW4G1HCHToO3WMNlWHZs0nGrw/Hf3DLN4P1/Gg0TeiuByiDYrPA0eYcQiC3GoBAMquDW3AX1/wIH8PboAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7N6YFY85QG1CAPG1DKSQKD" - } - }, - { - "recorded_at": "2018-11-13T23:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW7N6YFY85QG1CAPG1DKSQKD&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2191-kUIHmwo-0zqzMA6pr0QEcvybMV8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542150385_dolores/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542150385_dolores/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542150385_dolores" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2192-p0P6QGNv0TJRF4TdlrqCBPo-pl4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW7N6YFY85QG1CAPG1DKSQKD&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2191-kUIHmwo-0zqzMA6pr0QEcvybMV8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542150385_dolores/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542150385_dolores/api/unfriend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T23:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW7N6YFY85QG1CAPG1DKSQKD&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2191-kUIHmwo-0zqzMA6pr0QEcvybMV8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=utRk9ocB0GKImFE2YS; loidcreated=2018-11-13T23%3A06%3A24.379Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542150385_dolores/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 23:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542150385_dolores/api/unfriend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.contributors_test.test_remove_contributor_anonymous.json b/cassettes/channels.views.contributors_test.test_remove_contributor_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.contributors_test.test_remove_contributor_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage.json b/cassettes/channels.views.frontpage_test.test_frontpage.json deleted file mode 100644 index 80dae47b2f..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage.json +++ /dev/null @@ -1,1587 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-17T19:09:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BZ5P69ER1167VTVGRW1J8C0B" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI3tNDNLUjPCDPwCij0KtTNdAqqis9KSnf3M3XLNC1W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVZWa4BAY6OadGGRd5l0dFOloY+UeFhJonpgWC9KSklmUmp8ZnpoAMhnCUagHRFCo7uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=XXHH2EzSHxCXGyWUul; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 17-Nov-2019 19:09:53 GMT", - "loidcreated=2017-11-17T19%3A09%3A53.523Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 17-Nov-2019 19:09:53 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BZ5P69ER1167VTVGRW1J8C0B" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&description=Eaque+similique+soluta+in+voluptatem.+Omnis+quis+magnam+voluptatem.+Suscipit+temporibus+dignissimos+nemo+debitis+error+deserunt.%0AVoluptates+et+magnam+et+similique+aliquid+neque.+Eius+quos+repudiandae+molestias+voluptatibus+quis.%0AQuae+minus+praesentium+ex+suscipit.+Iusto+quasi+ducimus+ut+voluptatibus.+Ullam+aut+voluptas+animi+voluptatem.&link_type=any&name=1510945793_id&public_description=Modi+accusamus+fugit+est+fugiat+nam.+Quibusdam+officiis+excepturi+facere.&title=Esse+inventore+tempore+quasi+accusamus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 718-mpghV0JPqJq-iBRz_jbgGN5Fi5s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "571" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "7" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BZ5P6A0TCMCXZQ0W1ARMF42G" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI3tNQtzonwLnYqyPePdHL2yfa3sCwxMDf3yfIwLkpW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5mwWX+ac5u/r7+gQWmAdnVRZbhJf5VrnlRZSD9KSklmUmp8ZnpoAMhnCUagGBbP6wuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BZ5P6A0TCMCXZQ0W1ARMF42G" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01BZ5P6A0TCMCXZQ0W1ARMF42G&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 718-mpghV0JPqJq-iBRz_jbgGN5Fi5s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1510945793_id/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1510945793_id/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1510945793_id" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "72" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1510945793_id&text=Molestias+repellat+ad+explicabo+aliquid+debitis.+Autem+magni+nihil+eaque+at+aliquam.&title=Iusto+quis+reiciendis+odit+ipsum." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "201" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1510945793_id/comments/e2/iusto_quis_reiciendis_odit_ipsum/\", \"id\": \"e2\", \"name\": \"t3_e2\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/e2/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestias repellat ad explicabo aliquid debitis. Autem magni nihil eaque at aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestias repellat ad explicabo aliquid debitis. Autem magni nihil eaque at aliquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1510945793_id\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e2/iusto_quis_reiciendis_odit_ipsum/\", \"locked\": false, \"name\": \"t3_e2\", \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e2/iusto_quis_reiciendis_odit_ipsum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Iusto quis reiciendis odit ipsum.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1719" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9bj181W4BqpFseoDyeu%2FGXzdGIUR0bUbPR4RtzHi73mrhDixs9EADUiMpFTo9%2F%2FRFh77mG0rIts9MQ2Of4Mb5ogToCYUFcYs" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/e2/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1510945793_id&text=Tempore+asperiores+officia+expedita.+Repellat+doloremque+natus+quibusdam+sit+saepe.&title=Vitae+id+fuga+officia+iste+cumque+animi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "207" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1510945793_id/comments/e3/vitae_id_fuga_officia_iste_cumque_animi/\", \"id\": \"e3\", \"name\": \"t3_e3\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/e3/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETempore asperiores officia expedita. Repellat doloremque natus quibusdam sit saepe.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Tempore asperiores officia expedita. Repellat doloremque natus quibusdam sit saepe.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1510945793_id\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e3/vitae_id_fuga_officia_iste_cumque_animi/\", \"locked\": false, \"name\": \"t3_e3\", \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e3/vitae_id_fuga_officia_iste_cumque_animi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Vitae id fuga officia iste cumque animi.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1738" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=i6iD4mm%2Fv3akDZgciS10kQ7LAF1GGT%2B%2BkVQVZ%2ByovXatE37bYvR3sJeSzCAXdUr9JHSpHxAYsnBWEC4k82q8vHxitqXSghAP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/e3/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1510945793_id&text=Esse+fugiat+dignissimos+harum+iste.+Nisi+beatae+sequi+quis+aliquam+accusamus.&title=Laboriosam+harum+ad+maxime+excepturi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "198" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1510945793_id/comments/e4/laboriosam_harum_ad_maxime_excepturi/\", \"id\": \"e4\", \"name\": \"t3_e4\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/e4/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEsse fugiat dignissimos harum iste. Nisi beatae sequi quis aliquam accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Esse fugiat dignissimos harum iste. Nisi beatae sequi quis aliquam accusamus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e4\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1510945793_id\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e4/laboriosam_harum_ad_maxime_excepturi/\", \"locked\": false, \"name\": \"t3_e4\", \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e4/laboriosam_harum_ad_maxime_excepturi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laboriosam harum ad maxime excepturi.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1717" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0KtA0v8JM6MGZaKW3QIuRTqEe7%2BGYayIHfe6qWBzjuK4%2BM%2BDtQn%2FMrNdLT6qoQv5IOxH6Z0unwnFgO7hm3KyL4vMIJLEcvwY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/e4/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1510945793_id&text=Velit+excepturi+fuga+maxime+ullam.+Beatae+eos+itaque+ipsam+minus+quam+reprehenderit+debitis.&title=Consectetur+odio+exercitationem+consequuntur." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "221" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1510945793_id/comments/e5/consectetur_odio_exercitationem_consequuntur/\", \"id\": \"e5\", \"name\": \"t3_e5\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:09:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/e5/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit excepturi fuga maxime ullam. Beatae eos itaque ipsam minus quam reprehenderit debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Velit excepturi fuga maxime ullam. Beatae eos itaque ipsam minus quam reprehenderit debitis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1510945793_id\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e5/consectetur_odio_exercitationem_consequuntur/\", \"locked\": false, \"name\": \"t3_e5\", \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e5/consectetur_odio_exercitationem_consequuntur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur odio exercitationem consequuntur.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1771" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:09:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "6" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=qrrx5YQ286uLup%2FAhrzxuh6iRrz3RPD6dNX6Q%2B9NZHYWeKPaZj1GfbuZ3vN8rL3z2ZJQleVYjrL0gFPKtf3vRHvmxgY8pzkq" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/e5/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1510945793_id\", \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit excepturi fuga maxime ullam. Beatae eos itaque ipsam minus quam reprehenderit debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Velit excepturi fuga maxime ullam. Beatae eos itaque ipsam minus quam reprehenderit debitis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"name\": \"t3_e5\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e5/consectetur_odio_exercitationem_consequuntur/\", \"locked\": false, \"stickied\": false, \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e5/consectetur_odio_exercitationem_consequuntur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur odio exercitationem consequuntur.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1510945793_id\", \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEsse fugiat dignissimos harum iste. Nisi beatae sequi quis aliquam accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Esse fugiat dignissimos harum iste. Nisi beatae sequi quis aliquam accusamus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e4\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"name\": \"t3_e4\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e4/laboriosam_harum_ad_maxime_excepturi/\", \"locked\": false, \"stickied\": false, \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e4/laboriosam_harum_ad_maxime_excepturi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laboriosam harum ad maxime excepturi.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1510945793_id\", \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETempore asperiores officia expedita. Repellat doloremque natus quibusdam sit saepe.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Tempore asperiores officia expedita. Repellat doloremque natus quibusdam sit saepe.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"name\": \"t3_e3\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e3/vitae_id_fuga_officia_iste_cumque_animi/\", \"locked\": false, \"stickied\": false, \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e3/vitae_id_fuga_officia_iste_cumque_animi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Vitae id fuga officia iste cumque animi.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1510945793_id\", \"subreddit\": \"1510945793_id\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestias repellat ad explicabo aliquid debitis. Autem magni nihil eaque at aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestias repellat ad explicabo aliquid debitis. Autem magni nihil eaque at aliquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZ5P6A0TCMCXZQ0W1ARMF42G\", \"media\": null, \"name\": \"t3_e2\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_9n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1510945793_id/comments/e2/iusto_quis_reiciendis_odit_ipsum/\", \"locked\": false, \"stickied\": false, \"created\": 1510945794.0, \"url\": \"http://reddit.local/r/1510945793_id/comments/e2/iusto_quis_reiciendis_odit_ipsum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Iusto quis reiciendis odit ipsum.\", \"created_utc\": 1510945794.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6200" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "1" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hCd5FzclUg8U%2FTpc0CkkDdA6AvKB%2FkfxP4aWFufsv7bircE8BAY18Ffv8y%2Bv9OmsCE%2BMmxj0s%2F1L6JB%2FBjAACwHw3tMVhOlP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"9n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1510945793_id\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse inventore tempore quasi accusamus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Modi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_9n\", \"created\": 1510945793.0, \"url\": \"/r/1510945793_id/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1510945793.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "600" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=QRLs8WonEuf1hf%2F6%2FvKJkLVB0kHysOJ4E4u6xpjrs4g%2BOUlAUHffQl4rhqeAqYoG0Fevxdi%2FCBlf94LOUxCbUZ%2BzScR7%2BBeY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"9n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1510945793_id\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse inventore tempore quasi accusamus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Modi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_9n\", \"created\": 1510945793.0, \"url\": \"/r/1510945793_id/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1510945793.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "600" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hzaqx3bYzioR9zZW49bsS5q23zVZ5emL0gzJhgoD61dH6AX4kJTbXkTWQ2XKJ4OKZZuUP74Uam9%2FI1nXqFzWVtHDTE4xO4%2Fm" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"9n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1510945793_id\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse inventore tempore quasi accusamus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Modi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_9n\", \"created\": 1510945793.0, \"url\": \"/r/1510945793_id/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1510945793.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "600" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9oxlt%2BfBCEzNjQWb3eC7jXVIJ3C6gzT20PbVFLW72v9oFkm5ZfxibnnhXixlHtQhHRPhiOwMqGBCKakOCp02sfsPlHQsoHzJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-17T19:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 719-slXKsBpoOYBCLkO89t077LjH3rc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XXHH2EzSHxCXGyWUul; loidcreated=2017-11-17T19%3A09%3A53.523Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"9n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1510945793_id\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse inventore tempore quasi accusamus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Modi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_9n\", \"created\": 1510945793.0, \"url\": \"/r/1510945793_id/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1510945793.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 17 Nov 2017 19:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "600" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=YmdzdPE3ScywP1LSW4DBUZh1B6GNI05HDxxGwUdY%2B5FBHypvjgV7vLW12MHDuOYRdIYokvqif8gO1Ye1isEskfyC9OrZR9LV" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1510945793_id/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage[False].json b/cassettes/channels.views.frontpage_test.test_frontpage[False].json deleted file mode 100644 index fc6089bc01..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage[False].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:05:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGW30FCW2N1DXAXEQ5HXM9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysjTTTTMvd0wrTveLynY2CvZJK9MNSg8PznJyLkuPVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsKzTJi/JOTspPy6+wDPKL8rC0MA8pCjJxT04MBGlKSS3LTE6Nz0wBmQzhKNUCAGXvhey6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=dVgS70Hm0lEamWIek5; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:05:22 GMT", - "loidcreated=2018-11-16T15%3A05%3A22.074Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:05:22 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGW30FCW2N1DXAXEQ5HXM9" - } - }, - { - "recorded_at": "2018-11-16T15:05:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGW6A7PT35WY87AW30CTTY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysjTX9XYrz403y/YozfLT9YkKiChMjiwJqiisyCpMVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Css/B0cfQpyfUO1g02LU10izSoqCrMMndODC3xBWlKSS3LTE6Nz0wBmQzhKNUCALzX61i6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGW6A7PT35WY87AW30CTTY" - } - }, - { - "recorded_at": "2018-11-16T15:05:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Debitis+totam+iure+sapiente+nam.+Laboriosam+omnis+eos+voluptate+cum+consectetur.+Iste+omnis+repellat+porro.+Suscipit+illo+in+eligendi+doloremque+id.%0AAccusantium+doloremque+assumenda+ratione+dolor+dolorem+autem+similique.+Vero+harum+excepturi+sed.+Ullam+beatae+occaecati+quae+totam+accusamus+maxime.+Iure+quo+unde+soluta+facere+asperiores+nam.&link_type=any&name=1542380725_rerum&public_description=Quam+aliquid+sunt+odio+repellendus+sapiente.&title=Eaque+illum+velit+sint+repudiandae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2297-KFwm_6kHujN-LZPXqcYtRxqxjqc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "558" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "275" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGW30FCW2N1DXAXEQ5HXM9&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2297-KFwm_6kHujN-LZPXqcYtRxqxjqc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380725_rerum/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380725_rerum/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380725_rerum" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380725_rerum&text=Quam+nobis+vel+quod.+Natus+optio+eius+dolores+iusto.+Velit+accusantium+explicabo+nihil+id.&title=Ratione+blanditiis+quis+esse+nulla." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"id\": \"8o\", \"name\": \"t3_8o\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8o/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"locked\": false, \"name\": \"t3_8o\", \"created\": 1542380729.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ratione blanditiis quis esse nulla.\", \"created_utc\": 1542380729.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1749" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=LOnPQmJ4viXxVRD%2BpWzoatvBti9RrzFn8TlTgn3LUDsK49EVEt09qjTga2ABWOfwtgtLC2abY5Z5nM0ViI5pnq0m%2FOBAW4b5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8o/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380725_rerum&text=Dolor+quisquam+asperiores+eveniet+porro.+Totam+vel+esse+illo+ullam+hic+officia.&title=Culpa+excepturi+ratione+vitae+et+dolor+nam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "209" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"id\": \"8p\", \"name\": \"t3_8p\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8p/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"locked\": false, \"name\": \"t3_8p\", \"created\": 1542380732.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Culpa excepturi ratione vitae et dolor nam.\", \"created_utc\": 1542380732.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1751" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IlKiimI60QkGoVX3GNxdhvKgxfw0GV7eRTRQNSWMDfPIEICid7PqQEDAKoyckO1Ad%2F0CMCURRR7s9EFTuLbcRmcRm6W6ez6h" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8p/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380725_rerum&text=Expedita+eligendi+odit+laborum+soluta.+Occaecati+eius+ipsam+eveniet+sint+veritatis.&title=Modi+accusantium+earum+quod+expedita+deserunt." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "216" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"id\": \"8q\", \"name\": \"t3_8q\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"locked\": false, \"name\": \"t3_8q\", \"created\": 1542380735.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Modi accusantium earum quod expedita deserunt.\", \"created_utc\": 1542380735.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VMwaeu4mPmPKVTd26QeHXPAhl7XrOR%2BCuKgYp2Atz6O3MaqHSQsRmKz6%2FQ8IUMDjj2DZ0atmZJVLsIF1%2F%2BgYEt46PWidvScj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8q/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380725_rerum&text=Quis+iure+alias+fugiat+sed.+Deleniti+a+eos+temporibus.+Aliquam+ipsa+deleniti+nulla+quod.&title=Quisquam+quasi+aliquam+quidem+quo+beatae+sed." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"id\": \"8r\", \"name\": \"t3_8r\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "262" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8r/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"locked\": false, \"name\": \"t3_8r\", \"created\": 1542380738.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam quasi aliquam quidem quo beatae sed.\", \"created_utc\": 1542380738.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1775" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "262" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SaYGlRuEmeVWM9acQAMt7SaBwkDlj4SHIihUimiCVuftz4OsU5HMAijToGSn3nLdfoFKAYgqtqrpCHx6a%2FT2Ay%2FztNxfe2u7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8r/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380725_rerum\", \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"name\": \"t3_8r\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"locked\": false, \"stickied\": false, \"created\": 1542380738.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam quasi aliquam quidem quo beatae sed.\", \"created_utc\": 1542380738.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380725_rerum\", \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"name\": \"t3_8q\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"locked\": false, \"stickied\": false, \"created\": 1542380735.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Modi accusantium earum quod expedita deserunt.\", \"created_utc\": 1542380735.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380725_rerum\", \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"name\": \"t3_8p\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"locked\": false, \"stickied\": false, \"created\": 1542380732.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Culpa excepturi ratione vitae et dolor nam.\", \"created_utc\": 1542380732.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380725_rerum\", \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"name\": \"t3_8o\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"locked\": false, \"stickied\": false, \"created\": 1542380729.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ratione blanditiis quis esse nulla.\", \"created_utc\": 1542380729.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6298" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Mos5Z4%2Bz5ud0awI9BWuMfJRuybvujeVKRxju%2BSvzPAQkwwqmkQscicxhXwxD6UDBXjyFC1XEfJTPDtWZl6VE%2BjehWKGO%2B%2Bnz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8r/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"locked\": false, \"name\": \"t3_8r\", \"created\": 1542380738.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8r/quisquam_quasi_aliquam_quidem_quo_beatae_sed/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam quasi aliquam quidem quo beatae sed.\", \"created_utc\": 1542380738.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1775" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kFvhA5wgoFaaeWwKZMMEkFlTEPlhnJ%2B37NoK1LAORHCmpj%2Bq9Wf0rHLFxclzbDI8KB9CfdGTKP%2BL5OHJwwBHprx17lUngHaf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8r/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380725_rerum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Eaque illum velit sint repudiandae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quam aliquid sunt odio repellendus sapiente.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam aliquid sunt odio repellendus sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Debitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5n\", \"created\": 1542380725.0, \"url\": \"/r/1542380725_rerum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380725.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2128" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BGaxqFZ7jJw%2BuZ%2B0VhGizzHWul4nEWJw6xqMuSHqowLP48V0c5t1aSLAIJJVWcS5gXUC%2BB9V%2B9FxjUvFfY%2FsiXbYXO4astzj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"locked\": false, \"name\": \"t3_8q\", \"created\": 1542380735.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8q/modi_accusantium_earum_quod_expedita_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Modi accusantium earum quod expedita deserunt.\", \"created_utc\": 1542380735.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cPDH7Vk42N74rzT9G5vR94LxM6pn%2BtVwUgsygYGjskvyQ9XYFJ9uiPLeA6kfJffha4n2ATNJZtlrR25u5PudKlLWkzuEyaSg" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8q/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380725_rerum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Eaque illum velit sint repudiandae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quam aliquid sunt odio repellendus sapiente.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam aliquid sunt odio repellendus sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Debitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5n\", \"created\": 1542380725.0, \"url\": \"/r/1542380725_rerum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380725.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2128" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=3m96FxPnOrm%2BOQqIrMKnYsDSYlMwq9XkvsBOwtcm8SI7WgwtGcVWQFApw8QRudSIu%2FlOHP%2F8nsxaLDxbiap3UOZLv0dSWfd1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8p/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"locked\": false, \"name\": \"t3_8p\", \"created\": 1542380732.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8p/culpa_excepturi_ratione_vitae_et_dolor_nam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Culpa excepturi ratione vitae et dolor nam.\", \"created_utc\": 1542380732.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1751" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bpqGosNQMKrYfovBW7mdS73cFkgW%2BFQPDl1c9QR1C1PjOs0o3uhlX7ZwbRO105UY8QqjSIJ2O2k8q6lQLfjyaZJtZu6SF2av" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8p/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380725_rerum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Eaque illum velit sint repudiandae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quam aliquid sunt odio repellendus sapiente.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam aliquid sunt odio repellendus sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Debitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5n\", \"created\": 1542380725.0, \"url\": \"/r/1542380725_rerum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380725.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2128" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=RPY3UVd8Atsn99b2MhA112P%2BGUDJtPps5TI6Ot47vD8D24PgtU6Oy6kNVJv%2Bn5GdNQaKyrQigvHhBKWTWLhIVpjad53%2FpUjd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8o/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380725_rerum\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGW30FCW2N1DXAXEQ5HXM9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380725_rerum\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"locked\": false, \"name\": \"t3_8o\", \"created\": 1542380729.0, \"url\": \"http://reddit.local/r/1542380725_rerum/comments/8o/ratione_blanditiis_quis_esse_nulla/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ratione blanditiis quis esse nulla.\", \"created_utc\": 1542380729.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1749" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TkuXUVcdS2W98cC87tb1vNKDoKfD1QVX%2BLqpxGo6TsVawW%2FodiIW9O7H85%2FIhE7im0SWevfyOP5dh5Ldt4dYBDyiQc8IeIvQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8o/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2296-f7wAfsgNZkC2SLfv-RgWSjBCvgY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dVgS70Hm0lEamWIek5; loidcreated=2018-11-16T15%3A05%3A22.074Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380725_rerum\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Eaque illum velit sint repudiandae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Quam aliquid sunt odio repellendus sapiente.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam aliquid sunt odio repellendus sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Debitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5n\", \"created\": 1542380725.0, \"url\": \"/r/1542380725_rerum/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380725.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2128" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=tNlsuvV5t91AEg08vNZiTNo925%2B1IaVHhFZG21YsLbJuPHhBxApsNYOEExxk05FpFIzJ9A185wU2LbKLG6hslqzEbX0DzKAQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380725_rerum/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage[True].json b/cassettes/channels.views.frontpage_test.test_frontpage[True].json deleted file mode 100644 index a60ca2be2d..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage[True].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:04:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGVCCTWQ93NX53PF269VQB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4W80WiC1Zjgpi7GGhciQZYGyiOtRKAtgsX471LZHO/NPee+IeUcjWFtXWIFWw8ICdaLsCInZP45okLEgwqeR/uI7L5Qqoe5B/hqpEbDpCNWG98fu5+AtbZBZ8kw1ajd1vB6qmYuaSxGUPzdsThcdknSqETf7lm2a/WV9sOBXGjpoBw7yZHJ3JmnAJ8veefAC7oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:04:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=c23rYIuUr6uyVTh9sy; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:04:59 GMT", - "loidcreated=2018-11-16T15%3A04%3A58.897Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:04:59 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGVCCTWQ93NX53PF269VQB" - } - }, - { - "recorded_at": "2018-11-16T15:05:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGVFQGZPFMTPY4SZD0YZNB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysjTVNcp1z8kKiAg1yHOvCgo38UgJKqjK8tPN9QhJV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csy/L0cY+KSAp2LXAOyzbySDaOLI3yDSlyLy0LBWlKSS3LTE6Nz0wBmQzhKNUCAM2PAlm6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGVFQGZPFMTPY4SZD0YZNB" - } - }, - { - "recorded_at": "2018-11-16T15:05:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Eaque+nihil+cum+tenetur+impedit+omnis.+Asperiores+culpa+asperiores+blanditiis.+Quos+suscipit+ex+excepturi+fuga+nemo+et.%0AQuasi+a+sunt+dicta+eaque+minus+delectus.+Veritatis+odit+quibusdam+earum+laboriosam.+Hic+doloremque+distinctio+labore+unde+consectetur+debitis.+Quos+officiis+earum+beatae+nam+magnam+atque+rem.%0AAliquam+placeat+aliquid+sint+laborum.+Iste+vero+quasi+qui+vel.+Quae+dolore+sed+provident.+Officiis+dolor+beatae+dolorem+commodi.&link_type=any&name=1542380702_adipisci&public_description=Optio+quo+qui+unde+sint+ipsam+blanditiis.&title=Quasi+harum+sit+inventore+esse+amet+esse.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2295-2mGljPXU0nGzRW4HdRpzjN-mHTg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "664" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "298" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGVCCTWQ93NX53PF269VQB&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2295-2mGljPXU0nGzRW4HdRpzjN-mHTg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380702_adipisci/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380702_adipisci/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380702_adipisci" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380702_adipisci&text=Quibusdam+amet+magni+quibusdam+perspiciatis.+Perferendis+cumque+consequatur+atque+nihil+a.&title=Accusamus+animi+distinctio+ducimus+eos." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"id\": \"8k\", \"name\": \"t3_8k\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8k/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"locked\": false, \"name\": \"t3_8k\", \"created\": 1542380705.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Accusamus animi distinctio ducimus eos.\", \"created_utc\": 1542380705.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "294" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HYGG%2BUoNDQkFaKU%2BxtHgzUhNRe67xCux3L8cLAdBlVaE7qWNwwwTe%2F%2BT4T2WdqqHDOEtpRItrxEAXyYhA2juDrEwA91xP3dK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8k/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380702_adipisci&text=Eveniet+architecto+officia+veniam+suscipit.+Officia+nulla+nostrum+eveniet+ad+voluptatibus+deserunt.&title=Quia+nulla+fugiat+reiciendis+facere+cum+ipsum." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "235" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"id\": \"8l\", \"name\": \"t3_8l\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "291" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8l/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"locked\": false, \"name\": \"t3_8l\", \"created\": 1542380709.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia nulla fugiat reiciendis facere cum ipsum.\", \"created_utc\": 1542380709.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1812" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "291" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wD%2BF6RDEeGpaKOkj6OFBFUI4E22g%2FKMbJt0DURpBWPLshaNAo26AMTnUXeCnvpIBpMNwILob7BCOXCq%2FyrO80K7bBIUzbOsp" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8l/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380702_adipisci&text=Ratione+ipsum+voluptatum+molestiae+consectetur.+Repudiandae+recusandae+dolor+eveniet+alias.&title=Cupiditate+ea+vel+at+dolorem+non." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"id\": \"8m\", \"name\": \"t3_8m\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "162" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "288" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8m/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERatione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ratione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"locked\": false, \"name\": \"t3_8m\", \"created\": 1542380712.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cupiditate ea vel at dolorem non.\", \"created_utc\": 1542380712.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1757" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "288" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=woK9rF8PqCU7y6bpSVa9NlT%2B6j%2BY8etLaa8Rp2BY339xR9pf7nhZZxF%2BqAZvNBIS9WSYsIiHPtPt%2FQVRgZSVhGlchRdYImO%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8m/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380702_adipisci&text=Eligendi+ex+excepturi+suscipit.+Harum+quisquam+alias+incidunt+libero+aspernatur.&title=Nisi+voluptatem+eius+harum+ad+quibusdam+at." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "213" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"id\": \"8n\", \"name\": \"t3_8n\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8n/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"locked\": false, \"name\": \"t3_8n\", \"created\": 1542380715.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nisi voluptatem eius harum ad quibusdam at.\", \"created_utc\": 1542380715.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=at6y%2BJZVKK%2FMyB0YTG7ZhQGJjI3qMNLQBsu5UIu%2BrKCqkrMZETd3F9Q3C8QKF1O3CROE3aBmpKlpKmpSWjogMDLRcNJrYGJz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8n/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380702_adipisci\", \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"name\": \"t3_8n\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"locked\": false, \"stickied\": false, \"created\": 1542380715.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nisi voluptatem eius harum ad quibusdam at.\", \"created_utc\": 1542380715.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380702_adipisci\", \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERatione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ratione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"name\": \"t3_8m\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"locked\": false, \"stickied\": false, \"created\": 1542380712.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cupiditate ea vel at dolorem non.\", \"created_utc\": 1542380712.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380702_adipisci\", \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"name\": \"t3_8l\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"locked\": false, \"stickied\": false, \"created\": 1542380709.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia nulla fugiat reiciendis facere cum ipsum.\", \"created_utc\": 1542380709.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380702_adipisci\", \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"name\": \"t3_8k\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"locked\": false, \"stickied\": false, \"created\": 1542380705.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Accusamus animi distinctio ducimus eos.\", \"created_utc\": 1542380705.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6362" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jIkMoZ1nOOssERw%2Fq9G6ujz0FkQSvHR2qJb3Xg3V9055Pz%2B1cTwBrnj9yQG9tKPZ8yM7DOYfuQNoziHBZMUEw7zafT9JqBsM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8n/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"locked\": false, \"name\": \"t3_8n\", \"created\": 1542380715.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8n/nisi_voluptatem_eius_harum_ad_quibusdam_at/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nisi voluptatem eius harum ad quibusdam at.\", \"created_utc\": 1542380715.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Z37buuemPPl0CK5WLRa60nJ%2B70Yvst%2FE30n5MQ%2FE2XOCrrGFIK1v1GdDCqpegUHozCXgMECOMygbqFCOQmtgYpkHHOPj8ip6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8n/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5m\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380702_adipisci\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quasi harum sit inventore esse amet esse.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio quo qui unde sint ipsam blanditiis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio quo qui unde sint ipsam blanditiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5m\", \"created\": 1542380702.0, \"url\": \"/r/1542380702_adipisci/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380702.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2332" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BooHES%2BLPoQAFASgX6w6mHIZB7wNJBJIiBEWA4UIdyZadQWTs9CioQHuNwYEvCPD6Ehf6D5TOFynTA9vSuKvSpuPF%2FAxs2Ck" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8m/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERatione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ratione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"locked\": false, \"name\": \"t3_8m\", \"created\": 1542380712.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8m/cupiditate_ea_vel_at_dolorem_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cupiditate ea vel at dolorem non.\", \"created_utc\": 1542380712.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1757" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pe1TTkBdPRJH2C7p0vPOqbEjpFNsGttsh8ZyZnRK74tCf%2BnXw42Majopcl8H1ynRiMRDzfzt6MrMHlXd%2FM88ZpnamHv3TKsY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8m/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5m\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380702_adipisci\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quasi harum sit inventore esse amet esse.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio quo qui unde sint ipsam blanditiis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio quo qui unde sint ipsam blanditiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5m\", \"created\": 1542380702.0, \"url\": \"/r/1542380702_adipisci/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380702.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2332" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Tt04GyY0BB8wsk6gFyM75Y6z%2Bb1RIeHy%2BPQlEfsrHFsOd8DVKCt31DLaAcwq6L29SvriF4L1Zl1XUnnJ64H%2BMCZTjMMzeMCv" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8l/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"locked\": false, \"name\": \"t3_8l\", \"created\": 1542380709.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8l/quia_nulla_fugiat_reiciendis_facere_cum_ipsum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia nulla fugiat reiciendis facere cum ipsum.\", \"created_utc\": 1542380709.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1812" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=QHjc3B579P9yUkjTzXYni10rD%2BqSEaRLO%2BHbRji%2BXBxwNAVbCLvSKnsMTe7rYtJ3AEcE8Kxjh7mIn7zxfxW%2Br2iofLiVmH0T" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8l/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5m\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380702_adipisci\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quasi harum sit inventore esse amet esse.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio quo qui unde sint ipsam blanditiis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio quo qui unde sint ipsam blanditiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5m\", \"created\": 1542380702.0, \"url\": \"/r/1542380702_adipisci/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380702.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2332" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4lCNCDZWETAPxDDChb8lbLlxWb%2Bs24F67yY2j7s%2FhRlBXdx3Hz1qlDBog6M%2B3M93uxpBg3ObJ8psOIlISkd0eeB%2FtW45Zxna" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8k/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380702_adipisci\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGVCCTWQ93NX53PF269VQB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380702_adipisci\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"locked\": false, \"name\": \"t3_8k\", \"created\": 1542380705.0, \"url\": \"http://reddit.local/r/1542380702_adipisci/comments/8k/accusamus_animi_distinctio_ducimus_eos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Accusamus animi distinctio ducimus eos.\", \"created_utc\": 1542380705.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7VyYBGAB3LvdAm%2FtgNNBqX2ulaWwiuy9NQsR4CEroGnQXk66eE3TsEHEH%2BC%2Fw3WtSTQFAU1AaIo7e4XJyyyxrPQTE8kmPvD%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8k/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2294-Sn2Je_0LVKhhXzq9uHymVyBfqqw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=c23rYIuUr6uyVTh9sy; loidcreated=2018-11-16T15%3A04%3A58.897Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5m\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380702_adipisci\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quasi harum sit inventore esse amet esse.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio quo qui unde sint ipsam blanditiis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio quo qui unde sint ipsam blanditiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Eaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5m\", \"created\": 1542380702.0, \"url\": \"/r/1542380702_adipisci/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380702.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2332" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=iHjL2JvfAZC0bHxE5mDDSIxvOfex52EcOuXprX9GTz1RjinctyqxlbQswc6kF6MgAysxITxh71XI%2F7lky%2BuA9KfCXC8QBQ%2Bj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380702_adipisci/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_anonymous.json b/cassettes/channels.views.frontpage_test.test_frontpage_anonymous.json deleted file mode 100644 index 31ce53328c..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_anonymous.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:00:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHG3XBQCJHJ0STDEMWYXDH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNO1iHRPDshLzjSwyHKLcvN2yskv8Q31Ngz1y8hX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZ+5p6BCeWphhH5oaYm1YEFvsbmTqHmKX4JluA9KSklmUmp8ZnpoAMhnCUagGEp0AUuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ciC7RvUYQtgvMjmyl9; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:21 GMT", - "loidcreated=2018-08-24T18%3A00%3A21.113Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHG3XBQCJHJ0STDEMWYXDH" - } - }, - { - "recorded_at": "2018-08-24T18:00:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ex+modi+itaque+placeat+quia.+Impedit+quasi+eos+vel+voluptates+ipsum.+Laboriosam+quas+atque+fugit+praesentium+occaecati+eum+eveniet+laboriosam.%0AEnim+iusto+minima+ipsa.+Unde+molestias+ratione+fugit+aliquid+nam.+Error+quae+ipsa+recusandae+totam+quas.+Vel+consectetur+inventore+repudiandae+aliquam+voluptatum+corrupti+accusantium.+Aut+ex+iste+vero+similique.&link_type=any&name=1535133621_occaecati&public_description=Nobis+dignissimos+ipsa+aliquid+quia+repudiandae.+Impedit+est+placeat+earum+dolorum.&title=Qui+sit+aut+tenetur+esse+fuga.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 186-8YGcPnci08jFZFKBlotMUK1UNho" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "607" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ciC7RvUYQtgvMjmyl9; loidcreated=2018-08-24T18%3A00%3A21.113Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "579" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ciC7RvUYQtgvMjmyl9; loidcreated=2018-08-24T18%3A00%3A21.113Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-ok4qid0vXpj8GVxyT1p7TsmPcwU\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "576" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T18:00:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -ok4qid0vXpj8GVxyT1p7TsmPcwU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ciC7RvUYQtgvMjmyl9; loidcreated=2018-08-24T18%3A00%3A21.113Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.nathan\", \"subreddit\": \"nathan\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CKX54WR918VQV2VNJB638NJX\", \"media\": null, \"name\": \"t3_2\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/nathan/comments/2/test_post/\", \"locked\": false, \"stickied\": false, \"created\": 1533208596.0, \"url\": \"http://reddit.local/r/nathan/comments/2/test_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post\", \"created_utc\": 1533208596.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test1\", \"subreddit\": \"test1\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Eblah blah blah\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"blah blah blah\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_1\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test1/comments/1/blah_blah_blah/\", \"locked\": false, \"stickied\": false, \"created\": 1533142246.0, \"url\": \"http://reddit.local/r/test1/comments/1/blah_blah_blah/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"blah blah blah\", \"created_utc\": 1533142246.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2466" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "576" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2WNbMdGGVt7Sc%2B1BfQ0FQuRfl4WNZZBX9JJpYWV%2B9GMF3J6DpFDzvKReQAiOtyjJWmC05qrgOqY%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_empty.json b/cassettes/channels.views.frontpage_test.test_frontpage_empty.json deleted file mode 100644 index c491837010..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_empty.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-13T20:11:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA02NwQ6CMBBEf4X0aDRBS0j1JoGriQesemlgWWxDIqRFkRr/XVYuHudl3sybFQDonOrbBu9sFzCxWvtNJsVwLq9GVopDXh9QwKC7R8SWAcNXZyw6ZajO4zCc2M9W/dghTZRYWLTUddDOaEHJYj2J+v8rihs45vI2yizt/dZzvT9Ndz5NLmRU+DSAylQ0Owf2+QIFCbuTtAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 13 Nov 2017 20:11:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=6rUaRcFAwPZPj6lrzv; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Nov-2019 20:11:05 GMT", - "loidcreated=2017-11-13T20%3A11%3A05.941Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Nov-2019 20:11:05 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-13T20:11:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 8-1z2EW8wXbZiWd_3cUfNe8cwhpu4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6rUaRcFAwPZPj6lrzv; loidcreated=2017-11-13T20%3A11%3A05.941Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "93" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 13 Nov 2017 20:11:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "535" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=YzFF6xDsiLSGtAqHi0U0NoYWDo%2BDq8xo8x4bkXKtLOf1XPiJaSdiAGCly4tpZghaAqF99fSgxf6tND%2Bgn%2BCLj5t0smj1SoEt" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params0-expected0].json b/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params0-expected0].json deleted file mode 100644 index 0c91375429..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params0-expected0].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T16:32:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WOywrCMBREf6VkKRZaqmJdql2EgCB24yrE2yuJfSQkqQ/EfzexK5czzJmZNxEA6Bz3usWBbBKS52WKKTtDJ053BbJVlHFf6n7LerrUZJ4QfBpl0XEVgWKVZcH78dy/DMaSCwqLNmYd6MmaRWXxGkD5v1aLyoA4VrQY6wOOaTfI3Vrs7W3xiEyD4QZy1cTiSZDPF5gl/YC4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:32:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=5szbqpBosYGIa6xJeb; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:32:05 GMT", - "loidcreated=2017-10-06T16%3A32%3A05.435Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:32:05 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T16:32:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-TaEpcaQEI3uTNeu-lnhC8aDrj4w" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=5szbqpBosYGIa6xJeb; loidcreated=2017-10-06T16%3A32%3A05.435Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-2y-yUVDL36KlY3gq_kHJe0DYWZ8\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:32:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "475" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T16:32:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-2y-yUVDL36KlY3gq_kHJe0DYWZ8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=5szbqpBosYGIa6xJeb; loidcreated=2017-10-06T16%3A32%3A05.435Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etestst\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"testst\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2FFY6JKZ4A420B424G6V7E\", \"media\": null, \"name\": \"t3_k\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/k/test2/\", \"locked\": false, \"stickied\": false, \"created\": 1507293335.0, \"url\": \"http://reddit.local/r/micromasters/comments/k/test2/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test2\", \"created_utc\": 1507293335.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.dianne\", \"subreddit\": \"dianne\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest1\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"test1\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2FFY6JKZ4A420B424G6V7E\", \"media\": null, \"name\": \"t3_h\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dianne/comments/h/test1/\", \"locked\": false, \"stickied\": false, \"created\": 1506693916.0, \"url\": \"http://reddit.local/r/dianne/comments/h/test1/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test1\", \"created_utc\": 1506693916.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etext content\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"text content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BJQMF54D093DXEAWZ6JYRPAQ\", \"media\": null, \"name\": \"t3_a\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/a/test_post_long_un/\", \"locked\": false, \"stickied\": false, \"created\": 1502899434.0, \"url\": \"http://reddit.local/r/test2/comments/a/test_post_long_un/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post long UN\", \"created_utc\": 1502899434.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 6, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etext content\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"text content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BJQMF54D093DXEAWZ6JYRPAQ\", \"media\": null, \"name\": \"t3_9\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/9/test_post_long_un/\", \"locked\": false, \"stickied\": false, \"created\": 1502899434.0, \"url\": \"http://reddit.local/r/test2/comments/9/test_post_long_un/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post long UN\", \"created_utc\": 1502899434.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ehello\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"hello\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_3\", \"score\": 2, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/3/hello/\", \"locked\": false, \"stickied\": false, \"created\": 1501189435.0, \"url\": \"http://reddit.local/r/test2/comments/3/hello/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"hello\", \"created_utc\": 1501189435.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 7, \"visited\": false, \"num_reports\": null, \"ups\": 2}}], \"after\": \"t3_3\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6372" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:32:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "475" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zbVrAnZ3wsbrvMGjYOb8oVKhtfkna0ywfhThEMQT9rq%2ByrIDkNXCkk8nBwaSNu16aBThkFulO2QhjUdIH1vaaGq3Elr%2FHixl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params1-expected1].json b/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params1-expected1].json deleted file mode 100644 index ddee108c63..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params1-expected1].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T16:36:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0tNT1LS9xzAsuyAmJN3R2KXSuNE8NzAstzA/LzclX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5u0YF5VaZ+VqWFrgHmhkYRzqmeBhalkUlmruC9KSklmUmp8ZnpoAMhnCUagG34O7uuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:36:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=fDGuFprsNKE3iuscf6; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:36:40 GMT", - "loidcreated=2017-10-06T16%3A36%3A40.015Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:36:40 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T16:36:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-OEZRmz6M9upGQ603YAdH19vZa7E" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=fDGuFprsNKE3iuscf6; loidcreated=2017-10-06T16%3A36%3A40.015Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-3m7aKZxA8sZeQrDSlv5ZHDUXaNM\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:36:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296" - ], - "x-ratelimit-reset": [ - "200" - ], - "x-ratelimit-used": [ - "4" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T16:36:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-3m7aKZxA8sZeQrDSlv5ZHDUXaNM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=fDGuFprsNKE3iuscf6; loidcreated=2017-10-06T16%3A36%3A40.015Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?after=t3_3&count=5&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Econtent\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BSHA77FC4E1FQKNV6C2738FP\", \"media\": null, \"name\": \"t3_e\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/e/test_post/\", \"locked\": false, \"stickied\": false, \"created\": 1504899291.0, \"url\": \"http://reddit.local/r/micromasters/comments/e/test_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post\", \"created_utc\": 1504899291.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 4, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Econtent\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BSHA77FC4E1FQKNV6C2738FP\", \"media\": null, \"name\": \"t3_d\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/d/title/\", \"locked\": false, \"stickied\": false, \"created\": 1504899157.0, \"url\": \"http://reddit.local/r/micromasters/comments/d/title/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"title\", \"created_utc\": 1504899157.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post user\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post user\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BS9MPD6VYJ925NVESE78FWVB\", \"media\": null, \"name\": \"t3_b\", \"score\": 2, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/b/new_post/\", \"locked\": false, \"stickied\": false, \"created\": 1504637024.0, \"url\": \"http://reddit.local/r/micromasters/comments/b/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"New post\", \"created_utc\": 1504637024.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 3, \"visited\": false, \"num_reports\": null, \"ups\": 2}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"google.com\", \"subreddit\": \"micromasters\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"mitodl\", \"media\": null, \"name\": \"t3_8\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/8/google/\", \"locked\": false, \"stickied\": false, \"created\": 1502219629.0, \"url\": \"https://google.com\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"google\", \"created_utc\": 1502219629.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Econtent here\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"content here\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"7\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"mitodl\", \"media\": null, \"name\": \"t3_7\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/7/text_post/\", \"locked\": false, \"stickied\": false, \"created\": 1502219601.0, \"url\": \"http://reddit.local/r/micromasters/comments/7/text_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"text post\", \"created_utc\": 1502219601.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_7\", \"before\": \"t3_e\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6263" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:36:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "200" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zvpEJ%2BHi6N4%2FJplokc9oeuNWiHhjXdvfbt9HiOGWv0jbEdVLy%2FVNCFBLycDKpSFcJZjKP4VswF%2BDSxdfBn4TePkMjVSnlQzM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?after=t3_3&count=5&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params2-expected2].json b/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params2-expected2].json deleted file mode 100644 index ff6139d805..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params2-expected2].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T16:51:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNzQqCQBSFX0XuMhJ0FLF2kQW5iggCNxcd7+ggpM6IFdG7NzdXLc/Pd84bSinJWpz6ju6w9SAMN77J5/F8E89BV3kXjUU8to9OUqTSGNYekAsMWdQMREkQOO/H4/QaiEcqKg0Z7lrZL9aKlSHlwPb/rcnyQ5OQKGe1TzNxiY+IO//qFyfLTE2zloS65uFFwOcLmY5vy7gAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:51:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=M9c9RKd54wZrTcpAJu; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:51:30 GMT", - "loidcreated=2017-10-06T16%3A51%3A30.086Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:51:30 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T16:51:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-gDJEg6e2avfC8D2R4F__A-T-ZIs" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=M9c9RKd54wZrTcpAJu; loidcreated=2017-10-06T16%3A51%3A30.086Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-1-fu67Y_Ov0gBwrRhnYxBoWChM4\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:51:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "510" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T16:51:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-1-fu67Y_Ov0gBwrRhnYxBoWChM4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=M9c9RKd54wZrTcpAJu; loidcreated=2017-10-06T16%3A51%3A30.086Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?after=t3_a&count=3&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etext content\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"text content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BJQMF54D093DXEAWZ6JYRPAQ\", \"media\": null, \"name\": \"t3_9\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/9/test_post_long_un/\", \"locked\": false, \"stickied\": false, \"created\": 1502899434.0, \"url\": \"http://reddit.local/r/test2/comments/9/test_post_long_un/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post long UN\", \"created_utc\": 1502899434.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ehello\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"hello\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_3\", \"score\": 2, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/3/hello/\", \"locked\": false, \"stickied\": false, \"created\": 1501189435.0, \"url\": \"http://reddit.local/r/test2/comments/3/hello/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"hello\", \"created_utc\": 1501189435.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 7, \"visited\": false, \"num_reports\": null, \"ups\": 2}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Econtent\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BSHA77FC4E1FQKNV6C2738FP\", \"media\": null, \"name\": \"t3_e\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/e/test_post/\", \"locked\": false, \"stickied\": false, \"created\": 1504899291.0, \"url\": \"http://reddit.local/r/micromasters/comments/e/test_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post\", \"created_utc\": 1504899291.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 4, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Econtent\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BSHA77FC4E1FQKNV6C2738FP\", \"media\": null, \"name\": \"t3_d\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/d/title/\", \"locked\": false, \"stickied\": false, \"created\": 1504899157.0, \"url\": \"http://reddit.local/r/micromasters/comments/d/title/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"title\", \"created_utc\": 1504899157.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Enew post user\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"new post user\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BS9MPD6VYJ925NVESE78FWVB\", \"media\": null, \"name\": \"t3_b\", \"score\": 2, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/b/new_post/\", \"locked\": false, \"stickied\": false, \"created\": 1504637024.0, \"url\": \"http://reddit.local/r/micromasters/comments/b/new_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"New post\", \"created_utc\": 1504637024.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 3, \"visited\": false, \"num_reports\": null, \"ups\": 2}}], \"after\": \"t3_b\", \"before\": \"t3_9\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6419" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:51:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "510" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2F7mfcsHfbkYdblUPlSYljjv59jHyeUJKljT3RlAYjNjObbsWbJV02pxemF4pFHfLZkY3Jo1O7g7%2BvRqw1DSYFldsBWp%2FX8Vl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?after=t3_a&count=3&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params3-expected3].json b/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params3-expected3].json deleted file mode 100644 index fd47329bfc..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_pagination[params3-expected3].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T16:37:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0tNQ1KnE1SjXJsIywdAzJz9Yt9g+sKnMJLi8oys1X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZleLkWlnsmV5TkmyZmxfuWZVcWljuV5EQYFSeD9KSklmUmp8ZnpoAMhnCUagEaN4mxuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:37:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=AfdxIGAK5IV2jiN7f9; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:37:46 GMT", - "loidcreated=2017-10-06T16%3A37%3A46.498Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:37:46 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T16:37:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-hJEqwIcxto5aj_MvkyqwBtlX2sc" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=AfdxIGAK5IV2jiN7f9; loidcreated=2017-10-06T16%3A37%3A46.498Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-Iw0x7u9cYbj6Z9cDA5SHgrn6G8k\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:37:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294" - ], - "x-ratelimit-reset": [ - "134" - ], - "x-ratelimit-used": [ - "6" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T16:37:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-Iw0x7u9cYbj6Z9cDA5SHgrn6G8k" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=AfdxIGAK5IV2jiN7f9; loidcreated=2017-10-06T16%3A37%3A46.498Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?before=t3_e&count=6&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.micromasters\", \"subreddit\": \"micromasters\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etestst\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"testst\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2FFY6JKZ4A420B424G6V7E\", \"media\": null, \"name\": \"t3_k\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/micromasters/comments/k/test2/\", \"locked\": false, \"stickied\": false, \"created\": 1507293335.0, \"url\": \"http://reddit.local/r/micromasters/comments/k/test2/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test2\", \"created_utc\": 1507293335.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.dianne\", \"subreddit\": \"dianne\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etest1\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"test1\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BV2FFY6JKZ4A420B424G6V7E\", \"media\": null, \"name\": \"t3_h\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/dianne/comments/h/test1/\", \"locked\": false, \"stickied\": false, \"created\": 1506693916.0, \"url\": \"http://reddit.local/r/dianne/comments/h/test1/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test1\", \"created_utc\": 1506693916.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etext content\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"text content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BJQMF54D093DXEAWZ6JYRPAQ\", \"media\": null, \"name\": \"t3_a\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/a/test_post_long_un/\", \"locked\": false, \"stickied\": false, \"created\": 1502899434.0, \"url\": \"http://reddit.local/r/test2/comments/a/test_post_long_un/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post long UN\", \"created_utc\": 1502899434.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 6, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etext content\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"text content\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BJQMF54D093DXEAWZ6JYRPAQ\", \"media\": null, \"name\": \"t3_9\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/9/test_post_long_un/\", \"locked\": false, \"stickied\": false, \"created\": 1502899434.0, \"url\": \"http://reddit.local/r/test2/comments/9/test_post_long_un/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"test post long UN\", \"created_utc\": 1502899434.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.test2\", \"subreddit\": \"test2\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ehello\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"hello\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_3\", \"score\": 2, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/test2/comments/3/hello/\", \"locked\": false, \"stickied\": false, \"created\": 1501189435.0, \"url\": \"http://reddit.local/r/test2/comments/3/hello/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"hello\", \"created_utc\": 1501189435.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 7, \"visited\": false, \"num_reports\": null, \"ups\": 2}}], \"after\": \"t3_3\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6372" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:37:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "134" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zigGUh8OAPxhw5AjOCT%2BiKAGJ6yMeHGj%2FckrhooTt7KET9syw%2FsMvppHipN8W%2BNJbR6VvFyi7PpMB6Nddtnu9TXCnh7GSvkD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?before=t3_e&count=6&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[hot].json b/cassettes/channels.views.frontpage_test.test_frontpage_sorted[hot].json deleted file mode 100644 index 7738866d29..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[hot].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:05:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGWSH4J6TFRDYGY2HGGV76" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4V0NJo0qATcYKkTDhIVlgbKayiikJYgxfjv8mRzvDf3nPsmuRBgDO/bOzzJwSGuG/ibOJftGNysvg5MQrxLG/qwbrJP6xdZOwTGTmkwXCGx9Sidu5+A97YDtBSQa9C4NaJdqhUmDXIGq7+7C4uOodVTU5x9ltWiPiVepqJiCilCJQxKAFclmpdAPl9UMXZXugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=XDZypMXzl45LukmpTv; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:05:45 GMT", - "loidcreated=2018-11-16T15%3A05%3A45.116Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:05:45 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGWSH4J6TFRDYGY2HGGV76" - } - }, - { - "recorded_at": "2018-11-16T15:05:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGWWS64D5JJQ2PKC2XXV53" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysrTU9THwNHaL8kws97BM9XWqcHL2SrcoM8lN9PUxUdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csy/Rz9dENLPTIL6kIDsmPDHDSdUrziKgMKS8tBmlKSS3LTE6Nz0wBmQzhKNUCAFDfvVe6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGWWS64D5JJQ2PKC2XXV53" - } - }, - { - "recorded_at": "2018-11-16T15:05:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Id+voluptate+dicta+optio+blanditiis+enim+odit.+Nobis+optio+quas+sit+ipsam+officiis+at+minima+maiores.+Voluptatibus+tempora+quam+rerum+recusandae+modi+deserunt+reiciendis.+Quisquam+non+doloribus+est+dolor+necessitatibus+et.%0AOdit+molestias+praesentium+aliquid+laudantium.+Explicabo+magnam+odio+sequi+tempora+voluptas+maxime.%0AA+nesciunt+ex+repudiandae+culpa+voluptatibus+doloribus+iste.+Ipsa+accusamus+soluta+vel+ea+atque+voluptas+molestias.+Accusantium+eum+quod+magnam+enim+magni+incidunt+id.&link_type=any&name=1542380748_repellat&public_description=Id+ratione+nulla+consectetur.+Quis+dignissimos+ullam+optio+officia.&title=Laborum+odit+soluta+impedit+velit.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2299-L0I3FZIawH9eMBxBCJg8v4maML4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "733" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "252" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGWSH4J6TFRDYGY2HGGV76&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2299-L0I3FZIawH9eMBxBCJg8v4maML4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380748_repellat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "249" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380748_repellat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380748_repellat" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380748_repellat&text=Corrupti+at+reprehenderit+iste+ut.+Animi+ea+odit+ea.+Suscipit+non+nemo+deleniti+delectus+illo.&title=Molestiae+accusamus+sed+consequuntur+maxime." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "228" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"id\": \"8s\", \"name\": \"t3_8s\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8s/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"locked\": false, \"name\": \"t3_8s\", \"created\": 1542380752.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Molestiae accusamus sed consequuntur maxime.\", \"created_utc\": 1542380752.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1796" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5jo7K3ik6huzLJ2%2BPTQW3LIIc%2BmUrHRHWmhlUzUyAKQBzQvlAhYkUPABOFKCCUZA7DMZzfAHvsNETtvNMXa5Ug7aeWjV3XBe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8s/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380748_repellat&text=Cum+quisquam+laborum+dolor+distinctio+suscipit+adipisci.+Quaerat+fuga+aperiam+occaecati+fugiat.&title=Voluptatibus+aliquid+quaerat+iure." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"id\": \"8t\", \"name\": \"t3_8t\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8t/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"locked\": false, \"name\": \"t3_8t\", \"created\": 1542380755.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Voluptatibus aliquid quaerat iure.\", \"created_utc\": 1542380755.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=WKOQILZCaJRYL3nfD8gprpWfCVWWPdZyRQk3Bnqo6snNsZMKqfpkLnHVEt0Gq7wJUUVFSQvnALW1pDZhrM1NKcS7ldiBXQ%2Bw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8t/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380748_repellat&text=Quia+incidunt+commodi+porro+iusto+aperiam+voluptatum.+Cupiditate+magni+ratione+commodi+expedita.&title=Harum+laborum+ducimus+magnam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "215" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"id\": \"8u\", \"name\": \"t3_8u\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "158" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:05:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8u/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"locked\": false, \"name\": \"t3_8u\", \"created\": 1542380758.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum laborum ducimus magnam.\", \"created_utc\": 1542380758.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:05:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "242" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bYbexvPt8Nsez67PQkuw7Gb3%2Bd%2B7LIS2X65t18%2FHpRjmgaFn8fbNEHUuPa%2Bg83S%2BBZZftCDyRV9vuBLEQVdTkgc4N63%2F71jb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8u/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380748_repellat&text=Est+voluptate+neque+est+cumque+esse.+Mollitia+cumque+quos+molestias+at.&title=Quae+odit+aliquam+mollitia." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "188" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"id\": \"8v\", \"name\": \"t3_8v\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "239" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8v/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEst voluptate neque est cumque esse. Mollitia cumque quos molestias at.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Est voluptate neque est cumque esse. Mollitia cumque quos molestias at.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"locked\": false, \"name\": \"t3_8v\", \"created\": 1542380761.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae odit aliquam mollitia.\", \"created_utc\": 1542380761.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1699" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "239" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kUQAnueJrSvkhyGNyjxR%2BqoVni3YLTZuZ79MOLhDNRcnjjNZ22i%2BTL%2BRI9uRgkeTp25V%2BEZZ2o02o1e6hGqbeTPWEf%2FltkJw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8v/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380748_repellat\", \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEst voluptate neque est cumque esse. Mollitia cumque quos molestias at.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Est voluptate neque est cumque esse. Mollitia cumque quos molestias at.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"name\": \"t3_8v\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"locked\": false, \"stickied\": false, \"created\": 1542380761.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae odit aliquam mollitia.\", \"created_utc\": 1542380761.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380748_repellat\", \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"name\": \"t3_8u\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"locked\": false, \"stickied\": false, \"created\": 1542380758.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum laborum ducimus magnam.\", \"created_utc\": 1542380758.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380748_repellat\", \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"name\": \"t3_8t\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"locked\": false, \"stickied\": false, \"created\": 1542380755.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Voluptatibus aliquid quaerat iure.\", \"created_utc\": 1542380755.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380748_repellat\", \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"name\": \"t3_8s\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"locked\": false, \"stickied\": false, \"created\": 1542380752.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Molestiae accusamus sed consequuntur maxime.\", \"created_utc\": 1542380752.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6273" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IYkzz4LWUxdCfmaNrr52LQj%2FO3fhbg4kocOdGXvEfv4lSa8MXWJe98slOnMgkbT8Ux6azVAuCEGG9%2FyqyeGwxyLdHwuk46qQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8v/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEst voluptate neque est cumque esse. Mollitia cumque quos molestias at.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Est voluptate neque est cumque esse. Mollitia cumque quos molestias at.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"locked\": false, \"name\": \"t3_8v\", \"created\": 1542380761.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8v/quae_odit_aliquam_mollitia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae odit aliquam mollitia.\", \"created_utc\": 1542380761.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1699" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DdSMiJb4qvtpBbNPdzzjVAnJMkGN%2BkY3ZjzvuGLvCwbEaQ1CldwACHWotRqeETMhttiqAh8F2kyrgCTUhPt%2FnYmpgPG7hok7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8v/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5o\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380748_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Laborum odit soluta impedit velit.\", \"collapse_deleted_comments\": false, \"public_description\": \"Id ratione nulla consectetur. Quis dignissimos ullam optio officia.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId ratione nulla consectetur. Quis dignissimos ullam optio officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Id voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5o\", \"created\": 1542380748.0, \"url\": \"/r/1542380748_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380748.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2477" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=39%2BGhqvuW6pSqNzNoL3pCXuSoxQ4em82lMxammhJzgeHRB7H9F8GtRCPsp6kZUOoA0rRdPqP6wAxW8VTSU6Pm6iUI2yBwQtd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8u/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"locked\": false, \"name\": \"t3_8u\", \"created\": 1542380758.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8u/harum_laborum_ducimus_magnam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum laborum ducimus magnam.\", \"created_utc\": 1542380758.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ijEEfnTrRpYD7y4malPuGXWjSNaOrBY7Zjh0v6OjB4btdRQMXMtWrJtHeNMoweKa%2BFIA1NZxidXuJG5oKDaOiNe09jJxjgLc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8u/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5o\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380748_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Laborum odit soluta impedit velit.\", \"collapse_deleted_comments\": false, \"public_description\": \"Id ratione nulla consectetur. Quis dignissimos ullam optio officia.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId ratione nulla consectetur. Quis dignissimos ullam optio officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Id voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5o\", \"created\": 1542380748.0, \"url\": \"/r/1542380748_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380748.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2477" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=gSV0GF%2B8WzXUvx6T58jS2L0qqHBAvixYEjAXf3mqTC9P6RWlefkyocY0Z2osdDiZY%2F%2BGRDtxID5JxPJBKGvXCkZHWwA%2B8eNp" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8t/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"locked\": false, \"name\": \"t3_8t\", \"created\": 1542380755.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8t/voluptatibus_aliquid_quaerat_iure/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Voluptatibus aliquid quaerat iure.\", \"created_utc\": 1542380755.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=e3wCnboMjjssRFMdUNc6Vp8AqFK%2FwBdXvwKjcP9w5RS4lqwsvYYFuWYrR8xxIJqyyazt2w07noKGucEoRlONkKGagH0QtYn5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8t/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5o\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380748_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Laborum odit soluta impedit velit.\", \"collapse_deleted_comments\": false, \"public_description\": \"Id ratione nulla consectetur. Quis dignissimos ullam optio officia.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId ratione nulla consectetur. Quis dignissimos ullam optio officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Id voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5o\", \"created\": 1542380748.0, \"url\": \"/r/1542380748_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380748.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2477" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ts9R%2FxxOa6z4Sz%2BLrSRKDd1V45jUMJrIbq%2FDAwcfC6Em8gSteh2S%2Fgp21uq%2Fp%2F0lDUaT32BkAYAcHzb8uXSL4Wr1TsI3bVK3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8s/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380748_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGWSH4J6TFRDYGY2HGGV76\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380748_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"locked\": false, \"name\": \"t3_8s\", \"created\": 1542380752.0, \"url\": \"http://reddit.local/r/1542380748_repellat/comments/8s/molestiae_accusamus_sed_consequuntur_maxime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Molestiae accusamus sed consequuntur maxime.\", \"created_utc\": 1542380752.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1796" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=KbqqDFlXU86lCupjMys1zLv8dqhjfOySejcnNnNKLA%2FA2oGCutUOwRiAOgjpVYJZm1nWDMsAhggQrcaxX9Px9TlX8QzHZ0bB" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8s/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2298-Nafox9XyrWvGfeN4Yl0my2T5Yjw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XDZypMXzl45LukmpTv; loidcreated=2018-11-16T15%3A05%3A45.116Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5o\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380748_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Laborum odit soluta impedit velit.\", \"collapse_deleted_comments\": false, \"public_description\": \"Id ratione nulla consectetur. Quis dignissimos ullam optio officia.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId ratione nulla consectetur. Quis dignissimos ullam optio officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Id voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5o\", \"created\": 1542380748.0, \"url\": \"/r/1542380748_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380748.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2477" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DFCINLsfi5InI1I%2F7fjNrZp%2FhZjMtZj3YklG3mQ3g5GjRjWoiiRg698BoLVEuw0dOc%2F2MO9EWcv5TpOwXihHL6tKIB4F2tCR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380748_repellat/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[new].json b/cassettes/channels.views.frontpage_test.test_frontpage_sorted[new].json deleted file mode 100644 index b9059143c4..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[new].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:06:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGY695PYTZ2E6M9M35PEXZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMACF/4rsGAVDS1fHDhHEiMRYt6HzlcPKsYmk0X/P5a3je7zve2+SKwXnZNvUeJJNQMKIhgtZZdtzdhi43F0Ej60ZaLhPbsmjZ2QeELyMtnBSeyKKKR27n0C2vYG3FMgtrN861UzVzCeL6whWf3dHirVN3XI1MNxT3vVcFBEMO4naQyU6rSB16c1TIJ8vwXLrTroAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:06:31 GMT", - "loidcreated=2018-11-16T15%3A06%3A30.931Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:06:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGY695PYTZ2E6M9M35PEXZ" - } - }, - { - "recorded_at": "2018-11-16T15:06:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGY9J3G2EVZTT43G9FX4QQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NywrCMBREf6VkKQqtARF3ZiHxWcEqZhXq7a2mRRuSWK3iv9vYncsZ5px5kxQArZWuKvFGJgEZ0pAOVvlDsHlSi7hoqF5TPnY8ObDdcrEn/YDgUyuDVipP0FEYtt1PIF2j0VtOmBo0fmuh6qqeTwbzFrz83UUvrq8cztviPttEwIQQtSghdsephzKsFaBUmTd3gXy+4ChD97oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGY9J3G2EVZTT43G9FX4QQ" - } - }, - { - "recorded_at": "2018-11-16T15:06:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quia+tempora+eum+sit.+Voluptatem+porro+similique+blanditiis+recusandae+impedit+numquam+quos.+Aperiam+at+rerum+deserunt+quos.+Illum+reprehenderit+ea+fuga.%0ADebitis+minus+numquam+nisi+a+inventore+quod+at.+Velit+quam+itaque+ipsa+tempore+cupiditate+aperiam+temporibus.+Voluptas+voluptas+libero+vitae+nesciunt+iste+quibusdam+occaecati.%0ASuscipit+commodi+impedit+possimus+possimus+eos+totam+esse.+Cumque+sit+veniam+beatae+eaque+cum+vitae+laudantium+perferendis.+Asperiores+ab+quaerat+laudantium+officiis.&link_type=any&name=1542380794_ratione&public_description=Optio+recusandae+delectus+quisquam+voluptates+blanditiis+eius+quia+sed.&title=Et+minus+perspiciatis+ab+pariatur+eveniet.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2303-LfwYBITvYOjy3pM3H8tHTVBSKJU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "750" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "206" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGY695PYTZ2E6M9M35PEXZ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2303-LfwYBITvYOjy3pM3H8tHTVBSKJU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380794_ratione/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "203" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380794_ratione/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380794_ratione" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "203" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380794_ratione&text=Voluptas+non+consequatur+natus+labore.+Ipsa+fugiat+animi+delectus.&title=Odit+ducimus+quasi+in+tempora." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "185" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"id\": \"90\", \"name\": \"t3_90\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "158" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "203" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/90/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas non consequatur natus labore. Ipsa fugiat animi delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptas non consequatur natus labore. Ipsa fugiat animi delectus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"90\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"locked\": false, \"name\": \"t3_90\", \"created\": 1542380797.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odit ducimus quasi in tempora.\", \"created_utc\": 1542380797.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "203" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6ZD3b3noTWeJf%2FuNwIa%2FKmKkGy55T%2BLitFoajHYh5VBLc2SUJmLaIiqlJagrD5%2B17pk6Qt%2BTxIloQl0NtFKp%2FNqOjc7yZLv%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/90/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380794_ratione&text=Vero+libero+itaque+repellat+architecto+a+cupiditate+dolore.+Eligendi+itaque+id+impedit+eaque.&title=Reprehenderit+accusamus+pariatur+officia+libero." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "230" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"id\": \"91\", \"name\": \"t3_91\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "176" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "200" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/91/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"91\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"locked\": false, \"name\": \"t3_91\", \"created\": 1542380800.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Reprehenderit accusamus pariatur officia libero.\", \"created_utc\": 1542380800.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1802" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "199" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=WYCMMRv%2BahlckXqdGsZK21X%2BuLqC3du5bW193Og6czz7lqZ5MDEVl2nHZ%2FBV5g4TBcuqYPUdEFmE7mssu6c0DMk6AMPHxBpK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/91/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380794_ratione&text=Officia+ipsa+magnam+officiis+delectus.+Maxime+numquam+eum+sint+quam+quae+quidem+ullam+id.&title=Corporis+sunt+id+recusandae." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "206" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"id\": \"92\", \"name\": \"t3_92\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "196" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/92/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Officia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"92\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"locked\": false, \"name\": \"t3_92\", \"created\": 1542380804.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Corporis sunt id recusandae.\", \"created_utc\": 1542380804.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1734" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "196" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=AKsYmbBsVubC0E7CgjbUcUsu6l4Yv0PS2sPhlqJnI%2BCTd%2BY%2B58eWzJgxC0Zbz15%2Bi6dsDY17MqEjjsAijOrpGWRcIyKKjgff" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/92/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380794_ratione&text=Cupiditate+sint+quisquam+ipsa+labore.+Beatae+asperiores+odio+qui+saepe+quis+provident+reiciendis.&title=Sint+quibusdam+excepturi+tempore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"id\": \"93\", \"name\": \"t3_93\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "193" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/93/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"93\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"locked\": false, \"name\": \"t3_93\", \"created\": 1542380807.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sint quibusdam excepturi tempore.\", \"created_utc\": 1542380807.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "193" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6ajm1uZEVMkhNkBjxm2Gkt%2BhuauH4UWd1i7ttoBxKg6pxQH9Z6VvwN53KiJAWIXozpWHsNG2JoczXpFgLhcPoaLnG3jSAAoI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/93/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/new?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380794_ratione\", \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"93\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"name\": \"t3_93\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"locked\": false, \"stickied\": false, \"created\": 1542380807.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sint quibusdam excepturi tempore.\", \"created_utc\": 1542380807.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380794_ratione\", \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Officia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"92\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"name\": \"t3_92\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"locked\": false, \"stickied\": false, \"created\": 1542380804.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Corporis sunt id recusandae.\", \"created_utc\": 1542380804.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380794_ratione\", \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"91\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"name\": \"t3_91\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"locked\": false, \"stickied\": false, \"created\": 1542380800.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Reprehenderit accusamus pariatur officia libero.\", \"created_utc\": 1542380800.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380794_ratione\", \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas non consequatur natus labore. Ipsa fugiat animi delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptas non consequatur natus labore. Ipsa fugiat animi delectus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"90\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"name\": \"t3_90\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"locked\": false, \"stickied\": false, \"created\": 1542380797.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odit ducimus quasi in tempora.\", \"created_utc\": 1542380797.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6250" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dLPDvuPHY5%2B6qphaTWaMwL5kwnYodQgD27UAd70UXMnTTj5xxhIbHF0Eya%2F%2FRwjujCI32L3BdSEN4KphGd7C3ZY35WbqI7WP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/new?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/93/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"93\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"locked\": false, \"name\": \"t3_93\", \"created\": 1542380807.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/93/sint_quibusdam_excepturi_tempore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sint quibusdam excepturi tempore.\", \"created_utc\": 1542380807.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B%2FZHS9aJGnSdGFQQ5L4ziOtYGJ4Y2GqqZZxA%2BIfyxLECvUK%2BtZIT6nfxwPfmqhtzZZEUr6bxg60efc03PeHdLPATDNJqBAqz" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/93/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380794_ratione\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Et minus perspiciatis ab pariatur eveniet.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio recusandae delectus quisquam voluptates blanditiis eius quia sed.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio recusandae delectus quisquam voluptates blanditiis eius quia sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5q\", \"created\": 1542380794.0, \"url\": \"/r/1542380794_ratione/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380794.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2503" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FJEfpjPVEPLnt0VhOIOqk5GNzfI8lQcay6FzAj%2BQ2c65x885PIYwlp2W0CnhlFdv5vQ73ZTJArGxfqJBFpNI44RdF%2FJrLzXU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/92/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Officia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"92\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"locked\": false, \"name\": \"t3_92\", \"created\": 1542380804.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/92/corporis_sunt_id_recusandae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Corporis sunt id recusandae.\", \"created_utc\": 1542380804.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1734" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vUKX0GaUUMxvlZ8F6%2BCKPmaHSCe1bLobu7l8ZutcVwpGkgWx9HXfUv95e6KNvnxKWSckmrLRv%2BbegzzNnkJ%2BvzMAILYTfB74" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/92/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380794_ratione\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Et minus perspiciatis ab pariatur eveniet.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio recusandae delectus quisquam voluptates blanditiis eius quia sed.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio recusandae delectus quisquam voluptates blanditiis eius quia sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5q\", \"created\": 1542380794.0, \"url\": \"/r/1542380794_ratione/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380794.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2503" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JtlEIbh3oEZDCiqjqQH59YfVJDWLRc6gl%2F7%2BHtIntN0%2F0LO5vy1Be01mDTBv9%2BEpijXLiPSyR3D%2BM9BYZuW%2B5Wmx%2Btf6jYWU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/91/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"91\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"locked\": false, \"name\": \"t3_91\", \"created\": 1542380800.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/91/reprehenderit_accusamus_pariatur_officia_libero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Reprehenderit accusamus pariatur officia libero.\", \"created_utc\": 1542380800.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1802" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=m6z6c402Ikv4JB7513Lbx8uv3c0yVI03PW6UgkNB%2B8WEbvkS8fW%2BvJWUBswuNXTzWvyl%2BBKTt7EVBoHQyE7qN8q1lzZTJBa5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/91/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380794_ratione\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Et minus perspiciatis ab pariatur eveniet.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio recusandae delectus quisquam voluptates blanditiis eius quia sed.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio recusandae delectus quisquam voluptates blanditiis eius quia sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5q\", \"created\": 1542380794.0, \"url\": \"/r/1542380794_ratione/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380794.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2503" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SDKiVOivnS0rrQB5SVWiidwb0IJQuhjbNm4s09LoqUw1S%2FiV538eTSfCAhPeJkRLA3CmQbN5eLS225hfM8%2FX9zVemJP6tq5i" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/90/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380794_ratione\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas non consequatur natus labore. Ipsa fugiat animi delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptas non consequatur natus labore. Ipsa fugiat animi delectus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"90\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGY695PYTZ2E6M9M35PEXZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380794_ratione\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"locked\": false, \"name\": \"t3_90\", \"created\": 1542380797.0, \"url\": \"http://reddit.local/r/1542380794_ratione/comments/90/odit_ducimus_quasi_in_tempora/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odit ducimus quasi in tempora.\", \"created_utc\": 1542380797.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=tIWR%2FuGFP0UKTxxQ3sRXH%2Bm%2Fi%2B%2FinwOjNytYNedARW1%2BuohoLMYNp5f3bEI11gr0vODnsViJ5fNpf9fSTCa2sC900o7EmKcY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/90/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2302-_hTBUTKzM_FXWM6rpz02H7g7my8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rJaSSRqp7nKdUPcTYj; loidcreated=2018-11-16T15%3A06%3A30.931Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380794_ratione\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Et minus perspiciatis ab pariatur eveniet.\", \"collapse_deleted_comments\": false, \"public_description\": \"Optio recusandae delectus quisquam voluptates blanditiis eius quia sed.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio recusandae delectus quisquam voluptates blanditiis eius quia sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5q\", \"created\": 1542380794.0, \"url\": \"/r/1542380794_ratione/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380794.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2503" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "190" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=09g%2FhXltQ3yE2SZpuVJgsMfuvuxyOomMIcWgJnM93K9dpULhP3VE3o6kXYxJ%2Ft0vgskSkP3Q7mVfS0Oy8jgdxJu0nNYuuR3d" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380794_ratione/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[top].json b/cassettes/channels.views.frontpage_test.test_frontpage_sorted[top].json deleted file mode 100644 index fb2f76aa25..0000000000 --- a/cassettes/channels.views.frontpage_test.test_frontpage_sorted[top].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:06:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGXFYDM6KQE0GJEXPZ6448" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjDQdSw1rzD2LHeJt0gMdPN3K0z0cMuPSiv0LQhxVdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsCzFNi3RNyYtwzQk2cQsIMPX0KM2ucs8PcnfyBGlKSS3LTE6Nz0wBmQzhKNUCAFDqbPC6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=54Nwi5FPbzQXUwodYL; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:06:08 GMT", - "loidcreated=2018-11-16T15%3A06%3A08.078Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:06:08 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGXFYDM6KQE0GJEXPZ6448" - } - }, - { - "recorded_at": "2018-11-16T15:06:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGXK8E31XSXKP9PP5SW202" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBzFv4rsGAVToaKbtA5NK0o8eBpu/sUhbWOTUKPvnstbx/d4v997o0oIcI71ugOFDgGKYhxu8uReJqconxSh+mqqJxviKRwzdTyjdYBgMNKCY9IT8RbjufsJWD8a8BYOlQXrt07opVr5ZKGZwfbvruPNo91dCkPTtL7tcU55VpSEGJt4qIaXFMBk7c1LQJ8vWDZ1TroAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGXK8E31XSXKP9PP5SW202" - } - }, - { - "recorded_at": "2018-11-16T15:06:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Expedita+aspernatur+expedita+inventore+quia+blanditiis.+Tempore+pariatur+asperiores+alias+inventore+nobis+quae.+Accusamus+fugiat+minima+asperiores+eum+sit.%0AQuod+blanditiis+dignissimos+ullam+beatae+sapiente.+Quis+officiis+recusandae+dignissimos.+Consequatur+incidunt+ducimus+incidunt.+Unde+dignissimos+assumenda+explicabo+fugiat+cumque.+Aut+consequuntur+modi+nostrum+commodi+quaerat+eligendi.&link_type=any&name=1542380771_fugiat&public_description=Expedita+impedit+reprehenderit+quia+et+ea+excepturi.&title=Facere+ullam+dicta+totam+optio+id+repellendus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2301-SAQYAE2SznDJoNpam_x3z1yLnCI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "627" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "229" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGXFYDM6KQE0GJEXPZ6448&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2301-SAQYAE2SznDJoNpam_x3z1yLnCI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380771_fugiat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "226" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380771_fugiat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380771_fugiat" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380771_fugiat&text=Iure+in+ab+hic+illo+magni+et+quis.+Ex+quibusdam+suscipit+recusandae+laborum.&title=Quod+omnis+nobis+saepe+sint+modi+voluptatibus." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "210" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"id\": \"8w\", \"name\": \"t3_8w\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8w/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"locked\": false, \"name\": \"t3_8w\", \"created\": 1542380775.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod omnis nobis saepe sint modi voluptatibus.\", \"created_utc\": 1542380775.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1758" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=B%2BiQD3vEwCOFecZGVPHB%2BGsbXOViN2PPpshgGdV3hRxFVhSpV7Si1Jode5OriRudqOfWuNgOlVE5tSFiLaR5QRm27VLLiZdn" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8w/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380771_fugiat&text=Voluptatem+adipisci+quam+incidunt+quos.+Similique+culpa+rem+dolorem.&title=A+architecto+eum+architecto+a." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "186" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"id\": \"8x\", \"name\": \"t3_8x\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "222" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8x/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"locked\": false, \"name\": \"t3_8x\", \"created\": 1542380778.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"A architecto eum architecto a.\", \"created_utc\": 1542380778.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "222" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mZ1j8l4S9nqQ1EfgM5jvdNIDeNdha9znGP9eLnOCVpeXImw3tuNWt4q8EMwuf65EhC8WvCw6y%2FvstNB%2B8%2BlkCJv8EGfaL%2B0w" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8x/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380771_fugiat&text=Numquam+eveniet+modi+fugit+amet.+Provident+dolor+quo+assumenda.+Sit+cumque+quis+vitae+qui+minus.&title=Totam+ipsa+totam+velit+incidunt." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "216" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"id\": \"8y\", \"name\": \"t3_8y\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "159" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8y/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Numquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"locked\": false, \"name\": \"t3_8y\", \"created\": 1542380781.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Totam ipsa totam velit incidunt.\", \"created_utc\": 1542380781.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=x6Vxb%2ByxRHfeB6j%2FbvCuHCUQ1Exnb%2FP%2FbAtrzFcDrZO248yXzJXH8m9POd2gMIfr4%2FpP0o9Hf1hYV31O6lAJtEg%2F8fPMPCLy" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8y/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380771_fugiat&text=Qui+incidunt+dolorum+corrupti+quam+facilis+et.+Saepe+molestiae+natus+nam+harum+non.&title=Doloribus+porro+reiciendis+maxime+error+fugit." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "217" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"id\": \"8z\", \"name\": \"t3_8z\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "216" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"locked\": false, \"name\": \"t3_8z\", \"created\": 1542380784.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Doloribus porro reiciendis maxime error fugit.\", \"created_utc\": 1542380784.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1772" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "216" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DHC1auWcyOZaTNQx4pbcU8UGpkpdHO3huN4JIG2WTDzBk51J4lQF9C6amUnym1OEWYnoJrWg5Hn6WmzqjDWrMTCKB7Saecr1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/top?count=0&t=all&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380771_fugiat\", \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"name\": \"t3_8z\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"locked\": false, \"stickied\": false, \"created\": 1542380784.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Doloribus porro reiciendis maxime error fugit.\", \"created_utc\": 1542380784.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380771_fugiat\", \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Numquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"name\": \"t3_8y\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"locked\": false, \"stickied\": false, \"created\": 1542380781.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Totam ipsa totam velit incidunt.\", \"created_utc\": 1542380781.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380771_fugiat\", \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"name\": \"t3_8x\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"locked\": false, \"stickied\": false, \"created\": 1542380778.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"A architecto eum architecto a.\", \"created_utc\": 1542380778.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380771_fugiat\", \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"name\": \"t3_8w\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"locked\": false, \"stickied\": false, \"created\": 1542380775.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod omnis nobis saepe sint modi voluptatibus.\", \"created_utc\": 1542380775.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6235" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=J42kNSRg36W7UPvz87b13%2F1fPurktu%2FXMdUZGSkS7TLS0%2BrYHuz3397sGNt2sVMXPykGRPZNOaey5JWIQq21Qv5DyckXVh28" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/top?count=0&t=all&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"locked\": false, \"name\": \"t3_8z\", \"created\": 1542380784.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8z/doloribus_porro_reiciendis_maxime_error_fugit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Doloribus porro reiciendis maxime error fugit.\", \"created_utc\": 1542380784.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1772" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vSphE5fyQnN45fErCH3PbaK19crVyuKGuUtCO54vMSldkePbr2AaTzVhbvBwgrxiz6EFtkpGmi69GcTEe6%2FQvWY8guxaUHVk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380771_fugiat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Facere ullam dicta totam optio id repellendus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita impedit reprehenderit quia et ea excepturi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita impedit reprehenderit quia et ea excepturi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Expedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5p\", \"created\": 1542380771.0, \"url\": \"/r/1542380771_fugiat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380771.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2255" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MEuumJozw7TLwH6pJmjOCBp5RQVYuB5wiAMBxvDz4eSKo5raSfm7NnrGBcoUfj65d5kc09%2BAGCLViKQ2IelymCj6Saa3Fv%2By" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8y/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENumquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Numquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"locked\": false, \"name\": \"t3_8y\", \"created\": 1542380781.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8y/totam_ipsa_totam_velit_incidunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Totam ipsa totam velit incidunt.\", \"created_utc\": 1542380781.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0ekysA948Gy18kmE5L4%2FPSfMbaY3IHqTeWXODfvCJVJDMGKom2fVteVorLSP6t0zwE1fVuz7waqFxo2zTUGLu9a7ihA7CDcw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8y/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380771_fugiat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Facere ullam dicta totam optio id repellendus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita impedit reprehenderit quia et ea excepturi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita impedit reprehenderit quia et ea excepturi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Expedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5p\", \"created\": 1542380771.0, \"url\": \"/r/1542380771_fugiat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380771.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2255" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ZByRphceqQOlxcrlwel1tZ1gze1bujg4KlGFPSto61XFGSCFM5KPB4C%2FbpL6EHnIVdYDjyS77lyEs37VFeM%2FyyDm7CH1Itcm" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8x/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"locked\": false, \"name\": \"t3_8x\", \"created\": 1542380778.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8x/a_architecto_eum_architecto_a/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"A architecto eum architecto a.\", \"created_utc\": 1542380778.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=X7N3tsGTVJpIU8b0qwkMic017ho%2FAGB3MIqoG1nNwoRvk51Opogcjunjqy7Lg65h%2FOWe%2Bg4xF3pOeS6885gd1pjdRar8mMWP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8x/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380771_fugiat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Facere ullam dicta totam optio id repellendus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita impedit reprehenderit quia et ea excepturi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita impedit reprehenderit quia et ea excepturi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Expedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5p\", \"created\": 1542380771.0, \"url\": \"/r/1542380771_fugiat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380771.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2255" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7LXnrXpKDtwCgfCqiOa%2BBxrjvJmnxdboggZ%2BlJ7ObywrtjDzmpdfxi41oU9YP0xBYYjYT8OxBO5okTt4Q6KZMwcTg6%2FPupcI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8w/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380771_fugiat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGXFYDM6KQE0GJEXPZ6448\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380771_fugiat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"locked\": false, \"name\": \"t3_8w\", \"created\": 1542380775.0, \"url\": \"http://reddit.local/r/1542380771_fugiat/comments/8w/quod_omnis_nobis_saepe_sint_modi_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod omnis nobis saepe sint modi voluptatibus.\", \"created_utc\": 1542380775.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1758" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Yoal854vV2vJjkOq3xWGTwv%2FvdNmquvK0J6NWF8vgSIeED8bKIMwFQfERYrRh614WD6nPSi9tpXKBGV7ZN%2FAI7sE9YMurT7E" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8w/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:06:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2300-Au7x3IwD_8aQFOFqaHFoZfqMpTE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=54Nwi5FPbzQXUwodYL; loidcreated=2018-11-16T15%3A06%3A08.078Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380771_fugiat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Facere ullam dicta totam optio id repellendus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita impedit reprehenderit quia et ea excepturi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita impedit reprehenderit quia et ea excepturi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Expedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5p\", \"created\": 1542380771.0, \"url\": \"/r/1542380771_fugiat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380771.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2255" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:06:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "213" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=w2jQTOk7DoXN1f0oRnL1gACFoClr2ijSPBlliqhoByxeaIXOjr%2Bn7J6Yoir7ZrW7sFxcakBC57AJ9kVUEfElxEBLE2%2FXDAXj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380771_fugiat/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_add_moderator.json b/cassettes/channels.views.moderators_test.test_add_moderator.json deleted file mode 100644 index 45527ba909..0000000000 --- a/cassettes/channels.views.moderators_test.test_add_moderator.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:02:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHK85M1KHY5647G2FQNYD5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysNB1Nyu08M9Kic9wzs8szIyPCq2KSrU0NAhMKslX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalO3uGZKeVJRcZ5QT6BpuH+AWllxWbOIZ7FYJtS0kty0xOjc9MARkM4SjVAgCqYwwKuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=cP3B81DGqs65AaqV95; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:02:04 GMT", - "loidcreated=2018-08-24T18%3A02%3A03.804Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:02:04 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHK85M1KHY5647G2FQNYD5" - } - }, - { - "recorded_at": "2018-08-24T18:02:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quis+deleniti+quod+est+delectus.+Molestias+quaerat+repellat+expedita+perspiciatis+unde+ex.+Sapiente+impedit+accusamus+nostrum+aspernatur.%0APlaceat+error+aliquam+corrupti+laboriosam+alias+illum+minima.+Aut+hic+necessitatibus+reiciendis+voluptates+recusandae.+Fuga+blanditiis+deserunt+voluptatibus+ipsum.+Iure+officiis+reprehenderit+dolor+dolore+sed+debitis.&link_type=any&name=1535133724_asperiores&public_description=Repellat+perferendis+nostrum+corporis+atque.+Nemo+cum+temporibus+eius+at.&title=Ratione+quod+dicta+iste+vel.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 208-G6q8Ojd_hCoiqi_ZUzZe910Qbto" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "597" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "476" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKEH02E1WP1ZS8C8TVCH9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIysNQ1K4g38iwxDfP28kkJjSxxKXQ1Do8MTY9wLi1X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb55JRUhpe4BBikJKY4lVQlm6XlBxcGhxpbWESC9KSklmUmp8ZnpoAMhnCUagGAAW+6uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKEH02E1WP1ZS8C8TVCH9" - } - }, - { - "recorded_at": "2018-08-24T18:02:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 208-G6q8Ojd_hCoiqi_ZUzZe910Qbto" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133724_asperiores/about/moderators/?user=01CNPHK85M1KHY5647G2FQNYD5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133724.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHK85M1KHY5647G2FQNYD5\", \"id\": \"t2_5s\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Dmgn0QVFvqs0mpdzmQRt1PsAztc3xgt6rGg3XIbYEF8VQ3a7mgXX2wMbUPGp0EDW9v4M9GK7Uu4loNSGPa4iNyHjMtqfno9Q" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133724_asperiores/about/moderators/?user=01CNPHK85M1KHY5647G2FQNYD5&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHKEH02E1WP1ZS8C8TVCH9&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 208-G6q8Ojd_hCoiqi_ZUzZe910Qbto" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133724_asperiores/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133724_asperiores/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 209-6p_2It5VKJLdUYtDqE3WYUgXCuw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133724_asperiores/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133724_asperiores/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 208-G6q8Ojd_hCoiqi_ZUzZe910Qbto" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=cP3B81DGqs65AaqV95; loidcreated=2018-08-24T18%3A02%3A03.804Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133724_asperiores/about/moderators/?user=01CNPHKEH02E1WP1ZS8C8TVCH9&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133730.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHKEH02E1WP1ZS8C8TVCH9\", \"id\": \"t2_5t\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ERsE2RBDDJch3Cj5Febs2UNvfDi5rBuxId%2F5GGEDZKWe6sA8Q%2Bs%2Fe9YsqOl1cunLSGTtRuWX71fGXDwoikkPDjj2f4%2B4tlVI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133724_asperiores/about/moderators/?user=01CNPHKEH02E1WP1ZS8C8TVCH9&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_add_moderator_again.json b/cassettes/channels.views.moderators_test.test_add_moderator_again.json deleted file mode 100644 index 6f8785dc61..0000000000 --- a/cassettes/channels.views.moderators_test.test_add_moderator_again.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:02:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKZE781P8JCA70QMX91C9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNNY1yQ5wCzWs8Cgz8Ut3zQ9M83ExAtKOuS4evko6CkqpFQWZRanF8ZkgDcZmBgZAMbD++JLKglSQIUmpiUWpRSC1xcn5ECEtEK8oNQ2oMQPVtsrEUFMTr6DwFL+spMjIqviwYJ8gA/Nkkyz/ZJCelNSyzOTU+MwUkMEQjlItADE5Pvy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:02:27 GMT", - "loidcreated=2018-08-24T18%3A02%3A27.628Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:02:27 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKZE781P8JCA70QMX91C9" - } - }, - { - "recorded_at": "2018-08-24T18:02:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Esse+odio+aperiam+ipsa.+Recusandae+aliquam+laboriosam+pariatur+aut+voluptatum+reiciendis+vero.+Veritatis+dignissimos+adipisci+beatae+adipisci+architecto+reprehenderit+perferendis+eaque.+Quo+porro+quaerat+explicabo+perferendis+aliquam+officia.%0AQuaerat+suscipit+doloribus+placeat.+Commodi+nostrum+sunt+nulla.+Esse+quos+tempore+qui.%0ASimilique+dolor+nemo+id+laborum+harum.+Maiores+possimus+magni+optio+totam+ut+provident+laboriosam.+Doloribus+rem+adipisci+suscipit+deleniti+provident+cum.&link_type=any&name=1535133747_porro&public_description=Eaque+soluta+atque+debitis+nobis+eos+voluptates+accusantium.+Qui+aperiam+labore+at+molestiae.&title=Voluptates+eius+nemo+eligendi+quos+doloribus.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 213-4kPFU1xHv4NgEoQfLD2gEoAmDHM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "760" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "452" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHM5TGNAY9PMZAVJNR5AV2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNNENM87wMjV0Cgzyj8+0zDQsL7IICvSzLIg0cndV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5ZRe5WRoEexl5Bqc4BxdYmoaXheS7mAFtBtuWklqWmZwan5kCMhjCUaoFAPPARfy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHM5TGNAY9PMZAVJNR5AV2" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHM5TGNAY9PMZAVJNR5AV2&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 213-4kPFU1xHv4NgEoQfLD2gEoAmDHM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133747_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133747_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 214-V3hJ51BQRO_i9i1wr8RQN9pY2GE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133747_porro/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133747_porro/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 213-4kPFU1xHv4NgEoQfLD2gEoAmDHM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133747_porro/about/moderators/?user=01CNPHKZE781P8JCA70QMX91C9&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133748.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHKZE781P8JCA70QMX91C9\", \"id\": \"t2_5x\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mukpvfZItI3%2FnDWLa%2B4xULGEZHHqNQYpwe%2B%2BXKJtr4ehWAZBGav1jZ8jQtUcxTRQtme6xMRHcSFotkexpebLCoxcInzn9FQ%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133747_porro/about/moderators/?user=01CNPHKZE781P8JCA70QMX91C9&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHM5TGNAY9PMZAVJNR5AV2&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 213-4kPFU1xHv4NgEoQfLD2gEoAmDHM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133747_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [[\"ALREADY_MODERATOR\", \"that user is already a moderator\", \"name\"]]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "89" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133747_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 213-4kPFU1xHv4NgEoQfLD2gEoAmDHM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JSMUndXv6y6wQdxn7Y; loidcreated=2018-08-24T18%3A02%3A27.628Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133747_porro/about/moderators/?user=01CNPHM5TGNAY9PMZAVJNR5AV2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133754.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHM5TGNAY9PMZAVJNR5AV2\", \"id\": \"t2_5y\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6ckREeOw202jiJKzqksveb9ZiAZt%2FDYF%2BOhblhvcvrfanUWrLLo4likqqmFXcO539oBCOkmZAAcy0YZjn0QD%2BAiAalSd8WU8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133747_porro/about/moderators/?user=01CNPHM5TGNAY9PMZAVJNR5AV2&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_add_moderator_anonymous.json b/cassettes/channels.views.moderators_test.test_add_moderator_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.moderators_test.test_add_moderator_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_add_moderator_email.json b/cassettes/channels.views.moderators_test.test_add_moderator_email.json deleted file mode 100644 index 2e83f7edb0..0000000000 --- a/cassettes/channels.views.moderators_test.test_add_moderator_email.json +++ /dev/null @@ -1,848 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:02:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKJ1EJTQ7FD2Y561AGJQ8" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNNCNqkoJDUgNMcx2yUmNqsoNLQv0Kg/2TTP3y/RV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaF5HtHWuY6ZSYZ+2Wb5IXrJhV7u1pGeZbkuuaD9KSklmUmp8ZnpoAMhnCUagFfe5TeuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=4GUxvNmNUm5nI4orbc; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sun, 23-Aug-2020 18:02:14 GMT", - "loidcreated=2018-08-24T18%3A02%3A13.908Z; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sun, 23-Aug-2020 18:02:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKJ1EJTQ7FD2Y561AGJQ8" - } - }, - { - "recorded_at": "2018-08-24T18:02:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quod+at+sequi+commodi+magnam+quaerat+facere+fugit.+Id+reiciendis+explicabo+iure+sed+exercitationem+illo.+Aut+asperiores+deserunt+iusto+ut.%0AEarum+accusamus+illo+hic+aperiam+eligendi+commodi+blanditiis.+Nostrum+quia+architecto+optio+necessitatibus+aliquam+quisquam.+Quibusdam+modi+nemo+expedita+iusto+harum+quae+eveniet.+Consequuntur+recusandae+voluptas+temporibus+sapiente+ducimus+recusandae+saepe.&link_type=any&name=1535133734_nesciunt&public_description=Sit+animi+aperiam+alias+et+totam.+Qui+ex+non+veniam+vero+voluptatum+dolor.&title=Deleniti+voluptate+dicta+sed+deserunt+eveniet+id.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 210-ZzdUPeT1kDleZzmUvQJwSMf7NiM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "659" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "466" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKREAAET76Y23E4RJQ1X3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQpplSruWimuQi0idhdieqOXiK1J7APx323syuUc5sy8iZASrOWu1vAg24BEYbiokR3E+Rp3ZZG44+qkXj3StFdoMjIPCPQNGrAcvbCMKR3Zz+duaMCPXEAYML5rZT2hmU8G1Cje/t9KmT4jZGqvdJvrDtZFnm2Ge8J3zDsVtCiBY+WHp0A+X1ZVmwm4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKREAAET76Y23E4RJQ1X3" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKVQGHSNDTFWAXVMK70X7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNNJNDs8KszDycs4zDvQND00xc3c08DNz98o1KTZQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFlWS7lKaGFrlWFrkbRjp5OHu7ORlXmgY5pqaD9KSklmUmp8ZnpoAMhnCUagEvD2mCuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHKVQGHSNDTFWAXVMK70X7" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHKREAAET76Y23E4RJQ1X3&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 210-ZzdUPeT1kDleZzmUvQJwSMf7NiM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133734_nesciunt/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 211-oiMPaWg6wXQAtS4Ufuxi0BxfirE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133734_nesciunt/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 210-ZzdUPeT1kDleZzmUvQJwSMf7NiM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133734_nesciunt/about/moderators/?user=01CNPHKJ1EJTQ7FD2Y561AGJQ8&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133734.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHKJ1EJTQ7FD2Y561AGJQ8\", \"id\": \"t2_5u\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=3EPy9Pqzm7U%2ByZGN%2FD3RSYGkQ859bgUejUwIHIFAG4%2BefL4AnwSeGN0qQxfrVZ3sWUAX91Zvx72Dwd7yO3BLGZNAda%2B6E9Rw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/about/moderators/?user=01CNPHKJ1EJTQ7FD2Y561AGJQ8&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHKVQGHSNDTFWAXVMK70X7&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 210-ZzdUPeT1kDleZzmUvQJwSMf7NiM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133734_nesciunt/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 212-cWjV82JCn3QMWUd6GA0N6GJm4s0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133734_nesciunt/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:02:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 210-ZzdUPeT1kDleZzmUvQJwSMf7NiM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4GUxvNmNUm5nI4orbc; loidcreated=2018-08-24T18%3A02%3A13.908Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133734_nesciunt/about/moderators/?user=01CNPHKVQGHSNDTFWAXVMK70X7&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133744.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHKVQGHSNDTFWAXVMK70X7\", \"id\": \"t2_5w\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:02:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "456" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4ovmC1H3xvVfExP2Tmj4w2y3qBBWeDM5D4aXVKgMxBvZy%2FAm%2FFSw0Eg0sqsgHR5ABgZM5y9z4ikJCX5uVD7r23pj1Ao9g9h3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133734_nesciunt/about/moderators/?user=01CNPHKVQGHSNDTFWAXVMK70X7&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_list_moderators.json b/cassettes/channels.views.moderators_test.test_list_moderators.json deleted file mode 100644 index 0030b1d060..0000000000 --- a/cassettes/channels.views.moderators_test.test_list_moderators.json +++ /dev/null @@ -1,937 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:00:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGH6NW77MCDFNN553X83J" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0sNA1cUly8UlJLkj0cSwvdDHIqkw3cg51jojXdQlU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5hRbmZJUVeDiXGSenJZeVGicGRXoFuUSVhzmC9KSklmUmp8ZnpoAMhnCUagE5ew47uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:35 GMT", - "loidcreated=2018-08-24T18%3A00%3A34.729Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:35 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGH6NW77MCDFNN553X83J" - } - }, - { - "recorded_at": "2018-08-24T18:00:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Occaecati+asperiores+ullam+tempora+nulla.+Cumque+sequi+perferendis+eum+earum+officiis+laboriosam.+Et+voluptatem+error+quibusdam+facere+quo+sed+reprehenderit.+Commodi+beatae+soluta+pariatur+enim+ipsa+tempore+fugit.%0AVoluptatem+harum+harum+est+maiores+sit.+Ducimus+rem+aliquam+ex+non.+Veniam+praesentium+eum+delectus+molestias+consectetur.+Excepturi+voluptatum+sit+veritatis+suscipit+velit.&link_type=any&name=1535133635_consectetu&public_description=Occaecati+eius+maiores+aliquid+commodi.+Ipsum+eius+fugit+modi+minima.&title=Incidunt+nisi+officia+eaque+reiciendis.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 188-4DbDLdcpaLAwqD0jyg2CUCX_-DQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "637" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "565" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGQH75YFM16QF5HPCFRNJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0sNS1rHDxL0urMogMdIn3zs8OysjQDfQpCK5KTvRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYVeCX5mxVleFdmmZomuReY+eUkBrqWpEVUhZiA9KSklmUmp8ZnpoAMhnCUagH4gKeGuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGQH75YFM16QF5HPCFRNJ" - } - }, - { - "recorded_at": "2018-08-24T18:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHGQH75YFM16QF5HPCFRNJ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 188-4DbDLdcpaLAwqD0jyg2CUCX_-DQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133635_consectetu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133635_consectetu" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 189-9xDOvfz0YQD_KokRhh-QLpSzcaM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGTYFT6575518ZQRTSEKS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0NNA1KjaLKkj3L3PKMIxPinQO83CuNE0rL/BKCQhU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalxOeEZxvnlCdXBsW7ZTulRJq6lLnmlBiUB5mA9KSklmUmp8ZnpoAMhnCUagE9WTO/uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGTYFT6575518ZQRTSEKS" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHGTYFT6575518ZQRTSEKS&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 188-4DbDLdcpaLAwqD0jyg2CUCX_-DQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133635_consectetu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 190-2s6ZpgOvBh1_bYCVHCy5fwpJdPQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133635_consectetu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 189-9xDOvfz0YQD_KokRhh-QLpSzcaM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133635_consectetu/about/moderators/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133635.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHGH6NW77MCDFNN553X83J\", \"id\": \"t2_58\"}, {\"date\": 1535133645.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHGTYFT6575518ZQRTSEKS\", \"id\": \"t2_5a\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "254" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=WXmVapUsjBgGniCDEZ5UP%2B8KNmGpichcUxSHXuDs9Z1YkyWZXBSw2uQBnifpJ7puUPGKCe8gZg2aeiRn6ujR54Sl%2BkfvJHb%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/about/moderators/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 189-9xDOvfz0YQD_KokRhh-QLpSzcaM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133635_consectetu/about/moderators/?user=01CNPHGQH75YFM16QF5HPCFRNJ&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IaoMHN3ZGMktxHneu7vu2P0j7ElyKRpnEjmKOIqejnzwrmv2OCaXijMldVkxzg39ythYaYTUQvIXgaMBRF5MpQsDDgUuW2mi" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/about/moderators/?user=01CNPHGQH75YFM16QF5HPCFRNJ&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 189-9xDOvfz0YQD_KokRhh-QLpSzcaM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=dLc9wP7bsWNyYXEM4S; loidcreated=2018-08-24T18%3A00%3A34.729Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133635_consectetu/about/moderators/?user=01CNPHGQH75YFM16QF5HPCFRNJ&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=k%2B%2FY4slOZWUxWF%2Bf005sijfsOFJY9KxKRGVLLxSFFu6thQ1MdLXW2811GPu7hUvPHVyn70dV3tYD7qIyJNmxJY3hmoKUlktG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133635_consectetu/about/moderators/?user=01CNPHGQH75YFM16QF5HPCFRNJ&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_list_moderators_anonymous.json b/cassettes/channels.views.moderators_test.test_list_moderators_anonymous.json deleted file mode 100644 index 599dd32fd0..0000000000 --- a/cassettes/channels.views.moderators_test.test_list_moderators_anonymous.json +++ /dev/null @@ -1,421 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:01:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHJVF2Z3D6V2ZP1V58TK6Q" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMNP1M/VKNvI0czd28/LW9Qsv8cg3y7SsSs0pDvFV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlG5rn5qb45gfp5hWY5gaUuDk7uTk7uhoamoJtS0kty0xOjc9MARkM4SjVAgB/ivIXuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:01:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=4CZV0sKD0APyfM5wtb; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:01:51 GMT", - "loidcreated=2018-08-24T18%3A01%3A50.769Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:01:51 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHJVF2Z3D6V2ZP1V58TK6Q" - } - }, - { - "recorded_at": "2018-08-24T18:01:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Debitis+eveniet+tempora+omnis+blanditiis+numquam+explicabo+dolorum.+Voluptates+labore+reiciendis+corrupti+nostrum+quam+nulla.+Magni+mollitia+beatae+accusantium+laborum+repudiandae+recusandae+dolorem+sequi.+Earum+quasi+hic+facilis+ab.%0AAmet+corrupti+veniam+eos+reiciendis+dolor.+Quae+dolorem+et+sed+occaecati.+Praesentium+eaque+repellendus+illo+quasi+quae+illum+deserunt.&link_type=any&name=1535133711_quibusdam&public_description=Eos+dicta+at+esse+dolores+mollitia+non.+Eos+asperiores+debitis+illum+in.&title=Harum+repellat+reiciendis+beatae+similique.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 206-N5Jc2I6G3FJK-NWtHo6i9zelsTM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "624" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4CZV0sKD0APyfM5wtb; loidcreated=2018-08-24T18%3A01%3A50.769Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:01:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "489" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:01:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=4CZV0sKD0APyfM5wtb; loidcreated=2018-08-24T18%3A01%3A50.769Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-LiKb2VnxaAipSCHH_gR0JyzHWD4\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:01:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "3" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T18:01:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -LiKb2VnxaAipSCHH_gR0JyzHWD4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4CZV0sKD0APyfM5wtb; loidcreated=2018-08-24T18%3A01%3A50.769Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133711_quibusdam/about/moderators/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133711.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHJVF2Z3D6V2ZP1V58TK6Q\", \"id\": \"t2_5q\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:01:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Wgq4kcUHZfdTBTVhNIiMwcM2bHoZb0ZRiPXAWZ8jWouwIsswGX6YP29e%2BPUSerANI%2Fn9mQxETLBCiYr%2BWbYmqAJULAOt4ICZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133711_quibusdam/about/moderators/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:01:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -LiKb2VnxaAipSCHH_gR0JyzHWD4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=4CZV0sKD0APyfM5wtb; loidcreated=2018-08-24T18%3A01%3A50.769Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133711_quibusdam/about/moderators/?user=&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133711.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHJVF2Z3D6V2ZP1V58TK6Q\", \"id\": \"t2_5q\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:01:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B8Xj0GvoXvrErPLpwpHnAioHCnWtwEL8S6Urz6biaD5iUb8RNDkxWvey%2FmNq1g%2FhdRKRPydF%2FQlNszqfCn7%2FaeVU3vjjxH%2Fc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133711_quibusdam/about/moderators/?user=&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_list_moderators_many_moderator.json b/cassettes/channels.views.moderators_test.test_list_moderators_many_moderator.json deleted file mode 100644 index 22882cac1b..0000000000 --- a/cassettes/channels.views.moderators_test.test_list_moderators_many_moderator.json +++ /dev/null @@ -1,2953 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-09-13T19:41:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78HYA7H58Z0VZPD7R3PKQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2sdB18TE3MokPsTDWzQ6JSHH2yysy1DWqMLYI9HNV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlBpRZlpXnWuaZ+0eWm5XpelcU5hqbZEVGuaaD9KSklmUmp8ZnpoAMhnCUagF61wCFuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 12-Sep-2020 19:41:58 GMT", - "loidcreated=2018-09-13T19%3A41%3A58.046Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 12-Sep-2020 19:41:58 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78HYA7H58Z0VZPD7R3PKQ" - } - }, - { - "recorded_at": "2018-09-13T19:41:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quasi+culpa+vero+quibusdam+dignissimos.+Nemo+aliquam+temporibus+dolor+consequatur+perspiciatis+fugiat+impedit.+Consectetur+accusamus+excepturi+recusandae+cumque+laboriosam+vero+aut+incidunt.+Ipsa+veritatis+vero+esse+provident+vitae+soluta+reiciendis+atque.+Tenetur+libero+impedit+asperiores+natus.&link_type=any&name=1536867718_praesentiu&public_description=Quidem+modi+iusto+nihil+laborum.+Necessitatibus+eligendi+natus+voluptate+quia+deleniti+tempora+id.&title=Ipsam+distinctio+consequatur+reprehenderit.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "578" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "482" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78RC22HKTRYDQ2SRFTFAK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2sdQtDHfNcwl0tSw2Doy3jKwIKg81jPLMSPbzzUhW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5F7qZR6U6medkWYQbWWRlJQWUVaSl+qdbRmSD9KSklmUmp8ZnpoAMhnCUagGWIrShuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78RC22HKTRYDQ2SRFTFAK" - } - }, - { - "recorded_at": "2018-09-13T19:42:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA78RC22HKTRYDQ2SRFTFAK&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "475" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 349-qWEnDQE9s3Q_9YxRwU1ZIhcNMhc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "475" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78W5JZWEYJF141NJHMJWY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQ6CMBREr0K6NJJUGhXdwkJMMMZGtg22H6yoQAsENN5dvqxczsu8mTdJpQRrRVMW8CRbh7Aldfmt9+qYr4fozgOT55t20Q7J7pyElswdAn2lDVihUWArSkf280UzVIAjF0gNGOxaWU5ohslANorX/7cOMvfg7a0L/qmgj/ClfF63ETsmMToKOi1BaIXDUyCfL4Rxr764AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78W5JZWEYJF141NJHMJWY" - } - }, - { - "recorded_at": "2018-09-13T19:42:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA78W5JZWEYJF141NJHMJWY&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "472" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 350-Sjx2qMS7yIlSCrgg9u1uyVHUVDs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "471" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78ZQQDDB7KXYRV09BWC3S" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQrCMBBEf6XkKAppaxW9KSk2FxEPKl5C3WwxVNqQLLUi/ruNPXmcx7yZNysB0HtFbY0NW0cszeJZr68XUXUkdtyJeJ+cqVaQUGG3nk0jhr01Dr0yQUgXnA/s5yt6WQwjNywdutD10I5oEpLDahDv/29Ln68KA7EEaY+bg3zOT2Qpa/IHBEdjZwCV0WF4DOzzBf8vSBS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78ZQQDDB7KXYRV09BWC3S" - } - }, - { - "recorded_at": "2018-09-13T19:42:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA78ZQQDDB7KXYRV09BWC3S&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "468" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 351-xdZXDfvtDG0rD1N2Wtk_c2tHpBs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "468" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA793B3HNP934THJ6T29H99" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NdI1y3XOSM/01w0KTvLJSPILC/KoiPQL8S6oKjVQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYVJ1cUunjkBJXqehX5eqeWBsd76OYYGZbFmziC9KSklmUmp8ZnpoAMhnCUagHlR0xGuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA793B3HNP934THJ6T29H99" - } - }, - { - "recorded_at": "2018-09-13T19:42:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA793B3HNP934THJ6T29H99&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "464" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 352-6mChgiO-RSbLhbNVRHxYNTKpzu0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "464" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA796ZD142W25BTHCKNJJ3F" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NdatKkmuMiordgszt/Q3KTTKsvA2dnMtMggrig9U0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlmCemRlmUJmYZmZVGBKQYGpuYOkXmBfuZuDuC9KSklmUmp8ZnpoAMhnCUagHEw6/puAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA796ZD142W25BTHCKNJJ3F" - } - }, - { - "recorded_at": "2018-09-13T19:42:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA796ZD142W25BTHCKNJJ3F&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "461" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 353-ztcz2vsFV79O4q2j8K3FEr0Vr_Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "460" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79AJDXCFWGT0972W0ZMWY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4V0aTSpVtC4I0S2hviIu6aUCzaY0vSSSjH+u1RWLudkzsybCCkBkfddC5ocIsLi7erpWeaKRG/0kO2OCh1T91eMV2mRLCMCg1EWkKsgsITSif183nsDYaQEYcGGLspuRouQLNST+Ph/E836fBOmMGNf5s3ejOJ0qVtPfZ4GpwKnJHBVheE5kM8XXUkUkrgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79AJDXCFWGT0972W0ZMWY" - } - }, - { - "recorded_at": "2018-09-13T19:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA79AJDXCFWGT0972W0ZMWY&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 354-ly3CvQ6n2nxC7Eisv3iXw5sUcrs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79E35CNXWK8JSQGASXT6M" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQqCQBRFf0VmGQmCKdHWAhGMamG1GqaZJ74kR+ZJMxb9e06uWt7DPfe+mZASiPigW+jYJmBxkoT3Vxq2aNXa4pE0FruDO9vsVFCv2TJg4Ho0QBy9EKdRNLGfz4exBz9yA2HA+C5JPaOFTwbqSWz+37prva9cMay2JJLx0VzyKitLRYKsdxQ8UQJH5YfnwD5fHbF6D7gAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79E35CNXWK8JSQGASXT6M" - } - }, - { - "recorded_at": "2018-09-13T19:42:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA79E35CNXWK8JSQGASXT6M&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 355-jz6-kiwd8wiQsoiJEPxWwCRJspo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79HR8A1DJ274AGHH5P2XW" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQqCQBRFf0VmGQWGqdDObAxqY4to+dDxDY6Kyhs1h+jfc3LV8h7uuffNMiFQaxi6Glt2dJjnB7swAhWRvF0SI8eUR/E8cjev/KfP2dZhOPeKUIOyghe47sJ+PgymRzuSY0ZItqtFt6KNTYRyEcv/N0rSw3W8V20zmfrV8I4TnPelDk8P6xQ4KYGgCju8Bvb5AosZGfa4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79HR8A1DJ274AGHH5P2XW" - } - }, - { - "recorded_at": "2018-09-13T19:42:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA79HR8A1DJ274AGHH5P2XW&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "449" - ], - "x-ratelimit-used": [ - "9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 356-7A_iArfKGFyfuPEACxuE0bj5W5E" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "449" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79NGCW7W54C07FD7C4H57" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NdfNDywzyiopC/AqSHbLSCsqzswxC/IxdfV3qnBV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlBSd6WaZXGgT7JLmERegWRWSbhpqUBplHphuA9KSklmUmp8ZnpoAMhnCUagEvRQk0uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79NGCW7W54C07FD7C4H57" - } - }, - { - "recorded_at": "2018-09-13T19:42:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA79NGCW7W54C07FD7C4H57&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 357-oQv2jtvPJpcFhfrsil6RL5EOBxE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "445" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79S6CXJ6YDVB1NM5QTN51" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2tdBNS87Iy3EJyfEoD3G2jAjNCo7yLq3MSDUrNzVR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalFuT5l+T5Gxu7+5VERDm5J6UEBCcbGJVEuXiC9KSklmUmp8ZnpoAMhnCUagEE5arEuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA79S6CXJ6YDVB1NM5QTN51" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA79S6CXJ6YDVB1NM5QTN51&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 348-DL724_T83-kTXdCNnr1-2x38QNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "11" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-fchnlDTlHwTC9XUjSZKuyhe6w54" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-fchnlDTlHwTC9XUjSZKuyhe6w54" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867718.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78HYA7H58Z0VZPD7R3PKQ\", \"id\": \"t2_9o\"}, {\"date\": 1536867725.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78RC22HKTRYDQ2SRFTFAK\", \"id\": \"t2_9p\"}, {\"date\": 1536867729.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78W5JZWEYJF141NJHMJWY\", \"id\": \"t2_9q\"}, {\"date\": 1536867732.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78ZQQDDB7KXYRV09BWC3S\", \"id\": \"t2_9r\"}, {\"date\": 1536867736.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA793B3HNP934THJ6T29H99\", \"id\": \"t2_9s\"}, {\"date\": 1536867740.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA796ZD142W25BTHCKNJJ3F\", \"id\": \"t2_9t\"}, {\"date\": 1536867743.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79AJDXCFWGT0972W0ZMWY\", \"id\": \"t2_9u\"}, {\"date\": 1536867747.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79E35CNXWK8JSQGASXT6M\", \"id\": \"t2_9v\"}, {\"date\": 1536867751.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79HR8A1DJ274AGHH5P2XW\", \"id\": \"t2_9w\"}, {\"date\": 1536867755.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79NGCW7W54C07FD7C4H57\", \"id\": \"t2_9x\"}, {\"date\": 1536867758.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79S6CXJ6YDVB1NM5QTN51\", \"id\": \"t2_9y\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1199" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=RikLPLzH776yt9P6%2FeUTq8aZXn4z4UyTjsDnXVh7HBkt8aTZIct2pVQZPA4OubzqE%2FhwIPn3VxolVUeJuz3qbm0yeoTVjT5D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-fchnlDTlHwTC9XUjSZKuyhe6w54" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?user=01CQA79S6CXJ6YDVB1NM5QTN51&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867758.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79S6CXJ6YDVB1NM5QTN51\", \"id\": \"t2_9y\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0kNXJs3fkZKIIgBBlPhP2s5YutTyk5ZbHvzitorUsVm28%2BSGiR1pIR5xkwnQPhnYh8b4yTjU9GgnAJlNlP%2BHGZ%2BkOzdXYg2l" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?user=01CQA79S6CXJ6YDVB1NM5QTN51&raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-fchnlDTlHwTC9XUjSZKuyhe6w54" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=WaZaChMUU9ZwfgDcl8; loidcreated=2018-09-13T19%3A41%3A58.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?user=01CQA79S6CXJ6YDVB1NM5QTN51&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867758.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA79S6CXJ6YDVB1NM5QTN51\", \"id\": \"t2_9y\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Lq8hjSnhh58qqmITthEediUgj%2B9jv6ddTUR2iLEMklpWHI2qAIxQyo1ZeXPxiZ8R9RjaKuJCYleViwY3qz6VB%2BHvp%2FF5%2F6D9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867718_praesentiu/about/moderators/?user=01CQA79S6CXJ6YDVB1NM5QTN51&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_list_moderators_moderator.json b/cassettes/channels.views.moderators_test.test_list_moderators_moderator.json deleted file mode 100644 index 71a3fd0699..0000000000 --- a/cassettes/channels.views.moderators_test.test_list_moderators_moderator.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-09-13T19:41:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA787BGXKQKJGZFSJHKFMZS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MdPN9szzDTUq8C7Jz3K29EhMsgiMcjOLL8tzyg1V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLalGpiUOYWbmuuWV7roGvh4FYYVZWYbxHubhZWD9KSklmUmp8ZnpoAMhnCUagFGp94nuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=vaBi224tAzhDPAPlVm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 12-Sep-2020 19:41:47 GMT", - "loidcreated=2018-09-13T19%3A41%3A47.219Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 12-Sep-2020 19:41:47 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA787BGXKQKJGZFSJHKFMZS" - } - }, - { - "recorded_at": "2018-09-13T19:41:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Similique+eligendi+commodi+voluptatibus+voluptas+earum+voluptatem.+Aliquam+nesciunt+quisquam+sed+libero+itaque+repellendus+aut.+Eveniet+aliquid+veniam+dignissimos.+Voluptates+dolor+repudiandae+repudiandae+expedita+nisi+dolore+cumque.%0AAut+eveniet+iste+officia+tempore+odit+eum.+Sed+iusto+error+recusandae+dolore+a.+Temporibus+non+expedita+at+aut.+Ducimus+hic+repudiandae+consequuntur+debitis+fugit.&link_type=any&name=1536867707_fugiat&public_description=Facere+nobis+commodi+perspiciatis+quod.+Debitis+placeat+excepturi+numquam+id.&title=Officiis+dignissimos+molestiae+molestiae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 346-kInMU2pKtojC9Hab8QZF6_vnBmU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "653" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "493" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78E0GC03AMPH3FZKA6F7Y" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MdetsgwszTA2CnB3CQkydPcqrKzSDa6yCPMKLnZU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5FAR4ulb45/t4RBj6VLgGlhSX55mFeVgaeYJtS0kty0xOjc9MARkM4SjVAgD3sPC3uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQA78E0GC03AMPH3FZKA6F7Y" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQA78E0GC03AMPH3FZKA6F7Y&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 346-kInMU2pKtojC9Hab8QZF6_vnBmU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867707_fugiat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867707_fugiat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 347-z9Quh32PGDTR1GJqyz-Sz8VJSsA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536867707_fugiat/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867707_fugiat/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 347-z9Quh32PGDTR1GJqyz-Sz8VJSsA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867707_fugiat/about/moderators/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867707.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA787BGXKQKJGZFSJHKFMZS\", \"id\": \"t2_9m\"}, {\"date\": 1536867714.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78E0GC03AMPH3FZKA6F7Y\", \"id\": \"t2_9n\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "254" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2bEDEZ29sgpsj%2BwqGYkTU0RH3Nc09YyfNwfBXS8JFrTt5n%2F02wOA%2B%2FtP8kJQLW3IptNIendu0aqtjv2UlDvdvXuiDhsuZ2Xk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867707_fugiat/about/moderators/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 347-z9Quh32PGDTR1GJqyz-Sz8VJSsA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867707_fugiat/about/moderators/?user=01CQA78E0GC03AMPH3FZKA6F7Y&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867714.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78E0GC03AMPH3FZKA6F7Y\", \"id\": \"t2_9n\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=RO54RrfNOK%2BKQei9z5DPnb65%2BS7GQApKwOEJYBjIb1WKy%2BJ5HkCHo%2F%2Fs5Yry5cAzZQqf65mFjiocCHvrjA2LznJaLNfnCW5L" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867707_fugiat/about/moderators/?user=01CQA78E0GC03AMPH3FZKA6F7Y&raw_json=1" - } - }, - { - "recorded_at": "2018-09-13T19:41:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 347-z9Quh32PGDTR1GJqyz-Sz8VJSsA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vaBi224tAzhDPAPlVm; loidcreated=2018-09-13T19%3A41%3A47.219Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536867707_fugiat/about/moderators/?user=01CQA78E0GC03AMPH3FZKA6F7Y&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536867714.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQA78E0GC03AMPH3FZKA6F7Y\", \"id\": \"t2_9n\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 13 Sep 2018 19:41:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "486" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Xom6YABUCq4NW5%2FZrjT3Y0aBmw48lcgUdJ3dQlVwO0F4l12dkLTBriFrn0deNOiMs9P%2Bytk2vAoJ6BWVLpoFyfWmPzIK9wya" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536867707_fugiat/about/moderators/?user=01CQA78E0GC03AMPH3FZKA6F7Y&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_list_moderators_staff.json b/cassettes/channels.views.moderators_test.test_list_moderators_staff.json deleted file mode 100644 index b9bc6c48dc..0000000000 --- a/cassettes/channels.views.moderators_test.test_list_moderators_staff.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:00:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGYJ8ADDGNB77RPYFF83Y" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0NNRN9TUqTS9yyikvsHCLcDPKLA0PLQz3znQxMQ1U0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaFeng6VlQlx2eYZyWnmOfmV1VlRAWV51c6p7uC9KSklmUmp8ZnpoAMhnCUagEwgEqxuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:48 GMT", - "loidcreated=2018-08-24T18%3A00%3A48.404Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:00:48 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHGYJ8ADDGNB77RPYFF83Y" - } - }, - { - "recorded_at": "2018-08-24T18:00:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Doloribus+dolorem+velit+nisi+nihil+facere+soluta+asperiores.+Provident+temporibus+ex+voluptatibus+impedit+pariatur+neque+quam.%0AQuae+cumque+adipisci+at+perspiciatis+quos.+Quos+laudantium+dignissimos+molestias+molestiae+soluta+facilis+odio.+Quaerat+sapiente+nulla+architecto+aut+possimus.&link_type=any&name=1535133648_repellat&public_description=Temporibus+ex+porro+quos+non+totam.+Omnis+nam+cumque+odit.+Esse+dolorum+dolorum+maxime+aspernatur.&title=Occaecati+voluptates+voluptatem+architecto+optio.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 191-eM2ugrBlwp8FXF2iuWUqWKiD45Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "573" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "552" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHH4W5ENV8N18JYFCE2DRX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0NNIN9TDOcAs0dPYqcA7KMNB1zPcNKnYKSDJLLwxV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZZFBtb+Lq6GKaY+cWXmXtXJgdUFaXl+pjllBaD9KSklmUmp8ZnpoAMhnCUagEkgdt4uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHH4W5ENV8N18JYFCE2DRX" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHH4W5ENV8N18JYFCE2DRX&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 191-eM2ugrBlwp8FXF2iuWUqWKiD45Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133648_repellat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133648_repellat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 192-UH3hFQ1CJpCRh0-AoMRsBPb6gqU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133648_repellat/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133648_repellat/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHGYJ8ADDGNB77RPYFF83Y&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 191-eM2ugrBlwp8FXF2iuWUqWKiD45Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133648_repellat/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133648_repellat/api/unfriend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 191-eM2ugrBlwp8FXF2iuWUqWKiD45Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133648_repellat/about/moderators/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1535133655.0, \"mod_permissions\": [\"all\"], \"name\": \"01CNPHH4W5ENV8N18JYFCE2DRX\", \"id\": \"t2_5c\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ij15FOXqKMfMqzzAap3uArG5NiXQ%2B5q%2Bn42ZZaarlv8tgKlpx%2BvLYIelY5PEu15l3hafc5%2By6WbYpCal68AhW9dy5z7%2FVnxA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133648_repellat/about/moderators/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:00:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 191-eM2ugrBlwp8FXF2iuWUqWKiD45Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9Gt4q66VnYuUj4kN7u; loidcreated=2018-08-24T18%3A00%3A48.404Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133648_repellat/about/moderators/?user=01CNPHGYJ8ADDGNB77RPYFF83Y&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:00:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "545" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ZQpHr%2F2FZGmRwWca7XYMme7Dy89GRM3HQ8TqawHhyH1YTWTRR8ZzIdhtKeFPvtVJxMgKg1kaVYO%2FXlWv80yuro1BGObU%2F%2FF4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133648_repellat/about/moderators/?user=01CNPHGYJ8ADDGNB77RPYFF83Y&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_remove_moderator[1].json b/cassettes/channels.views.moderators_test.test_remove_moderator[1].json deleted file mode 100644 index 81fde2c02f..0000000000 --- a/cassettes/channels.views.moderators_test.test_remove_moderator[1].json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T18:03:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9P9PWNGJDCBHCDNMFG2CAK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMjTVTUoOtXR3KXI3yo8ITYmycAsPynYp8nUsjK/wVdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Cs80vPdi0NLE4xSTUMDgk2qwjwTwuzyApwcndJBmlKSS3LTE6Nz0wBmQzhKNUCAMy+uji6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:03:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 18:03:59 GMT", - "loidcreated=2018-11-14T18%3A03%3A59.248Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 18:03:59 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9P9PWNGJDCBHCDNMFG2CAK" - } - }, - { - "recorded_at": "2018-11-14T18:03:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Tempora+deleniti+voluptates+similique+ea+ad+voluptate+incidunt+maiores.+Voluptatibus+veritatis+non+voluptatibus+aperiam+necessitatibus.+Nemo+consequuntur+sapiente+magni+ex+ratione.+Maiores+ratione+ducimus+iusto+enim+doloribus.%0AQuaerat+officiis+delectus+hic+ex+molestiae+quaerat+suscipit+quos.+Modi+enim+eveniet+repudiandae+iusto+repellendus+corrupti+delectus+maxime.+At+excepturi+doloribus+dolorum+explicabo+quo+neque+accusantium+libero.&link_type=any&name=1542218639_porro&public_description=Soluta+cum+laudantium+velit+perferendis+eius+dolor.+Alias+quisquam+nobis+nisi.&title=Molestiae+ratione+quas+minima+esse.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2215-bcU9GDrG2oXUdZ8FWRkDrMAq_xM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "687" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; loidcreated=2018-11-14T18%3A03%3A59.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:03:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "361" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; loidcreated=2018-11-14T18%3A03%3A59.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9P9X9HCS7S7VGKFD27F3EX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NPQvCMBRF/0rJKAo1hQ6ODtUlg6VocQlt8opJxIS8fov/3cZujvdyz7lvUgkBiLy1Bl7kEBFK9+mul2oqT7e4HYYO77J3Js9ZgrW2F7KNCIxOeUCuApGkcbx0PwFvJwfBUkPlwYctCrtWm5A8NAv4+LtrMqav52PG9ej4U0+MFnM3N2VhWIAk9EoAVzKY10A+X/QMzEu6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9P9X9HCS7S7VGKFD27F3EX" - } - }, - { - "recorded_at": "2018-11-14T18:04:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9P9X9HCS7S7VGKFD27F3EX&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2215-bcU9GDrG2oXUdZ8FWRkDrMAq_xM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; loidcreated=2018-11-14T18%3A03%3A59.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218639_porro/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218639_porro/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2216-vdiyXGW0twwusZdvpkRRM3sbjoQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; loidcreated=2018-11-14T18%3A03%3A59.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218639_porro/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218639_porro/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9P9X9HCS7S7VGKFD27F3EX&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2215-bcU9GDrG2oXUdZ8FWRkDrMAq_xM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=JQgNAMGl3ZRxlIyhTf; loidcreated=2018-11-14T18%3A03%3A59.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218639_porro/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "354" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218639_porro/api/unfriend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_remove_moderator[2].json b/cassettes/channels.views.moderators_test.test_remove_moderator[2].json deleted file mode 100644 index f8661c7dd7..0000000000 --- a/cassettes/channels.views.moderators_test.test_remove_moderator[2].json +++ /dev/null @@ -1,602 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T18:04:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9PA0ZJDS9QQ6YAC1MHWS04" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMjTXjfS09HRNLvWLKvUsMTIILSgz9w8IDg4PLXRLVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csyyo3DCj0LfeKL000dzKrKDL1KDG2yDRPCsnLBmlKSS3LTE6Nz0wBmQzhKNUCAL/Goa+6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 18:04:09 GMT", - "loidcreated=2018-11-14T18%3A04%3A09.535Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 18:04:09 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9PA0ZJDS9QQ6YAC1MHWS04" - } - }, - { - "recorded_at": "2018-11-14T18:04:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Totam+pariatur+reiciendis+natus+tenetur+ab+animi+repudiandae.+Voluptatum+incidunt+esse+quod+doloremque+amet+sed+culpa.+Temporibus+quod+distinctio+vel+rerum.%0ASint+dolores+facilis+veniam+doloremque+id.+Similique+asperiores+similique+itaque+tempora+repellat+repudiandae+cum+explicabo.+Maxime+dicta+qui+eos+repellendus+aperiam+quasi.+Nostrum+sint+ipsum+rerum+quidem+at+ipsa.+Laborum+consequuntur+eius+est+dolorem.&link_type=any&name=1542218649_maxime&public_description=Sint+beatae+expedita+nam+labore.+Illum+reiciendis+modi+enim+aliquam.&title=Adipisci+quaerat+illum+rem+aut+natus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2217-YI9IEcuNZuIt20Upv7OPSSWUqFc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "652" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "351" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9PA7AKDYGH74Q7M5GYN2AV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMrTQdQ0qMU0LCcoMzQsJy0tMTkn0cE72KEp093YLVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsCwoNTvIsLrbILatKCvMPsDTJDM13czMvjcotBmlKSS3LTE6Nz0wBmQzhKNUCAKhbhUm6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9PA7AKDYGH74Q7M5GYN2AV" - } - }, - { - "recorded_at": "2018-11-14T18:04:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9PA7AKDYGH74Q7M5GYN2AV&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2217-YI9IEcuNZuIt20Upv7OPSSWUqFc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218649_maxime/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "344" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218649_maxime/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2218-ERt5fTRiUnTVnacdaHCcHraGKFQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218649_maxime/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "344" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218649_maxime/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9PA7AKDYGH74Q7M5GYN2AV&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2217-YI9IEcuNZuIt20Upv7OPSSWUqFc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218649_maxime/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "344" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542218649_maxime/api/unfriend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T18:04:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CW9PA7AKDYGH74Q7M5GYN2AV&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2217-YI9IEcuNZuIt20Upv7OPSSWUqFc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ej6DOxEDWPBD1YHyl0; loidcreated=2018-11-14T18%3A04%3A09.535Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542218649_maxime/api/unfriend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 18:04:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "344" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/r/1542218649_maxime/api/unfriend/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.moderators_test.test_remove_moderator_anonymous.json b/cassettes/channels.views.moderators_test.test_remove_moderator_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.moderators_test.test_remove_moderator_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_and_update_post_moderator.json b/cassettes/channels.views.posts_test.test_create_and_update_post_moderator.json deleted file mode 100644 index dbefbdf1b0..0000000000 --- a/cassettes/channels.views.posts_test.test_create_and_update_post_moderator.json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-29T00:05:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBY7GJYCTH9AD5FY03HGHTM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NNItTfPPqip2dHVz9kl3cvHMcwkO9Ak1djGztAxV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYVhJeap5cklQSYFkd6+kc5+RYXF6W4ezmFFiWD9KSklmUmp8ZnpoAMhnCUagH0kS6vuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:05:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=a4CzoZwiXamMyiTxJw; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jul-2022 00:05:56 GMT", - "loidcreated=2020-07-29T00%3A05%3A55.900Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 29-Jul-2022 00:05:56 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBY7GJYCTH9AD5FY03HGHTM" - } - }, - { - "recorded_at": "2020-07-29T00:06:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBY7M8VKBZ57WGJX7RAGGDE" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQuCMBzFv4rsGAmzoWV3I5jgIergZdj8i8Pa1jZyFn33XJ46vh/v994bNZyDtcypASTaRyhJSEzHgbCR1u7WlbnrL8UO51v1qF+VQusIgdfCgGUiCCTDeGY/n7lJQxi5QmPAhK7lakGrkAx0s9j/v6V5cshwnPqTryS9b4610mc5+b60wWnhKTgw0YbhJaDPF+PzsOG4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBY7M8VKBZ57WGJX7RAGGDE" - } - }, - { - "recorded_at": "2020-07-29T00:06:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Certainly+huge+speak+current+range+network.+Different+must+us+fill+week+education+economic+meeting.+Pass+level+light+view+into.%0AWhom+time+represent+few+society+color.+Both+moment+age+throughout+own+short.%0APolitical+majority+memory+forget+accept+recently+executive.+Night+nice+particular+child.+Down+option+within.+Authority+certain+cost+name.%0APossible+three+as+bag+anyone+entire.+Industry+those+ball+north.+Produce+environment+born+soon+letter+value.&link_type=any&name=1595981160_5_day&public_description=Recently+dinner+key.+Identify+director+tell+risk+human+pattern+beautiful+rich.&title=Worry+sign+everything+interest+develop.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 113-Kwk3_wKZtlfL9thVE8097oqZzOo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "708" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "240" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBY7GJYCTH9AD5FY03HGHTM&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 113-Kwk3_wKZtlfL9thVE8097oqZzOo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981160_5_day/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "237" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981160_5_day/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595981160_5_day" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBY7GJYCTH9AD5FY03HGHTM&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 113-Kwk3_wKZtlfL9thVE8097oqZzOo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981160_5_day/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "236" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981160_5_day/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595981160_5_day/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981160_5_day/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595981160_5_day&text=tests+are+great&title=parameterized+testing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "123" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"id\": \"1e\", \"name\": \"t3_1e\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "148" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595981160_5_day\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etests are great\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"tests are great\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEBY7GJYCTH9AD5FY03HGHTM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595981160_5_day\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1a\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1595981165.0, \"url\": \"http://reddit.local/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595981165.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1554" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kHYAhXJbQZ89M982ObwVaWqJpVpqnSLObX2Hk6dILql49CUkK1boUqcBc%2FI9nOSvr6GdEnxjR4dP7y37T%2BXZkg0JwgmJvGfe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595981160_5_day/about/moderators/?user=01EEBY7GJYCTH9AD5FY03HGHTM&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1595981165.0, \"mod_permissions\": [\"all\"], \"name\": \"01EEBY7GJYCTH9AD5FY03HGHTM\", \"id\": \"t2_34\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kk5AykVZKSMAQhvvTDeCS0llLBfAQY%2Fa8imKozKPxjhMVqTWLXKDED8kMHwpGBPmY2%2BkeVmhF1zDjNGgrZDeKC5iWh8wQZ4h" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981160_5_day/about/moderators/?user=01EEBY7GJYCTH9AD5FY03HGHTM&raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595981160_5_day\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etests are great\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"tests are great\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEBY7GJYCTH9AD5FY03HGHTM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595981160_5_day\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1a\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1595981165.0, \"url\": \"http://reddit.local/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595981165.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1554" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=oN0t9K54YePOZy3k4ZQOCyTjOGhcbO6QonLvoLbd%2Bo6jAuajcsmtv3j0ayNYCoLDzX%2BKVx3PeC1FkinrXNKrdfts0mP72JgN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595981160_5_day/about/moderators/?user=01EEBY7GJYCTH9AD5FY03HGHTM&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1595981165.0, \"mod_permissions\": [\"all\"], \"name\": \"01EEBY7GJYCTH9AD5FY03HGHTM\", \"id\": \"t2_34\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "234" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=w%2BKtCxePdTeQ9sq36tuxALdqtH62djRrMCnqnq%2BS3y%2F0zd94HcK2nubsdpEXk6NDaZ9yKfgwTd5eFXQoD1IQvhGenVmIWuPb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595981160_5_day/about/moderators/?user=01EEBY7GJYCTH9AD5FY03HGHTM&raw_json=1" - } - }, - { - "recorded_at": "2020-07-29T00:06:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 112-ufOjzsAEFCLgBDInDSQLU3D699U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=a4CzoZwiXamMyiTxJw; loidcreated=2020-07-29T00%3A05%3A55.900Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595981160_5_day\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etests are great\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"tests are great\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEBY7GJYCTH9AD5FY03HGHTM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595981160_5_day\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1a\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1595981165.0, \"url\": \"http://reddit.local/r/1595981160_5_day/comments/1e/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595981165.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1554" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 29 Jul 2020 00:06:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "234" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Dbl7bnhU%2B26or0vEStZm%2Fxuvkr5u%2Fgx38sDVG84Q8ybHMAoAytjvin1DBfPNWUGHiVxrxnS%2FKXPJaII5yIQ0pAgrKZOJAQhG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_article_post.json b/cassettes/channels.views.posts_test.test_create_article_post.json deleted file mode 100644 index 1a888e6256..0000000000 --- a/cassettes/channels.views.posts_test.test_create_article_post.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:14:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQVRB9FKPY4E26GJ1EH00C" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI31c3NNA/PyYlIyvGv8gx3zyu19I6syCsyCEgpTVbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljl5uqdUGpbnZ5oGFqcGpRtHJfubWgaaBJfHgy1LSS3LTE6Nz0wBmQvhKNUCALCzLM62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:14:39 GMT", - "loidcreated=2020-07-28T22%3A14%3A39.152Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:14:39 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQVRB9FKPY4E26GJ1EH00C" - } - }, - { - "recorded_at": "2020-07-28T22:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQVVJWAVY29P753FEYXVJY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI30w1zzwhINfAuSMvNqfD1NHaN9CpL9U4xSQzztFDSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolgXrlhukW2bpOjn6Wvil+PtmhIaHV7lERXqlF4O0pKSWZSanxmemgMyFcJRqAVv3/Nq2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQVVJWAVY29P753FEYXVJY" - } - }, - { - "recorded_at": "2020-07-28T22:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Building+ground+kind+low.+Whatever+tell+perform.+Group+near+economic+always+ask+week+audience+sister.+Answer+company+wear+increase+over.%0AGreat+other+even+control+some+let+surface.+Hard+total+notice+develop.+Out+interesting+our+nature+loss+difficult.%0ASide+hope+point+program+home+her+strategy+mother.+Provide+entire+building+hit.%0AOf+leader+fire+eye.+Nothing+agree+few+land+machine+court.+Piece+hear+rock.%0ANature+his+message+speak+but+live+president.+Maintain+hundred+field+door.+Teach+man+race.&link_type=any&name=1595974482_4_move&public_description=Foot+election+one+race+discuss.&title=Commercial+instead+room+own+new+mention+side.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 76-VGhPe0KpfmlxMI3EYJveKd4aVI8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "713" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQVRB9FKPY4E26GJ1EH00C&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 76-VGhPe0KpfmlxMI3EYJveKd4aVI8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974482_4_move/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974482_4_move/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974482_4_move" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 75-mi7WllXblOzIWGnu9KYxnr0Pduc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974482_4_move&text=&title=parameterized+testing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 75-mi7WllXblOzIWGnu9KYxnr0Pduc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974482_4_move/comments/y/parameterized_testing/\", \"id\": \"y\", \"name\": \"t3_y\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "146" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 75-mi7WllXblOzIWGnu9KYxnr0Pduc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/y/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974482_4_move\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQVRB9FKPY4E26GJ1EH00C\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974482_4_move\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974482_4_move/comments/y/parameterized_testing/\", \"locked\": false, \"name\": \"t3_y\", \"created\": 1595974485.0, \"url\": \"http://reddit.local/r/1595974482_4_move/comments/y/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595974485.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1408" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "314" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=EiGP%2FZQfk26UQhxLYWwzeOWXNoXqHzjsjXurWVpAW%2FDHJ%2FOsy%2FXf3im2XA791vyXJMtql7LrMgkumyR9%2B2ZMusL3N39LWyal" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/y/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 75-mi7WllXblOzIWGnu9KYxnr0Pduc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=D9EeDpNjb30ZNVWZtu; loidcreated=2020-07-28T22%3A14%3A39.152Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974482_4_move/about/moderators/?user=01EEBQVRB9FKPY4E26GJ1EH00C&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "314" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=iZ7U2qzRhl2S%2BZxK8znKkJ%2B02Omc3JUdXjMUWLo8DnjMiAVpv32EGTqEe2rddcKn3okA9Si2IqvHyHRF8AajdG19NCXWZGTX" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974482_4_move/about/moderators/?user=01EEBQVRB9FKPY4E26GJ1EH00C&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_article_post_with_cover.json b/cassettes/channels.views.posts_test.test_create_article_post_with_cover.json deleted file mode 100644 index a70e80bd2d..0000000000 --- a/cassettes/channels.views.posts_test.test_create_article_post_with_cover.json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:14:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQW24WXAJ1NZFNDPKKJ72H" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI31/X3SjM0C49096kyTC82d3LzLy9Pcw5LDygNSVbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqVnlUTGF5bp+oZ4mYV6JJmFu2QXe/hHpKT5gC1LSS3LTE6Nz0wBmQvhKNUCAHV3S/S2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=1EVZdumTimavYFRK6z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:14:49 GMT", - "loidcreated=2020-07-28T22%3A14%3A49.172Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:14:49 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQW24WXAJ1NZFNDPKKJ72H" - } - }, - { - "recorded_at": "2020-07-28T22:14:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQW5CNMH8NR0E2FC7CVXCB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK30C2wSDH19XYzdywys0zO0Q10CzVJ8snOqDRMd1XSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoliUVVRh6RlnkGPunWzqlpOfkmQdEZgS6e3pkRIK0pKSWZSanxmemgMyFcJRqAeCkyQW2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQW5CNMH8NR0E2FC7CVXCB" - } - }, - { - "recorded_at": "2020-07-28T22:14:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Personal+sound+matter+open+more.+Art+practice+TV+fly+century+team+Republican.+Bring+because+under+old+table+enter+where.%0ADoctor+church+account+instead+war.+Training+firm+security+value+when+land+game.+Practice+management+financial.%0AImportant+value+his+character+character.+Open+sound+owner+reach+south+since+read.+Cup+week+recently+chair+later.%0ARich+itself+significant+support.+Institution+order+run+industry+military+assume+learn.&link_type=any&name=1595974492_5_similar&public_description=School+pass+pattern+mean+writer+service.+Meet+dark+expect.+Be+staff+fear.&title=By+close+what+for+art+trip.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 78-p8d5MKF7Ar69cl-QFU4bLkhy1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "676" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "308" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQW24WXAJ1NZFNDPKKJ72H&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 78-p8d5MKF7Ar69cl-QFU4bLkhy1gE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974492_5_similar/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974492_5_similar/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974492_5_similar" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 77-OJf16WYGLz1gs7BFOwwfCVgPuTc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974492_5_similar&text=&title=parameterized+testing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 77-OJf16WYGLz1gs7BFOwwfCVgPuTc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "112" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974492_5_similar/comments/z/parameterized_testing/\", \"id\": \"z\", \"name\": \"t3_z\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 77-OJf16WYGLz1gs7BFOwwfCVgPuTc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974492_5_similar\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQW24WXAJ1NZFNDPKKJ72H\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974492_5_similar\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974492_5_similar/comments/z/parameterized_testing/\", \"locked\": false, \"name\": \"t3_z\", \"created\": 1595974496.0, \"url\": \"http://reddit.local/r/1595974492_5_similar/comments/z/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595974496.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1420" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vXbWB3YyT8hhdecDaUnAT7A34fh%2BUsKiSh%2Bz64yX8ZMcKzJxqNzqrCGhEGF8Qe%2F%2FiTovYAhUmCO3LAnk%2BxJ7Ibx%2BbpY0clAx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 77-OJf16WYGLz1gs7BFOwwfCVgPuTc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974492_5_similar\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQW24WXAJ1NZFNDPKKJ72H\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974492_5_similar\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974492_5_similar/comments/z/parameterized_testing/\", \"locked\": false, \"name\": \"t3_z\", \"created\": 1595974496.0, \"url\": \"http://reddit.local/r/1595974492_5_similar/comments/z/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595974496.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1420" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DOBZ2vU%2BHuUbYRE0VDYgvoKwzEZm74Lz1%2Fn%2BsgvLUQmWK9UibhOvepqavsCFVlvUj32nKEwOSW7KkQdCZrrbtRC68Z5Y0Q6i" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:14:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 77-OJf16WYGLz1gs7BFOwwfCVgPuTc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=1EVZdumTimavYFRK6z; loidcreated=2020-07-28T22%3A14%3A49.172Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974492_5_similar/about/moderators/?user=01EEBQW24WXAJ1NZFNDPKKJ72H&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:14:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=OgPylnGvWth4Al5gXESGzBp31RFiSftFLqhBLEyvZ1kEA6v2S6CKZXGFGxTZgDv7ctnSpALMyy%2B2jRpsJ1181YVOr14X1CCV" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974492_5_similar/about/moderators/?user=01EEBQW24WXAJ1NZFNDPKKJ72H&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_post_anonymous.json b/cassettes/channels.views.posts_test.test_create_post_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.posts_test.test_create_post_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_post_forbidden.json b/cassettes/channels.views.posts_test.test_create_post_forbidden.json deleted file mode 100644 index f1a4ac5ecb..0000000000 --- a/cassettes/channels.views.posts_test.test_create_post_forbidden.json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:15:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQWJ6CBMZMB2D61JXYC6V4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK31PUOyUiqDA72da5wzok0M4oyDAotK3WMiAwLDlXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqXEe5gZRkYGWeZkBCSmRzmFueekOLr6G5cYJoO0pKSWZSanxmemgMyFcJRqASChMsG2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=v8ygdNk9dqDPCoE7y5; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:06 GMT", - "loidcreated=2020-07-28T22%3A15%3A05.614Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:06 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQWJ6CBMZMB2D61JXYC6V4" - } - }, - { - "recorded_at": "2020-07-28T22:15:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=v8ygdNk9dqDPCoE7y5; loidcreated=2020-07-28T22%3A15%3A05.614Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQWNHJ4KK5R392QHWXFHTQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw0C2r8DcsdTQqMynMLMtzyk70sHDPdMn1NcgxiVTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolhVWVLk6B2aGZnimJQcnRfkUlyYbe4VF+AQ7moC0pKSWZSanxmemgMyFcJRqAQBkyum2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQWNHJ4KK5R392QHWXFHTQ" - } - }, - { - "recorded_at": "2020-07-28T22:15:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Deep+money+situation+assume+individual+subject+ever.+Indeed+say+make+wife+voice.%0ATax+member+number+pull.%0ASurface+them+in+standard+try+pick.+Party+final+company+able+cover.+During+cost+opportunity+middle+spend+black+letter+stuff.%0AUnit+teach+view+maybe+marriage+per+with+door.+Foot+plan+professor+bar+east+of+whom+theory.%0AInvolve+minute+strategy+treat+may.+Wear+however+upon+business+cell+arm.+Need+also+month+adult+spend+war+force.+Feeling+yet+finish+certainly+young+station+your.&link_type=any&name=1595974509_8_practice&public_description=True+boy+door+threat+tonight+him.+Miss+idea+dream+many+five+can+wind.&title=Gun+chair+fall+north+any.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 80-vxO1uA2v4qivnBkaH8GiDmM0l4Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "721" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v8ygdNk9dqDPCoE7y5; loidcreated=2020-07-28T22%3A15%3A05.614Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "291" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974509_8_practice&text=tests+are+great&title=parameterized+testing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 79-KThbySSMCxClY62Z1RUvuAXYVSU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "128" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v8ygdNk9dqDPCoE7y5; loidcreated=2020-07-28T22%3A15%3A05.614Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [[\"SUBREDDIT_NOTALLOWED\", \"you aren't allowed to post there.\", \"sr\"]]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "91" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "288" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_post_not_found.json b/cassettes/channels.views.posts_test.test_create_post_not_found.json deleted file mode 100644 index dd69011865..0000000000 --- a/cassettes/channels.views.posts_test.test_create_post_not_found.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:15:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw1A10Kw9Oq3B39LPU9QnJiyyxSClN9fcpS8sN81TSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolvk4lXsmpUXlGGUZm0VG+BiFO1cmG5Y4BcQXJoO0pKSWZSanxmemgMyFcJRqASA/kbG2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=2f1MXNiVbZuJRkoVVf; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:12 GMT", - "loidcreated=2020-07-28T22%3A15%3A12.544Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:12 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_post_without_upvote.json b/cassettes/channels.views.posts_test.test_create_post_without_upvote.json deleted file mode 100644 index f32f3f0a13..0000000000 --- a/cassettes/channels.views.posts_test.test_create_post_without_upvote.json +++ /dev/null @@ -1,869 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:15:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQX0RKHWVQ0X4PVGY1JEMD" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw0s1IdM0qikoJdXEpNvEJzXHODswMynRNzC7yc1XSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolvl5p7uZhuelFLqHpuQa54Q6Gvga+2VbeidlFoO0pKSWZSanxmemgMyFcJRqAQB5Xnm2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=J6eVAFBJimaes22fVM; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:20 GMT", - "loidcreated=2020-07-28T22%3A15%3A20.522Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:20 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQX0RKHWVQ0X4PVGY1JEMD" - } - }, - { - "recorded_at": "2020-07-28T22:15:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQX412WN4CJTYF0YGYM367" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw1i11CnZPcgo2MUnNrzTyKQ8ISg9wcolw9/NzdFTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpWl+JsbF7pnlQe6VlpWebo7R+VUpoZ7mRQ7JYO0pKSWZSanxmemgMyFcJRqAfUxroK2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQX412WN4CJTYF0YGYM367" - } - }, - { - "recorded_at": "2020-07-28T22:15:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Attack+add+worry+form+raise.+Book+sort+process+should+like+rather+sport+parent.%0ALose+expect+develop.+Need+body+all+stay.+Free+here+nature.%0APopulation+follow+indeed+add+may+image+way.+Seem+him+matter+within+find+under+mission+piece.+Us+listen+cause+score+involve+since.%0ANotice+dinner+cut+son.%0APick+pass+moment+keep+thus.+Big+doctor+face+piece+performance.+Mother+possible+standard+guy+kind.%0AOne+point+argue+former+civil.+Serious+bed+care+expert+great+space.&link_type=any&name=1595974524_28_age&public_description=Miss+dog+so+share.+Friend+gun+consumer+personal+option+value.&title=Chair+rate+visit+ahead.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 83-uBSGbBS44eoy2LwPRgPBDXGNNAA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "686" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "276" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQX0RKHWVQ0X4PVGY1JEMD&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 83-uBSGbBS44eoy2LwPRgPBDXGNNAA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974524_28_age/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974524_28_age/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974524_28_age" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974524_28_age&text=y&title=x" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "90" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974524_28_age/comments/10/x/\", \"id\": \"10\", \"name\": \"t3_10\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/10/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974524_28_age\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ey\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"y\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQX0RKHWVQ0X4PVGY1JEMD\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974524_28_age\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974524_28_age/comments/10/x/\", \"locked\": false, \"name\": \"t3_10\", \"created\": 1595974527.0, \"url\": \"http://reddit.local/r/1595974524_28_age/comments/10/x/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"x\", \"created_utc\": 1595974527.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1474" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=w%2BelVyYuiXJ3uUQT4Z%2F4OxRYYUeDc5AbBWHyHc6nltr9xj52oBObxvlBltWCx4eQReyfNMh52DLdwp66zBMdcuA6AQAfU8cc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/10/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&dir=0&id=t3_10" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "28" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/vote/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/vote/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/10/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974524_28_age\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Ey\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"y\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"10\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQX0RKHWVQ0X4PVGY1JEMD\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974524_28_age\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974524_28_age/comments/10/x/\", \"locked\": false, \"name\": \"t3_10\", \"created\": 1595974527.0, \"url\": \"http://reddit.local/r/1595974524_28_age/comments/10/x/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"x\", \"created_utc\": 1595974527.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1474" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6rrsxi%2BNkY5qBtSCz0imiHp%2BXjZFtmxpJwlHEEC2%2FPhNh6Kzae5I8Ep7b2xzI0S3y0s2VIRq840M3yIlVQqzxNhl%2B9HJVsGr" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/10/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 82-haEjrZdUDDs4LUlCkQiRiEakrNE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=J6eVAFBJimaes22fVM; loidcreated=2020-07-28T22%3A15%3A20.522Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974524_28_age/about/moderators/?user=01EEBQX0RKHWVQ0X4PVGY1JEMD&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "273" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=QKbxVnIsszpyqlxMjnGHgCzcSRr1XAqDYUtaQQ3Wwvw0Z9kkedl9PAZEppRXlWagl%2B6wU3qK4UZtOrv9pvbIU9GDUDyjptGm" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974524_28_age/about/moderators/?user=01EEBQX0RKHWVQ0X4PVGY1JEMD&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_text_post.json b/cassettes/channels.views.posts_test.test_create_text_post.json deleted file mode 100644 index e8a0143d3d..0000000000 --- a/cassettes/channels.views.posts_test.test_create_text_post.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:43:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSH46DFS5GSBMSD396XST2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI00S3KCvfPdUlOMbI0LI53riyIyDXVzTD08vE09VXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoloU6JbmamOYUuCcFepWmZAb5lAUWeEcVZTun5IO0pKSWZSanxmemgMyFcJRqARj9bbK2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=3OscqnQP7qC2dhhCt9; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:43:48 GMT", - "loidcreated=2020-07-28T22%3A43%3A47.970Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:43:48 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSH46DFS5GSBMSD396XST2" - } - }, - { - "recorded_at": "2020-07-28T22:43:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSH7XSN8Z4NRSXHBKJQ7C9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI01XUyLYwy80pJj6g0DqzwywyPNy52ytctcUpP9FXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolnlYRpWHFGQmuaaGmWQXBGRbZhd6R2ZFGuR6gC1LSS3LTE6Nz0wBmQvhKNUCAC+GKCe2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSH7XSN8Z4NRSXHBKJQ7C9" - } - }, - { - "recorded_at": "2020-07-28T22:43:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Crime+story+interesting+scene+particular+few+plant.+Bill+child+attorney+perhaps+space+happen.%0ATraining+gas+cell+girl+recent+little+side.+Once+forget+film.+Him+how+customer+shoulder+while+explain+off+why.%0AAccount+minute+whole+dinner+big+choose+degree.+Must+author+night+likely+your+race+two.+Trial+peace+manager.%0AAsk+plan+cost+actually+already+American+live.+Performance+just+close+meeting+skin+wish+reveal.%0AHappen+own+poor+those.&link_type=any&name=1595976232_3_product&public_description=Upon+during+soldier+reveal+change+medical.+Hot+name+more+man+building.&title=Rule+guess+particular+local+grow+three+old.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 95-B5qZ6JdgXy3QxNiW_3sBo-tBgaM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "689" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "368" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBSH46DFS5GSBMSD396XST2&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 95-B5qZ6JdgXy3QxNiW_3sBo-tBgaM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595976232_3_product/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "365" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976232_3_product/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595976232_3_product" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 94-rjWOmDcd291s_CypXm5-h1JLI5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "365" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595976232_3_product&text=tests+are+great&title=parameterized+testing" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 94-rjWOmDcd291s_CypXm5-h1JLI5M" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "127" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595976232_3_product/comments/16/parameterized_testing/\", \"id\": \"16\", \"name\": \"t3_16\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "152" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "365" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 94-rjWOmDcd291s_CypXm5-h1JLI5M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/16/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595976232_3_product\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003Etests are great\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"tests are great\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"16\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBSH46DFS5GSBMSD396XST2\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595976232_3_product\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_11\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595976232_3_product/comments/16/parameterized_testing/\", \"locked\": false, \"name\": \"t3_16\", \"created\": 1595976235.0, \"url\": \"http://reddit.local/r/1595976232_3_product/comments/16/parameterized_testing/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"parameterized testing\", \"created_utc\": 1595976235.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1575" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "364" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dXS5Zz%2BQ7m0i%2BUbY%2BN9fCE0qvihU65iemy7x8TlIYz3gHCPdeYRnN9tOHwgSOT%2BB805Jck%2BRqqt8IAUE%2FAYdlxlBWgMoLE%2BJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/16/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 94-rjWOmDcd291s_CypXm5-h1JLI5M" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=3OscqnQP7qC2dhhCt9; loidcreated=2020-07-28T22%3A43%3A47.970Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595976232_3_product/about/moderators/?user=01EEBSH46DFS5GSBMSD396XST2&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "364" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ICrcYP1GriFI5ozIcjN1ST7hwjrLOyv4QyslU0LIDC6pnAl52Ol%2BmqfYKUEdLyxrL5TrnZH7hiXRvTePCoVNWOP%2F%2B0Ngt3yc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976232_3_product/about/moderators/?user=01EEBSH46DFS5GSBMSD396XST2&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_text_post_blank.json b/cassettes/channels.views.posts_test.test_create_text_post_blank.json deleted file mode 100644 index c032c79c4d..0000000000 --- a/cassettes/channels.views.posts_test.test_create_text_post_blank.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:44:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSHG6FPPBSVJ8CQEME5H6Q" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI00y12NbUsd3T0cik3cfctSPU2C0oMDMszyzZ3SlbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolgUW6Ia5Zlhm5nsa5oaa+KeVB7hbRIa7l+f4u4K0pKSWZSanxmemgMyFcJRqAWx4EDq2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:44:00 GMT", - "loidcreated=2020-07-28T22%3A44%3A00.231Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:44:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSHG6FPPBSVJ8CQEME5H6Q" - } - }, - { - "recorded_at": "2020-07-28T22:44:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSHKKF98WM2QM64PAY9MGH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI01w0Md49I9wpKdNa1cDZxDikw9jHx8QsMjM8t9lTSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpkZm1r4lxinZGXkeHsWV3lUVQW6hFaWlCQFmIC0pKSWZSanxmemgMyFcJRqAd0JDFy2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSHKKF98WM2QM64PAY9MGH" - } - }, - { - "recorded_at": "2020-07-28T22:44:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Whatever+analysis+industry.%0ASeven+main+green+certain+general+very.+Instead+low+here+Republican+onto+need+protect.%0AIdea+enjoy+up+lose+general+huge+remember.+Eight+power+training+between+management+woman+miss.+Hospital+order+manage+street+hard.%0ARead+her+minute+meeting.+Yeah+body+owner+any+skin+yeah+star.+Pattern+third+network+western+among+worker+else+there.%0ABoy+magazine+sign+industry+cover+attorney+yourself.+Represent+hundred+candidate+sign+little+time+night.&link_type=any&name=1595976244_7_modern&public_description=Woman+measure+check+soon.+Note+else+seven+medical+more.&title=Age+bank+it+sure+new+nature+hospital.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 97-QWGXgJRaC-8C4CTp3L4LNQQ_msI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "700" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "356" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:44:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBSHG6FPPBSVJ8CQEME5H6Q&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 97-QWGXgJRaC-8C4CTp3L4LNQQ_msI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595976244_7_modern/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976244_7_modern/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:44:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595976244_7_modern" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-sE59wAAJDw4GMpeK6RaQVn6k7Bc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:44:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595976244_7_modern&text=&title=blank+post" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-sE59wAAJDw4GMpeK6RaQVn6k7Bc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595976244_7_modern/comments/17/blank_post/\", \"id\": \"17\", \"name\": \"t3_17\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "140" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:44:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-sE59wAAJDw4GMpeK6RaQVn6k7Bc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/17/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595976244_7_modern\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"17\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBSHG6FPPBSVJ8CQEME5H6Q\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595976244_7_modern\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_12\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595976244_7_modern/comments/17/blank_post/\", \"locked\": false, \"name\": \"t3_17\", \"created\": 1595976247.0, \"url\": \"http://reddit.local/r/1595976244_7_modern/comments/17/blank_post/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"blank post\", \"created_utc\": 1595976247.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1388" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=3Wntl65DyT5%2BWsMXxUQXL3w2LuXhuDFZlFRAXAZGUTuuY4uLbV23Y8aBKD4RWGifelMb2S3ZN7kcJHsCjLz7t9yFKLEOyFK9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/17/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:44:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 96-sE59wAAJDw4GMpeK6RaQVn6k7Bc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=g6v3D0ZXD0loIEwBBw; loidcreated=2020-07-28T22%3A44%3A00.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595976244_7_modern/about/moderators/?user=01EEBSHG6FPPBSVJ8CQEME5H6Q&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:44:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pLggcI6r%2BAt147Giw%2BfsF43ekJgU%2FAV4ICHVeQoixhKKiAbjcdP4emI%2FsolyFadSHTfWJEjVH5TjNOG8jVvownnCzrRSoSRL" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976244_7_modern/about/moderators/?user=01EEBSHG6FPPBSVJ8CQEME5H6Q&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_url_post.json b/cassettes/channels.views.posts_test.test_create_url_post.json deleted file mode 100644 index 196867eb80..0000000000 --- a/cassettes/channels.views.posts_test.test_create_url_post.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-22T17:19:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJBVKS16NXMTZAWFS7W27KT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1XNQQuCQBAF4L8ie4yERSWjW2lQh6C6dVrc9UmLodusiBX993bq1PE95nvzEpUx8F4NfYtOrCKRp0l8IpUf7IbkrmmTTvUOW/LljfQyE/NIYHKW4JVlkC6kDN3Xq+HhwCMaFYH41puguZpxIjQBXv+/ZZ3TdjQ4F3vyU2wuR/ks66m4Y82mxmgNlK155RfE+wN52efVuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=T62Swpa2iv1Nelvm6w; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 22-Nov-2019 17:19:28 GMT", - "loidcreated=2017-11-22T17%3A19%3A28.478Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 22-Nov-2019 17:19:28 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJBVKS16NXMTZAWFS7W27KT" - } - }, - { - "recorded_at": "2017-11-22T17:19:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&description=Necessitatibus+reiciendis+aliquam+earum+ipsa+velit.+Ab+eum+dolores+rerum+asperiores+pariatur.+Odit+facere+beatae+ea+deserunt+laborum+porro+eaque.%0AModi+rem+accusantium+libero+impedit+porro+incidunt+assumenda.+Harum+delectus+quod+assumenda+in+atque.+Veritatis+incidunt+velit+eaque+amet.+Maxime+non+labore+impedit+voluptatibus+id+tempore.&link_type=any&name=1511371168_mollitia&public_description=Nam+inventore+perspiciatis+rem+iste+itaque.+Ipsam+praesentium+odit+molestias+consectetur+fugiat.&title=Nemo+sit+praesentium+soluta+nihil.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 732-Qr_7MiBr0Hfk2n_opeErsDlrb84" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "590" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "32" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-22T17:19:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJBVT6TF984G0RGR7YNFSXB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI3NtYNLqzy8Mh2MSnTLTDMNsi3LM4OqMw2iXQsyXRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZJ/uH5lrEu5k7OSbGl3l4GaT5OQf7G7uHlZmA9KSklmUmp8ZnpoAMhnCUagHHOEvvuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJBVT6TF984G0RGR7YNFSXB" - } - }, - { - "recorded_at": "2017-11-22T17:19:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01BZJBVT6TF984G0RGR7YNFSXB&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 732-Qr_7MiBr0Hfk2n_opeErsDlrb84" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1511371168_mollitia/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "25" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1511371168_mollitia/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-22T17:19:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1511371168_mollitia" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 733-SqzHHkD4v-p1k0o9skPyk4YAtiE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "25" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-22T17:19:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1511371168_mollitia&title=url+title+%F0%9F%90%A8&url=http%3A%2F%2Fmicromasters.mit.edu%2F%F0%9F%90%A8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 733-SqzHHkD4v-p1k0o9skPyk4YAtiE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "159" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1511371168_mollitia/comments/e6/url_title/\", \"id\": \"e6\", \"name\": \"t3_e6\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "25" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2017-11-22T17:19:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 733-SqzHHkD4v-p1k0o9skPyk4YAtiE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/e6/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1511371168_mollitia\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"e6\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01BZJBVT6TF984G0RGR7YNFSXB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"micromasters.mit.edu\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_a0\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1511371168_mollitia/comments/e6/url_title/\", \"locked\": false, \"name\": \"t3_e6\", \"created\": 1511371175.0, \"url\": \"http://micromasters.mit.edu/\\ud83d\\udc28\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"url title \\ud83d\\udc28\", \"created_utc\": 1511371175.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "25" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=xH3DP%2FcsX8yCi8wHXKcdBSBl2AkJrGLRUPodmWikSKv6xYwqI70BmPjZZAktzjlJEspTlqKhBcEELTprC9MFrcEPppEYwtqE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/e6/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2017-11-22T17:19:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 733-SqzHHkD4v-p1k0o9skPyk4YAtiE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=T62Swpa2iv1Nelvm6w; loidcreated=2017-11-22T17%3A19%3A28.478Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.4 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1511371168_mollitia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"a0\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1511371168_mollitia\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus reiciendis aliquam earum ipsa velit. Ab eum dolores rerum asperiores pariatur. Odit facere beatae ea deserunt laborum porro eaque.\\nModi rem accusantium libero impedit porro incidunt assumenda. Harum delectus quod assumenda in atque. Veritatis incidunt velit eaque amet. Maxime non labore impedit voluptatibus id tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nemo sit praesentium soluta nihil.\", \"collapse_deleted_comments\": false, \"public_description\": \"Nam inventore perspiciatis rem iste itaque. Ipsam praesentium odit molestias consectetur fugiat.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENam inventore perspiciatis rem iste itaque. Ipsam praesentium odit molestias consectetur fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Necessitatibus reiciendis aliquam earum ipsa velit. Ab eum dolores rerum asperiores pariatur. Odit facere beatae ea deserunt laborum porro eaque.\\nModi rem accusantium libero impedit porro incidunt assumenda. Harum delectus quod assumenda in atque. Veritatis incidunt velit eaque amet. Maxime non labore impedit voluptatibus id tempore.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 1, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_a0\", \"created\": 1511371168.0, \"url\": \"/r/1511371168_mollitia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1511371168.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2220" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 17:19:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "25" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=XlYG3MokGMNx0JX85U2bN3NOcgNt08NdY3VyfLAH%2FGMA%2FvNMxYtkxZVqLVpjreN5ruyw66mrV1aAy00WCePjOblsL6Xkb788" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1511371168_mollitia/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_create_url_post_existing_meta.json b/cassettes/channels.views.posts_test.test_create_url_post_existing_meta.json deleted file mode 100644 index 4f2ee87aab..0000000000 --- a/cassettes/channels.views.posts_test.test_create_url_post_existing_meta.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:43:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSGKQQGNDCMVMD3WJPAPFM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI00nWtSqp0M4r0qMiP8vbzDAjJjjBxtvQzijBLzlfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolpU7pVi4enhFGEcUR6Z4FLkGWRpnlRpmF3i5GYC0pKSWZSanxmemgMyFcJRqAaPhtc62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:43:32 GMT", - "loidcreated=2020-07-28T22%3A43%3A31.353Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:43:32 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSGKQQGNDCMVMD3WJPAPFM" - } - }, - { - "recorded_at": "2020-07-28T22:43:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSGQX37H3EV2HRX7RB5HKJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI01i1OzMsITjP3NHdOcQkzcnQzKLQIssjIDMnPzVfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkollWYmvjEBzqHOwcZmuTnVUTkRxVlGBSFVER6+4K0pKSWZSanxmemgMyFcJRqAZpc/I62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBSGQX37H3EV2HRX7RB5HKJ" - } - }, - { - "recorded_at": "2020-07-28T22:43:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Anyone+open+season+guess+information+least.+Congress+artist+other+way+control.%0AWall+bank+your+change+clearly+experience+difference.+Star+ok+month+amount+everyone.%0ABreak+morning+call+myself+allow.+Report+easy+morning+research+push.+Shake+fall+hard+check+arrive+upon+number.%0AThough+standard+low+seem+left+age+build.+Stock+pattern+open+art+defense+surface.%0AFront+hundred+opportunity+picture+city+white+professor.+Sign+spend+practice+its+window+care+first.&link_type=any&name=1595976216_0_arrive&public_description=Short+and+management+design.+Something+discuss+forward+value.&title=Story+and+return+enough+according+beat.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 93-sanhSf7I7CdDV2AF0q8R8hiTomo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "698" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "384" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBSGKQQGNDCMVMD3WJPAPFM&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 93-sanhSf7I7CdDV2AF0q8R8hiTomo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595976216_0_arrive/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "380" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976216_0_arrive/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595976216_0_arrive" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 92-EzbyF2YHxoZKNIPTkX4C9N2X6co" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "380" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1595976216_0_arrive&title=url+title+%F0%9F%90%A8&url=http%3A%2F%2Fmicromasters.mit.edu%2F%F0%9F%90%A8" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 92-EzbyF2YHxoZKNIPTkX4C9N2X6co" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "159" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595976216_0_arrive/comments/15/url_title/\", \"id\": \"15\", \"name\": \"t3_15\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "377" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 92-EzbyF2YHxoZKNIPTkX4C9N2X6co" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/15/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595976216_0_arrive\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"15\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBSGKQQGNDCMVMD3WJPAPFM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"micromasters.mit.edu\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_10\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1595976216_0_arrive/comments/15/url_title/\", \"locked\": false, \"name\": \"t3_15\", \"created\": 1595976223.0, \"url\": \"http://micromasters.mit.edu/\\ud83d\\udc28\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"url title \\ud83d\\udc28\", \"created_utc\": 1595976223.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "377" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2BHdsmX6htgUURx1PMxnFFSh3ilfoCRBDlz0wAg5t2A0xwzyVigNl8PFvftiwvrWcDXBUPpE7I9Q77yOJ5zLqzoW%2B1MN0yc0L" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/15/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:43:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 92-EzbyF2YHxoZKNIPTkX4C9N2X6co" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=YynJi2y4Vt3IFYF5Fu; loidcreated=2020-07-28T22%3A43%3A31.353Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595976216_0_arrive/about/moderators/?user=01EEBSGKQQGNDCMVMD3WJPAPFM&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:43:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "377" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yD9hWwcVce1O%2BH%2FmOryRpAZUMZY5ftss%2BMcNVB5p9SqvjbE9RaBRht8KPnVv%2FPHksfaUobsFuuLiOPIujyR%2BNhACOx3Q%2BjoT" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595976216_0_arrive/about/moderators/?user=01EEBSGKQQGNDCMVMD3WJPAPFM&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_delete_post.json b/cassettes/channels.views.posts_test.test_delete_post.json deleted file mode 100644 index 6f66219b46..0000000000 --- a/cassettes/channels.views.posts_test.test_delete_post.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T16:41:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdcNT801LcsIr0g2SwtzNywtSHQzMSiriIqK8CpX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbllpUaZlrkR2ZZBpq7e4QWhpQbR+UaOZZlBIFtS0kty0xOjc9MARkM4SjVAgClp6KMuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:41:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=thhEyPwQzDtiJTx4Xj; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:41:55 GMT", - "loidcreated=2017-11-06T16%3A41%3A55.314Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:41:55 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-06T16:41:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_2" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-Wem5vhWxc6fVG1upaF40vxZZXJw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thhEyPwQzDtiJTx4Xj; loidcreated=2017-11-06T16%3A41%3A55.314Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/del/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:41:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "485" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/del/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_delete_post_anonymous[True].json b/cassettes/channels.views.posts_test.test_delete_post_anonymous[True].json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.posts_test.test_delete_post_anonymous[True].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_deleted_post[False].json b/cassettes/channels.views.posts_test.test_get_deleted_post[False].json deleted file mode 100644 index de58c45a33..0000000000 --- a/cassettes/channels.views.posts_test.test_get_deleted_post[False].json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:03:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPMV71SGF4H810SVEHEEH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIystRNyy1yLC7PKQrOcbF0LNZNds6IKC4zSg9xi/RV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYVurmHZ2aa+hgZFeTFO3t7Fjg5B4Um5xoWuXqC9KSklmUmp8ZnpoAMhnCUagEOt6RYuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=VxpaMH6GSqOJoatPs5; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:03:55 GMT", - "loidcreated=2018-08-24T18%3A03%3A55.081Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:03:55 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPMV71SGF4H810SVEHEEH" - } - }, - { - "recorded_at": "2018-08-24T18:03:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Dolores+veritatis+sint+eligendi+tenetur.+Fuga+ratione+error+magni+sed+provident+id+maxime+odio.%0AEsse+nobis+quidem+eius+libero.+Quibusdam+quasi+est+corporis.+Repudiandae+similique+sapiente+dolorum+quam+eum.%0ASunt+quam+saepe+dicta+tempora+in.+Aut+ullam+necessitatibus+laborum.+Recusandae+recusandae+quo+eius+tenetur+eligendi+ipsum.%0AIure+magnam+porro+modi+quas+modi+fugit.+Dolorum+asperiores+illum+hic.+Provident+ex+modi+voluptate+quam+eveniet+maxime+fuga.&link_type=any&name=1535133835_incidunt&public_description=Aspernatur+pariatur+modi+praesentium+fuga.+Ullam+omnis+dolore+ratione.+Excepturi+ad+id+molestiae.&title=Fugit+tenetur+nulla+asperiores+eveniet.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 229-fmrAswlrSlD9As-cChXsv2gTFYM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "732" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "365" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPV6WGYZ0PP40RNVMF75Q" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtANKnJ1DQ/2NM3x0DU3ckz3cC2y8PaJ8DB3dIpU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaF55Qmmjunxqd4xJf7uGd7u4TlpHgZ+3sGhTiC9KSklmUmp8ZnpoAMhnCUagHmgmtMuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPV6WGYZ0PP40RNVMF75Q" - } - }, - { - "recorded_at": "2018-08-24T18:04:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHPV6WGYZ0PP40RNVMF75Q&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 229-fmrAswlrSlD9As-cChXsv2gTFYM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133835_incidunt/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "358" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133835_incidunt/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133835_incidunt" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 230-RrEEWSI5lH-72AgHEr8KLXH7ABY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "358" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133835_incidunt&text=Dolorem+soluta+fugit+voluptas+sapiente.+Unde+odit+animi+ipsa.&title=Officiis+repudiandae+dolorum+atque+maxime." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 230-RrEEWSI5lH-72AgHEr8KLXH7ABY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "193" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133835_incidunt/comments/1a/officiis_repudiandae_dolorum_atque_maxime/\", \"id\": \"1a\", \"name\": \"t3_1a\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "358" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 230-RrEEWSI5lH-72AgHEr8KLXH7ABY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133835_incidunt\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolorem soluta fugit voluptas sapiente. Unde odit animi ipsa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolorem soluta fugit voluptas sapiente. Unde odit animi ipsa.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHPV6WGYZ0PP40RNVMF75Q\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133835_incidunt\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133835_incidunt/comments/1a/officiis_repudiandae_dolorum_atque_maxime/\", \"locked\": false, \"name\": \"t3_1a\", \"created\": 1535133842.0, \"url\": \"http://reddit.local/r/1535133835_incidunt/comments/1a/officiis_repudiandae_dolorum_atque_maxime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Officiis repudiandae dolorum atque maxime.\", \"created_utc\": 1535133842.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "358" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SpjZCL33F1Yr%2FhKI1jCef15DTnh%2FtMxnG8wKMNk9MAXlg1gtcPrQY0blXXmU19qLajdL3uBdgR52t9FlFw81HWI9ZVDmadv1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 229-fmrAswlrSlD9As-cChXsv2gTFYM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133835_incidunt\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolorem soluta fugit voluptas sapiente. Unde odit animi ipsa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolorem soluta fugit voluptas sapiente. Unde odit animi ipsa.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPHPV6WGYZ0PP40RNVMF75Q\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133835_incidunt\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133835_incidunt/comments/1a/officiis_repudiandae_dolorum_atque_maxime/\", \"locked\": false, \"name\": \"t3_1a\", \"created\": 1535133842.0, \"url\": \"http://reddit.local/r/1535133835_incidunt/comments/1a/officiis_repudiandae_dolorum_atque_maxime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Officiis repudiandae dolorum atque maxime.\", \"created_utc\": 1535133842.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1719" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "355" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CRbApFHax1123Cg9HuU6Dk%2FnQfafyyFW9i31YENk2vgExMZ5WBJXoDN9JHhR90TyQu2rYI4cwBRgtOt%2F6XjYV2P5jlgYUxZt" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 229-fmrAswlrSlD9As-cChXsv2gTFYM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VxpaMH6GSqOJoatPs5; loidcreated=2018-08-24T18%3A03%3A55.081Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133835_incidunt/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535133835_incidunt\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolores veritatis sint eligendi tenetur. Fuga ratione error magni sed provident id maxime odio.\\nEsse nobis quidem eius libero. Quibusdam quasi est corporis. Repudiandae similique sapiente dolorum quam eum.\\nSunt quam saepe dicta tempora in. Aut ullam necessitatibus laborum. Recusandae recusandae quo eius tenetur eligendi ipsum.\\nIure magnam porro modi quas modi fugit. Dolorum asperiores illum hic. Provident ex modi voluptate quam eveniet maxime fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugit tenetur nulla asperiores eveniet.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aspernatur pariatur modi praesentium fuga. Ullam omnis dolore ratione. Excepturi ad id molestiae.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAspernatur pariatur modi praesentium fuga. Ullam omnis dolore ratione. Excepturi ad id molestiae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Dolores veritatis sint eligendi tenetur. Fuga ratione error magni sed provident id maxime odio.\\nEsse nobis quidem eius libero. Quibusdam quasi est corporis. Repudiandae similique sapiente dolorum quam eum.\\nSunt quam saepe dicta tempora in. Aut ullam necessitatibus laborum. Recusandae recusandae quo eius tenetur eligendi ipsum.\\nIure magnam porro modi quas modi fugit. Dolorum asperiores illum hic. Provident ex modi voluptate quam eveniet maxime fuga.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 3, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1p\", \"created\": 1535133835.0, \"url\": \"/r/1535133835_incidunt/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133835.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2464" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "355" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7U2PKqqWF3VYWYMUZzjaKQlQu1EHDSZvTRYHVXF6Pf2MU1ktP15sl8o%2BMdUITuL2vO0f%2F3XyzXLvm2oqp3iO7UCbu5nqBP3p" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133835_incidunt/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_deleted_post[True].json b/cassettes/channels.views.posts_test.test_get_deleted_post[True].json deleted file mode 100644 index 816cecb55b..0000000000 --- a/cassettes/channels.views.posts_test.test_get_deleted_post[True].json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:03:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHP8027XRZ6VFFR5NPR886" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMtcNcvLzTTaMzEhNyzUyTPMsdsz1c7UszYlPqUxW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlWYQZR3lUVji7FvtZlHt6FZlFGBkXeKYZpOeD9KSklmUmp8ZnpoAMhnCUagGNWp4wuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:03:42 GMT", - "loidcreated=2018-08-24T18%3A03%3A41.906Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:03:42 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHP8027XRZ6VFFR5NPR886" - } - }, - { - "recorded_at": "2018-08-24T18:03:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Repudiandae+doloribus+libero+ullam+natus+sunt.+Eum+vel+adipisci+ullam+incidunt+ea.+Deleniti+officia+ducimus+praesentium+in+ad.+Id+similique+doloribus+quam+deleniti+modi+hic+tempore.%0ADicta+minus+dolorum+sunt.+Porro+quia+magni+laboriosam+odit+quis+eveniet+reiciendis.+Modi+ratione+reprehenderit+sint.+Vel+nemo+recusandae+animi+suscipit+asperiores+amet.+Ullam+laborum+at+animi+pariatur+amet+voluptatem.&link_type=any&name=1535133822_necessitat&public_description=Excepturi+quaerat+enim+dolorum+possimus+quasi+provident+odio+ea.+Quidem+iure+a+sequi+non.&title=Doloremque+unde+mollitia+reiciendis.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 227-RBNMc1Yhefm21fIsAmNE9ul_dyc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "666" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "378" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:03:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPEBP3V0MV2QK7MSF8J29" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4XcpZEEa1IfO3aAVsLCwK6BctUGtbXFBmP8d6msXM7JnJk31EKgtbxXHd5hGwAh65A5jU3m9rV7iDjp2Pl6UzJJjyyLYR4ADloatFx6YUmjaGQ/n/cvjX6kwdqg8V0r1IRmPhk8jeLl/03lu1VfpeFB04LKZ0mqzZAvyoKGnXdadFIgl60fngJ8vr9LJ1q4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHPEBP3V0MV2QK7MSF8J29" - } - }, - { - "recorded_at": "2018-08-24T18:03:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHPEBP3V0MV2QK7MSF8J29&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 227-RBNMc1Yhefm21fIsAmNE9ul_dyc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133822_necessitat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "372" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133822_necessitat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:03:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133822_necessitat" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 228-MvpebJvLavqcAHkMglmoiHIUMJA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "372" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:03:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133822_necessitat&text=At+tempora+placeat+quasi+blanditiis+veniam+rerum.+Vitae+adipisci+quod+non+tenetur.&title=Corrupti+illo+dignissimos+quo+dolores." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 228-MvpebJvLavqcAHkMglmoiHIUMJA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133822_necessitat/comments/19/corrupti_illo_dignissimos_quo_dolores/\", \"id\": \"19\", \"name\": \"t3_19\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "372" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:03:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 228-MvpebJvLavqcAHkMglmoiHIUMJA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/19/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133822_necessitat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAt tempora placeat quasi blanditiis veniam rerum. Vitae adipisci quod non tenetur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"At tempora placeat quasi blanditiis veniam rerum. Vitae adipisci quod non tenetur.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"19\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHPEBP3V0MV2QK7MSF8J29\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133822_necessitat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133822_necessitat/comments/19/corrupti_illo_dignissimos_quo_dolores/\", \"locked\": false, \"name\": \"t3_19\", \"created\": 1535133828.0, \"url\": \"http://reddit.local/r/1535133822_necessitat/comments/19/corrupti_illo_dignissimos_quo_dolores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Corrupti illo dignissimos quo dolores.\", \"created_utc\": 1535133828.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1762" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "372" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rLOinn3jWmTdH%2FF9b6x7cnd5g2djpny%2BWXulFv8q7ffBUka98o3JeAOhPWC%2FHnWNbFkceRCjqobyABeoPE9nUHt%2FAP1Xraqw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/19/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:03:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 227-RBNMc1Yhefm21fIsAmNE9ul_dyc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hd2fHjnEAbEiGRkgAJ; loidcreated=2018-08-24T18%3A03%3A41.906Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/19/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133822_necessitat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAt tempora placeat quasi blanditiis veniam rerum. Vitae adipisci quod non tenetur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"At tempora placeat quasi blanditiis veniam rerum. Vitae adipisci quod non tenetur.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"19\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPHPEBP3V0MV2QK7MSF8J29\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133822_necessitat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133822_necessitat/comments/19/corrupti_illo_dignissimos_quo_dolores/\", \"locked\": false, \"name\": \"t3_19\", \"created\": 1535133828.0, \"url\": \"http://reddit.local/r/1535133822_necessitat/comments/19/corrupti_illo_dignissimos_quo_dolores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Corrupti illo dignissimos quo dolores.\", \"created_utc\": 1535133828.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1757" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:03:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "369" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=17QM9BwtkVwxiReqnycBcEZJZMdtxJLr4kB7Ge%2BrD0B2ph3cKHMtxROqfVAwgBHgBEhqU5Ec1B3N101zQcQI7cDgpkFFrnr0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/19/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post[False].json b/cassettes/channels.views.posts_test.test_get_post[False].json deleted file mode 100644 index a8409dea90..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post[False].json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:04:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQEYJ4WQZQJ8D2Y2W65JA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNTQuCQBRF/4rMMhLU0QnaF7iwDyiyNsP45kmT4MgbizL67zm5ankP99z7ZgoAnZO9bbBly4AlnIelaDmV8VDLnaXj2cG2ECHt6yqL2Dxg+OwMoZPGC1xE0ch+vuxfHfqRChUh+a4DO6GZT4T1KF7/3wqtRAywuJ/sRR3oluTZpsmHNF2vvKPxYQCl0X54CuzzBfBeDLK4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=bBx3gERxmTU4UzfU8H; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:22 GMT", - "loidcreated=2018-08-24T18%3A04%3A21.813Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:22 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQEYJ4WQZQJ8D2Y2W65JA" - } - }, - { - "recorded_at": "2018-08-24T18:04:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ipsam+voluptatibus+incidunt+eius+repellendus+reprehenderit.+Distinctio+laborum+magni+eum+necessitatibus+ex+qui+quo.+Expedita+voluptatem+fugiat+alias+est+atque+laborum+expedita+distinctio.+Est+magnam+fugit+aliquam+sint+minus.%0ANumquam+nam+eaque+hic+sint.+Error+illo+doloremque+nesciunt+fugiat+consequatur+aliquid.+Aspernatur+sunt+dolore+laudantium+deserunt+iure+magni.+Temporibus+quasi+recusandae+sit+occaecati+sequi+labore+officiis.&link_type=any&name=1535133862_ipsa&public_description=Cumque+totam+assumenda+perferendis+repellendus.+Facere+eum+architecto+nisi.&title=Neque+voluptatum+facilis+quidem.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 233-X6n3rX1zf_PorUYscOM6-rQfb50" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "674" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "338" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQN9GRFNS6HFBA7BA952S" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtE1DKxKczTxTXZ38/SOLPNJMygOjU/TLU0qynNV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLaZmmVmhaYnOpYamxn76WaWJRsZFGf7ZvgXZYP0pKSWZSanxmemgAyGcJRqAXv5lUe4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQN9GRFNS6HFBA7BA952S" - } - }, - { - "recorded_at": "2018-08-24T18:04:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHQN9GRFNS6HFBA7BA952S&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 233-X6n3rX1zf_PorUYscOM6-rQfb50" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133862_ipsa/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "332" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133862_ipsa/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133862_ipsa" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 234-1QzfA4McGFIKYvLf0sU_f-ubrnE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "332" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133862_ipsa&text=Optio+nemo+voluptates+praesentium+nesciunt.+Vero+aperiam+laborum+nihil.&title=Velit+ex+quasi+natus." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 234-1QzfA4McGFIKYvLf0sU_f-ubrnE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133862_ipsa/comments/1c/velit_ex_quasi_natus/\", \"id\": \"1c\", \"name\": \"t3_1c\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "146" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "332" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 234-1QzfA4McGFIKYvLf0sU_f-ubrnE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133862_ipsa\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio nemo voluptates praesentium nesciunt. Vero aperiam laborum nihil.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Optio nemo voluptates praesentium nesciunt. Vero aperiam laborum nihil.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHQN9GRFNS6HFBA7BA952S\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133862_ipsa\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1r\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133862_ipsa/comments/1c/velit_ex_quasi_natus/\", \"locked\": false, \"name\": \"t3_1c\", \"created\": 1535133868.0, \"url\": \"http://reddit.local/r/1535133862_ipsa/comments/1c/velit_ex_quasi_natus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Velit ex quasi natus.\", \"created_utc\": 1535133868.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1665" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "332" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MyUHQqJY7X1RXziYU%2FfwHPl3JThvrUk9049Xzl5OczDGd9oDx%2Fw%2BH7dLPREZzz1QemfzKB4UnIHeaHXnSaRf22NqXnIdheLq" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 234-1QzfA4McGFIKYvLf0sU_f-ubrnE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133862_ipsa\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOptio nemo voluptates praesentium nesciunt. Vero aperiam laborum nihil.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Optio nemo voluptates praesentium nesciunt. Vero aperiam laborum nihil.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHQN9GRFNS6HFBA7BA952S\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133862_ipsa\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1r\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133862_ipsa/comments/1c/velit_ex_quasi_natus/\", \"locked\": false, \"name\": \"t3_1c\", \"created\": 1535133868.0, \"url\": \"http://reddit.local/r/1535133862_ipsa/comments/1c/velit_ex_quasi_natus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Velit ex quasi natus.\", \"created_utc\": 1535133868.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1665" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "329" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=j8%2FwIP8eJRdiRGp%2FbDv9QjKWSgkulSpC7PIjv4KG%2Fjvt3H4VUNcyTVWVTKf3PQUNa7evOI5BZ2ggoSNRQ4r%2Bmkhbejk%2BXhl%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1c/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 234-1QzfA4McGFIKYvLf0sU_f-ubrnE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=bBx3gERxmTU4UzfU8H; loidcreated=2018-08-24T18%3A04%3A21.813Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133862_ipsa/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1r\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535133862_ipsa\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsam voluptatibus incidunt eius repellendus reprehenderit. Distinctio laborum magni eum necessitatibus ex qui quo. Expedita voluptatem fugiat alias est atque laborum expedita distinctio. Est magnam fugit aliquam sint minus.\\nNumquam nam eaque hic sint. Error illo doloremque nesciunt fugiat consequatur aliquid. Aspernatur sunt dolore laudantium deserunt iure magni. Temporibus quasi recusandae sit occaecati sequi labore officiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Neque voluptatum facilis quidem.\", \"collapse_deleted_comments\": false, \"public_description\": \"Cumque totam assumenda perferendis repellendus. Facere eum architecto nisi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECumque totam assumenda perferendis repellendus. Facere eum architecto nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ipsam voluptatibus incidunt eius repellendus reprehenderit. Distinctio laborum magni eum necessitatibus ex qui quo. Expedita voluptatem fugiat alias est atque laborum expedita distinctio. Est magnam fugit aliquam sint minus.\\nNumquam nam eaque hic sint. Error illo doloremque nesciunt fugiat consequatur aliquid. Aspernatur sunt dolore laudantium deserunt iure magni. Temporibus quasi recusandae sit occaecati sequi labore officiis.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1r\", \"created\": 1535133862.0, \"url\": \"/r/1535133862_ipsa/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133862.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2360" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "329" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ubfssWthBuZztCl6IiwJf%2BzklpZpXqrWv2Mg%2FYnoYmzBuZ2XxPbQ07TorXS%2BUZXIIHJOu8lFUGIfGZBfNh7BuzSvAgf20mZc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133862_ipsa/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post[True].json b/cassettes/channels.views.posts_test.test_get_post[True].json deleted file mode 100644 index 36f6b236f1..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post[True].json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:04:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQ23J2GVDPTX7W2H7EMG9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4V0aSThISzcKviKxO6Mm6ZeLqGpgXILPmL8d6msXM7JnJk3kwBorehbjQ1beiyKQ39jBwh4pW46T+hURF1eZKth3+wqzeYew6dRhFYoJ8RpEIzs54v+ZdCNXFESkutaaCc0c4mwGsX6/01eCChLzGJNHfBSPsL0vPUPXPKjc0q8K0ChSjc8Bfb5AvZxh9i4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=PsMdBIjhqJiAWrFctP; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:08 GMT", - "loidcreated=2018-08-24T18%3A04%3A08.656Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:08 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQ23J2GVDPTX7W2H7EMG9" - } - }, - { - "recorded_at": "2018-08-24T18:04:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Velit+animi+vel+voluptas+repudiandae+quas+esse.+Aliquid+corrupti+odit+fuga+voluptate+pariatur.+Veritatis+ipsa+labore+fugiat+placeat+nobis.%0ADignissimos+quas+assumenda+veniam+nam+optio+voluptatibus.+Aspernatur+qui+eaque+repellat+quos+veritatis+quis.+Soluta+eos+aspernatur+aliquam+eveniet+occaecati.%0ASit+vitae+distinctio+tenetur+aspernatur+voluptatum.+Quidem+aperiam+consequatur+deleniti+dolor+voluptatum+sequi.&link_type=any&name=1535133848_praesentiu&public_description=Dignissimos+sunt+quibusdam+dolore+hic+dolorem.+Laudantium+praesentium+at+consequatur+quis+vero.&title=Totam+commodi+veniam+nisi+ab+vero+dolore.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 231-Gsuc0QfilkF5rPN2qFNECuJnIfk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "688" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "352" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQ8DSXYBKAKS90HA2AMSV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WN0QqCMBiFX0V2GQW2oWT3KV0YmEiXY85fG9am+y0W0bvn8qrL83G+c95ESAmIfDI9aLIPCGV0A8eyr293cdYHw9xu5GmUVHnUJRmSdUDADcoCcuUFFofhzH4+n14D+JEahAXruyjNglY+WWhn8fr/JvIwbh5FcdLbIWNOY1/SMR0vraq808BTSeCq8cNLIJ8v3SNk0bgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQ8DSXYBKAKS90HA2AMSV" - } - }, - { - "recorded_at": "2018-08-24T18:04:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHQ8DSXYBKAKS90HA2AMSV&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 231-Gsuc0QfilkF5rPN2qFNECuJnIfk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133848_praesentiu/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "345" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133848_praesentiu/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133848_praesentiu" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 232-eISkblmaRnEo3x8q_F59UM5g9Gs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "345" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133848_praesentiu&text=Porro+in+possimus+quaerat+vitae.+Autem+expedita+cumque+voluptatum+deserunt+vitae.&title=Fugiat+fuga+eum+et+libero." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 232-eISkblmaRnEo3x8q_F59UM5g9Gs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "199" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133848_praesentiu/comments/1b/fugiat_fuga_eum_et_libero/\", \"id\": \"1b\", \"name\": \"t3_1b\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "345" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 232-eISkblmaRnEo3x8q_F59UM5g9Gs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133848_praesentiu\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro in possimus quaerat vitae. Autem expedita cumque voluptatum deserunt vitae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Porro in possimus quaerat vitae. Autem expedita cumque voluptatum deserunt vitae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHQ8DSXYBKAKS90HA2AMSV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133848_praesentiu\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133848_praesentiu/comments/1b/fugiat_fuga_eum_et_libero/\", \"locked\": false, \"name\": \"t3_1b\", \"created\": 1535133855.0, \"url\": \"http://reddit.local/r/1535133848_praesentiu/comments/1b/fugiat_fuga_eum_et_libero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fugiat fuga eum et libero.\", \"created_utc\": 1535133855.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "345" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ItScMe982sruggg0UGNJWbUoXlrA334DpyxTwDSFis4txaQ2YtNnl6xhU4bh867hXyEiQSejAIqH68r7G4ZKTocfQhqvSzDY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 232-eISkblmaRnEo3x8q_F59UM5g9Gs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133848_praesentiu\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro in possimus quaerat vitae. Autem expedita cumque voluptatum deserunt vitae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Porro in possimus quaerat vitae. Autem expedita cumque voluptatum deserunt vitae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHQ8DSXYBKAKS90HA2AMSV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133848_praesentiu\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133848_praesentiu/comments/1b/fugiat_fuga_eum_et_libero/\", \"locked\": false, \"name\": \"t3_1b\", \"created\": 1535133855.0, \"url\": \"http://reddit.local/r/1535133848_praesentiu/comments/1b/fugiat_fuga_eum_et_libero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fugiat fuga eum et libero.\", \"created_utc\": 1535133855.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "342" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=uu%2FKFBkJFFwiJPyxze7pi4l2NFcC3Zt2ZfLibOEnR4maq4A%2BBS5we2iwEcwbJ5xBHieEkQnI6uQ3bWeTayM2TV%2F2%2FOLzSsRk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 232-eISkblmaRnEo3x8q_F59UM5g9Gs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=PsMdBIjhqJiAWrFctP; loidcreated=2018-08-24T18%3A04%3A08.656Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133848_praesentiu/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535133848_praesentiu\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit animi vel voluptas repudiandae quas esse. Aliquid corrupti odit fuga voluptate pariatur. Veritatis ipsa labore fugiat placeat nobis.\\nDignissimos quas assumenda veniam nam optio voluptatibus. Aspernatur qui eaque repellat quos veritatis quis. Soluta eos aspernatur aliquam eveniet occaecati.\\nSit vitae distinctio tenetur aspernatur voluptatum. Quidem aperiam consequatur deleniti dolor voluptatum sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Totam commodi veniam nisi ab vero dolore.\", \"collapse_deleted_comments\": false, \"public_description\": \"Dignissimos sunt quibusdam dolore hic dolorem. Laudantium praesentium at consequatur quis vero.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDignissimos sunt quibusdam dolore hic dolorem. Laudantium praesentium at consequatur quis vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Velit animi vel voluptas repudiandae quas esse. Aliquid corrupti odit fuga voluptate pariatur. Veritatis ipsa labore fugiat placeat nobis.\\nDignissimos quas assumenda veniam nam optio voluptatibus. Aspernatur qui eaque repellat quos veritatis quis. Soluta eos aspernatur aliquam eveniet occaecati.\\nSit vitae distinctio tenetur aspernatur voluptatum. Quidem aperiam consequatur deleniti dolor voluptatum sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 6, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1q\", \"created\": 1535133848.0, \"url\": \"/r/1535133848_praesentiu/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133848.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2377" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "342" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ULJXlvwcNChpH%2BoflfByDmudw%2FzZQyorsGWihfZBCQgATuPVi4WJR9ZQkcPSll1UA9ikqOXUvwI0IpQT8N3daOJFKgJPFHJg" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133848_praesentiu/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post_anonymous.json b/cassettes/channels.views.posts_test.test_get_post_anonymous.json deleted file mode 100644 index 060072367f..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post_anonymous.json +++ /dev/null @@ -1,670 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:05:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHRNTYZAFRR2SMRC4F2VHZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyttR1TyuzTCkPCovK9DZ3c3XyM8gKL8kuCPDOCHRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlVBgbGDh6pGc5pphaGvuEp/pG6Po5lZsYOIaC9KSklmUmp8ZnpoAMhnCUagH8/UBMuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:01 GMT", - "loidcreated=2018-08-24T18%3A05%3A01.611Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:01 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHRNTYZAFRR2SMRC4F2VHZ" - } - }, - { - "recorded_at": "2018-08-24T18:05:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Cupiditate+inventore+dignissimos+distinctio+velit+cumque+provident.+Nam+dolorum+eos+facilis+ex+harum.%0AMaxime+vel+quas+exercitationem+ipsa+ab+mollitia.+Incidunt+ad+rem+accusamus+mollitia+dolorum+doloremque.+Vel+enim+modi+quam+officia+necessitatibus.+Doloremque+blanditiis+dolorem+ad+quod+alias.%0ARatione+adipisci+qui+aut+voluptates+veniam+ipsum+in.+Illo+adipisci+adipisci+eligendi+recusandae+modi.+Et+voluptatibus+voluptas+delectus.&link_type=any&name=1535133901_voluptatib&public_description=Voluptas+laboriosam+asperiores+dignissimos+sit+iusto.+Aperiam+iure+architecto+blanditiis.&title=Possimus+necessitatibus+itaque+nulla.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 239-Gfv9dwRVZiK7FEBN0jWtkpPKhQE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "699" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "299" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CBFJMB9PD3JP17KAX3E5JQ46" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMdD1d3OxjDctSC0oLffOzY6MKMpKj3APNsgwM3ZV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5ueQUGAVWpeU4ekfmBqS7VkVYGgQZJ7l4ueWD9KSklmUmp8ZnpoAMhnCUagHpltovuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CBFJMB9PD3JP17KAX3E5JQ46" - } - }, - { - "recorded_at": "2018-08-24T18:05:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1535133901_voluptatib&title=Earum+cupiditate+error+quasi+unde.&url=http%3A%2F%2Fhernandez.com%2Fwp-content%2Fposts%2Fcategory%2Fterms.htm" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 240-OFD9_5pepuwKmkYXrjgXGS0h63E" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "195" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133901_voluptatib/comments/1f/earum_cupiditate_error_quasi_unde/\", \"id\": \"1f\", \"name\": \"t3_1f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 240-OFD9_5pepuwKmkYXrjgXGS0h63E" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133901_voluptatib\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBFJMB9PD3JP17KAX3E5JQ46\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"hernandez.com\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1535133901_voluptatib/comments/1f/earum_cupiditate_error_quasi_unde/\", \"locked\": false, \"name\": \"t3_1f\", \"created\": 1535133905.0, \"url\": \"http://hernandez.com/wp-content/posts/category/terms.htm\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Earum cupiditate error quasi unde.\", \"created_utc\": 1535133905.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1420" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wDkeYvalF1qyqol7u1UQ%2BOyIYRCDnwzr%2BKSKfik%2BUpOweHZk0ay%2FVzDNe2wKjYNuFSc0PT78fR68KvfTWdAvxALib817kYjF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-vR6dRlgIZUE8rMK3Y2EFyjZAFRk\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294" - ], - "x-ratelimit-reset": [ - "292" - ], - "x-ratelimit-used": [ - "6" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-08-24T18:05:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -vR6dRlgIZUE8rMK3Y2EFyjZAFRk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133901_voluptatib\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBFJMB9PD3JP17KAX3E5JQ46\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"hernandez.com\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": true, \"permalink\": \"/r/1535133901_voluptatib/comments/1f/earum_cupiditate_error_quasi_unde/\", \"locked\": false, \"name\": \"t3_1f\", \"created\": 1535133905.0, \"url\": \"http://hernandez.com/wp-content/posts/category/terms.htm\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Earum cupiditate error quasi unde.\", \"created_utc\": 1535133905.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1415" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293" - ], - "x-ratelimit-reset": [ - "292" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vSdESNVwKW1JUjvlH7rw7vHzHY7%2F6snqwy6zPov%2BP4bSAh%2BccXQNBT99CkXmBdqU2UvnWIu8ijBfOjLT1PzKiChf4aiVHSkI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -vR6dRlgIZUE8rMK3Y2EFyjZAFRk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Ah0eNuIJS7ey9ATjpR; loidcreated=2018-08-24T18%3A05%3A01.611Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133901_voluptatib/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": null, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1u\", \"user_is_contributor\": null, \"submit_text\": \"\", \"display_name\": \"1535133901_voluptatib\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECupiditate inventore dignissimos distinctio velit cumque provident. Nam dolorum eos facilis ex harum.\\nMaxime vel quas exercitationem ipsa ab mollitia. Incidunt ad rem accusamus mollitia dolorum doloremque. Vel enim modi quam officia necessitatibus. Doloremque blanditiis dolorem ad quod alias.\\nRatione adipisci qui aut voluptates veniam ipsum in. Illo adipisci adipisci eligendi recusandae modi. Et voluptatibus voluptas delectus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Possimus necessitatibus itaque nulla.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptas laboriosam asperiores dignissimos sit iusto. Aperiam iure architecto blanditiis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptas laboriosam asperiores dignissimos sit iusto. Aperiam iure architecto blanditiis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Cupiditate inventore dignissimos distinctio velit cumque provident. Nam dolorum eos facilis ex harum.\\nMaxime vel quas exercitationem ipsa ab mollitia. Incidunt ad rem accusamus mollitia dolorum doloremque. Vel enim modi quam officia necessitatibus. Doloremque blanditiis dolorem ad quod alias.\\nRatione adipisci qui aut voluptates veniam ipsum in. Illo adipisci adipisci eligendi recusandae modi. Et voluptatibus voluptas delectus.\", \"user_is_muted\": null, \"submit_link_label\": null, \"accounts_active\": 5, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1u\", \"created\": 1535133901.0, \"url\": \"/r/1535133901_voluptatib/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133901.0, \"banner_size\": null, \"user_is_moderator\": null, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2401" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292" - ], - "x-ratelimit-reset": [ - "292" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kTB81LlYWSIXQW4KkKQn0rKCjhwnuwO0m86McVBCFgmY3hedcQj9HPiCmmbigVcfRtxPSosMTqlMdw8yfCd419HbtXt2mhg6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133901_voluptatib/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post_forbidden.json b/cassettes/channels.views.posts_test.test_get_post_forbidden.json deleted file mode 100644 index eacb920a72..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post_forbidden.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T16:45:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0Ndc1yA7wz/QOySkN9AtySwyILMh1cjfzdTLN9HFV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0Z6Lbll/v5Zqck5oSbulvEhydXOFk4upuaFBgXg/SkpJZlJqfGZ6aADIZwlGoB636mvrgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:45:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=INk7O30YNHf90sh1gA; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:45:07 GMT", - "loidcreated=2017-11-06T16%3A45%3A07.751Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:45:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-06T16:45:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-0kPOiKTluQNRFaPYpmBG6MB5iLE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=INk7O30YNHf90sh1gA; loidcreated=2017-11-06T16%3A45%3A07.751Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/adc/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:45:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "293" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=lJSbRYCMVqiMnEjkOqfe0orFh4nVOe4Cqad9vR2hUDegmdiC9QAeMp28cgLvS%2FghBQ6pU7Ho4722bMSjGiGfr6oIzq%2BNRLTU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/comments/adc/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post_no_profile.json b/cassettes/channels.views.posts_test.test_get_post_no_profile.json deleted file mode 100644 index 909921cf14..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post_no_profile.json +++ /dev/null @@ -1,777 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:04:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQVWET8KG6JM9G2F8K0E4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtVN9jEqcHY0Nk3PLvZyLCkpKLcIzzMwzIhMTnRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5uVQEpVeUW+QGJXv65ec5ZYe5eGXkl5kYlJSD9KSklmUmp8ZnpoAMhnCUagHqyR8XuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:35 GMT", - "loidcreated=2018-08-24T18%3A04%3A35.056Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:35 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHQVWET8KG6JM9G2F8K0E4" - } - }, - { - "recorded_at": "2018-08-24T18:04:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Recusandae+itaque+omnis+voluptatibus+consectetur.+Labore+laborum+mollitia+ipsum+deserunt+accusantium+doloribus+iusto.%0ARepellat+sequi+non+aliquam+asperiores.+Voluptates+pariatur+ipsum+aliquid+distinctio+dignissimos+iure.+Accusantium+accusamus+distinctio+doloribus+maxime+error+exercitationem.+Harum+veritatis+sint+nemo+saepe+accusantium.&link_type=any&name=1535133875_aliquam&public_description=Eligendi+saepe+maxime+numquam+unde+debitis.+Commodi+doloremque+repudiandae+accusantium.&title=Molestiae+ab+quia+fuga+laboriosam+earum.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 235-cL2pCA35gksJAttpw8Wn01hYcaE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "602" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "325" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHR288JC324SFVTDJWWWVG" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtM1Syk39UguTPQyMw9xN3XPTIqvLPMNDQ0pNgxV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5eeYkRRWaeIekmwf6hidm5+QFOUb5Zpk5eReD9KSklmUmp8ZnpoAMhnCUagF2wySKuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHR288JC324SFVTDJWWWVG" - } - }, - { - "recorded_at": "2018-08-24T18:04:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHR288JC324SFVTDJWWWVG&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 235-cL2pCA35gksJAttpw8Wn01hYcaE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133875_aliquam/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "319" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133875_aliquam/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133875_aliquam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 236-6dw5HcqaJ67TG5Gib_yvMUUTs1U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133875_aliquam&text=Molestias+neque+nulla+amet+non.+Animi+autem+veniam+dolores+corrupti.&title=Dolor+expedita+ipsam+blanditiis+eum+sunt+dolorem." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 236-6dw5HcqaJ67TG5Gib_yvMUUTs1U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "206" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133875_aliquam/comments/1d/dolor_expedita_ipsam_blanditiis_eum_sunt_dolorem/\", \"id\": \"1d\", \"name\": \"t3_1d\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 236-6dw5HcqaJ67TG5Gib_yvMUUTs1U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133875_aliquam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestias neque nulla amet non. Animi autem veniam dolores corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestias neque nulla amet non. Animi autem veniam dolores corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHR288JC324SFVTDJWWWVG\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133875_aliquam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133875_aliquam/comments/1d/dolor_expedita_ipsam_blanditiis_eum_sunt_dolorem/\", \"locked\": false, \"name\": \"t3_1d\", \"created\": 1535133882.0, \"url\": \"http://reddit.local/r/1535133875_aliquam/comments/1d/dolor_expedita_ipsam_blanditiis_eum_sunt_dolorem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolor expedita ipsam blanditiis eum sunt dolorem.\", \"created_utc\": 1535133882.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VRp8LA5jd%2F0vBL3GT0sai9kVKWIBi9Vvm8fyplwzBo6zdGmParRFjF9hCE3iNg6qPKa1AVmY6WSFKLrC3Y2mOx8wjgOlxPU1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 236-6dw5HcqaJ67TG5Gib_yvMUUTs1U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133875_aliquam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestias neque nulla amet non. Animi autem veniam dolores corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestias neque nulla amet non. Animi autem veniam dolores corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHR288JC324SFVTDJWWWVG\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133875_aliquam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133875_aliquam/comments/1d/dolor_expedita_ipsam_blanditiis_eum_sunt_dolorem/\", \"locked\": false, \"name\": \"t3_1d\", \"created\": 1535133882.0, \"url\": \"http://reddit.local/r/1535133875_aliquam/comments/1d/dolor_expedita_ipsam_blanditiis_eum_sunt_dolorem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolor expedita ipsam blanditiis eum sunt dolorem.\", \"created_utc\": 1535133882.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Vkam1IPpJHg0I66hvQNoSg4vc2Hnl5kTdU6iXaW%2FkbzFIP56%2FqOgRxdZGG4DIg2nqMWP%2BLqZP8oTnBPCSPeEUYrOuqASv08Z" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1d/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 236-6dw5HcqaJ67TG5Gib_yvMUUTs1U" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=x4jyPbCmRhBfaQiJ8r; loidcreated=2018-08-24T18%3A04%3A35.056Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133875_aliquam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535133875_aliquam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERecusandae itaque omnis voluptatibus consectetur. Labore laborum mollitia ipsum deserunt accusantium doloribus iusto.\\nRepellat sequi non aliquam asperiores. Voluptates pariatur ipsum aliquid distinctio dignissimos iure. Accusantium accusamus distinctio doloribus maxime error exercitationem. Harum veritatis sint nemo saepe accusantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Molestiae ab quia fuga laboriosam earum.\", \"collapse_deleted_comments\": false, \"public_description\": \"Eligendi saepe maxime numquam unde debitis. Commodi doloremque repudiandae accusantium.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEligendi saepe maxime numquam unde debitis. Commodi doloremque repudiandae accusantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Recusandae itaque omnis voluptatibus consectetur. Labore laborum mollitia ipsum deserunt accusantium doloribus iusto.\\nRepellat sequi non aliquam asperiores. Voluptates pariatur ipsum aliquid distinctio dignissimos iure. Accusantium accusamus distinctio doloribus maxime error exercitationem. Harum veritatis sint nemo saepe accusantium.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 3, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1s\", \"created\": 1535133875.0, \"url\": \"/r/1535133875_aliquam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133875.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2208" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pw4ETxyTToY2CLbmDYWr3VQalNHnznS4a%2Bv5HcZetlcmlTeIOlb1K1gic%2F1hY0hGP4ysen6tdyvoAakYJ9uIZO9eFiazkNRi" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133875_aliquam/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post_not_found.json b/cassettes/channels.views.posts_test.test_get_post_not_found.json deleted file mode 100644 index a3e60ebd6c..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post_not_found.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T16:45:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdetSHHNCnMz9oq0TMlKjncJTQ7KMskyj8jIifRV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlmee7WiSV+hm7l5gZOVoURzmZRBTlZLlbFGSD9KSklmUmp8ZnpoAMhnCUagFv0sxBuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:45:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=mFBD4YTg3MRuHBD8ll; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:45:34 GMT", - "loidcreated=2017-11-06T16%3A45%3A34.382Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:45:34 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-06T16:45:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-xdEjVF3JY9djc_DUcRj4j7XhlYM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=mFBD4YTg3MRuHBD8ll; loidcreated=2017-11-06T16%3A45%3A34.382Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/missing/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Not Found\", \"error\": 404}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:45:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=LuKDCcV2BjfjgnDUd%2F20TuxZB56VNiHiLT%2BHWL79JZNu6FimV0%2B3fxC3FzHnXtppLF%2FnljXjudjE6u5ANQiCIM4b0uBu69LB" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/comments/missing/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_post_stickied.json b/cassettes/channels.views.posts_test.test_get_post_stickied.json deleted file mode 100644 index 3b25db5e5f..0000000000 --- a/cassettes/channels.views.posts_test.test_get_post_stickied.json +++ /dev/null @@ -1,869 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:04:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHR8X14JMW7C4HTFDJYFXY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNtd18sjPcguvciktC4pyTi/MTI7yijANLk61iAhV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVeSWHRXqbWySHVCX7BFV4WpSFerpYuIYV5BWD9KSklmUmp8ZnpoAMhnCUagEA6boOuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:48 GMT", - "loidcreated=2018-08-24T18%3A04%3A48.392Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:04:48 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHR8X14JMW7C4HTFDJYFXY" - } - }, - { - "recorded_at": "2018-08-24T18:04:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Odit+distinctio+beatae+placeat+maxime+facilis+assumenda+autem.+Sed+tempora+eos+iusto+libero.+Quidem+maxime+incidunt+delectus+molestiae+quidem+expedita.%0ARecusandae+iusto+nesciunt+distinctio+vel+sed+a.+Excepturi+possimus+exercitationem+numquam+consequatur+pariatur+quos.+Necessitatibus+laudantium+debitis+dolor+beatae+aut+minima.%0ARatione+adipisci+nostrum+reiciendis+libero+saepe+totam.+Quam+eos+non+tempora+nemo.+Enim+quis+laborum+itaque+mollitia+pariatur+totam+molestias+odit.&link_type=any&name=1535133888_cupiditate&public_description=Magni+ut+magni+enim+facere+laborum+delectus.+Dolores+enim+tenetur+dignissimos+sed+sit+minus+fugit.&title=Magnam+corporis+commodi+ut+quisquam+aliquid+est.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 237-BHojFWzDuvRZCgqicZJX5Sse8XU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "765" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "312" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHRF8N3G9RBEA7XZPTD2Q3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyttAt9vUINXAudXXNyPUKSw93DnL2iCyLKCiNckpW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYl6hqYBWeWV0WFGOQ7lpaY+oakJ5qk+oWUJjuC9KSklmUmp8ZnpoAMhnCUagFkTs7WuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHRF8N3G9RBEA7XZPTD2Q3" - } - }, - { - "recorded_at": "2018-08-24T18:04:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHRF8N3G9RBEA7XZPTD2Q3&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 237-BHojFWzDuvRZCgqicZJX5Sse8XU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133888_cupiditate/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133888_cupiditate/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133888_cupiditate" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 238-sMHU0CuEEhmJVgWCRCHYvXpuZBc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133888_cupiditate&text=Illo+sunt+iure+temporibus+rem+in+magnam.+Facere+corporis+autem+provident+iure+nihil.&title=Illum+similique+ipsum+consectetur+eum+neque." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 238-sMHU0CuEEhmJVgWCRCHYvXpuZBc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133888_cupiditate/comments/1e/illum_similique_ipsum_consectetur_eum_neque/\", \"id\": \"1e\", \"name\": \"t3_1e\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 238-sMHU0CuEEhmJVgWCRCHYvXpuZBc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133888_cupiditate\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIllo sunt iure temporibus rem in magnam. Facere corporis autem provident iure nihil.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Illo sunt iure temporibus rem in magnam. Facere corporis autem provident iure nihil.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHRF8N3G9RBEA7XZPTD2Q3\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133888_cupiditate\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133888_cupiditate/comments/1e/illum_similique_ipsum_consectetur_eum_neque/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1535133895.0, \"url\": \"http://reddit.local/r/1535133888_cupiditate/comments/1e/illum_similique_ipsum_consectetur_eum_neque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Illum similique ipsum consectetur eum neque.\", \"created_utc\": 1535133895.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1784" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "305" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=r7yWl6AMM8RQ0Bm9%2FheIj%2F1hkrZsyWhYTJzgZ%2BLMV5G6L82PKBNuO2bl%2Fw1fL3HpvgEoRoXHFOUKPlkA7UWPgqlMMC9UxmAb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_1e&state=True" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 237-BHojFWzDuvRZCgqicZJX5Sse8XU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/set_subreddit_sticky/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "302" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/set_subreddit_sticky/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 238-sMHU0CuEEhmJVgWCRCHYvXpuZBc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133888_cupiditate\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIllo sunt iure temporibus rem in magnam. Facere corporis autem provident iure nihil.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Illo sunt iure temporibus rem in magnam. Facere corporis autem provident iure nihil.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHRF8N3G9RBEA7XZPTD2Q3\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133888_cupiditate\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": true, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133888_cupiditate/comments/1e/illum_similique_ipsum_consectetur_eum_neque/\", \"locked\": false, \"name\": \"t3_1e\", \"created\": 1535133895.0, \"url\": \"http://reddit.local/r/1535133888_cupiditate/comments/1e/illum_similique_ipsum_consectetur_eum_neque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Illum similique ipsum consectetur eum neque.\", \"created_utc\": 1535133895.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "302" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Gfn11FU4EPpnO2HTmzK6%2Flfte4zyPaM5wMJL91ei%2FlYy4uKUACZd6Lo6Gc1ter7G5o%2FecQEjFbOWNXkVHp%2ByLTmA4QR2Wnuw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:04:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 238-sMHU0CuEEhmJVgWCRCHYvXpuZBc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q8OgnUsVgMtPuRIn9Q; loidcreated=2018-08-24T18%3A04%3A48.392Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133888_cupiditate/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"1t\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535133888_cupiditate\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdit distinctio beatae placeat maxime facilis assumenda autem. Sed tempora eos iusto libero. Quidem maxime incidunt delectus molestiae quidem expedita.\\nRecusandae iusto nesciunt distinctio vel sed a. Excepturi possimus exercitationem numquam consequatur pariatur quos. Necessitatibus laudantium debitis dolor beatae aut minima.\\nRatione adipisci nostrum reiciendis libero saepe totam. Quam eos non tempora nemo. Enim quis laborum itaque mollitia pariatur totam molestias odit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Magnam corporis commodi ut quisquam aliquid est.\", \"collapse_deleted_comments\": false, \"public_description\": \"Magni ut magni enim facere laborum delectus. Dolores enim tenetur dignissimos sed sit minus fugit.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMagni ut magni enim facere laborum delectus. Dolores enim tenetur dignissimos sed sit minus fugit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Odit distinctio beatae placeat maxime facilis assumenda autem. Sed tempora eos iusto libero. Quidem maxime incidunt delectus molestiae quidem expedita.\\nRecusandae iusto nesciunt distinctio vel sed a. Excepturi possimus exercitationem numquam consequatur pariatur quos. Necessitatibus laudantium debitis dolor beatae aut minima.\\nRatione adipisci nostrum reiciendis libero saepe totam. Quam eos non tempora nemo. Enim quis laborum itaque mollitia pariatur totam molestias odit.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 3, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_1t\", \"created\": 1535133888.0, \"url\": \"/r/1535133888_cupiditate/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535133888.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2524" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:04:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "302" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=O%2B6i9F5vhA6dUvAbTMcK9%2BiR%2BF72RfREXRnljUUy7%2FSByaF3tK4GnnmR9Q53XtpvtQOBx6dRrf%2Buia9jLKJKSOSh9ZEcfsaG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133888_cupiditate/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_removed_post[None-404].json b/cassettes/channels.views.posts_test.test_get_removed_post[None-404].json deleted file mode 100644 index 522e33decd..0000000000 --- a/cassettes/channels.views.posts_test.test_get_removed_post[None-404].json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T15:32:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0VXGN7842ZRP2WGT0QG83" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDLVTTQsyY93tsx19rXQ1XUzNjFPDHbPNLBI8Q6xUNJRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2xefkGBu5ugWlpURWWjqXumb6hJmVB/gnV6R7gnSkpJZlJqfGZ6aAjIVwlGoBzIuHoLQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:32:47 GMT", - "loidcreated=2020-07-28T15%3A32%3A47.210Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:32:47 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0VXGN7842ZRP2WGT0QG83" - } - }, - { - "recorded_at": "2020-07-28T15:32:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; loidcreated=2020-07-28T15%3A32%3A47.210Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0W0QH6B392N37G7B8GN1W" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDLTNfNJjajKdC0rLUw1zfDxDE129i3JTzMqji/wVNJRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2mRgbBlqklFVGeBW4BDiWOqWVl5oE5FrmOxb5gnSkpJZlJqfGZ6aAjIVwlGoBcH/fwbQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0W0QH6B392N37G7B8GN1W" - } - }, - { - "recorded_at": "2020-07-28T15:32:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=She+according+region+difference+trial+top+hot+visit.+Everything+be+sing+cause+air+energy.%0ASafe+occur+poor+five+participant.+Company+trip+wide+far+rock.%0ABig+model+keep+fly+want+democratic+final.+Why+institution+chair+laugh+bar+relate+campaign+media.+Here+scene+since+choose+against.%0AMe+point+bad+generation+week+your+grow.+Employee+rise+individual+film+wind+mind+attorney.+Style+new+evidence+goal+company+near+perform.&link_type=any&name=1595950370_11_other&public_description=Operation+it+check+team+care+raise.+Affect+population+fly+thank+lot+article.&title=Voice+thought+ground+toward+door+what.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 5-a1to_C9mCM8--F347aSGi08dKT8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "674" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; loidcreated=2020-07-28T15%3A32%3A47.210Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "430" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:32:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595950370_11_other&text=Because+song+movement+left+stay+exist+individual.+Our+fact+put+those+thank+expert+miss.&title=City+democratic+teach+rich+major+law." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 6-6LeXziEvuqe5hLIUcCMtof2s_pI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; loidcreated=2020-07-28T15%3A32%3A47.210Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595950370_11_other/comments/f/city_democratic_teach_rich_major_law/\", \"id\": \"f\", \"name\": \"t3_f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "427" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:32:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 6-6LeXziEvuqe5hLIUcCMtof2s_pI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; loidcreated=2020-07-28T15%3A32%3A47.210Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595950370_11_other\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBecause song movement left stay exist individual. Our fact put those thank expert miss.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Because song movement left stay exist individual. Our fact put those thank expert miss.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEB0W0QH6B392N37G7B8GN1W\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595950370_11_other\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_6\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595950370_11_other/comments/f/city_democratic_teach_rich_major_law/\", \"locked\": false, \"name\": \"t3_f\", \"created\": 1595950373.0, \"url\": \"http://reddit.local/r/1595950370_11_other/comments/f/city_democratic_teach_rich_major_law/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"City democratic teach rich major law.\", \"created_utc\": 1595950373.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "426" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=AKfafKLwSJ9Ce1lE4ZQWmTsvwLKdDvnrWjcD6FOeZC8EzZaIYcPHpJ9XzpDGymZ6GHh573wvtW4g8Np%2FUrOCvYsTZra0A7bl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:32:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_f&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 5-a1to_C9mCM8--F347aSGi08dKT8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MQfiK8iDlg6AxKaRVH; loidcreated=2020-07-28T15%3A32%3A47.210Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:32:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "423" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_removed_post[client_user1-404].json b/cassettes/channels.views.posts_test.test_get_removed_post[client_user1-404].json deleted file mode 100644 index 9441697baf..0000000000 --- a/cassettes/channels.views.posts_test.test_get_removed_post[client_user1-404].json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T15:33:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WA8V7A4PFBGK0BF4F1KQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDLXTc9193IK80r3S6wqN3dLLfEIjwhxyooKzcjwVdJRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2JZaXuBdb5lVlB1WZ5xv6B2ca5QXlpFZ5Rbhlg3SkpJZlJqfGZ6aAjIVwlGoBUqUWq7QAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=VD2XZKYevrijBN7PFN; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:33:00 GMT", - "loidcreated=2020-07-28T15%3A33%3A00.280Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:33:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WA8V7A4PFBGK0BF4F1KQ" - } - }, - { - "recorded_at": "2020-07-28T15:33:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WDHATJM4XCFN402M45YZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULLQzc00dAwLDgzwMoosSgpyMqmo9C/z181IDil0VdJRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2BXhXJUblByaFuuZUZIaGFRqZmfpXRCWVJbqkg3SkpJZlJqfGZ6aAjIVwlGoBS0kNJLQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WDHATJM4XCFN402M45YZ" - } - }, - { - "recorded_at": "2020-07-28T15:33:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Second+language+take+though+market.+Artist+research+their+less+pay+recently.%0ACrime+rest+meet+dinner+student+fire+among.+Research+size+treat+increase+story+heart+address.%0AShould+him+world+though+quickly+country+wind.+East+present+approach.+Left+decision+have+study+scientist+lay.%0AWide+daughter+bank+audience.+Night+nearly+affect+push+attention+Mr+speak.+Face+perform+forward+across.%0AUs+his+history+music+total+ground.+Speak+drug+range+how+fine+decade+age.&link_type=any&name=1595950383_12_step&public_description=Address+visit+right+pick+least+own+rather.&title=Opportunity+between+soon+money+single+material.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 7-gmGJBVJgNazw7FetHWXTBjZUhhM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "687" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "417" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595950383_12_step&text=Perhaps+oil+field+even+after+pay.+Nearly+though+politics+show+gas.+Carry+say+marriage+should.&title=Majority+cause+mission+perhaps+on+economic." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 8-mi1AVSQPJ2YrbRB4xyOvO-hcTqE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "225" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595950383_12_step/comments/g/majority_cause_mission_perhaps_on_economic/\", \"id\": \"g\", \"name\": \"t3_g\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "413" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 8-mi1AVSQPJ2YrbRB4xyOvO-hcTqE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/g/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595950383_12_step\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerhaps oil field even after pay. Nearly though politics show gas. Carry say marriage should.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Perhaps oil field even after pay. Nearly though politics show gas. Carry say marriage should.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"g\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEB0WDHATJM4XCFN402M45YZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595950383_12_step\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_7\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595950383_12_step/comments/g/majority_cause_mission_perhaps_on_economic/\", \"locked\": false, \"name\": \"t3_g\", \"created\": 1595950387.0, \"url\": \"http://reddit.local/r/1595950383_12_step/comments/g/majority_cause_mission_perhaps_on_economic/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Majority cause mission perhaps on economic.\", \"created_utc\": 1595950387.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1782" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "413" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sJY7ZhzpLfFzpt8W1WT3R2LWy2rUpNEa5Z2%2B9%2BN%2FzQztMQqf2uB38mHmZQ0cqt9VmyTzSBKZ4bBRLmHKZuXyHcmRmotAIiCA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/g/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_g&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 7-gmGJBVJgNazw7FetHWXTBjZUhhM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "410" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 8-mi1AVSQPJ2YrbRB4xyOvO-hcTqE" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=VD2XZKYevrijBN7PFN; loidcreated=2020-07-28T15%3A33%3A00.280Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595950383_12_step/about/moderators/?user=01EEB0WDHATJM4XCFN402M45YZ&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "410" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cv%2FIU%2BgPIZBn5qx4du4ySvB%2BDeMVUpddEUSMj%2B%2BAMETu4a8TBwJq3wnQr8u0LFzhC2IcHHffk%2BL%2FRPdc2B0Gf6jrTi4g8wU2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595950383_12_step/about/moderators/?user=01EEB0WDHATJM4XCFN402M45YZ&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_removed_post[client_user2-200].json b/cassettes/channels.views.posts_test.test_get_removed_post[client_user2-200].json deleted file mode 100644 index cc6451f0cf..0000000000 --- a/cassettes/channels.views.posts_test.test_get_removed_post[client_user2-200].json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T15:33:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WQ3H0JJ7WC0PD94V59D1" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULLUNYqKCvQuM/LID00zy0l2N/JPSQ4MDs6LMq8qV9JRUEqtKMgsSi2OzwQpNzYzMACKgXXHl1QWpIKMSEpNLEotAqktTs6HCGmBeEWpaUCNGch2OYZkBYebRMX7m3g7mbiaGeSW5rtVuYSkl5mkg3SkpJZlJqfGZ6aAjIVwlGoBFnmrxLQAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:33:13 GMT", - "loidcreated=2020-07-28T15%3A33%3A13.444Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 15:33:13 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WQ3H0JJ7WC0PD94V59D1" - } - }, - { - "recorded_at": "2020-07-28T15:33:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WTBKN36JS3S8BRMNCC4C" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI00PXzzgv2C8z0TDUL1U03i082143MMTIzyUvPylfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolkWGuuRmhIWEO+WERmWkV6Z5xge4p3l7Ovk4B4K0pKSWZSanxmemgMyFcJRqAYW79y62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEB0WTBKN36JS3S8BRMNCC4C" - } - }, - { - "recorded_at": "2020-07-28T15:33:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=In+but+fight+question+section+open+whatever+company.%0AChild+most+line.+Her+cultural+place+gun+share+quickly.%0AStill+time+week+standard+dream+sit+learn+standard.+And+serve+minute+game+structure+model.%0ARed+work+range+east+smile+mouth+democratic+lose.+Pattern+character+young+trade+recent+often.+System+school+mind+because+agent+heavy.%0AControl+course+serious.+Sort+degree+cup.%0AStart+book+animal+bit+time+subject+pressure.+Example+despite+before+thought.&link_type=any&name=1595950396_13_Republi&public_description=Century+will+great.+Return+himself+although+exactly+spend.&title=Record+field+fish+produce+realize.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 9-2ZZQKv2HoUf6lcG2OdcQSSnZ7zw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "689" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595950396_13_Republi&text=History+rise+page+conference+meeting.+Order+well+hair.%0AWrong+run+tend+social.&title=Over+five+Democrat+worker." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 10-NKnSNQiIe6U-g6_c7-Yl264ngjo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "197" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595950396_13_Republi/comments/h/over_five_democrat_worker/\", \"id\": \"h\", \"name\": \"t3_h\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "154" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "400" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 10-NKnSNQiIe6U-g6_c7-Yl264ngjo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/h/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595950396_13_Republi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHistory rise page conference meeting. Order well hair.\\nWrong run tend social.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"History rise page conference meeting. Order well hair.\\nWrong run tend social.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEB0WTBKN36JS3S8BRMNCC4C\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595950396_13_Republi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_8\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595950396_13_Republi/comments/h/over_five_democrat_worker/\", \"locked\": false, \"name\": \"t3_h\", \"created\": 1595950400.0, \"url\": \"http://reddit.local/r/1595950396_13_Republi/comments/h/over_five_democrat_worker/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Over five Democrat worker.\", \"created_utc\": 1595950400.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1713" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "400" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CqYVWvYJGMdGIbuaL1OZ%2FhhXQ3xuzkmlOrZ8JsyMVvkfZ%2B2b0gCf5LJ6vWAF8HzyCEwg10%2Bd1UUL10SwIEg%2FCt9vxpAgQqDZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/h/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_h&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 9-2ZZQKv2HoUf6lcG2OdcQSSnZ7zw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "397" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 9-2ZZQKv2HoUf6lcG2OdcQSSnZ7zw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595950396_13_Republi/about/moderators/?user=01EEB0WQ3H0JJ7WC0PD94V59D1&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1595950397.0, \"mod_permissions\": [\"all\"], \"name\": \"01EEB0WQ3H0JJ7WC0PD94V59D1\", \"id\": \"t2_9\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "148" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "397" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DB1TIqPXU8g6hBkj8HVvhDykisgPaPzotrpI0mIVZuRSYl4U4uwQDMeHZJctmOrcA6%2BtH5T5TrYA%2B4EbGVq44YGjEZLgcBpP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595950396_13_Republi/about/moderators/?user=01EEB0WQ3H0JJ7WC0PD94V59D1&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T15:33:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 9-2ZZQKv2HoUf6lcG2OdcQSSnZ7zw" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=94nmhjLA3Z5Av9Y0cB; loidcreated=2020-07-28T15%3A33%3A13.444Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/h/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": \"01EEB0WQ3H0JJ7WC0PD94V59D1\", \"media_embed\": {}, \"subreddit\": \"1595950396_13_Republi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHistory rise page conference meeting. Order well hair.\\nWrong run tend social.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"History rise page conference meeting. Order well hair.\\nWrong run tend social.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01EEB0WTBKN36JS3S8BRMNCC4C\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595950396_13_Republi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_8\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595950396_13_Republi/comments/h/over_five_democrat_worker/\", \"locked\": false, \"name\": \"t3_h\", \"created\": 1595950400.0, \"url\": \"http://reddit.local/r/1595950396_13_Republi/comments/h/over_five_democrat_worker/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Over five Democrat worker.\", \"created_utc\": 1595950400.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1732" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 15:33:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "397" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TolGAa82jNzlntNy6qDOJ2wZejD5T5AYCPoLMOjCeyzdlNktZkzBnPiwku1sBBLyIeDyPtsgK6fdR4BjZcz4ipFGVeu8kl7E" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/h/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_removed_post[staff_user-200].json b/cassettes/channels.views.posts_test.test_get_removed_post[staff_user-200].json deleted file mode 100644 index 7c2c84266f..0000000000 --- a/cassettes/channels.views.posts_test.test_get_removed_post[staff_user-200].json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2023-06-02T12:12:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.31.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0BK8MKZY6TFWNWKHYXEK4" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI00nUNCMh0SS/NDvd1ysv1dvE2103zy85NNi8O9FXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolmUkGxSXJ3qkGQVGGYUVVealRwS6OUfkewQGZIO0pKSWZSanxmemgMyFcJRqARK1QN62AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=98PuUn1Srl3pZhO2uz; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 01-Jun-2025 12:12:18 GMT", - "loidcreated=2023-06-02T12%3A12%3A18.248Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 01-Jun-2025 12:12:18 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0BK8MKZY6TFWNWKHYXEK4" - } - }, - { - "recorded_at": "2023-06-02T12:12:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "python-requests/2.31.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0BPJPQRG5E7QF9YZKYKR7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI01g0y9PMIiQ9yL/dzzjCwqHSP8EvzCY0sSjfVNVHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqU4lRbku8SnlFU5uwXoGsV7ugcGpha7uul6WYC0pKSWZSanxmemgMyFcJRqAQOOhXS2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0BPJPQRG5E7QF9YZKYKR7" - } - }, - { - "recorded_at": "2023-06-02T12:12:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Game+appear+represent+require+current+necessary.+House+region+some.%0ACall+side+carry+civil.+Write+among+happy.+Action+tonight+enjoy+nice+adult+suddenly+scene.%0AMeeting+talk+let+year+far+entire+recognize.+Consider+sell+indicate+carry+send+miss+well+us.%0ANeed+affect+month+box.+Record+produce+respond+song+let.+Tough+mouth+concern.%0AClear+claim+tree+marriage+enjoy+south.+Social+team+no+word.%0ABy+your+recognize.%0AMyself+provide+certainly.+Author+manager+personal+century+campaign+spring+simple+threat.&link_type=any&name=1685707941_2_suggest&public_description=Management+especially+war+whole.+Might+among+nature+today+gas.&title=For+word+method+nearly+face+all+for+film.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 13-R1NHT_RGwNCh08yGXNfLUYrg5-4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "747" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "458" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1685707941_2_suggest&text=Or+gun+various+end+level.+Direction+rate+through+nothing+own.+Training+leg+plant.&title=Own+line+apply+support+sign+share+crime." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 12-EPPiDgukWMBnmKDK7-fNkmc7sQM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1685707941_2_suggest/comments/9/own_line_apply_support_sign_share_crime/\", \"id\": \"9\", \"name\": \"t3_9\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "167" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "455" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 12-EPPiDgukWMBnmKDK7-fNkmc7sQM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1685707941_2_suggest\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOr gun various end level. Direction rate through nothing own. Training leg plant.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Or gun various end level. Direction rate through nothing own. Training leg plant.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01H1Y0BK8MKZY6TFWNWKHYXEK4\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1685707941_2_suggest\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1685707941_2_suggest/comments/9/own_line_apply_support_sign_share_crime/\", \"locked\": false, \"name\": \"t3_9\", \"created\": 1685707945.0, \"url\": \"http://reddit.local/r/1685707941_2_suggest/comments/9/own_line_apply_support_sign_share_crime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Own line apply support sign share crime.\", \"created_utc\": 1685707945.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1757" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "455" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CEcZZE5ju039dUv%2F5ZYxDsdavwXQBWQ%2B62arZDTkGq2Ty%2FWaz4sx50ura6jJD1iX1GFcS9eA6mX74MsUZ8ouwwQYqER2NQlo" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_9&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 13-R1NHT_RGwNCh08yGXNfLUYrg5-4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "452" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 13-R1NHT_RGwNCh08yGXNfLUYrg5-4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1685707941_2_suggest/about/moderators/?user=01H1Y0BPJPQRG5E7QF9YZKYKR7&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1685707942.0, \"mod_permissions\": [\"all\"], \"name\": \"01H1Y0BPJPQRG5E7QF9YZKYKR7\", \"id\": \"t2_d\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "148" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "452" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=39Oxcc%2BvI08CjR1jPMYoWvvlkRUWXj%2FqN8J324LJ7PjNPoIqk7RaVNr8dCC8yzFz7NM8OtciDECfgrmM4F1NEVis6skD2mEF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1685707941_2_suggest/about/moderators/?user=01H1Y0BPJPQRG5E7QF9YZKYKR7&raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 13-R1NHT_RGwNCh08yGXNfLUYrg5-4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=98PuUn1Srl3pZhO2uz; loidcreated=2023-06-02T12%3A12%3A18.248Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": \"01H1Y0BPJPQRG5E7QF9YZKYKR7\", \"media_embed\": {}, \"subreddit\": \"1685707941_2_suggest\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOr gun various end level. Direction rate through nothing own. Training leg plant.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Or gun various end level. Direction rate through nothing own. Training leg plant.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01H1Y0BK8MKZY6TFWNWKHYXEK4\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1685707941_2_suggest\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_4\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1685707941_2_suggest/comments/9/own_line_apply_support_sign_share_crime/\", \"locked\": false, \"name\": \"t3_9\", \"created\": 1685707945.0, \"url\": \"http://reddit.local/r/1685707941_2_suggest/comments/9/own_line_apply_support_sign_share_crime/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Own line apply support sign share crime.\", \"created_utc\": 1685707945.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1776" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "452" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=AZ637D4y7ytehPPlH65bZbrwszZ9VXg0ZbOxynMDckQLbtO9BEQXlfcNpHIaEfs9qZiQuYpu21CjGbNqYNX8mPLCIH%2BMTqem" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_get_removed_post[user-404].json b/cassettes/channels.views.posts_test.test_get_removed_post[user-404].json deleted file mode 100644 index 17a928913b..0000000000 --- a/cassettes/channels.views.posts_test.test_get_removed_post[user-404].json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2023-06-02T12:12:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.31.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0B3WHKYX2R61K42G005WF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI00C3MTCvXjTfxNQ+MMM30r6ooyw1wdC1NjjDKNVHSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolrkFmMcXRsQbeqUXV0VYpnoWurj5OzkbBoUaOoK0pKSWZSanxmemgMyFcJRqAcFeQ0a2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=K3kCUQXOq63JeN2jHx; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 01-Jun-2025 12:12:04 GMT", - "loidcreated=2023-06-02T12%3A12%3A03.835Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 01-Jun-2025 12:12:04 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0B3WHKYX2R61K42G005WF" - } - }, - { - "recorded_at": "2023-06-02T12:12:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "python-requests/2.31.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0B8NQSE6456XR8YZ32SPA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI01C0MDc8IdvZK9E7xCjKyDPfODXTMLbTMyg6oMFDSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoljmbRoV4Reb6hvumulhmeJV6pnmVpFWYJpcGuoK0pKSWZSanxmemgMyFcJRqAUq/UCO2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01H1Y0B8NQSE6456XR8YZ32SPA" - } - }, - { - "recorded_at": "2023-06-02T12:12:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Phone+new+himself+probably+always+trip+war.+Nature+rate+just+class.%0AStage+mouth+poor+sister+push+stock.+Compare+forget+professor+old+rich+skill+difficult.%0AMiss+start+defense+summer+evening.+True+design+picture+apply.+Thousand+population+example+city.%0AWeight+only+whole+budget+around+born.+Change+thus+attorney+hair+assume+perform+old+check.%0AMuch+best+toward+tonight+animal+magazine.+Course+model+design+establish.&link_type=any&name=1685707927_1_far&public_description=College+baby+reason.+Floor+record+business+anyone+business+agreement.&title=Source+easy+place+cost.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 11-qUWhSCJaKdJR29WKmQAmq9jkPx0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "647" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "473" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1685707927_1_far&text=Position+design+paper+author.+City+most+source+better+usually.+Movie+outside+explain+budget+nice.&title=Rest+mean+lay.+Mean+between+environmental+could." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 10-qifw-_4M7QX5iOzxvmPAEucX2m4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "232" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1685707927_1_far/comments/8/rest_mean_lay_mean_between_environmental_could/\", \"id\": \"8\", \"name\": \"t3_8\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "469" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 10-qifw-_4M7QX5iOzxvmPAEucX2m4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/8/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1685707927_1_far\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPosition design paper author. City most source better usually. Movie outside explain budget nice.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Position design paper author. City most source better usually. Movie outside explain budget nice.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"8\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01H1Y0B3WHKYX2R61K42G005WF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1685707927_1_far\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_3\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1685707927_1_far/comments/8/rest_mean_lay_mean_between_environmental_could/\", \"locked\": false, \"name\": \"t3_8\", \"created\": 1685707931.0, \"url\": \"http://reddit.local/r/1685707927_1_far/comments/8/rest_mean_lay_mean_between_environmental_could/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rest mean lay. Mean between environmental could.\", \"created_utc\": 1685707931.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1795" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "469" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hkz3diKm6xzI1Ij20HaMfb13OmeLGGoR%2FR%2B%2BCZznHA4yPcxkhO60KKKjnDPKvb4t2gRcvQxCi6qRPLfwhCUCvHxmdDEqFdsu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/8/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_8&spam=False" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 11-qUWhSCJaKdJR29WKmQAmq9jkPx0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "32" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/remove/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "466" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/remove/?raw_json=1" - } - }, - { - "recorded_at": "2023-06-02T12:12:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 10-qifw-_4M7QX5iOzxvmPAEucX2m4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=K3kCUQXOq63JeN2jHx; loidcreated=2023-06-02T12%3A12%3A03.835Z" - ], - "User-Agent": [ - "MIT-Open: 0.218.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1685707927_1_far/about/moderators/?user=01H1Y0B3WHKYX2R61K42G005WF&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 02 Jun 2023 12:12:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "466" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vbZoCk0MlpnL6poWaaBK5%2FwEpeOioxN%2FfytbXx58Fyx91bciv%2F8Gn3hWkuGOuC8Wu768B8HNTknUfw3lZKIA7rMU6WqqquqH" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1685707927_1_far/about/moderators/?user=01H1Y0B3WHKYX2R61K42G005WF&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts[False].json b/cassettes/channels.views.posts_test.test_list_posts[False].json deleted file mode 100644 index 1a510d54c2..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts[False].json +++ /dev/null @@ -1,1225 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:50:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKEAG1CFJ4VBJK9C5F9DWV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNrbQNYq0cPONKArK9vQPtAgqcsvIsIxyz3P2DA0yUNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsM82tTNR18y028IsIDPfycyksN9T189R1c/QMBGlKSS3LTE6Nz0wBmQzhKNUCAP1Xp1W6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ljr85aXXq7M1k8MHLm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:50:17 GMT", - "loidcreated=2018-11-16T15%3A50%3A16.809Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:50:17 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKEAG1CFJ4VBJK9C5F9DWV" - } - }, - { - "recorded_at": "2018-11-16T15:50:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKEDTXEBBVVD2RD7516QM2" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQ6CMBREr0K6NJoQG426JILGuLBBhV0Dv79YiIAtEsF4d6nsXM5k3ps3SQDQGN5UBZZk45A5pevZCXfetZX9JfB0ncOhXMkijMDfxj6ZOgRftdJouLIEXbru0P0EvOlqtJYUE43abg1UYzWxSaMcwNvf3YNFJrinuQoXVGSQHaV6snPX72NmIYGtAuRKWPMYyOcLKZcrX7oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKEDTXEBBVVD2RD7516QM2" - } - }, - { - "recorded_at": "2018-11-16T15:50:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Perspiciatis+ut+cum+pariatur+culpa+vitae.+Aperiam+excepturi+officiis+laudantium+aliquam.+Rem+ipsa+ratione+enim.%0AExcepturi+dignissimos+deserunt+quos+odio+earum.+Consequatur+dolores+nesciunt+dolor.+Laboriosam+doloribus+eum+quod+quidem+ut+porro+maiores.%0AReprehenderit+voluptates+iusto+non+dicta+fuga.+Velit+non+laboriosam+non+tenetur+harum+quis+explicabo.+Praesentium+unde+doloribus+in+atque+ipsum.&link_type=any&name=1542383420_dolor&public_description=Ipsa+minima+repellat+sunt.&title=Ut+amet+laudantium+iste+neque+numquam+ex+libero.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2339-PeGBVvfzUFBrpjcJn8fkSWcEDXE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "608" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "580" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEKEAG1CFJ4VBJK9C5F9DWV&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2339-PeGBVvfzUFBrpjcJn8fkSWcEDXE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542383420_dolor/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "577" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383420_dolor/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542383420_dolor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "577" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1542383420_dolor&title=Nemo+nobis+vitae+maxime+maiores+facere+autem.&url=http%3A%2F%2Fcampbell.org%2Fposts%2Fapp%2Fhomepage.php" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "185" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542383420_dolor/comments/bd/nemo_nobis_vitae_maxime_maiores_facere_autem/\", \"id\": \"bd\", \"name\": \"t3_bd\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "577" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bd/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383420_dolor\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bd\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"campbell.org\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/bd/nemo_nobis_vitae_maxime_maiores_facere_autem/\", \"locked\": false, \"name\": \"t3_bd\", \"created\": 1542383423.0, \"url\": \"http://campbell.org/posts/app/homepage.php\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nemo nobis vitae maxime maiores facere autem.\", \"created_utc\": 1542383423.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1417" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "577" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=qq1jD%2BbxI8QGyJf4y0qeElGOWICddgN4QVRP97cKcaPgpP5GWyyS6rskHSPon1iRvYA7g4q4DV5Glcfj%2BlAyINd464Q%2BdXy6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bd/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542383420_dolor&text=Mollitia+totam+ab+doloribus.+Eum+quod+suscipit+eius+nihil+hic+quis+tempore.&title=Rerum+minus+occaecati+accusantium+est." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "200" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"id\": \"be\", \"name\": \"t3_be\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "573" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/be/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383420_dolor\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Mollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"be\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542383420_dolor\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"locked\": false, \"name\": \"t3_be\", \"created\": 1542383427.0, \"url\": \"http://reddit.local/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rerum minus occaecati accusantium est.\", \"created_utc\": 1542383427.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1728" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "573" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nn3Xen76Yov7617IwoovGJY%2BhrZ89R5cgYQEJz7MDtoXy6CUKxMZ29JMARw1lZPVZorwI%2F1vBOfjATNoiLyJTrdT1pLDu%2BHL" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/be/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542383420_dolor/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542383420_dolor\", \"subreddit\": \"1542383420_dolor\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Mollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"be\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"name\": \"t3_be\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"locked\": false, \"stickied\": false, \"created\": 1542383427.0, \"url\": \"http://reddit.local/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rerum minus occaecati accusantium est.\", \"created_utc\": 1542383427.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"campbell.org\", \"subreddit\": \"1542383420_dolor\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bd\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"name\": \"t3_bd\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/bd/nemo_nobis_vitae_maxime_maiores_facere_autem/\", \"locked\": false, \"stickied\": false, \"created\": 1542383423.0, \"url\": \"http://campbell.org/posts/app/homepage.php\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nemo nobis vitae maxime maiores facere autem.\", \"created_utc\": 1542383423.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2818" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=01AbgOZvFqIVHHQ2zy9RIylD%2FtQ0xA3yqCKpyf1L1OPm1vM%2BIkAS9UEZQpkICM7YTp1zV7NGaZsh9zeui0xnOAQXq8JfMtk%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383420_dolor/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/be/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383420_dolor\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Mollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"be\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542383420_dolor\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"locked\": false, \"name\": \"t3_be\", \"created\": 1542383427.0, \"url\": \"http://reddit.local/r/1542383420_dolor/comments/be/rerum_minus_occaecati_accusantium_est/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rerum minus occaecati accusantium est.\", \"created_utc\": 1542383427.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1728" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ztpRzlMFtOH7%2F%2F0k2v59bCgFom4ljnWpT8ihKEm2BUGukhJbnrCRCheqGN6AZOHSd60ZPrhuDH8qkwCboPdSVVPfvNhhSb6%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/be/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542383420_dolor/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"68\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542383420_dolor\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerspiciatis ut cum pariatur culpa vitae. Aperiam excepturi officiis laudantium aliquam. Rem ipsa ratione enim.\\nExcepturi dignissimos deserunt quos odio earum. Consequatur dolores nesciunt dolor. Laboriosam doloribus eum quod quidem ut porro maiores.\\nReprehenderit voluptates iusto non dicta fuga. Velit non laboriosam non tenetur harum quis explicabo. Praesentium unde doloribus in atque ipsum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Ut amet laudantium iste neque numquam ex libero.\", \"collapse_deleted_comments\": false, \"public_description\": \"Ipsa minima repellat sunt.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa minima repellat sunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Perspiciatis ut cum pariatur culpa vitae. Aperiam excepturi officiis laudantium aliquam. Rem ipsa ratione enim.\\nExcepturi dignissimos deserunt quos odio earum. Consequatur dolores nesciunt dolor. Laboriosam doloribus eum quod quidem ut porro maiores.\\nReprehenderit voluptates iusto non dicta fuga. Velit non laboriosam non tenetur harum quis explicabo. Praesentium unde doloribus in atque ipsum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_68\", \"created\": 1542383420.0, \"url\": \"/r/1542383420_dolor/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542383420.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2213" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=1HctL9mv7vf3xElhA6PGlQ%2FJ6EgwQkKFOlP0i9%2FuEcnQcSpLPyGG%2FGboZOEJBilejS%2BFG6m6lsgpOEVYZrxcEywPdGMWINfH" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383420_dolor/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bd/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383420_dolor\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bd\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKEAG1CFJ4VBJK9C5F9DWV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"campbell.org\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_68\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1542383420_dolor/comments/bd/nemo_nobis_vitae_maxime_maiores_facere_autem/\", \"locked\": false, \"name\": \"t3_bd\", \"created\": 1542383423.0, \"url\": \"http://campbell.org/posts/app/homepage.php\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nemo nobis vitae maxime maiores facere autem.\", \"created_utc\": 1542383423.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1417" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=LgRlGsLnS7pS3x4DBzj9kJ8SoJDnFQtpqYWIG0Fal%2BUZ32PdXUiLxC%2Fpy%2FjMCDvJIVHEn5WbRC7NSqIDNai8NYEreiXzg5N0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bd/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:50:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2338-2Y8FMXrRkIOQ8RrFhh9ZGnCIUR0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ljr85aXXq7M1k8MHLm; loidcreated=2018-11-16T15%3A50%3A16.809Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542383420_dolor/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"68\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542383420_dolor\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerspiciatis ut cum pariatur culpa vitae. Aperiam excepturi officiis laudantium aliquam. Rem ipsa ratione enim.\\nExcepturi dignissimos deserunt quos odio earum. Consequatur dolores nesciunt dolor. Laboriosam doloribus eum quod quidem ut porro maiores.\\nReprehenderit voluptates iusto non dicta fuga. Velit non laboriosam non tenetur harum quis explicabo. Praesentium unde doloribus in atque ipsum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Ut amet laudantium iste neque numquam ex libero.\", \"collapse_deleted_comments\": false, \"public_description\": \"Ipsa minima repellat sunt.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa minima repellat sunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Perspiciatis ut cum pariatur culpa vitae. Aperiam excepturi officiis laudantium aliquam. Rem ipsa ratione enim.\\nExcepturi dignissimos deserunt quos odio earum. Consequatur dolores nesciunt dolor. Laboriosam doloribus eum quod quidem ut porro maiores.\\nReprehenderit voluptates iusto non dicta fuga. Velit non laboriosam non tenetur harum quis explicabo. Praesentium unde doloribus in atque ipsum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_68\", \"created\": 1542383420.0, \"url\": \"/r/1542383420_dolor/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542383420.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2213" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:50:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "570" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=O3PwOArn%2FItucWz0ieiKVh3qxM1yDJ9qTxm9xoVbSQuDBmCtG2tMHczmKeo%2FEKmYdxJNPq3fJOPyvz3RTR1YqgevySXYtek0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383420_dolor/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts[True].json b/cassettes/channels.views.posts_test.test_list_posts[True].json deleted file mode 100644 index c9ef78b496..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts[True].json +++ /dev/null @@ -1,869 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:05:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHS95X8CGG3RV7QAA9NPGM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMdI1S83IcA0MMvQMyUsr9oosSTGICnMrdi5OL0xW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZaLZ5ZPmWmpVUmAaWZCSXR6WFpboEJQWUppU4WoD0pKSWZSanxmemgAyGcJRqAT85xTa4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:21 GMT", - "loidcreated=2018-08-24T18%3A05%3A21.448Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHS95X8CGG3RV7QAA9NPGM" - } - }, - { - "recorded_at": "2018-08-24T18:05:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Sint+rerum+eligendi+illo+rem.+Tempora+deleniti+repellat+maiores+possimus+unde.+Facilis+consectetur+dolorum+labore+labore+magni.+Consequuntur+autem+saepe+dolore+corporis+qui.%0ARepellat+voluptates+dolore+alias+rerum+aliquid.+Consequatur+atque+quas+optio+similique+ullam+sequi+minus+corporis.+Mollitia+sed+dolor+voluptates+nemo+placeat+sit.+Occaecati+sint+exercitationem+vero+fugiat+corporis.&link_type=any&name=1535133921_dicta&public_description=In+explicabo+accusantium+temporibus.+Voluptate+quos+consequatur+ipsam+tempore.&title=Quo+id+rem+reprehenderit+beatae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 242-6ehhEQR1ITnfsJYtd0ZVFsCsgqc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "635" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHSFHDYCDW5NC6W89RWMV9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMdZ1t8xNzXD1C9Q1TK5yMw/0iCx3SvfVLXLPd8xW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFRhl7+ielmoYHJpW7VJYUu3n4+sQHGReZFOWD9KSklmUmp8ZnpoAMhnCUagFsEFEjuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHSFHDYCDW5NC6W89RWMV9" - } - }, - { - "recorded_at": "2018-08-24T18:05:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHSFHDYCDW5NC6W89RWMV9&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 242-6ehhEQR1ITnfsJYtd0ZVFsCsgqc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133921_dicta/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "272" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133921_dicta/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133921_dicta" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "272" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1535133921_dicta&title=Perferendis+accusamus+quo+asperiores+sunt.&url=https%3A%2F%2Fchapman.com%2F" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133921_dicta/comments/1h/perferendis_accusamus_quo_asperiores_sunt/\", \"id\": \"1h\", \"name\": \"t3_1h\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "272" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1h/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133921_dicta\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHSFHDYCDW5NC6W89RWMV9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"chapman.com\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1535133921_dicta/comments/1h/perferendis_accusamus_quo_asperiores_sunt/\", \"locked\": false, \"name\": \"t3_1h\", \"created\": 1535133928.0, \"url\": \"https://chapman.com/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perferendis accusamus quo asperiores sunt.\", \"created_utc\": 1535133928.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1388" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "272" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CSxNw46iPYOXbA6KUuiRaWK2cB1yMFyWlAySsO8MdXZOI7pWx7oZo9Ney9IpWmKwSM1svrO9%2FDUBortzzEEOQXMpOz6%2FeAZP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1h/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535133921_dicta&text=Sed+officia+tenetur+vel+vero+dolor+voluptatibus+repellendus.+Ut+minus+veniam+vitae+porro+at+ut+sed.&title=Atque+vero+veritatis+quibusdam+nobis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "223" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535133921_dicta/comments/1i/atque_vero_veritatis_quibusdam_nobis/\", \"id\": \"1i\", \"name\": \"t3_1i\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "269" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/1i/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535133921_dicta\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed officia tenetur vel vero dolor voluptatibus repellendus. Ut minus veniam vitae porro at ut sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sed officia tenetur vel vero dolor voluptatibus repellendus. Ut minus veniam vitae porro at ut sed.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1i\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHSFHDYCDW5NC6W89RWMV9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535133921_dicta\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133921_dicta/comments/1i/atque_vero_veritatis_quibusdam_nobis/\", \"locked\": false, \"name\": \"t3_1i\", \"created\": 1535133931.0, \"url\": \"http://reddit.local/r/1535133921_dicta/comments/1i/atque_vero_veritatis_quibusdam_nobis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Atque vero veritatis quibusdam nobis.\", \"created_utc\": 1535133931.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "269" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=maYAb5tYqgxBEKcgi7NXpYGUbcgwfB0bDK40Rd0vYg7mBFUJZBVkm2sdWMbhcjck0p3tHkRpi9HvH16w7qTBoIU1gvUc7Cd1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/1i/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:05:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 243-G9mehENQ-1czF7QHYwBgM-rGoAk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CQeSUgAHSDwOZdKU0n; loidcreated=2018-08-24T18%3A05%3A21.448Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133921_dicta/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1535133921_dicta\", \"subreddit\": \"1535133921_dicta\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESed officia tenetur vel vero dolor voluptatibus repellendus. Ut minus veniam vitae porro at ut sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sed officia tenetur vel vero dolor voluptatibus repellendus. Ut minus veniam vitae porro at ut sed.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1i\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHSFHDYCDW5NC6W89RWMV9\", \"media\": null, \"name\": \"t3_1i\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535133921_dicta/comments/1i/atque_vero_veritatis_quibusdam_nobis/\", \"locked\": false, \"stickied\": false, \"created\": 1535133931.0, \"url\": \"http://reddit.local/r/1535133921_dicta/comments/1i/atque_vero_veritatis_quibusdam_nobis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Atque vero veritatis quibusdam nobis.\", \"created_utc\": 1535133931.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"chapman.com\", \"subreddit\": \"1535133921_dicta\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"1h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPHSFHDYCDW5NC6W89RWMV9\", \"media\": null, \"name\": \"t3_1h\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_1w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1535133921_dicta/comments/1h/perferendis_accusamus_quo_asperiores_sunt/\", \"locked\": false, \"stickied\": false, \"created\": 1535133928.0, \"url\": \"https://chapman.com/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perferendis accusamus quo asperiores sunt.\", \"created_utc\": 1535133928.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2834" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ai7Z1goW%2FZteg5d5ftUU9XWXhmMmb3Zx8WmuqGMAupnjQvpNC%2F%2Fgjsp0LWO1%2FbnQsqAH3L%2FO7nNHFGy1ng5b2Hn4ZTL7NJ89" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133921_dicta/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_anonymous.json b/cassettes/channels.views.posts_test.test_list_posts_anonymous.json deleted file mode 100644 index 9fa8dc1d00..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_anonymous.json +++ /dev/null @@ -1,756 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:12:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH94K2VZV9QZAFC2EQKWKM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjLS9cmyrArTLYqIKKkMyS/3KjJ3zEl0jM8PNMrJV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsSwz2dg8JTPJwdQqIcPbwCHB1Dnf1tDQzNQ03AWlKSS3LTE6Nz0wBmQzhKNUCAE8XIjC6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:12:30 GMT", - "loidcreated=2018-11-16T15%3A12%3A29.782Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:12:30 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH94K2VZV9QZAFC2EQKWKM" - } - }, - { - "recorded_at": "2018-11-16T15:12:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ullam+possimus+voluptate+voluptas+harum+expedita.+Recusandae+ullam+laboriosam+voluptatem+ea+vel+error+perferendis.+Doloremque+veniam+quaerat+quae+odit.+Vero+iusto+ullam+cupiditate+et+ducimus+consequuntur.%0AReiciendis+ratione+laborum+facilis+sint.+Quibusdam+enim+repudiandae+unde+reprehenderit+maiores+at.+Possimus+iure+nesciunt+sed+laboriosam+fugit+delectus+rerum+sapiente.+Rerum+ex+illo+repellendus+nisi+repellendus+consequatur+enim+tempora.&link_type=any&name=1542381150_et&public_description=Molestiae+iure+ab+nobis+iure.&title=Possimus+consectetur+ex+assumenda+non.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2322-Lj9zV-rXXtyTowJr7AlaA_oQ2lo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "641" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "450" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CBFJMB9PD3JP17KAX3E5JQ46" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQuCMBzFv4rsGAlDXUG3MDxkBB1i2GVs8z8azjY2sST67rk8dXw/3u+9N+JSQghssB080C5BWYHTvC8F4Wcne4MJzZTA9XY86WAIRusEwctpD4HpKOQbjGf289kwOYgjArgHH7tB2gWtYvKgZvH+/0Y786xs2TVTejxcb3WlGrUvFNXuEp0WRi2B6TYOLwF9vk6qE864AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CBFJMB9PD3JP17KAX3E5JQ46" - } - }, - { - "recorded_at": "2018-11-16T15:12:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1542381150_et&title=Recusandae+iusto+dolores+vitae+quia+corrupti.&url=http%3A%2F%2Fpacheco-wheeler.com%2Flist%2Fsearch%2Fcategory%2Fterms%2F" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 240-3mCb5aNpcml05W2fb0K7vLisl50" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "198" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381150_et/comments/b9/recusandae_iusto_dolores_vitae_quia_corrupti/\", \"id\": \"b9\", \"name\": \"t3_b9\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "447" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 240-3mCb5aNpcml05W2fb0K7vLisl50" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b9/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381150_et\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBFJMB9PD3JP17KAX3E5JQ46\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"pacheco-wheeler.com\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_60\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1542381150_et/comments/b9/recusandae_iusto_dolores_vitae_quia_corrupti/\", \"locked\": false, \"name\": \"t3_b9\", \"created\": 1542381153.0, \"url\": \"http://pacheco-wheeler.com/list/search/category/terms/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Recusandae iusto dolores vitae quia corrupti.\", \"created_utc\": 1542381153.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1430" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "447" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pArDFQ9St4Z5hd3tsFvOkGdFjRwhqZunm43Caqaj%2F3%2FDawTB2eQaTpzNH185YfdZJr3OnPtlaFzF%2F0wGlchw%2BwgFhohupjLj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b9/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=client_credentials" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic b2RfY2xpZW50X2lkOm9kX2NsaWVudF9zZWNyZXQ=" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "29" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"-vZvLP2Rz0G5Z-WSG8FYCBhJwv4g\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "444" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2018-11-16T15:12:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -vZvLP2Rz0G5Z-WSG8FYCBhJwv4g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381150_et/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"pacheco-wheeler.com\", \"subreddit\": \"1542381150_et\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBFJMB9PD3JP17KAX3E5JQ46\", \"media\": null, \"name\": \"t3_b9\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_60\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": false, \"hide_score\": true, \"permalink\": \"/r/1542381150_et/comments/b9/recusandae_iusto_dolores_vitae_quia_corrupti/\", \"locked\": false, \"stickied\": false, \"created\": 1542381153.0, \"url\": \"http://pacheco-wheeler.com/list/search/category/terms/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Recusandae iusto dolores vitae quia corrupti.\", \"created_utc\": 1542381153.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1309" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "444" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=z54JwVQobkTPjlX7Q3rgHqwb894NSXbUxQhXPJarP%2FbiSUy%2FERhEVPAWrnKi8GGHO3Vna1AagVKIQ2thpfca57LqISJRBq7b" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381150_et/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -vZvLP2Rz0G5Z-WSG8FYCBhJwv4g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b9/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381150_et\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CBFJMB9PD3JP17KAX3E5JQ46\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"pacheco-wheeler.com\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_60\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": true, \"permalink\": \"/r/1542381150_et/comments/b9/recusandae_iusto_dolores_vitae_quia_corrupti/\", \"locked\": false, \"name\": \"t3_b9\", \"created\": 1542381153.0, \"url\": \"http://pacheco-wheeler.com/list/search/category/terms/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Recusandae iusto dolores vitae quia corrupti.\", \"created_utc\": 1542381153.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1425" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "444" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jdlbdeMamXy6VQ8JFBVZGTDlEUVbnHV3KkhnAzXQ%2BfxB4ohhRybr0rBddFrg8yXlqacXmqphNi5MeRP%2B2dUJ3TBmtxPhkHe9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b9/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer -vZvLP2Rz0G5Z-WSG8FYCBhJwv4g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=S7Wp48hKGKG1dxzXSd; loidcreated=2018-11-16T15%3A12%3A29.782Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381150_et/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": null, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"60\", \"user_is_contributor\": null, \"submit_text\": \"\", \"display_name\": \"1542381150_et\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUllam possimus voluptate voluptas harum expedita. Recusandae ullam laboriosam voluptatem ea vel error perferendis. Doloremque veniam quaerat quae odit. Vero iusto ullam cupiditate et ducimus consequuntur.\\nReiciendis ratione laborum facilis sint. Quibusdam enim repudiandae unde reprehenderit maiores at. Possimus iure nesciunt sed laboriosam fugit delectus rerum sapiente. Rerum ex illo repellendus nisi repellendus consequatur enim tempora.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Possimus consectetur ex assumenda non.\", \"collapse_deleted_comments\": false, \"public_description\": \"Molestiae iure ab nobis iure.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestiae iure ab nobis iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ullam possimus voluptate voluptas harum expedita. Recusandae ullam laboriosam voluptatem ea vel error perferendis. Doloremque veniam quaerat quae odit. Vero iusto ullam cupiditate et ducimus consequuntur.\\nReiciendis ratione laborum facilis sint. Quibusdam enim repudiandae unde reprehenderit maiores at. Possimus iure nesciunt sed laboriosam fugit delectus rerum sapiente. Rerum ex illo repellendus nisi repellendus consequatur enim tempora.\", \"user_is_muted\": null, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 1, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_60\", \"created\": 1542381150.0, \"url\": \"/r/1542381150_et/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381150.0, \"banner_size\": null, \"user_is_moderator\": null, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"public\", \"submission_type\": \"any\", \"user_is_subscriber\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2289" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296" - ], - "x-ratelimit-reset": [ - "444" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ws%2BIxLuhZUO1B7iNwM%2BbSS2zRsCvo08NNHH4IfTrbi37zSpUKMBe2tTLD1IeeT%2FHh53iwCloAvG3gvWRcNCHgm0CDzHfb%2F3A" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381150_et/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_forbidden.json b/cassettes/channels.views.posts_test.test_list_posts_forbidden.json deleted file mode 100644 index 59f4d57619..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_forbidden.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T16:48:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdfNME4N9C/yrgxyzSzM8vFJiTc188xxy3B3y81X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5VXpa6AYmp3iFuGSnx4cnGhlHpoWWRnlUBoaC9KSklmUmp8ZnpoAMhnCUagEOblduuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:48:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=BByRu5IdZi6EvtND32; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:48:31 GMT", - "loidcreated=2017-11-06T16%3A48%3A31.297Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:48:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-06T16:48:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157-h3eQOrKyREiqjLLd_56IlFhGFmo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=BByRu5IdZi6EvtND32; loidcreated=2017-11-06T16%3A48%3A31.297Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/my_channel2/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:48:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sFuXWBx5l9yaVXE%2BWpF8H2ST6uAWvWk4WNwCjNwnXl1axDj91rZrRbSKvrPY7Q3TwSfGyHZTh19Kz%2BeFXOTSY3XJ%2B8ZGgEzY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/r/my_channel2/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_none.json b/cassettes/channels.views.posts_test.test_list_posts_none.json deleted file mode 100644 index 6ca21238b7..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_none.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:05:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHT93ADNADTD7RQMX622SA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMdPN83QKS/UwzPVy94mMiA81ccwNKC9PdwvPdPNV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZ+VZ4RaTnFhmV5bg7RmUHhORYRroVJCcH+3mC9KSklmUmp8ZnpoAMhnCUagECSc6VuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=9MWYifalKRafrSZHaD; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:54 GMT", - "loidcreated=2018-08-24T18%3A05%3A54.125Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:05:54 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHT93ADNADTD7RQMX622SA" - } - }, - { - "recorded_at": "2018-08-24T18:05:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Expedita+quisquam+quos+delectus.+Velit+suscipit+ab+magni+amet+modi.%0ATempore+placeat+veniam+dignissimos+autem.+Est+ipsum+maiores+dolore+minima+reiciendis+quibusdam+provident.+Dolore+doloribus+molestias+hic+temporibus+corporis.+Quasi+facere+quam+omnis+esse.%0ASoluta+sapiente+ipsa+voluptatibus+sint.+Perspiciatis+quod+est+cupiditate+expedita+at.+Nam+amet+dolorum+labore+iusto+reiciendis.+Enim+atque+repellat+dolor+accusantium.&link_type=any&name=1535133954_inventore&public_description=Officiis+quas+doloremque+ex+recusandae.+Eius+consequatur+aperiam+cumque+odio+reiciendis+eius.&title=Sed+exercitationem+mollitia+aliquid+quae+aliquid.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 246-nIBVeH1mJGLYX_U4AmPwwgFWiFM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "707" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9MWYifalKRafrSZHaD; loidcreated=2018-08-24T18%3A05%3A54.125Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:05:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:06:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9MWYifalKRafrSZHaD; loidcreated=2018-08-24T18%3A05%3A54.125Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHTFDN4EKS392BZ8WJED67" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMdf1iggtdI3PLAoK8M6oMHJLcXLKLzSwrAqvikpX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZGZr4u2WnBVt6ZkVZZBWGeZiHpBclmueFGBSD9KSklmUmp8ZnpoAMhnCUagFN5s4LuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:06:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPHTFDN4EKS392BZ8WJED67" - } - }, - { - "recorded_at": "2018-08-24T18:06:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPHTFDN4EKS392BZ8WJED67&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 246-nIBVeH1mJGLYX_U4AmPwwgFWiFM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9MWYifalKRafrSZHaD; loidcreated=2018-08-24T18%3A05%3A54.125Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535133954_inventore/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:06:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "240" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133954_inventore/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:06:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535133954_inventore" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 247-JXUqE_irRPKhx2FdBBoq09zWzZg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9MWYifalKRafrSZHaD; loidcreated=2018-08-24T18%3A05%3A54.125Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:06:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "239" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:06:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 247-JXUqE_irRPKhx2FdBBoq09zWzZg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9MWYifalKRafrSZHaD; loidcreated=2018-08-24T18%3A05%3A54.125Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535133954_inventore/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "93" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:06:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "239" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0vPHg%2Ft0QHnUdt6DkKcHrHkgh7fnFoc0A32C4qmzm%2FKsMc8vwETJxVizcs66fEHWKCpZMOyfvLpKYxeyp74nftaliPc32w3J" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535133954_inventore/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_not_found.json b/cassettes/channels.views.posts_test.test_list_posts_not_found.json deleted file mode 100644 index 87fabad64a..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_not_found.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T16:48:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQuCMBzFv4rsGAlarqBbF3E7BIFQt6Hz75xhG5ubSfTdc3nq+H6833tvVHEO1rJRPeCJThFK8TGOfZ45wpWoMizqCdOh3DVSd9fyjLYRgpeWBiyTQdgfkmRhP5+Ns4YwUkNlwISu5WpFm5AMtIvY/b9Nc0rorfduuOcU27aITSIujvQqC04DXnJgsgnDa0CfL9WSZAK4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:48:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=BJnPadlIuEBQCWLokB; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:48:42 GMT", - "loidcreated=2017-11-06T16%3A48%3A42.231Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 16:48:42 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - }, - { - "recorded_at": "2017-11-06T16:48:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 157--vF4uIcoga45gbw5JmT2diphQTA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=BJnPadlIuEBQCWLokB; loidcreated=2017-11-06T16%3A48%3A42.231Z" - ], - "User-Agent": [ - "MIT-Open: 0.3.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/missing/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "\n \n 302 Found\n \n \n

302 Found

\n The resource was found at https://reddit.local/subreddits/search?q=missing;\nyou should be redirected automatically.\n\n\n \n" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "279" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 16:48:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "location": [ - "https://reddit.local/subreddits/search?q=missing" - ] - }, - "status": { - "code": 302, - "message": "Found" - }, - "url": "https://reddit.local/r/missing/hot?count=0&limit=25&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination[params0-expected0].json b/cassettes/channels.views.posts_test.test_list_posts_pagination[params0-expected0].json deleted file mode 100644 index 9a9f5f963e..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination[params0-expected0].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T15:42:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQZSBF97ac1C1CqFbkK9uWJabWoSQqv47zZ25XIOc2bepARAa4XTNTZkHZE4XlG5yPuNLoBTKakvtu5xSrIjvLhmZBoR7Fpl0AoVhNmcsYH9fOH6FsPIBUuDJnQt6BFNQjJ4HcTb/9uhqfLn3fFkWVa5SPbU+abT6Tnb1cGR6BWgUDIMj4F8vrox2Wy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=cHjgedyBMUbzYefXq4; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:08 GMT", - "loidcreated=2017-10-06T15%3A42%3A08.718Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:08 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T15:42:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-QnjWqltJG8ajW_GP-tvnxoHUSNk" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=cHjgedyBMUbzYefXq4; loidcreated=2017-10-06T15%3A42%3A08.718Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-Z8zu5RjUl60wfTpg2pMOAyiupEk\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "472" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T15:42:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-Z8zu5RjUl60wfTpg2pMOAyiupEk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=cHjgedyBMUbzYefXq4; loidcreated=2017-10-06T15%3A42%3A08.718Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/ten_posts/hot?count=0&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_u\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/u/post_ten/\", \"locked\": false, \"stickied\": false, \"created\": 1507304083.0, \"url\": \"http://reddit.local/r/ten_posts/comments/u/post_ten/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post ten\", \"created_utc\": 1507304083.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_t\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/t/post_nine/\", \"locked\": false, \"stickied\": false, \"created\": 1507304075.0, \"url\": \"http://reddit.local/r/ten_posts/comments/t/post_nine/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post nine\", \"created_utc\": 1507304075.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_s\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/s/post_eight/\", \"locked\": false, \"stickied\": false, \"created\": 1507304068.0, \"url\": \"http://reddit.local/r/ten_posts/comments/s/post_eight/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post eight\", \"created_utc\": 1507304068.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_r\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/r/post_seven/\", \"locked\": false, \"stickied\": false, \"created\": 1507304060.0, \"url\": \"http://reddit.local/r/ten_posts/comments/r/post_seven/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post seven\", \"created_utc\": 1507304060.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_q\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/q/post_six/\", \"locked\": false, \"stickied\": false, \"created\": 1507304054.0, \"url\": \"http://reddit.local/r/ten_posts/comments/q/post_six/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post six\", \"created_utc\": 1507304054.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_q\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "5643" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "472" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SbNa9GvM5c0X7oZFnvTpDBJ7QIlhhI%2BjUZrPEd4C6i7kzr0dUz7I66k0HV%2FqpydsDBzZ7IjXawVWG%2F3cn0XTq2CzM0nTOj8U" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/ten_posts/hot?limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination[params1-expected1].json b/cassettes/channels.views.posts_test.test_list_posts_pagination[params1-expected1].json deleted file mode 100644 index 62734a602e..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination[params1-expected1].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T15:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0tNQNK0rPjsgwznYu98pP9LXICs/2ywjwsYgI9ihW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5eHolRZbkBYWEhEdaGoXk5keaFvsZGxZGeJiA9KSklmUmp8ZnpoAMhnCUagHYMQ+cuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=tRkS9TNeR1txNsP3v3; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:38 GMT", - "loidcreated=2017-10-06T15%3A42%3A38.049Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:38 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T15:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-HIJbYtnRTTWY92TmoY5sN31qXH4" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=tRkS9TNeR1txNsP3v3; loidcreated=2017-10-06T15%3A42%3A38.049Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-nXEeO-MMeCiMbk28JCUHGwmdkZM\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "3" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T15:42:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-nXEeO-MMeCiMbk28JCUHGwmdkZM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=tRkS9TNeR1txNsP3v3; loidcreated=2017-10-06T15%3A42%3A38.049Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/ten_posts/hot?after=t3_q&count=5&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/p/post_five/\", \"locked\": false, \"stickied\": false, \"created\": 1507304047.0, \"url\": \"http://reddit.local/r/ten_posts/comments/p/post_five/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post five\", \"created_utc\": 1507304047.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_o\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/o/post_four/\", \"locked\": false, \"stickied\": false, \"created\": 1507304025.0, \"url\": \"http://reddit.local/r/ten_posts/comments/o/post_four/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post four\", \"created_utc\": 1507304025.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_n\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/n/post_three/\", \"locked\": false, \"stickied\": false, \"created\": 1507304018.0, \"url\": \"http://reddit.local/r/ten_posts/comments/n/post_three/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post three\", \"created_utc\": 1507304018.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_m\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/m/post_two/\", \"locked\": false, \"stickied\": false, \"created\": 1507304011.0, \"url\": \"http://reddit.local/r/ten_posts/comments/m/post_two/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post two\", \"created_utc\": 1507304011.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_l\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/l/post_one/\", \"locked\": false, \"stickied\": false, \"created\": 1507304002.0, \"url\": \"http://reddit.local/r/ten_posts/comments/l/post_one/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post one\", \"created_utc\": 1507304002.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_l\", \"before\": \"t3_p\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "5642" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "442" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=x384heTAitFMrHiiDQHhNRSBiM9jHLdvdTqU5fwWQWtWeBijx%2BUTDxpV6pvcszLnemRqsgPdAOoHrt3kU6yyINHmWw4nSOZy" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/ten_posts/hot?after=t3_q&count=5&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination[params2-expected2].json b/cassettes/channels.views.posts_test.test_list_posts_pagination[params2-expected2].json deleted file mode 100644 index 331f5d6131..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination[params2-expected2].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T15:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0tNR19k0pqfAutcgrTzX1NkwNzQ53TgkyM/PPSkpX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5RpXml+ZHhvtEFJcX+eWZJ0WGV4UXm+Qmm/uC9KSklmUmp8ZnpoAMhnCUagGzVjkquAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ftWe2Wm8fCCu1uwqPL; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:23 GMT", - "loidcreated=2017-10-06T15%3A42%3A23.371Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 15:42:23 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T15:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-AZuouoYWLXswrNn7bYWzWs4mc7M" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ftWe2Wm8fCCu1uwqPL; loidcreated=2017-10-06T15%3A42%3A23.371Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-Cb01Zg4sU8LppGiXQKoK07FaFms\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "2" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T15:42:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-Cb01Zg4sU8LppGiXQKoK07FaFms" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ftWe2Wm8fCCu1uwqPL; loidcreated=2017-10-06T15%3A42%3A23.371Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/ten_posts/hot?after=t3_s&count=3&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_r\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/r/post_seven/\", \"locked\": false, \"stickied\": false, \"created\": 1507304060.0, \"url\": \"http://reddit.local/r/ten_posts/comments/r/post_seven/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post seven\", \"created_utc\": 1507304060.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_q\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/q/post_six/\", \"locked\": false, \"stickied\": false, \"created\": 1507304054.0, \"url\": \"http://reddit.local/r/ten_posts/comments/q/post_six/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post six\", \"created_utc\": 1507304054.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_p\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/p/post_five/\", \"locked\": false, \"stickied\": false, \"created\": 1507304047.0, \"url\": \"http://reddit.local/r/ten_posts/comments/p/post_five/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post five\", \"created_utc\": 1507304047.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_o\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/o/post_four/\", \"locked\": false, \"stickied\": false, \"created\": 1507304025.0, \"url\": \"http://reddit.local/r/ten_posts/comments/o/post_four/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post four\", \"created_utc\": 1507304025.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_n\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/n/post_three/\", \"locked\": false, \"stickied\": false, \"created\": 1507304018.0, \"url\": \"http://reddit.local/r/ten_posts/comments/n/post_three/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post three\", \"created_utc\": 1507304018.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_n\", \"before\": \"t3_r\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "5648" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 15:42:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Gv4QrVoGhMwV0zRlNqgLGhdHjPQ1kYBGY%2ByCrBjTV2YGVWFWYYPQ2LvmPcNem%2B1A9PsJiRt9Jz1Yw17xEjp5ZnUS5DwlpqkE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/ten_posts/hot?after=t3_s&count=3&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination[params3-expected3].json b/cassettes/channels.views.posts_test.test_list_posts_pagination[params3-expected3].json deleted file mode 100644 index deca036431..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination[params3-expected3].json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-10-06T16:47:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0tNTN8Ut1KvQOczMMLKkMNnNL8UpyTY6ICI0oD3JV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlWJQ6ehqnRHpnGFZYehSa5rlFBXqUuBiGBPmC9KSklmUmp8ZnpoAMhnCUagGJGkmZuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:47:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=0nzD2OP9IzjCSmVt81; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:47:26 GMT", - "loidcreated=2017-10-06T16%3A47%3A26.413Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 06-Oct-2019 16:47:26 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BV2FFY6JKZ4A420B424G6V7E" - } - }, - { - "recorded_at": "2017-10-06T16:47:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "grant_type=refresh_token&refresh_token=119-h8uAI3dYKh1x9Hq5nFZQHtD1TRM" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "Basic a0FTa3pjWi1sNE9GZ2c6TU53LXlnM3ZlaVRBTS1vdmlvYzhZTjJpN2dn" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "70" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0nzD2OP9IzjCSmVt81; loidcreated=2017-10-06T16%3A47%3A26.413Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/v1/access_token" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"access_token\": \"119-tBunXSxVsbUjvTRZor0uCIi4ji8\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "109" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:47:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299" - ], - "x-ratelimit-reset": [ - "154" - ], - "x-ratelimit-used": [ - "1" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/access_token" - } - }, - { - "recorded_at": "2017-10-06T16:47:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 119-tBunXSxVsbUjvTRZor0uCIi4ji8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=0nzD2OP9IzjCSmVt81; loidcreated=2017-10-06T16%3A47%3A26.413Z" - ], - "User-Agent": [ - "MIT-Open: 0.0.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/ten_posts/hot?before=t3_r&count=6&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_u\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/u/post_ten/\", \"locked\": false, \"stickied\": false, \"created\": 1507304083.0, \"url\": \"http://reddit.local/r/ten_posts/comments/u/post_ten/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post ten\", \"created_utc\": 1507304083.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_t\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/t/post_nine/\", \"locked\": false, \"stickied\": false, \"created\": 1507304075.0, \"url\": \"http://reddit.local/r/ten_posts/comments/t/post_nine/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post nine\", \"created_utc\": 1507304075.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.ten_posts\", \"subreddit\": \"ten_posts\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"reddit\", \"media\": null, \"name\": \"t3_s\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": true, \"permalink\": \"/r/ten_posts/comments/s/post_eight/\", \"locked\": false, \"stickied\": false, \"created\": 1507304068.0, \"url\": \"http://reddit.local/r/ten_posts/comments/s/post_eight/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"post eight\", \"created_utc\": 1507304068.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_s\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "3423" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 06 Oct 2017 16:47:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "154" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=exEGBNUZvV%2FKycG2zqOX9%2FqHvuiqeSG%2Bt7Ev57Aj3tjbqtjDNM030jHMySNiCyYHQDpYYUMhGZexvTyq2TwHuhU40%2BG2hlAD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/ten_posts/hot?before=t3_r&count=6&limit=5&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json b/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json deleted file mode 100644 index 3701f020b7..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json +++ /dev/null @@ -1,4112 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:08:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH23W7DSM2XAT1TV0KT1JP" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NwQqCQBRFf0XeMhI0R8t2Bi0qIiGo5WAzT53K1DeDKNG/5+Su5b3cc+4bMiFQa27qB75g7cAi8Jl7vFbJhQyely4Pc0k7vzvtWZyXsYC5A9g3ilBzZYkg8ryx+wm4GRq0lhtmhGS3WtRTNbOJMB/B8u+O9ZF/j3T4rLas2qyK4pCmrW5xoMRCEjslkCtpzVOAzxel+wSJugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=m58mxsYeeuMBDSyxXh; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:08:39 GMT", - "loidcreated=2018-11-16T15%3A08%3A39.573Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:08:39 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH23W7DSM2XAT1TV0KT1JP" - } - }, - { - "recorded_at": "2018-11-16T15:08:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH275GR7P40XCZ0SV20B15" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjTVjSh3Dyt29TQwc87Nck72yM0wjvLzdMsNNDYxUNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsM3VOzIlKNbMsiPCvcEnMr8x3TAopDHJzL0yKBGlKSS3LTE6Nz0wBmQzhKNUCAEWJsAy6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH275GR7P40XCZ0SV20B15" - } - }, - { - "recorded_at": "2018-11-16T15:08:43", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Porro+molestiae+odit+eligendi+sint+illum+sint+repellat+earum.+Aliquid+omnis+quidem+ad+recusandae+in+blanditiis.%0ALabore+quasi+tenetur+quae+earum+eligendi+velit.+Dolores+ad+labore+asperiores+et+repellendus.+Facere+saepe+ullam+odit+laudantium.+Expedita+ex+non+iste+explicabo.%0AIpsum+laboriosam+dolor+suscipit+eaque+perspiciatis+nam+dolore+eligendi.+Molestiae+minus+odio+temporibus+repellat+quasi+cumque+quod+esse.+Ratione+eius+repellat+ipsa+dolorum.&link_type=any&name=1542380923_nihil&public_description=Incidunt+eaque+voluptate+ipsum+beatae+possimus+voluptatum.&title=Fugiat+rerum+accusamus+debitis+quam+minus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2315-XwGVsEI06CmjCcHmh3ZNIFmQ340" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "684" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:43 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "77" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH23W7DSM2XAT1TV0KT1JP&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2315-XwGVsEI06CmjCcHmh3ZNIFmQ340" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380923_nihil/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "74" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380923_nihil" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "74" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Ea+a+vero+officia+quibusdam+facilis+autem.+Magnam+incidunt+dolorum+natus+occaecati+corporis+hic.&title=Quae+nesciunt+minus+molestias+delectus+porro." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "228" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9l/quae_nesciunt_minus_molestias_delectus_porro/\", \"id\": \"9l\", \"name\": \"t3_9l\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "74" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:46", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9l/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEa a vero officia quibusdam facilis autem. Magnam incidunt dolorum natus occaecati corporis hic.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ea a vero officia quibusdam facilis autem. Magnam incidunt dolorum natus occaecati corporis hic.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9l\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9l/quae_nesciunt_minus_molestias_delectus_porro/\", \"locked\": false, \"name\": \"t3_9l\", \"created\": 1542380926.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9l/quae_nesciunt_minus_molestias_delectus_porro/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae nesciunt minus molestias delectus porro.\", \"created_utc\": 1542380926.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1791" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:46 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "74" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=I88O1qzavgrmvkxIqK7c8AysEhF%2BzJ6S8BY%2FwfSTsMX2EKDAeryW%2FJCagtyx5sm%2F9Sz4GrcBVOYynJVqkp%2Fn%2FLmq8TplEjDP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9l/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Quidem+placeat+optio+officia.+Nostrum+optio+suscipit+nostrum+porro.&title=Voluptatem+culpa+ab+voluptatibus+accusantium." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "199" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9m/voluptatem_culpa_ab_voluptatibus_accusantium/\", \"id\": \"9m\", \"name\": \"t3_9m\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "71" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9m/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem placeat optio officia. Nostrum optio suscipit nostrum porro.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quidem placeat optio officia. Nostrum optio suscipit nostrum porro.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9m\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9m/voluptatem_culpa_ab_voluptatibus_accusantium/\", \"locked\": false, \"name\": \"t3_9m\", \"created\": 1542380929.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9m/voluptatem_culpa_ab_voluptatibus_accusantium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Voluptatem culpa ab voluptatibus accusantium.\", \"created_utc\": 1542380929.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1733" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "71" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ieGdqDTBTmt5nj91eCyl8lEr3Eya5pSG7gN%2Ft6pNthUSkud19bUcIJdFmg6JUdhQp1SwyhZm0ugnc0XIFE%2BKaI0KxYFNFige" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9m/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Aut+quae+ipsam+omnis+nisi+tempore.+Accusamus+praesentium+voluptatum+ipsum+ducimus+dolorum.&title=Voluptatem+nisi+dignissimos+excepturi+aliquam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "223" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9n/voluptatem_nisi_dignissimos_excepturi_aliquam/\", \"id\": \"9n\", \"name\": \"t3_9n\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "68" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9n/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAut quae ipsam omnis nisi tempore. Accusamus praesentium voluptatum ipsum ducimus dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Aut quae ipsam omnis nisi tempore. Accusamus praesentium voluptatum ipsum ducimus dolorum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9n\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9n/voluptatem_nisi_dignissimos_excepturi_aliquam/\", \"locked\": false, \"name\": \"t3_9n\", \"created\": 1542380932.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9n/voluptatem_nisi_dignissimos_excepturi_aliquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Voluptatem nisi dignissimos excepturi aliquam.\", \"created_utc\": 1542380932.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1782" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "67" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=gztYv44nedbt%2FRFgmc9%2F1yQ7MIJ%2BDXsfCqyh80aRprpi2v9RytQ2a3M2pKLIjPAbCHvO1km9nbzdpXn%2FV6mIcqeRoDOeD2Ih" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9n/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Nostrum+dolores+officiis+rem+dolor+voluptatibus.+Temporibus+quae+quisquam+a.&title=Error+facere+nisi+magnam+nam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "192" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9o/error_facere_nisi_magnam_nam/\", \"id\": \"9o\", \"name\": \"t3_9o\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "155" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "64" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9o/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENostrum dolores officiis rem dolor voluptatibus. Temporibus quae quisquam a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nostrum dolores officiis rem dolor voluptatibus. Temporibus quae quisquam a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9o\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9o/error_facere_nisi_magnam_nam/\", \"locked\": false, \"name\": \"t3_9o\", \"created\": 1542380936.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9o/error_facere_nisi_magnam_nam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Error facere nisi magnam nam.\", \"created_utc\": 1542380936.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1703" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "64" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=V6o8XIYhpSnE%2Bzysa7HWKCj9OD0dgDvhPP29CXJd1pG529fSh5k%2BZ2S98JS9%2BbQfOfDOSMzuEQh52ujNw0dpE0Sd6T50MT3G" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9o/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Beatae+est+veritatis+magnam.+Illum+delectus+occaecati+libero+quis+amet+natus.&title=Quae+magni+possimus+inventore+quam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "199" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9p/quae_magni_possimus_inventore_quam/\", \"id\": \"9p\", \"name\": \"t3_9p\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "61" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9p/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBeatae est veritatis magnam. Illum delectus occaecati libero quis amet natus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Beatae est veritatis magnam. Illum delectus occaecati libero quis amet natus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9p\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9p/quae_magni_possimus_inventore_quam/\", \"locked\": false, \"name\": \"t3_9p\", \"created\": 1542380939.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9p/quae_magni_possimus_inventore_quam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae magni possimus inventore quam.\", \"created_utc\": 1542380939.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1723" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "61" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DJXFzf3BEFAhA7lFlQ4zDbHCORWG95lm2eh8u2%2FYzdPq2uIkTTL10culqXI5gnyZrxNjKM9kfOvjWThCnyTHVihE3gCM%2Bajj" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9p/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Deleniti+dolore+suscipit+odit+iure+illum.+Optio+excepturi+perspiciatis+amet+officia.&title=A+ea+minus+illum+nobis+sapiente+tempore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "211" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9q/a_ea_minus_illum_nobis_sapiente_tempore/\", \"id\": \"9q\", \"name\": \"t3_9q\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "166" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "58" - ], - "x-ratelimit-used": [ - "12" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti dolore suscipit odit iure illum. Optio excepturi perspiciatis amet officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Deleniti dolore suscipit odit iure illum. Optio excepturi perspiciatis amet officia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9q/a_ea_minus_illum_nobis_sapiente_tempore/\", \"locked\": false, \"name\": \"t3_9q\", \"created\": 1542380942.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9q/a_ea_minus_illum_nobis_sapiente_tempore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"A ea minus illum nobis sapiente tempore.\", \"created_utc\": 1542380942.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1752" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "58" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=a5Mw4ILb9NE9B6tHIhwkSiQ6%2Fr2QRjkgBUOO9uVfKcujiR8zTnvn6FwRqGX3i7d5C4Vx6%2FjEPEBpegUaykA3Bob%2Bjo%2B1%2FeA2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9q/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Necessitatibus+autem+ullam+nam+quasi.+Rem+atque+optio+quod+ipsam.+Quos+autem+aut+officiis+optio.&title=Non+repellendus+quibusdam+sint+alias." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9r/non_repellendus_quibusdam_sint_alias/\", \"id\": \"9r\", \"name\": \"t3_9r\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "55" - ], - "x-ratelimit-used": [ - "14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9r/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus autem ullam nam quasi. Rem atque optio quod ipsam. Quos autem aut officiis optio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Necessitatibus autem ullam nam quasi. Rem atque optio quod ipsam. Quos autem aut officiis optio.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9r\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9r/non_repellendus_quibusdam_sint_alias/\", \"locked\": false, \"name\": \"t3_9r\", \"created\": 1542380945.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9r/non_repellendus_quibusdam_sint_alias/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Non repellendus quibusdam sint alias.\", \"created_utc\": 1542380945.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1767" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "55" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FWezm%2BlNjoMXOcmzxmOPOWqUDenFl5YccQNVqkzSIV5NGgEfX3cIr71tWW6V06Si0fNl2TtQoNCVpkDGXvAsKvIzuepH5qDN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9r/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Officiis+vitae+error+velit.+Fuga+repellendus+consectetur+sequi+fugiat.+Minima+modi+ipsa+nam+totam.&title=Hic+dicta+qui+voluptas." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "208" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9s/hic_dicta_qui_voluptas/\", \"id\": \"9s\", \"name\": \"t3_9s\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "52" - ], - "x-ratelimit-used": [ - "16" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9s/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficiis vitae error velit. Fuga repellendus consectetur sequi fugiat. Minima modi ipsa nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Officiis vitae error velit. Fuga repellendus consectetur sequi fugiat. Minima modi ipsa nam totam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9s\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9s/hic_dicta_qui_voluptas/\", \"locked\": false, \"name\": \"t3_9s\", \"created\": 1542380948.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9s/hic_dicta_qui_voluptas/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Hic dicta qui voluptas.\", \"created_utc\": 1542380948.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1729" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "52" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=t0cmmK3h0YQbXyt7cOQ4HGTawImzYSjDXft41HzUf8D4fgy9oLSEH5iPfKkUVFa6OAOgg3N6ufaZyB78vxrC6uJnO57NVVx%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9s/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=At+magnam+blanditiis+provident+culpa+beatae+recusandae+optio.+Harum+amet+vitae+porro+quae.&title=Nostrum+sint+nobis+maiores+cupiditate." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "215" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9t/nostrum_sint_nobis_maiores_cupiditate/\", \"id\": \"9t\", \"name\": \"t3_9t\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "18" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9t/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAt magnam blanditiis provident culpa beatae recusandae optio. Harum amet vitae porro quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"At magnam blanditiis provident culpa beatae recusandae optio. Harum amet vitae porro quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9t\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9t/nostrum_sint_nobis_maiores_cupiditate/\", \"locked\": false, \"name\": \"t3_9t\", \"created\": 1542380951.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9t/nostrum_sint_nobis_maiores_cupiditate/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nostrum sint nobis maiores cupiditate.\", \"created_utc\": 1542380951.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1758" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "281.0" - ], - "x-ratelimit-reset": [ - "49" - ], - "x-ratelimit-used": [ - "19" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yULF3Sj08KCfABWPTQCrxNMM9ArwLesX4F6dFj5loSBOQj99vsuvOVf%2FGPPrip5DfE%2BZnWXmN8NfeniV0Fq8DVRRfjUpq%2FWa" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9t/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Totam+aperiam+voluptates+ut+doloribus.+Unde+veniam+molestiae+totam+pariatur+porro+doloribus+fugiat.&title=Ipsum+quod+sit+inventore+cumque+fugiat." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "225" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9u/ipsum_quod_sit_inventore_cumque_fugiat/\", \"id\": \"9u\", \"name\": \"t3_9u\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "280.0" - ], - "x-ratelimit-reset": [ - "46" - ], - "x-ratelimit-used": [ - "20" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9u/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETotam aperiam voluptates ut doloribus. Unde veniam molestiae totam pariatur porro doloribus fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Totam aperiam voluptates ut doloribus. Unde veniam molestiae totam pariatur porro doloribus fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9u\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9u/ipsum_quod_sit_inventore_cumque_fugiat/\", \"locked\": false, \"name\": \"t3_9u\", \"created\": 1542380954.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9u/ipsum_quod_sit_inventore_cumque_fugiat/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ipsum quod sit inventore cumque fugiat.\", \"created_utc\": 1542380954.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1779" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "279.0" - ], - "x-ratelimit-reset": [ - "45" - ], - "x-ratelimit-used": [ - "21" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6eGUIa3S%2BZTBU8KVY7dv6kW6AezBuc68Yy95hx3KcB%2F%2BVOCmItVVE3UTjO35FOmipEcosdsP%2BzK21nR9s0HJS8JiTl%2B4Nd%2FC" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9u/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Necessitatibus+ipsa+ab+adipisci+in.+Atque+alias+ratione+fuga+ex.&title=Veritatis+expedita+architecto+dolor+ea." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "190" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"id\": \"9v\", \"name\": \"t3_9v\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "278.0" - ], - "x-ratelimit-reset": [ - "42" - ], - "x-ratelimit-used": [ - "22" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9v/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Necessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"locked\": false, \"name\": \"t3_9v\", \"created\": 1542380958.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Veritatis expedita architecto dolor ea.\", \"created_utc\": 1542380958.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1709" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "277.0" - ], - "x-ratelimit-reset": [ - "42" - ], - "x-ratelimit-used": [ - "23" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=j8TRLkwhQqpGcJMOiHI5fkBV9qHBQzFDcdTCSVQoovm03TLr29mxlWvB%2BFleUSmj7b4xojpyPqrCYJPMg8Qn7xSWpXlrBxru" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9v/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Odio+rem+ipsum+delectus+officia+quo.+Corrupti+molestias+nobis+non+laboriosam+accusantium+sit.&title=Magnam+placeat+deserunt+unde+minima+rem+cumque." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "227" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"id\": \"9w\", \"name\": \"t3_9w\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "276.0" - ], - "x-ratelimit-reset": [ - "39" - ], - "x-ratelimit-used": [ - "24" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9w/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Odio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"locked\": false, \"name\": \"t3_9w\", \"created\": 1542380961.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Magnam placeat deserunt unde minima rem cumque.\", \"created_utc\": 1542380961.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1791" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "275.0" - ], - "x-ratelimit-reset": [ - "39" - ], - "x-ratelimit-used": [ - "25" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6WLCj5sBhkjT2ARIYMKFcOMc2jc%2Bs4NX2DQg%2FQSZMKuMYCoIp7yo4Z73iZKTzWmFASZXMKuy8niGHeD5Kgifihbov64OQcO4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9w/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Praesentium+odit+sunt+sequi+ad+aspernatur.+Nulla+beatae+dolorum+eos+a.&title=Rem+pariatur+sint+vel+incidunt+in+a+praesentium." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "205" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"id\": \"9x\", \"name\": \"t3_9x\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "274.0" - ], - "x-ratelimit-reset": [ - "36" - ], - "x-ratelimit-used": [ - "26" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9x/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"locked\": false, \"name\": \"t3_9x\", \"created\": 1542380964.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rem pariatur sint vel incidunt in a praesentium.\", \"created_utc\": 1542380964.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1748" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "273.0" - ], - "x-ratelimit-reset": [ - "36" - ], - "x-ratelimit-used": [ - "27" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ITrCVnnWYvyruyoYoVpDwM046g3hrIZ9Bq%2FYek0rMvvrL3a13DY73K%2B1HRmxNuJyWc1lysiiKO3TaPl5EQ7xs1OZ93z6dmz7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9x/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Ducimus+eum+consectetur+eaque+natus+assumenda+perferendis.+Ab+eius+amet+distinctio+iusto.&title=Quod+officiis+ullam+optio+tempore+sint." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "215" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"id\": \"9y\", \"name\": \"t3_9y\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "272.0" - ], - "x-ratelimit-reset": [ - "33" - ], - "x-ratelimit-used": [ - "28" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9y/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"locked\": false, \"name\": \"t3_9y\", \"created\": 1542380967.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod officiis ullam optio tempore sint.\", \"created_utc\": 1542380967.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1759" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "271.0" - ], - "x-ratelimit-reset": [ - "33" - ], - "x-ratelimit-used": [ - "29" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=OO6wgP6entS6kBLCZ6sPP7lxITVXJcWkoFUlznDZ30BBDneix6Mv1byGCi7oTIy5jvN2LNrticUoXME1JMv%2FKGYxjPcBEQc5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9y/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380923_nihil&text=Id+beatae+cumque+occaecati+cum+deserunt+veniam.+Vero+nisi+eveniet+magni.&title=Labore+nam+voluptas+ab." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "182" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"id\": \"9z\", \"name\": \"t3_9z\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "270.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "30" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Id beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"locked\": false, \"name\": \"t3_9z\", \"created\": 1542380970.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Labore nam voluptas ab.\", \"created_utc\": 1542380970.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1677" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "269.0" - ], - "x-ratelimit-reset": [ - "30" - ], - "x-ratelimit-used": [ - "31" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=GMIL%2BqeIhtgm4x998Ni7Twa3Ugb5Ae%2Fr1dXXmsP1h2MMdQ63lcQ1iaeh%2BTevc65LIgFwvOj%2BCZWw2T5nUxtav7hzlEAjZqYK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/hot?count=0&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380923_nihil\", \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Id beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"name\": \"t3_9z\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"locked\": false, \"stickied\": false, \"created\": 1542380970.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Labore nam voluptas ab.\", \"created_utc\": 1542380970.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380923_nihil\", \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"name\": \"t3_9y\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"locked\": false, \"stickied\": false, \"created\": 1542380967.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod officiis ullam optio tempore sint.\", \"created_utc\": 1542380967.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380923_nihil\", \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"name\": \"t3_9x\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"locked\": false, \"stickied\": false, \"created\": 1542380964.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rem pariatur sint vel incidunt in a praesentium.\", \"created_utc\": 1542380964.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380923_nihil\", \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Odio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"name\": \"t3_9w\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"locked\": false, \"stickied\": false, \"created\": 1542380961.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Magnam placeat deserunt unde minima rem cumque.\", \"created_utc\": 1542380961.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380923_nihil\", \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Necessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"name\": \"t3_9v\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"locked\": false, \"stickied\": false, \"created\": 1542380958.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Veritatis expedita architecto dolor ea.\", \"created_utc\": 1542380958.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_9v\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "7733" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "268.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "32" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=KRZ%2BhROnN5QZjDJsaIXeAHlc%2FpxWILxFXKemdCKynTWn0LPcOKl8O3RI4E2eupYGRbZ3STSk4WSWsePmQo9Ajm5j5qySO8LT" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/hot?count=0&limit=5&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9z/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EId beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Id beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9z\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"locked\": false, \"name\": \"t3_9z\", \"created\": 1542380970.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9z/labore_nam_voluptas_ab/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Labore nam voluptas ab.\", \"created_utc\": 1542380970.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1677" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "267.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "33" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B%2FXcrQid6%2BuGGCVTf6BwJBBm66FERtyq5Vea7F6bp11FTGlIpj3G1UC5R6G1o7h%2BJ%2Fr1f40jakeyYgSSY0%2Bh%2Bp9IDGIVHLoU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9z/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5w\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380923_nihil\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugiat rerum accusamus debitis quam minus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Incidunt eaque voluptate ipsum beatae possimus voluptatum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt eaque voluptate ipsum beatae possimus voluptatum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5w\", \"created\": 1542380923.0, \"url\": \"/r/1542380923_nihil/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380923.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "266.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "34" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B5tNsKvGgGe%2FIgAQkNQU6I%2BU2RBmB9bjtBYoYDok9%2BYimyDGDl2rqezV%2B1fyrUQiGBRkgYOk%2FKf1LOgOnpojIEnJSeyYb5Cx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9y/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9y\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"locked\": false, \"name\": \"t3_9y\", \"created\": 1542380967.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9y/quod_officiis_ullam_optio_tempore_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quod officiis ullam optio tempore sint.\", \"created_utc\": 1542380967.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1759" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "265.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "35" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nmzd7m89mGMqlee5xw3IygT2p51GVCfr7RiFgHB0sHLQw%2FupmXjFkGZmUDE97bI817pM%2BMDaT0ffE6lag9wq3aRoGl%2FBys4k" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9y/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5w\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380923_nihil\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugiat rerum accusamus debitis quam minus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Incidunt eaque voluptate ipsum beatae possimus voluptatum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt eaque voluptate ipsum beatae possimus voluptatum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5w\", \"created\": 1542380923.0, \"url\": \"/r/1542380923_nihil/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380923.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "264.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "36" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5M3EipZ1uPACE%2FQK%2BMGLtc33IYyfz1F%2Buc3YmITH2ex3ha7BbzLi3F4Qug496LBmg%2Bgju83jYvX43JBNVJyvAyMKQs6eLLmk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9x/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9x\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"locked\": false, \"name\": \"t3_9x\", \"created\": 1542380964.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9x/rem_pariatur_sint_vel_incidunt_in_a_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Rem pariatur sint vel incidunt in a praesentium.\", \"created_utc\": 1542380964.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1748" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "263.0" - ], - "x-ratelimit-reset": [ - "27" - ], - "x-ratelimit-used": [ - "37" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=PmnhyJwHhmnvc4d8FJODYqihh4dPxfzJ8vCwBZ4mEgRr8RpK6fmxushk%2BMhF2AF5punOEei3fZLRgpfX8CJ2IK%2BcnU2WTPpD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9x/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5w\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380923_nihil\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugiat rerum accusamus debitis quam minus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Incidunt eaque voluptate ipsum beatae possimus voluptatum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt eaque voluptate ipsum beatae possimus voluptatum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5w\", \"created\": 1542380923.0, \"url\": \"/r/1542380923_nihil/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380923.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "262.0" - ], - "x-ratelimit-reset": [ - "26" - ], - "x-ratelimit-used": [ - "38" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DYGgPMOFMaRuWLEOo3vWTCCHEFSL9aTZzkHLj2fe13dDhV2p9Iu8%2FfQZZmcQQEPdHcHAERdEbMDY5CsOBxhhmu%2B2X%2F5yILGu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9w/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Odio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9w\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"locked\": false, \"name\": \"t3_9w\", \"created\": 1542380961.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9w/magnam_placeat_deserunt_unde_minima_rem_cumque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Magnam placeat deserunt unde minima rem cumque.\", \"created_utc\": 1542380961.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1791" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "261.0" - ], - "x-ratelimit-reset": [ - "26" - ], - "x-ratelimit-used": [ - "39" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bfdPfEpou07A47jIxPKCgq8TWpvoUw%2FIsUUsaAzvhKlByP0wYHDJEZOeRMuYLIfJRtXA%2FNSV%2B%2Bw%2F29BugYoO46SylGNUpgWl" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9w/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5w\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380923_nihil\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugiat rerum accusamus debitis quam minus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Incidunt eaque voluptate ipsum beatae possimus voluptatum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt eaque voluptate ipsum beatae possimus voluptatum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5w\", \"created\": 1542380923.0, \"url\": \"/r/1542380923_nihil/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380923.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "260.0" - ], - "x-ratelimit-reset": [ - "26" - ], - "x-ratelimit-used": [ - "40" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=d%2Fa5UBr8pd%2Fi1hZwQgsoC3ycyh68bbr1HAo0trXxO%2Bey6NCrvNIePc3CSr5r9XGWKOy5o1ITVlzMCxogXIdZJvevBAiknRZu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9v/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380923_nihil\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Necessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9v\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH23W7DSM2XAT1TV0KT1JP\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380923_nihil\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"locked\": false, \"name\": \"t3_9v\", \"created\": 1542380958.0, \"url\": \"http://reddit.local/r/1542380923_nihil/comments/9v/veritatis_expedita_architecto_dolor_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Veritatis expedita architecto dolor ea.\", \"created_utc\": 1542380958.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1709" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "259.0" - ], - "x-ratelimit-reset": [ - "26" - ], - "x-ratelimit-used": [ - "41" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=guhzId6KtUddBIwJ5afPIRlVNdP65q14PILCIHM102vJcaYtG77U9LcHKr26H%2FCwMnUDck1Fg3tFCLezDQ%2B6qm5NMUABloEZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9v/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2314-MWmAVrteS7-_5fdrI1vOJ49fh9c" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=m58mxsYeeuMBDSyxXh; loidcreated=2018-11-16T15%3A08%3A39.573Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5w\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380923_nihil\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPorro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fugiat rerum accusamus debitis quam minus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Incidunt eaque voluptate ipsum beatae possimus voluptatum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt eaque voluptate ipsum beatae possimus voluptatum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5w\", \"created\": 1542380923.0, \"url\": \"/r/1542380923_nihil/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380923.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2371" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "258.0" - ], - "x-ratelimit-reset": [ - "26" - ], - "x-ratelimit-used": [ - "42" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6zMHeE6nhh8UdMIFwSTkPwQJRGPxzccGFAU4LKN%2BkMfsJgg3bRue6IvBz%2BA7ts1vjlpjEuPb%2BnGlF2MSBVeV1%2FnOhB4scczM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380923_nihil/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json b/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json deleted file mode 100644 index aa24555c8d..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json +++ /dev/null @@ -1,4112 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:09:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH3W6FCJJ009MBK960S1YB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjTTLbJILTSLMgpKN813T4rPDSnMdis1NjasdMyyUNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsS0w3NPdODHXzd6ny8o4q9y4JSDIxD0l09U7LBmlKSS3LTE6Nz0wBmQzhKNUCAHBU5u66AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:09:37 GMT", - "loidcreated=2018-11-16T15%3A09%3A37.287Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:09:37 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH3W6FCJJ009MBK960S1YB" - } - }, - { - "recorded_at": "2018-11-16T15:09:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH3ZFZ5Q9DCAYZ8BZ4Z1DJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjTXTSwJMTbJjPdNSw0y8vIuLIyITDEJdkkMMfN1VdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsyzFwtig3KvMKrHALi49Ij/R1qkwCMsIDAz1BmlJSyzKTU+MzU0AmQzhKtQBmF/IHugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH3ZFZ5Q9DCAYZ8BZ4Z1DJ" - } - }, - { - "recorded_at": "2018-11-16T15:09:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Laborum+illum+omnis+debitis+quae+rem+quasi.+Vero+assumenda+laboriosam+minus+animi+nam+accusamus+impedit.+Sit+maiores+voluptatem+exercitationem+recusandae+aliquid+ipsum+aspernatur.%0AFugiat+ullam+dolor+cumque+quos+debitis+officia+perferendis.+Quasi+cupiditate+autem+qui+ipsam+quas+laborum.+Laboriosam+porro+voluptate+delectus+nihil.+At+exercitationem+quasi+soluta+architecto+labore.%0AVitae+eveniet+ab+itaque+itaque+possimus.+Omnis+voluptas+aliquid+blanditiis+sequi.&link_type=any&name=1542380981_magni&public_description=Aperiam+voluptate+necessitatibus+blanditiis+quos+officia+saepe+debitis.&title=Esse+incidunt+modi+veritatis.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2317-atT34i_MfeR2JKqqXYd4SDaT6ME" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "700" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "19" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH3W6FCJJ009MBK960S1YB&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2317-atT34i_MfeR2JKqqXYd4SDaT6ME" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380981_magni/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "16" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380981_magni" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "16" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Sequi+sit+quis+quaerat.+Dolor+mollitia+eaque+ipsa+enim+odit+quibusdam.&title=Officia+quas+eius+architecto." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "186" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a0/officia_quas_eius_architecto/\", \"id\": \"a0\", \"name\": \"t3_a0\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "155" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "16" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a0/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESequi sit quis quaerat. Dolor mollitia eaque ipsa enim odit quibusdam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sequi sit quis quaerat. Dolor mollitia eaque ipsa enim odit quibusdam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a0\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a0/officia_quas_eius_architecto/\", \"locked\": false, \"name\": \"t3_a0\", \"created\": 1542380984.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a0/officia_quas_eius_architecto/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Officia quas eius architecto.\", \"created_utc\": 1542380984.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1691" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "16" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6u0pE8%2F2rKcuwHZ9rPkDMneOfdwYtq5D3sn7P3YS%2BG1jwZjDODBinkOnbBm934fSpEiOKep%2FvJDLJ3%2FC%2BkqgKDQJIPJgltaE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a0/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Delectus+quaerat+at+modi+fuga.+Nulla+veniam+alias+neque+iste.&title=Libero+molestias+unde+similique+quasi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "186" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a1/libero_molestias_unde_similique_quasi/\", \"id\": \"a1\", \"name\": \"t3_a1\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "13" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a1/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus quaerat at modi fuga. Nulla veniam alias neque iste.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Delectus quaerat at modi fuga. Nulla veniam alias neque iste.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a1/libero_molestias_unde_similique_quasi/\", \"locked\": false, \"name\": \"t3_a1\", \"created\": 1542380987.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a1/libero_molestias_unde_similique_quasi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Libero molestias unde similique quasi.\", \"created_utc\": 1542380987.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1700" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "13" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MfXKgAiw6MbBt1UX1gEjmyRZf4UCIdM2J%2FRPP%2Brq%2Bgn8VfUN%2BuXsiMlCTBOM4Nu3qMGo6uBuzY2tuXqV06778eAU6R8Lv5eZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a1/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Doloribus+sapiente+corrupti+quaerat+nostrum+laborum.+Iste+eum+laboriosam+tenetur+doloremque.&title=Quos+dolor+ratione+harum+tenetur+illum+inventore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "228" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a2/quos_dolor_ratione_harum_tenetur_illum_inventore/\", \"id\": \"a2\", \"name\": \"t3_a2\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "10" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a2/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDoloribus sapiente corrupti quaerat nostrum laborum. Iste eum laboriosam tenetur doloremque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Doloribus sapiente corrupti quaerat nostrum laborum. Iste eum laboriosam tenetur doloremque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a2/quos_dolor_ratione_harum_tenetur_illum_inventore/\", \"locked\": false, \"name\": \"t3_a2\", \"created\": 1542380990.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a2/quos_dolor_ratione_harum_tenetur_illum_inventore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quos dolor ratione harum tenetur illum inventore.\", \"created_utc\": 1542380990.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1795" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "10" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cQlktO0R7F556PKBY9MaQ7GtQUm6iH3fcqLrCm5XWRZ4E2%2FxXyP8tv%2FGCBHXhqX131c6K%2FdNiDWhKHnu3FX0zg9LBQs2rEQr" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a2/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Totam+voluptatibus+repellat+ullam+ipsa.+Nostrum+aperiam+id+maxime.&title=Ipsam+nihil+non+autem+quia+itaque." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "187" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a3/ipsam_nihil_non_autem_quia_itaque/\", \"id\": \"a3\", \"name\": \"t3_a3\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "7" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a3/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ETotam voluptatibus repellat ullam ipsa. Nostrum aperiam id maxime.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Totam voluptatibus repellat ullam ipsa. Nostrum aperiam id maxime.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a3/ipsam_nihil_non_autem_quia_itaque/\", \"locked\": false, \"name\": \"t3_a3\", \"created\": 1542380993.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a3/ipsam_nihil_non_autem_quia_itaque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ipsam nihil non autem quia itaque.\", \"created_utc\": 1542380993.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1698" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "7" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bKhmAzDKaOWrA4MY5uU2a0bsYgDXWtzguF%2Fi7BwFTn4SEEdgivaCWkWGsqPVhz%2FPMLSH6Iak3pDNenH%2FryLUhHDXf2gSad9S" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a3/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Dolorem+eaque+a+officia+ullam+tempore+omnis+nobis.+Minus+cumque+temporibus+labore+similique+animi.&title=Similique+molestias+et+itaque+laboriosam+quia." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "231" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a4/similique_molestias_et_itaque_laboriosam_quia/\", \"id\": \"a4\", \"name\": \"t3_a4\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "4" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:09:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a4/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolorem eaque a officia ullam tempore omnis nobis. Minus cumque temporibus labore similique animi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolorem eaque a officia ullam tempore omnis nobis. Minus cumque temporibus labore similique animi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a4\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a4/similique_molestias_et_itaque_laboriosam_quia/\", \"locked\": false, \"name\": \"t3_a4\", \"created\": 1542380996.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a4/similique_molestias_et_itaque_laboriosam_quia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Similique molestias et itaque laboriosam quia.\", \"created_utc\": 1542380996.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1798" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:09:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "4" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IPo5x85E1WG9l%2BBKXIKIxvsQFlpBRYOVO2itgm0ROqjTBLrPxh4b173vD%2FYQRYcC3DgOj%2BjP059WGldpb05bQjWmYPRT1ypg" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a4/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Suscipit+illo+ex+rerum.+Quas+praesentium+similique+alias+ad+fuga+esse.&title=Eius+corporis+nemo+nobis+recusandae." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "193" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a5/eius_corporis_nemo_nobis_recusandae/\", \"id\": \"a5\", \"name\": \"t3_a5\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "162" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "1" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a5/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESuscipit illo ex rerum. Quas praesentium similique alias ad fuga esse.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Suscipit illo ex rerum. Quas praesentium similique alias ad fuga esse.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a5/eius_corporis_nemo_nobis_recusandae/\", \"locked\": false, \"name\": \"t3_a5\", \"created\": 1542381000.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a5/eius_corporis_nemo_nobis_recusandae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Eius corporis nemo nobis recusandae.\", \"created_utc\": 1542381000.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1712" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "600" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=fRQyQ4j0Y0Ul%2FBHbS4CHOB742okox%2B915mp0IyOyWykOqODk3ErS7qe7dJGnofdkMsxVErjA%2F6APlGl5sLFNcI3Rg%2FN%2BMllb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a5/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Incidunt+ipsa+illum+accusantium.+Debitis+eum+quam+cumque+eligendi.&title=Assumenda+maiores+labore+veniam+accusantium." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "197" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a6/assumenda_maiores_labore_veniam_accusantium/\", \"id\": \"a6\", \"name\": \"t3_a6\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "597" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a6/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIncidunt ipsa illum accusantium. Debitis eum quam cumque eligendi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Incidunt ipsa illum accusantium. Debitis eum quam cumque eligendi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a6\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a6/assumenda_maiores_labore_veniam_accusantium/\", \"locked\": false, \"name\": \"t3_a6\", \"created\": 1542381003.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a6/assumenda_maiores_labore_veniam_accusantium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Assumenda maiores labore veniam accusantium.\", \"created_utc\": 1542381003.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1728" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "597" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9FLqq8nFt4XixBj0g1l8Tj7IgD3NbZHh2FtV8AztLWERyR2z15ojoWn5kl1egJLhTgdxYk2Lyd7iKs23OKQ1Ht391K698dHv" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a6/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Suscipit+sequi+ea+culpa+suscipit+nisi+fugit.+Impedit+veritatis+dicta+nemo+voluptatum+doloribus.&title=Deleniti+officiis+tempore+cumque+vero." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a7/deleniti_officiis_tempore_cumque_vero/\", \"id\": \"a7\", \"name\": \"t3_a7\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "594" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:06", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a7/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESuscipit sequi ea culpa suscipit nisi fugit. Impedit veritatis dicta nemo voluptatum doloribus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Suscipit sequi ea culpa suscipit nisi fugit. Impedit veritatis dicta nemo voluptatum doloribus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a7\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a7/deleniti_officiis_tempore_cumque_vero/\", \"locked\": false, \"name\": \"t3_a7\", \"created\": 1542381006.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a7/deleniti_officiis_tempore_cumque_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Deleniti officiis tempore cumque vero.\", \"created_utc\": 1542381006.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "594" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6M83hKEoPIb9LsIBKIICVsjhpnMacK621Tj6WqebwGvW7y3XKlS68Cj2GgHbEsSsM%2FZDueFGV3nA6kHphfNl7cEcYSfNmovk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a7/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Voluptatum+velit+error+tempora+soluta.+Sunt+iste+consequuntur+quod+doloribus+debitis+totam.&title=Quibusdam+dolorum+error+omnis+ipsam+dolorem." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "222" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a8/quibusdam_dolorum_error_omnis_ipsam_dolorem/\", \"id\": \"a8\", \"name\": \"t3_a8\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "591" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a8/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptatum velit error tempora soluta. Sunt iste consequuntur quod doloribus debitis totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Voluptatum velit error tempora soluta. Sunt iste consequuntur quod doloribus debitis totam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a8\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a8/quibusdam_dolorum_error_omnis_ipsam_dolorem/\", \"locked\": false, \"name\": \"t3_a8\", \"created\": 1542381009.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a8/quibusdam_dolorum_error_omnis_ipsam_dolorem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quibusdam dolorum error omnis ipsam dolorem.\", \"created_utc\": 1542381009.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1778" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "591" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JTv4%2FZWSdcVDf4YhTHJBYWkKKtPwAAf1wFpwuBxg7LvGZMgvLWDIufqYRJxvw3Ytwsu2ja7Jiuplun3n%2FRdWiNWHO0caENiw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a8/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Possimus+necessitatibus+animi+aspernatur+qui.+Sed+velit+magnam+quidem+totam+similique.&title=Quasi+doloremque+mollitia+expedita+fugit+maiores." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "222" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/a9/quasi_doloremque_mollitia_expedita_fugit_maiores/\", \"id\": \"a9\", \"name\": \"t3_a9\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "588" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:12", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/a9/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPossimus necessitatibus animi aspernatur qui. Sed velit magnam quidem totam similique.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Possimus necessitatibus animi aspernatur qui. Sed velit magnam quidem totam similique.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"a9\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/a9/quasi_doloremque_mollitia_expedita_fugit_maiores/\", \"locked\": false, \"name\": \"t3_a9\", \"created\": 1542381012.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/a9/quasi_doloremque_mollitia_expedita_fugit_maiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quasi doloremque mollitia expedita fugit maiores.\", \"created_utc\": 1542381012.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:12 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "588" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jFnpl%2FeqwZb%2BX0kZgkZh%2Fk%2F2n9we%2Fkrw5AzjYLSSJmjGqWuYK3nH7kZWclB0MWBUV1yur8gRRZlSUF9brIVKBm7R4cWbzxWf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/a9/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Et+soluta+eum+illum+suscipit+error+quos+asperiores.+Porro+quasi+animi+odit+ut+porro+fugiat.&title=Distinctio+ad+et+qui+eos+corrupti+impedit." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"id\": \"aa\", \"name\": \"t3_aa\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "585" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/aa/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Et soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aa\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"locked\": false, \"name\": \"t3_aa\", \"created\": 1542381015.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio ad et qui eos corrupti impedit.\", \"created_utc\": 1542381015.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1772" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "585" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=xejW5WOUtamANGIFjXnt2Zf%2BtXo0Q8fqgVP6mV5FNv0Pqlshn%2Bhj%2B9YaCXN7wyl%2BBDSx0%2Fa4y6LnW8sqceLOHMSRT2rtkuFN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/aa/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Autem+doloremque+eligendi+id+blanditiis.+Ipsa+sequi+rerum+unde+sed.&title=Quas+ratione+sed+sint+debitis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"id\": \"ab\", \"name\": \"t3_ab\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "156" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "582" - ], - "x-ratelimit-used": [ - "12" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ab/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAutem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Autem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ab\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"locked\": false, \"name\": \"t3_ab\", \"created\": 1542381018.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quas ratione sed sint debitis.\", \"created_utc\": 1542381018.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1688" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "582" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nS3frSLKx50OkGG1yad%2F30ioZAvotQCWCk4E1MXlhqr7RFT%2Fs2cMIFeQUAB7du7vzpVUmdi9tBbl8CI4wTPRXt4GGLP%2BTpUT" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ab/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Nesciunt+animi+enim+voluptatum+illum.+Magnam+at+sed+officia.+Saepe+occaecati+officia+corrupti.&title=Odio+vitae+similique+nesciunt+labore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "218" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"id\": \"ac\", \"name\": \"t3_ac\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "578" - ], - "x-ratelimit-used": [ - "14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ac/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ac\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"locked\": false, \"name\": \"t3_ac\", \"created\": 1542381022.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odio vitae similique nesciunt labore.\", \"created_utc\": 1542381022.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1763" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "578" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JyZPZht33iv%2BFzJ71u8qkWAwf5%2B61Lm%2F3ToGmqcKzsJJHR2fiOYOO%2Bt56QqbPIRjsf8mWEMuDqFSXdaQ%2F976mQB%2Fzqw9qtWb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ac/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Sint+libero+modi+velit+numquam.+Optio+est+voluptate+enim+rerum+quae.&title=Repellat+non+mollitia+ducimus+vero." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "190" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"id\": \"ad\", \"name\": \"t3_ad\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "575" - ], - "x-ratelimit-used": [ - "16" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ad/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESint libero modi velit numquam. Optio est voluptate enim rerum quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sint libero modi velit numquam. Optio est voluptate enim rerum quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ad\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"locked\": false, \"name\": \"t3_ad\", \"created\": 1542381025.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Repellat non mollitia ducimus vero.\", \"created_utc\": 1542381025.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1705" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "575" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wCtofxIi8cCQXpoE6qceR4Nyq9j1DNyXf6uaOLYdQIHNg%2BVWT8nd21twDkltYLTGh5VKLQH7xJO9Yyy58ce3vwk%2B07XzJrwO" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ad/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380981_magni&text=Laudantium+qui+magni+minus.+Libero+architecto+vero+mollitia+sed.+Est+tempora+eius+placeat+quisquam.&title=Ducimus+occaecati+magni+saepe+aliquam+odio+quos." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "234" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"id\": \"ae\", \"name\": \"t3_ae\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "572" - ], - "x-ratelimit-used": [ - "18" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ae/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Laudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ae\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"locked\": false, \"name\": \"t3_ae\", \"created\": 1542381028.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ducimus occaecati magni saepe aliquam odio quos.\", \"created_utc\": 1542381028.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1806" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "281.0" - ], - "x-ratelimit-reset": [ - "572" - ], - "x-ratelimit-used": [ - "19" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Z6i94LETYQXyh7mO0ZwH9Fp5U2bohIYCGiP4GaNSQvH12XSjABWMHR1iTHCjxA3ZSC2%2BCd0tlbV22mvMWWddtMq37BMGS9tv" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ae/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/hot?before=t3_a9&count=6&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380981_magni\", \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Laudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ae\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"name\": \"t3_ae\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"locked\": false, \"stickied\": false, \"created\": 1542381028.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ducimus occaecati magni saepe aliquam odio quos.\", \"created_utc\": 1542381028.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380981_magni\", \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESint libero modi velit numquam. Optio est voluptate enim rerum quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sint libero modi velit numquam. Optio est voluptate enim rerum quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ad\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"name\": \"t3_ad\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"locked\": false, \"stickied\": false, \"created\": 1542381025.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Repellat non mollitia ducimus vero.\", \"created_utc\": 1542381025.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380981_magni\", \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ac\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"name\": \"t3_ac\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"locked\": false, \"stickied\": false, \"created\": 1542381022.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odio vitae similique nesciunt labore.\", \"created_utc\": 1542381022.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380981_magni\", \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAutem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Autem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ab\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"name\": \"t3_ab\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"locked\": false, \"stickied\": false, \"created\": 1542381018.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quas ratione sed sint debitis.\", \"created_utc\": 1542381018.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380981_magni\", \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Et soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aa\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"name\": \"t3_aa\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"locked\": false, \"stickied\": false, \"created\": 1542381015.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio ad et qui eos corrupti impedit.\", \"created_utc\": 1542381015.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_aa\", \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "7783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "280.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "20" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6ypNJLRGnTYYF35fLurpZZjoW9bQM8EWiPKLUvzuRqOuv16K2SGNI2NGsTgfxMqC%2BJRjS6%2Bph9mpJHUuCM9bD5at9QyLlRxZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/hot?before=t3_a9&count=6&limit=5&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ae/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Laudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ae\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"locked\": false, \"name\": \"t3_ae\", \"created\": 1542381028.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ae/ducimus_occaecati_magni_saepe_aliquam_odio_quos/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ducimus occaecati magni saepe aliquam odio quos.\", \"created_utc\": 1542381028.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1806" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "279.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "21" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wrP%2FhlJG3HpEjJDg0GyO6I9w2zM5Ca4EaYodo7kO2R9OGnlxw0AwyqanYxeW9n%2BtTO25NCiIlIz%2BfV2%2BK6EiWK8KEgSy8zP1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ae/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380981_magni\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse incidunt modi veritatis.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5x\", \"created\": 1542380981.0, \"url\": \"/r/1542380981_magni/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380981.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2416" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "278.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "22" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=EAo5U0VvWzSA7kgxtKDdGmVnYGTsVLkDhuYoGgFiv5L0uDfmqkz3BbaV8M8GPoQqJYI6rwneQ2oe6iTLujft6Xs3BYM4Edff" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ad/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESint libero modi velit numquam. Optio est voluptate enim rerum quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sint libero modi velit numquam. Optio est voluptate enim rerum quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ad\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"locked\": false, \"name\": \"t3_ad\", \"created\": 1542381025.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ad/repellat_non_mollitia_ducimus_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Repellat non mollitia ducimus vero.\", \"created_utc\": 1542381025.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1705" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "277.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "23" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9moUlhYvfDC1Y0begHik4kWlavB8qhYMtqQZwfDnoBOg5LK2IteNJ%2BlXY7Hb6fpWag5nVzorartAigJXrQu1ki8yRRfC2vMG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ad/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380981_magni\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse incidunt modi veritatis.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5x\", \"created\": 1542380981.0, \"url\": \"/r/1542380981_magni/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380981.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2416" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "276.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "24" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=6LlTEmfy9S%2FmQwQREfEo7S0R10fMY44g3nIJAYXZAF5LLsJ1B4FPP%2Fqbr2dCqzVvMF8jyfjfQDhnx7UdqOV33JnmLMjicfbd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ac/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ac\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"locked\": false, \"name\": \"t3_ac\", \"created\": 1542381022.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ac/odio_vitae_similique_nesciunt_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odio vitae similique nesciunt labore.\", \"created_utc\": 1542381022.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1763" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "275.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "25" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VmVs%2Bc5NVLI1S6lR327IrKAEK42fMAXRF8JimrUt0SugrVMHLb841EugM0hxuUfUd4POKVesAu69F3OsQN2V%2FKcyeu4jowss" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ac/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380981_magni\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse incidunt modi veritatis.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5x\", \"created\": 1542380981.0, \"url\": \"/r/1542380981_magni/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380981.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2416" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "274.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "26" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vYPcBGF20Fj22veMmKySPJxG8uELk9gUT6V%2FfDA7ltx5CMv4b6oyf5R8isRrjp7tK8B18q3evuKz42BOZ%2BEzw6Cv562B%2F0U7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ab/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAutem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Autem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ab\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"locked\": false, \"name\": \"t3_ab\", \"created\": 1542381018.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/ab/quas_ratione_sed_sint_debitis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quas ratione sed sint debitis.\", \"created_utc\": 1542381018.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1688" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "273.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "27" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Q4%2BT1EFXGcX9aYf%2BzZXtB9nbsoLBB0YYjYkTeDzK80xq%2FCo38U2j3Kc38QjIAg%2Bro3ACo7YCkhL2e8y3g53oGJeiAIhKt6tM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ab/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380981_magni\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse incidunt modi veritatis.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5x\", \"created\": 1542380981.0, \"url\": \"/r/1542380981_magni/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380981.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2416" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "272.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "28" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cKqe15vNUIeNMWsSd6bHI6Xh2kR4A9tvv1hnDwqm%2B5SY%2BSk5f%2BwiPmXrr6WnL52h49G8rbrCoIMNl8Y4kOfWClGD4oc6LvQ6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/aa/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380981_magni\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Et soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aa\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH3W6FCJJ009MBK960S1YB\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380981_magni\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"locked\": false, \"name\": \"t3_aa\", \"created\": 1542381015.0, \"url\": \"http://reddit.local/r/1542380981_magni/comments/aa/distinctio_ad_et_qui_eos_corrupti_impedit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio ad et qui eos corrupti impedit.\", \"created_utc\": 1542381015.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1772" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "271.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "29" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=32UfgRGhSOB9neLCbyce7Rn1bUttGY3hk6xZX9slEhOUsVYl6AN1aI4OztMM7icwSwPDEp436928MVsSa3GN9%2FZH%2Fg4POjUF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/aa/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2316-r8eq6Z2Rg5oGb_mTqkFu331yAj8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=MvIIWSJ9rCqnpFiRdb; loidcreated=2018-11-16T15%3A09%3A37.287Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5x\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380981_magni\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ELaborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Esse incidunt modi veritatis.\", \"collapse_deleted_comments\": false, \"public_description\": \"Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam voluptate necessitatibus blanditiis quos officia saepe debitis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5x\", \"created\": 1542380981.0, \"url\": \"/r/1542380981_magni/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380981.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2416" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "270.0" - ], - "x-ratelimit-reset": [ - "569" - ], - "x-ratelimit-used": [ - "30" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MnUuKMmyBB3hZfNYOUc9ZwjCxBLk945eMqvDcmB2jgXE7ioO7E41aN3PlZcgcmFxAUBgopYfwNCapO%2FH550o24Wo1AfU0zKZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380981_magni/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination_non_first_page.json b/cassettes/channels.views.posts_test.test_list_posts_pagination_non_first_page.json deleted file mode 100644 index 9b1500437e..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination_non_first_page.json +++ /dev/null @@ -1,4112 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:10:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH5ME12ZJN5NJNP6BAQTVF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNrTQzQrOCY4wCnQqNjHQTXdxLS9M1k0ODwupyAp0VNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csc/YLryxzzgo39AiwdAquKPdK8QyvKE9L8/COBGlKSS3LTE6Nz0wBmQzhKNUCAJlpcyy6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:10:35 GMT", - "loidcreated=2018-11-16T15%3A10%3A34.901Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:10:35 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH5ME12ZJN5NJNP6BAQTVF" - } - }, - { - "recorded_at": "2018-11-16T15:10:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH5QRJCGX8G9WPTPNTQG2X" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNrTUdXdMzirICzVyqkgy9Ck2LcrLCDRwLS03KbfIV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsC3G1TDWPKM0M96qyjA8uDjAwtzD1NC2OSnIyAGlKSS3LTE6Nz0wBmQzhKNUCABUxKBy6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH5QRJCGX8G9WPTPNTQG2X" - } - }, - { - "recorded_at": "2018-11-16T15:10:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Delectus+suscipit+officiis+occaecati+earum+laudantium+laudantium.+Ipsam+natus+quaerat+voluptatem+ducimus+voluptatem+quo.+Voluptates+voluptatum+ullam+sit+id+exercitationem.%0AIllo+ea+magnam+culpa+sunt+corporis+eos+nemo.+Totam+alias+quae+recusandae+cupiditate+totam+optio+earum.+Aliquid+iste+culpa+et+modi+ducimus+sed+repellat.+Illum+sapiente+aliquid+cum.+Aut+veritatis+commodi+cum+dolorum+reiciendis+nostrum+est.&link_type=any&name=1542381038_repellat&public_description=Expedita+et+quo+ducimus+molestias.+Assumenda+amet+maiores+nam+totam.&title=Quos+repudiandae+a+repudiandae+deserunt.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2319-GAcjpnU2Bxb1Ls5rnhQ0Euw4w8o" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "657" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "562" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH5ME12ZJN5NJNP6BAQTVF&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2319-GAcjpnU2Bxb1Ls5rnhQ0Euw4w8o" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542381038_repellat/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542381038_repellat" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Occaecati+deserunt+rem+amet+incidunt+id.+Doloribus+enim+ipsum+qui+unde+dicta+temporibus+eos.&title=Nesciunt+nostrum+quidem+fugit+eveniet+eveniet." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "228" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/af/nesciunt_nostrum_quidem_fugit_eveniet_eveniet/\", \"id\": \"af\", \"name\": \"t3_af\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/af/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOccaecati deserunt rem amet incidunt id. Doloribus enim ipsum qui unde dicta temporibus eos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Occaecati deserunt rem amet incidunt id. Doloribus enim ipsum qui unde dicta temporibus eos.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"af\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/af/nesciunt_nostrum_quidem_fugit_eveniet_eveniet/\", \"locked\": false, \"name\": \"t3_af\", \"created\": 1542381041.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/af/nesciunt_nostrum_quidem_fugit_eveniet_eveniet/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nesciunt nostrum quidem fugit eveniet eveniet.\", \"created_utc\": 1542381041.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1798" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "559" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=riPaKEyMwcGlxO69JUnrOlC27n%2FllXUco2cwbqtHmGopRrb%2FAdb6ryZWSk%2FuPvYvsf9feYtpJTG40a1rG8%2BDJcAsPRRBtfkR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/af/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Consequuntur+nisi+maiores+eligendi+voluptatem+iste.+Dolorem+vero+sed+unde+reiciendis+aspernatur.&title=Exercitationem+fugiat+quos+voluptatum+corrupti." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "233" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ag/exercitationem_fugiat_quos_voluptatum_corrupti/\", \"id\": \"ag\", \"name\": \"t3_ag\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "176" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ag/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsequuntur nisi maiores eligendi voluptatem iste. Dolorem vero sed unde reiciendis aspernatur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consequuntur nisi maiores eligendi voluptatem iste. Dolorem vero sed unde reiciendis aspernatur.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ag\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ag/exercitationem_fugiat_quos_voluptatum_corrupti/\", \"locked\": false, \"name\": \"t3_ag\", \"created\": 1542381045.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ag/exercitationem_fugiat_quos_voluptatum_corrupti/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Exercitationem fugiat quos voluptatum corrupti.\", \"created_utc\": 1542381045.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1809" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "555" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=8UQwR2GHNffA1F77InjFjP4hWA06m42TemSGeLAxBh%2Bx6x2RLaeQXAL8dTH7v5uMUWC%2FQVmhFrx33MkgX%2FqKsgdYAUvuyJSJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ag/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Error+nulla+accusamus+dicta.+Dolorem+porro+dolore+aut+soluta+quibusdam+perferendis+tempora+nisi.&title=Cum+quam+expedita+cum+deserunt+explicabo." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "227" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ah/cum_quam_expedita_cum_deserunt_explicabo/\", \"id\": \"ah\", \"name\": \"t3_ah\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "552" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ah/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EError nulla accusamus dicta. Dolorem porro dolore aut soluta quibusdam perferendis tempora nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Error nulla accusamus dicta. Dolorem porro dolore aut soluta quibusdam perferendis tempora nisi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ah\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ah/cum_quam_expedita_cum_deserunt_explicabo/\", \"locked\": false, \"name\": \"t3_ah\", \"created\": 1542381048.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ah/cum_quam_expedita_cum_deserunt_explicabo/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Cum quam expedita cum deserunt explicabo.\", \"created_utc\": 1542381048.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1791" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "552" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=873Rvn%2BxIqC65nPdgPD1BFSNP%2FsnY5jlWCyQKrlRYTAT7U6qDfFmygbQt%2BATdnJY2N0LgxXmdOddSqolqWMdMxHrBIOODiQv" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ah/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Omnis+provident+voluptas+voluptates+a.+Exercitationem+soluta+est+a+quaerat+quos.&title=Ipsum+culpa+beatae+quam+corporis+cumque+ea." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "213" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ai/ipsum_culpa_beatae_quam_corporis_cumque_ea/\", \"id\": \"ai\", \"name\": \"t3_ai\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "549" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ai/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOmnis provident voluptas voluptates a. Exercitationem soluta est a quaerat quos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Omnis provident voluptas voluptates a. Exercitationem soluta est a quaerat quos.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ai\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ai/ipsum_culpa_beatae_quam_corporis_cumque_ea/\", \"locked\": false, \"name\": \"t3_ai\", \"created\": 1542381051.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ai/ipsum_culpa_beatae_quam_corporis_cumque_ea/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ipsum culpa beatae quam corporis cumque ea.\", \"created_utc\": 1542381051.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "549" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=FD9fanT%2BoFBFnpZx%2B%2B9PU1nS4wcWDR%2FKW0jrYpiJywVfBkij4LtGKELhI6bnLFApVU4hPBcjjSh4qkxlFRYcX%2BMDfzW0nkNH" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ai/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Vitae+impedit+ducimus+occaecati+natus.+Fugit+est+porro+vel+maxime+facere+ipsum+quia.&title=Placeat+non+corporis+illo+saepe+ab+hic." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "213" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/aj/placeat_non_corporis_illo_saepe_ab_hic/\", \"id\": \"aj\", \"name\": \"t3_aj\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/aj/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae impedit ducimus occaecati natus. Fugit est porro vel maxime facere ipsum quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vitae impedit ducimus occaecati natus. Fugit est porro vel maxime facere ipsum quia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aj\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/aj/placeat_non_corporis_illo_saepe_ab_hic/\", \"locked\": false, \"name\": \"t3_aj\", \"created\": 1542381054.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/aj/placeat_non_corporis_illo_saepe_ab_hic/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Placeat non corporis illo saepe ab hic.\", \"created_utc\": 1542381054.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1761" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=09sRuSqCQ0PYpS9ZPpcvh6a8rzI4KTPofw0jDEWpVygLg38MIvwzNrPnnhvuYM0b%2FNjpZ6B%2ByVYGe%2Fo1xazmdjqMSbhujsUu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/aj/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Consequatur+qui+ex+ex+dolorum+temporibus+at.+Ratione+eligendi+nulla+ipsam.&title=Est+laborum+beatae+beatae." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "190" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"id\": \"ak\", \"name\": \"t3_ak\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "155" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "543" - ], - "x-ratelimit-used": [ - "12" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:10:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ak/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ak\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"locked\": false, \"name\": \"t3_ak\", \"created\": 1542381057.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Est laborum beatae beatae.\", \"created_utc\": 1542381057.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1702" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:10:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "543" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NlByvcb1jQlae0CI3T14i4lwoGGZl0doOe8sY%2BI0ZEtpzvcxLyj5BfNPCm2TZ3Kf4Grek3GrLSQypwE5KzVxKkKSB6FeFlQe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ak/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Reprehenderit+minus+porro+veniam.+Asperiores+corrupti+accusantium+excepturi+eum+est+est.&title=Sapiente+quas+officiis+nemo+facilis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"id\": \"al\", \"name\": \"t3_al\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "540" - ], - "x-ratelimit-used": [ - "14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/al/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Reprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"al\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"locked\": false, \"name\": \"t3_al\", \"created\": 1542381060.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quas officiis nemo facilis.\", \"created_utc\": 1542381060.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1760" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "540" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zLSGngzvimL2LgZjA7o4IsHBbuzJNeR%2FS7ySAOl%2Fmd3jtycoDIJWABnPz5fEsFa6GGu4%2B3668jpsG3wyxkTrHDU8C6ILA5DN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/al/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Iste+dolor+quia+et+molestiae+facere+ex+maiores.+Quam+velit+laborum+nisi+a+maiores+quia.&title=Quae+sunt+reiciendis+recusandae+pariatur." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "218" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"id\": \"am\", \"name\": \"t3_am\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "537" - ], - "x-ratelimit-used": [ - "16" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/am/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"am\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"locked\": false, \"name\": \"t3_am\", \"created\": 1542381063.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae sunt reiciendis recusandae pariatur.\", \"created_utc\": 1542381063.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "536" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5aQHB%2Fx5NdZwxqOWM6VZyQAmSqo5uTqs1TqP%2FIdbsSLtRUcVYAYfYlaEBGr0kKktVcvIo6BlsTgBefPSh9DrdNht8l9LPLDa" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/am/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Perspiciatis+dolorem+cupiditate+impedit+temporibus.+Cupiditate+excepturi+quae+ullam+totam+dolorum.&title=Adipisci+ab+odio+minima+non+harum+autem+officia." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"id\": \"an\", \"name\": \"t3_an\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "533" - ], - "x-ratelimit-used": [ - "18" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/an/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Perspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"an\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"locked\": false, \"name\": \"t3_an\", \"created\": 1542381067.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Adipisci ab odio minima non harum autem officia.\", \"created_utc\": 1542381067.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1816" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "281.0" - ], - "x-ratelimit-reset": [ - "533" - ], - "x-ratelimit-used": [ - "19" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=B5ORCmONsyISQldSFaw8UaaVD7kFRsGCuAFvzAncjoETzOkPXYchm%2FrB6TIFuQpvg9g8HeXxqSn6qWdxRPsAj7REirkpKzze" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/an/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Ducimus+fugiat+est+dolor+quis+suscipit+corrupti+blanditiis.+Quidem+beatae+fugit+occaecati.&title=Dolore+facere+ipsa+neque+nam+odit+id+praesentium." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"id\": \"ao\", \"name\": \"t3_ao\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "280.0" - ], - "x-ratelimit-reset": [ - "530" - ], - "x-ratelimit-used": [ - "20" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ao/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ao\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"locked\": false, \"name\": \"t3_ao\", \"created\": 1542381070.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolore facere ipsa neque nam odit id praesentium.\", \"created_utc\": 1542381070.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1803" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "279.0" - ], - "x-ratelimit-reset": [ - "530" - ], - "x-ratelimit-used": [ - "21" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=YEUaN7jf0vRqqBatyurMpvl5AAV5L5ecTY%2B%2FRIW75ACby6ia0yX1%2BRcjKfIuAvL2yVoE8M%2BiYmqYvyFLB3K7CnHClZlE%2BsCE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ao/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Molestiae+neque+reiciendis+molestiae+illum+est+nam.+Mollitia+quibusdam+rerum+at+consectetur+nisi.&title=Itaque+commodi+ut+iure+quia+quibusdam+veniam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "232" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ap/itaque_commodi_ut_iure_quia_quibusdam_veniam/\", \"id\": \"ap\", \"name\": \"t3_ap\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "278.0" - ], - "x-ratelimit-reset": [ - "527" - ], - "x-ratelimit-used": [ - "22" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ap/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestiae neque reiciendis molestiae illum est nam. Mollitia quibusdam rerum at consectetur nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestiae neque reiciendis molestiae illum est nam. Mollitia quibusdam rerum at consectetur nisi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ap\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ap/itaque_commodi_ut_iure_quia_quibusdam_veniam/\", \"locked\": false, \"name\": \"t3_ap\", \"created\": 1542381073.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ap/itaque_commodi_ut_iure_quia_quibusdam_veniam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Itaque commodi ut iure quia quibusdam veniam.\", \"created_utc\": 1542381073.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1805" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "277.0" - ], - "x-ratelimit-reset": [ - "527" - ], - "x-ratelimit-used": [ - "23" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=n6JGbtTf4rx73JRRc838sNoyofUwLUNoM3uKTqR49GdVzGDMmQ0sy7ASBntRUUAwKrv5Pn3QWwWNOSSgVDFGSWEdTZLQSo9s" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ap/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Amet+illo+delectus+fugit+odio+voluptatibus.+Fuga+iste+autem+et+aperiam+rem+distinctio.&title=Ut+eius+consequuntur+cumque+cumque." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "211" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/aq/ut_eius_consequuntur_cumque_cumque/\", \"id\": \"aq\", \"name\": \"t3_aq\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "276.0" - ], - "x-ratelimit-reset": [ - "524" - ], - "x-ratelimit-used": [ - "24" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/aq/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet illo delectus fugit odio voluptatibus. Fuga iste autem et aperiam rem distinctio.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Amet illo delectus fugit odio voluptatibus. Fuga iste autem et aperiam rem distinctio.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aq\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/aq/ut_eius_consequuntur_cumque_cumque/\", \"locked\": false, \"name\": \"t3_aq\", \"created\": 1542381076.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/aq/ut_eius_consequuntur_cumque_cumque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ut eius consequuntur cumque cumque.\", \"created_utc\": 1542381076.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1753" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "275.0" - ], - "x-ratelimit-reset": [ - "524" - ], - "x-ratelimit-used": [ - "25" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CtZdRCYENd87KA6nsDqRtHrYNQimm52hHm4s6n1soGVLDFf0aePC7l%2FYlmvB%2FFE%2BRqrg5w51dE71Qfre%2FDEYxVoi9EoeeRkM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/aq/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Maiores+quaerat+repellendus+cupiditate+nesciunt+quae+sed+incidunt.+Dolorum+dolorem+incidunt+error.&title=Unde+nemo+voluptate+velit+aliquid." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "222" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/ar/unde_nemo_voluptate_velit_aliquid/\", \"id\": \"ar\", \"name\": \"t3_ar\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "274.0" - ], - "x-ratelimit-reset": [ - "521" - ], - "x-ratelimit-used": [ - "26" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ar/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMaiores quaerat repellendus cupiditate nesciunt quae sed incidunt. Dolorum dolorem incidunt error.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Maiores quaerat repellendus cupiditate nesciunt quae sed incidunt. Dolorum dolorem incidunt error.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ar\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ar/unde_nemo_voluptate_velit_aliquid/\", \"locked\": false, \"name\": \"t3_ar\", \"created\": 1542381079.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ar/unde_nemo_voluptate_velit_aliquid/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Unde nemo voluptate velit aliquid.\", \"created_utc\": 1542381079.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1774" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "273.0" - ], - "x-ratelimit-reset": [ - "521" - ], - "x-ratelimit-used": [ - "27" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TUkZqeLMTzXpflF1tgDbh%2Ff6WFsfKN2Y0l%2BaZREPvqRbCKuk%2BTsNFMOjP2kJ%2FfzOcX5%2F3ijFX%2FqvECF7UwyYoUY4qvSiHJL%2F" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ar/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Eum+quaerat+id+ducimus+tempora.+Fugit+voluptates+aspernatur+nam.&title=Incidunt+eos+sint+harum+inventore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "188" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/as/incidunt_eos_sint_harum_inventore/\", \"id\": \"as\", \"name\": \"t3_as\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "272.0" - ], - "x-ratelimit-reset": [ - "518" - ], - "x-ratelimit-used": [ - "28" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/as/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEum quaerat id ducimus tempora. Fugit voluptates aspernatur nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Eum quaerat id ducimus tempora. Fugit voluptates aspernatur nam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"as\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/as/incidunt_eos_sint_harum_inventore/\", \"locked\": false, \"name\": \"t3_as\", \"created\": 1542381082.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/as/incidunt_eos_sint_harum_inventore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Incidunt eos sint harum inventore.\", \"created_utc\": 1542381082.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1706" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "271.0" - ], - "x-ratelimit-reset": [ - "518" - ], - "x-ratelimit-used": [ - "29" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TMWJ0QIPcqkhHXcHcCL8cJQAlmHHH%2BwnF%2BhK8lkxjBTNwkNjCb8RYuU9PfjSPxHCsblxbFRp%2BQfNSgnUdUDvZy9bY7Sxakez" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/as/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381038_repellat&text=Facere+eaque+ipsam+ex+blanditiis.+A+dolore+mollitia+officiis+nam+ab+hic+occaecati+fugiat.&title=Perspiciatis+quia+possimus+ipsum+quaerat+quis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "225" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381038_repellat/comments/at/perspiciatis_quia_possimus_ipsum_quaerat_quis/\", \"id\": \"at\", \"name\": \"t3_at\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "270.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "30" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/at/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFacere eaque ipsam ex blanditiis. A dolore mollitia officiis nam ab hic occaecati fugiat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Facere eaque ipsam ex blanditiis. A dolore mollitia officiis nam ab hic occaecati fugiat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"at\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/at/perspiciatis_quia_possimus_ipsum_quaerat_quis/\", \"locked\": false, \"name\": \"t3_at\", \"created\": 1542381086.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/at/perspiciatis_quia_possimus_ipsum_quaerat_quis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perspiciatis quia possimus ipsum quaerat quis.\", \"created_utc\": 1542381086.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1792" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "269.0" - ], - "x-ratelimit-reset": [ - "514" - ], - "x-ratelimit-used": [ - "31" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ZS9ZTn55G4i2trQ015VyEto9z1h%2BZngbGYchxQI7aKNcNjlVU21JjWV%2Bom8%2FfzX4rwYh1WaYL3L%2FM37PdMHy8CAnOSpzMba4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/at/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/hot?after=t3_ap&count=5&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381038_repellat\", \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ao\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"name\": \"t3_ao\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"locked\": false, \"stickied\": false, \"created\": 1542381070.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolore facere ipsa neque nam odit id praesentium.\", \"created_utc\": 1542381070.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381038_repellat\", \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Perspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"an\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"name\": \"t3_an\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"locked\": false, \"stickied\": false, \"created\": 1542381067.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Adipisci ab odio minima non harum autem officia.\", \"created_utc\": 1542381067.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381038_repellat\", \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"am\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"name\": \"t3_am\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"locked\": false, \"stickied\": false, \"created\": 1542381063.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae sunt reiciendis recusandae pariatur.\", \"created_utc\": 1542381063.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381038_repellat\", \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Reprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"al\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"name\": \"t3_al\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"locked\": false, \"stickied\": false, \"created\": 1542381060.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quas officiis nemo facilis.\", \"created_utc\": 1542381060.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381038_repellat\", \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ak\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"name\": \"t3_ak\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"locked\": false, \"stickied\": false, \"created\": 1542381057.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Est laborum beatae beatae.\", \"created_utc\": 1542381057.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_ak\", \"before\": \"t3_ao\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "7906" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "268.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "32" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HaVyaMyguUbQDCctJB5OKdp%2Bron31T%2Fn%2BkZVTyn5NMDDICSe4CYAxT3vOEBCfcJVu24K1tert%2BVnjOqiE8t9ijOvz2xy73gt" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/hot?after=t3_ap&count=5&limit=5&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ao/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDucimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ducimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ao\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"locked\": false, \"name\": \"t3_ao\", \"created\": 1542381070.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ao/dolore_facere_ipsa_neque_nam_odit_id_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolore facere ipsa neque nam odit id praesentium.\", \"created_utc\": 1542381070.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1803" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "267.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "33" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ctguqnyCPDfJCgVoynNcTCOCcQI0FY6Hw38M387YnItJ7C3Ya4d1Hl1%2BWT%2BCpnKomlfpDEhlOGJqOjQ%2BnzWBfME3TGP0s0oU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ao/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381038_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quos repudiandae a repudiandae deserunt.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita et quo ducimus molestias. Assumenda amet maiores nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5y\", \"created\": 1542381038.0, \"url\": \"/r/1542381038_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381038.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2321" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "266.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "34" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=CGI3HD%2FfiXv%2BSAG3XPtlrhyntjT1V%2BjEaX6whpw4vGUNaJSFqL%2BKWYyTraknl5KIYEytf6gdKzniUwLAXpsUKJA4avrqSR2I" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/an/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Perspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"an\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"locked\": false, \"name\": \"t3_an\", \"created\": 1542381067.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/an/adipisci_ab_odio_minima_non_harum_autem_officia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Adipisci ab odio minima non harum autem officia.\", \"created_utc\": 1542381067.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1816" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "265.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "35" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2A7t0u%2FUMMMz4bOQddGqNtKi8JXpozuDwx0Bi5JEWR7JT3knKmGvkP2FV4lBPXm9ggQFA%2FPIneok2YUG3r7uwHnSHdZIx6YA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/an/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381038_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quos repudiandae a repudiandae deserunt.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita et quo ducimus molestias. Assumenda amet maiores nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5y\", \"created\": 1542381038.0, \"url\": \"/r/1542381038_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381038.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2321" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "264.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "36" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=5TZUvUabmCE3RJ5lbpbjA1lMLYP0xK3RJdwKt1W6TMbsctew3YdoXE3kHU2pEMC1cwIp%2Bwl5VPhcMrWozVwXgTIhQMYGEUoD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/am/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Iste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"am\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"locked\": false, \"name\": \"t3_am\", \"created\": 1542381063.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/am/quae_sunt_reiciendis_recusandae_pariatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quae sunt reiciendis recusandae pariatur.\", \"created_utc\": 1542381063.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1773" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "263.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "37" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=b%2FAg6DBzm1iFCAd6DmbQEVmgZqocJvgnU2Y3abXfykUfcChoGOZTClVBPxkhk5Dq5poF8VzlNxux%2B3EvSnCTuE2miX1EkVO7" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/am/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381038_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quos repudiandae a repudiandae deserunt.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita et quo ducimus molestias. Assumenda amet maiores nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5y\", \"created\": 1542381038.0, \"url\": \"/r/1542381038_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381038.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2321" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "262.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "38" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cAz3iL9DcFSGJ06tUgGjGWbGIvQv4zFhG%2BVma4te1pXwI909Lzbi4rWP5c9Zla2ZtvF%2FAyZI6kn%2FXDXHrrDVzEeOC7OqO2rp" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/al/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EReprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Reprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"al\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"locked\": false, \"name\": \"t3_al\", \"created\": 1542381060.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/al/sapiente_quas_officiis_nemo_facilis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quas officiis nemo facilis.\", \"created_utc\": 1542381060.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1760" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "261.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "39" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dbfaBisO72%2BUg7nGT7A6R7fqMZeaasTynShyHvETjvGS3i2IIUs5f3Xz58SaUL8zVZIl6jLPeJJxiQApS6ue481aPuI07Odf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/al/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381038_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quos repudiandae a repudiandae deserunt.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita et quo ducimus molestias. Assumenda amet maiores nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5y\", \"created\": 1542381038.0, \"url\": \"/r/1542381038_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381038.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2321" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "260.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "40" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vY7i3ec4gby71f5%2FHsr2D8XqM7WQCYi%2FNv8gqLBR0dvA2%2F5KentVVwCE04bm0dtYCfgoVdH6DaEZtzCAv0ERWcbyrezggOHD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ak/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381038_repellat\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ak\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH5ME12ZJN5NJNP6BAQTVF\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381038_repellat\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"locked\": false, \"name\": \"t3_ak\", \"created\": 1542381057.0, \"url\": \"http://reddit.local/r/1542381038_repellat/comments/ak/est_laborum_beatae_beatae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Est laborum beatae beatae.\", \"created_utc\": 1542381057.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1702" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "259.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "41" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=U9x51yTeud55vEkGDDYqwX%2B6z%2BAJm2RDeQSIKSn7EZa04w0BEHtBPJUqifVgGSHyJvgrjjB9sHDOry5tRpy1wm8AGKxScHtX" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ak/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2318-jSlSX2QBs40-gDEwqc-cWVTxjQA" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=CwhsCE5mMtKSMIt9Zg; loidcreated=2018-11-16T15%3A10%3A34.901Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5y\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381038_repellat\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDelectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quos repudiandae a repudiandae deserunt.\", \"collapse_deleted_comments\": false, \"public_description\": \"Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita et quo ducimus molestias. Assumenda amet maiores nam totam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5y\", \"created\": 1542381038.0, \"url\": \"/r/1542381038_repellat/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381038.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2321" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "258.0" - ], - "x-ratelimit-reset": [ - "511" - ], - "x-ratelimit-used": [ - "42" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JXTUo6QvuUwCnPf%2B8Pwv4ctyptdEHv5xufWyivr%2FzMlxSGo3M%2FdJ67cJSSQF0qEXpZyK9XV4CmgVPERXHvcV5tAZaELA%2BZb1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381038_repellat/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json b/cassettes/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json deleted file mode 100644 index ca8b3448a8..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json +++ /dev/null @@ -1,4112 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:11:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH7CQQJD0C95VKDNGXN434" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjLQDXYvqgxNLkgNSikp84qM0A1Nyss21y2zLMqKVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Cs8/TIiAz0cXK2yHf0L3H0DwnxcUoxcat09otKB2lKSS3LTE6Nz0wBmQzhKNUCAEJblwa6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Dx0jQjrg1rEol676su; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:11:32 GMT", - "loidcreated=2018-11-16T15%3A11%3A32.572Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:11:32 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH7CQQJD0C95VKDNGXN434" - } - }, - { - "recorded_at": "2018-11-16T15:11:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH7FZWFKEE71ZQ4GP047KQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjLUDSr1LcgOzgzKtAw1LowKr0ryzTPNscjwdY7IV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csy/F2jUwxyCo39Q9MT8z2yMgzdSnzqyoLzfD3BWlKSS3LTE6Nz0wBmQzhKNUCACRPM/S6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH7FZWFKEE71ZQ4GP047KQ" - } - }, - { - "recorded_at": "2018-11-16T15:11:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Iusto+illum+cumque+delectus+eos+eum+facilis+error.+Non+iste+deleniti+est+vitae+id+inventore.+Non+quibusdam+harum+id+quia+officia+reprehenderit.%0ADignissimos+nam+esse+esse+praesentium+temporibus+iure+vitae.+Quia+nihil+vero+libero.+Maiores+nemo+dicta+ut+sunt+praesentium.%0AOdit+esse+officiis+facere+voluptatem+praesentium+vero.+Beatae+deserunt+doloremque+iure+molestias+nemo+quasi.+Earum+soluta+iure+nisi+omnis+ipsum+similique+laborum+quibusdam.+Molestiae+accusamus+ducimus+maxime+deserunt+officia.&link_type=any&name=1542381096_voluptates&public_description=Officia+ipsam+iste+sint+quia+sed+fuga.&title=Aperiam+perferendis+laborum+dolores+eius.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2321-RuMpkSiRi9U3qZWzbMn5l8hMCXo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "717" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "504" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH7CQQJD0C95VKDNGXN434&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2321-RuMpkSiRi9U3qZWzbMn5l8hMCXo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542381096_voluptates/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "501" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542381096_voluptates" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "501" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Molestias+ea+corporis+qui+magni.+Alias+maxime+vitae+quia+id+ad.&title=Nihil+eum+debitis+iste+autem+atque+at." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "193" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/au/nihil_eum_debitis_iste_autem_atque_at/\", \"id\": \"au\", \"name\": \"t3_au\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "501" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/au/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMolestias ea corporis qui magni. Alias maxime vitae quia id ad.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Molestias ea corporis qui magni. Alias maxime vitae quia id ad.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"au\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/au/nihil_eum_debitis_iste_autem_atque_at/\", \"locked\": false, \"name\": \"t3_au\", \"created\": 1542381099.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/au/nihil_eum_debitis_iste_autem_atque_at/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nihil eum debitis iste autem atque at.\", \"created_utc\": 1542381099.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "501" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7HJlC9zihC2nJEK6xwBzu81b60nIcS4kI%2FwUnMQ0M1k%2FOV410IQrNPRMZ7zbWjbHthmYn3pFumyvNaFN51UaUOL1%2FsLUDIPa" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/au/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Rerum+ut+nisi+placeat+laboriosam+sit+eos.+Temporibus+voluptas+assumenda+est+nam.&title=Odit+dicta+totam+odio+doloremque." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "205" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/av/odit_dicta_totam_odio_doloremque/\", \"id\": \"av\", \"name\": \"t3_av\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "164" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "498" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/av/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERerum ut nisi placeat laboriosam sit eos. Temporibus voluptas assumenda est nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Rerum ut nisi placeat laboriosam sit eos. Temporibus voluptas assumenda est nam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"av\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/av/odit_dicta_totam_odio_doloremque/\", \"locked\": false, \"name\": \"t3_av\", \"created\": 1542381102.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/av/odit_dicta_totam_odio_doloremque/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Odit dicta totam odio doloremque.\", \"created_utc\": 1542381102.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1743" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "498" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hQ5uISoYxY8toq8KsNQBb0nEgXuQEZ%2BX1hydrBgL5eQI2JmVLzsjhiHOAIYidcU18O%2B53zdbx1oEU1w0ePXANkpGxzDrXgHR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/av/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Neque+suscipit+ratione+perferendis+explicabo.+A+sapiente+occaecati+mollitia+voluptatem+incidunt.&title=Neque+amet+fugiat+vero+error+nam+rem+quisquam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "234" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/aw/neque_amet_fugiat_vero_error_nam_rem_quisquam/\", \"id\": \"aw\", \"name\": \"t3_aw\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "495" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/aw/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENeque suscipit ratione perferendis explicabo. A sapiente occaecati mollitia voluptatem incidunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Neque suscipit ratione perferendis explicabo. A sapiente occaecati mollitia voluptatem incidunt.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"aw\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/aw/neque_amet_fugiat_vero_error_nam_rem_quisquam/\", \"locked\": false, \"name\": \"t3_aw\", \"created\": 1542381105.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/aw/neque_amet_fugiat_vero_error_nam_rem_quisquam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Neque amet fugiat vero error nam rem quisquam.\", \"created_utc\": 1542381105.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1814" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "495" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=a9tlrQpcTVfroIxO34N0kzQOu%2B8qf7km%2F%2BBY0tGsjkX1VPQWA23WP9t5DqRsUpm9ZdjcgjvxSy55IL2EznQPrFVgRgwvb%2Bo8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/aw/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Dolorum+minus+odit+inventore+necessitatibus+rem.+Enim+nostrum+doloremque+omnis+aut+fugit.&title=At+impedit+voluptas+temporibus." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/ax/at_impedit_voluptas_temporibus/\", \"id\": \"ax\", \"name\": \"t3_ax\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "162" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "492" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ax/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDolorum minus odit inventore necessitatibus rem. Enim nostrum doloremque omnis aut fugit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dolorum minus odit inventore necessitatibus rem. Enim nostrum doloremque omnis aut fugit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ax\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/ax/at_impedit_voluptas_temporibus/\", \"locked\": false, \"name\": \"t3_ax\", \"created\": 1542381108.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/ax/at_impedit_voluptas_temporibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At impedit voluptas temporibus.\", \"created_utc\": 1542381108.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "492" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ZjJf%2B7wl84lVr9KuSKppxKdlZs92utfZXB%2FMcOUE%2FikucdVDCwhxtD4c%2F0DCQhSexPoDHf0LEgzqobLbFJOcsp0sMifVES%2Bf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ax/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Debitis+rerum+alias+culpa+quos+eos.+Impedit+sunt+aut+vitae+sit.&title=At+aliquid+beatae+unde+maiores+quaerat+nostrum." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "202" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"id\": \"ay\", \"name\": \"t3_ay\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "489" - ], - "x-ratelimit-used": [ - "10" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ay/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ay\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"locked\": false, \"name\": \"t3_ay\", \"created\": 1542381111.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At aliquid beatae unde maiores quaerat nostrum.\", \"created_utc\": 1542381111.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1751" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "488" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=cNKPjaebs69PT39fbHqJbWvQK4fptEbGik51W4j5EJUEzaMtdlUSQHPo5hZrTzwpuUBagVQCD%2BrWqe56lWcn0ApEo0M2fejR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ay/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Corrupti+vel+temporibus+nemo+architecto.+Maiores+qui+commodi+dolores.+Nobis+corrupti+nemo+quo+eum.&title=Harum+culpa+possimus+quaerat+atque+similique." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "235" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"id\": \"az\", \"name\": \"t3_az\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "176" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "485" - ], - "x-ratelimit-used": [ - "12" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/az/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"az\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"locked\": false, \"name\": \"t3_az\", \"created\": 1542381115.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum culpa possimus quaerat atque similique.\", \"created_utc\": 1542381115.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1815" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "485" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=EiJO0gmyprcLrN0hOcPSJ1RXJufiRzxTx9lKGB79oINV5vHCYuZQr3ZOpm%2BvhXoNsMzA9eWrMJ%2F%2FL%2B%2Fmnt%2FJadtFvAY2Zz6J" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/az/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Praesentium+quisquam+nemo+facere+asperiores+eum.+Nesciunt+nulla+alias+debitis+vero.&title=Consectetur+similique+officia+magnam+temporibus." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "223" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"id\": \"b0\", \"name\": \"t3_b0\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "179" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "482" - ], - "x-ratelimit-used": [ - "14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:11:58", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b0/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b0\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"locked\": false, \"name\": \"t3_b0\", \"created\": 1542381118.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur similique officia magnam temporibus.\", \"created_utc\": 1542381118.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1794" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:11:58 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "482" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Xd5uK6Ld%2Bmr80awtsI8z2MMzycryujytkfLKUkEL4Zc3pJIIh80Ep399K2QJaOVLz%2Fc28JavRf%2FK1anhoqygs9FywdPcgYNt" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b0/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Deserunt+doloribus+quaerat+dolore.+Itaque+error+hic+voluptate+maiores+deserunt+amet.&title=Illo+ducimus+soluta+repellendus+sed+aliquid." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"id\": \"b1\", \"name\": \"t3_b1\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "479" - ], - "x-ratelimit-used": [ - "16" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:01", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b1/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Deserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"locked\": false, \"name\": \"t3_b1\", \"created\": 1542381121.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Illo ducimus soluta repellendus sed aliquid.\", \"created_utc\": 1542381121.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1784" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:01 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "479" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9YgGm8b2%2B7%2Bc1QJmqyv7nusBASe1SrmMwhw7IHW5V5OUNIC9pLuoCVTEiXIrwUj92p%2FzHIREDp7H3yxIVnmGIyMveayJr%2F5%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b1/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Adipisci+vero+vel+dicta.+Ut+tempora+occaecati+eius+dicta+deleniti+nisi.&title=Fugiat+aperiam+hic+perferendis+amet+labore." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "206" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"id\": \"b2\", \"name\": \"t3_b2\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "476" - ], - "x-ratelimit-used": [ - "18" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:04", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b2/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAdipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Adipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"locked\": false, \"name\": \"t3_b2\", \"created\": 1542381124.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fugiat aperiam hic perferendis amet labore.\", \"created_utc\": 1542381124.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:04 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "281.0" - ], - "x-ratelimit-reset": [ - "476" - ], - "x-ratelimit-used": [ - "19" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kPFtwaVAjXFUI8S048i%2F37qu4WRp5DMprKIs4kg81atvFok8niUJrVzbUHmhRiazvHOxrr70%2FGa1BBxreVC%2BKhTRZ1LNqPXe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b2/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Ipsa+quisquam+autem+pariatur+non+quia.+Id+aliquid+temporibus+minus+explicabo+ipsum+dignissimos.&title=Laboriosam+a+ea+culpa+unde+alias+beatae." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "227" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b3/laboriosam_a_ea_culpa_unde_alias_beatae/\", \"id\": \"b3\", \"name\": \"t3_b3\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "171" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "280.0" - ], - "x-ratelimit-reset": [ - "473" - ], - "x-ratelimit-used": [ - "20" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b3/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIpsa quisquam autem pariatur non quia. Id aliquid temporibus minus explicabo ipsum dignissimos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ipsa quisquam autem pariatur non quia. Id aliquid temporibus minus explicabo ipsum dignissimos.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b3\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b3/laboriosam_a_ea_culpa_unde_alias_beatae/\", \"locked\": false, \"name\": \"t3_b3\", \"created\": 1542381127.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b3/laboriosam_a_ea_culpa_unde_alias_beatae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laboriosam a ea culpa unde alias beatae.\", \"created_utc\": 1542381127.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1794" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "279.0" - ], - "x-ratelimit-reset": [ - "473" - ], - "x-ratelimit-used": [ - "21" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=9Tq0xz%2FkaJzYk8cpl9AF93HMVjlml69IybNN2POEyYD8LusDBduMdVvQx0V908434bscbnLFBnZKgEvVcILME8kjOe5%2FwZdo" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b3/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Sapiente+occaecati+blanditiis+aliquam+fugit.+Deserunt+excepturi+delectus+animi+facere+iste.&title=Explicabo+commodi+est+similique+ad+eius+saepe." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b4/explicabo_commodi_est_similique_ad_eius_saepe/\", \"id\": \"b4\", \"name\": \"t3_b4\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "177" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "278.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "22" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b4/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESapiente occaecati blanditiis aliquam fugit. Deserunt excepturi delectus animi facere iste.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sapiente occaecati blanditiis aliquam fugit. Deserunt excepturi delectus animi facere iste.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b4\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b4/explicabo_commodi_est_similique_ad_eius_saepe/\", \"locked\": false, \"name\": \"t3_b4\", \"created\": 1542381130.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b4/explicabo_commodi_est_similique_ad_eius_saepe/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Explicabo commodi est similique ad eius saepe.\", \"created_utc\": 1542381130.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1804" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "277.0" - ], - "x-ratelimit-reset": [ - "470" - ], - "x-ratelimit-used": [ - "23" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vqtNaYgLJ%2BX7fGGhM7tMmAjTmq2hprZjhM3dQYulQPaZaJHsxO8NPcJYvrPo2C5Au4qeVhtQ6CdDNb3tWN%2F8TD99pDRJrjTR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b4/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Quas+quidem+eligendi+eos+autem+alias+nisi.+Earum+ratione+sunt+tempora+rem+recusandae.&title=Magni+sapiente+a+corporis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "203" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b5/magni_sapiente_a_corporis/\", \"id\": \"b5\", \"name\": \"t3_b5\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "276.0" - ], - "x-ratelimit-reset": [ - "467" - ], - "x-ratelimit-used": [ - "24" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b5/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuas quidem eligendi eos autem alias nisi. Earum ratione sunt tempora rem recusandae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quas quidem eligendi eos autem alias nisi. Earum ratione sunt tempora rem recusandae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b5\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b5/magni_sapiente_a_corporis/\", \"locked\": false, \"name\": \"t3_b5\", \"created\": 1542381133.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b5/magni_sapiente_a_corporis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Magni sapiente a corporis.\", \"created_utc\": 1542381133.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1732" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "275.0" - ], - "x-ratelimit-reset": [ - "467" - ], - "x-ratelimit-used": [ - "25" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0%2FMXnMQFntPk%2B58Q7si0VDlZkpJ2qEM6nDvnz7H52UrA9%2FjWKK3IxaEAej7KmkZLTFWtr%2BpvIE89sel0Iar6UsEsQLT%2BbYbh" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b5/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Ex+a+corrupti+nobis+porro+architecto+porro+sed.+Commodi+magni+officiis+perferendis+nihil+quia.&title=Ratione+accusantium+molestiae+harum+iure+optio." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "233" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b6/ratione_accusantium_molestiae_harum_iure_optio/\", \"id\": \"b6\", \"name\": \"t3_b6\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "274.0" - ], - "x-ratelimit-reset": [ - "464" - ], - "x-ratelimit-used": [ - "26" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b6/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEx a corrupti nobis porro architecto porro sed. Commodi magni officiis perferendis nihil quia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Ex a corrupti nobis porro architecto porro sed. Commodi magni officiis perferendis nihil quia.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b6\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b6/ratione_accusantium_molestiae_harum_iure_optio/\", \"locked\": false, \"name\": \"t3_b6\", \"created\": 1542381136.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b6/ratione_accusantium_molestiae_harum_iure_optio/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ratione accusantium molestiae harum iure optio.\", \"created_utc\": 1542381136.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1813" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "273.0" - ], - "x-ratelimit-reset": [ - "463" - ], - "x-ratelimit-used": [ - "27" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vzDudmI4LjPy13zE7OqMlgIFObrnfUPNX60aPVcYyO%2FmCfO68jXOK2pi7GcLwc9nZNg17Rb3cFA%2Fffik4P%2FEoMdJhi7ZdL%2B9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b6/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Non+eius+nisi+sunt+aliquid.+Impedit+quae+itaque+non+impedit.+Voluptas+maiores+illum+cum+vero.&title=Alias+architecto+illo+debitis+quasi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "221" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b7/alias_architecto_illo_debitis_quasi/\", \"id\": \"b7\", \"name\": \"t3_b7\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "167" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "272.0" - ], - "x-ratelimit-reset": [ - "460" - ], - "x-ratelimit-used": [ - "28" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b7/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENon eius nisi sunt aliquid. Impedit quae itaque non impedit. Voluptas maiores illum cum vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Non eius nisi sunt aliquid. Impedit quae itaque non impedit. Voluptas maiores illum cum vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b7\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b7/alias_architecto_illo_debitis_quasi/\", \"locked\": false, \"name\": \"t3_b7\", \"created\": 1542381140.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b7/alias_architecto_illo_debitis_quasi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Alias architecto illo debitis quasi.\", \"created_utc\": 1542381140.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1778" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "271.0" - ], - "x-ratelimit-reset": [ - "460" - ], - "x-ratelimit-used": [ - "29" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=gXSkP%2BmewRTkfyAZSwSexTcTCJB5sGjYpGY39yF9BRwcblQesjG4tzJEG41tRO4lDRpbFjzrZzF5fZTrqhtczf%2F%2FlWMfwKJU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b7/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542381096_voluptates&text=Cum+ex+commodi+excepturi+iusto+ea+at+repudiandae.+Quo+vitae+sequi+doloribus+at+architecto.&title=Eaque+nobis+corporis+sequi+nostrum+in." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "220" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542381096_voluptates/comments/b8/eaque_nobis_corporis_sequi_nostrum_in/\", \"id\": \"b8\", \"name\": \"t3_b8\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "270.0" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "30" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b8/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECum ex commodi excepturi iusto ea at repudiandae. Quo vitae sequi doloribus at architecto.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Cum ex commodi excepturi iusto ea at repudiandae. Quo vitae sequi doloribus at architecto.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b8\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b8/eaque_nobis_corporis_sequi_nostrum_in/\", \"locked\": false, \"name\": \"t3_b8\", \"created\": 1542381143.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b8/eaque_nobis_corporis_sequi_nostrum_in/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Eaque nobis corporis sequi nostrum in.\", \"created_utc\": 1542381143.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1778" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "269.0" - ], - "x-ratelimit-reset": [ - "457" - ], - "x-ratelimit-used": [ - "31" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2P%2FrX40fdxjPMI3QiElxW2Ch6%2F%2BiwAZ1kfREnq9GCZHQtENyoFy8FmkO8frNAad5IwaRrxuOGzkFj4nkQd22fQ0VLILCJwDg" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b8/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/hot?after=t3_b3&count=5&limit=5&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381096_voluptates\", \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAdipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Adipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"name\": \"t3_b2\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"locked\": false, \"stickied\": false, \"created\": 1542381124.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fugiat aperiam hic perferendis amet labore.\", \"created_utc\": 1542381124.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381096_voluptates\", \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Deserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"name\": \"t3_b1\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"locked\": false, \"stickied\": false, \"created\": 1542381121.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Illo ducimus soluta repellendus sed aliquid.\", \"created_utc\": 1542381121.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381096_voluptates\", \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b0\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"name\": \"t3_b0\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"locked\": false, \"stickied\": false, \"created\": 1542381118.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur similique officia magnam temporibus.\", \"created_utc\": 1542381118.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381096_voluptates\", \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"az\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"name\": \"t3_az\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"locked\": false, \"stickied\": false, \"created\": 1542381115.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum culpa possimus quaerat atque similique.\", \"created_utc\": 1542381115.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542381096_voluptates\", \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ay\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"name\": \"t3_ay\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"locked\": false, \"stickied\": false, \"created\": 1542381111.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At aliquid beatae unde maiores quaerat nostrum.\", \"created_utc\": 1542381111.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": \"t3_ay\", \"before\": \"t3_b2\"}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "7951" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "268.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "32" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sJwfjviJH3p2uOS5%2Fz0B%2B%2BH4n%2FZTtbFLuoJQG0201WDDBn302saGoCKfPtBRpuQgl7DH%2FqdSxdZU1PiZCTsGLe%2Fj3a7I6BPL" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/hot?after=t3_b3&count=5&limit=5&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b2/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAdipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Adipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b2\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"locked\": false, \"name\": \"t3_b2\", \"created\": 1542381124.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b2/fugiat_aperiam_hic_perferendis_amet_labore/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fugiat aperiam hic perferendis amet labore.\", \"created_utc\": 1542381124.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1755" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "267.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "33" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=og7NpQmFCJHKuJc95FG%2BHEhKGCv5RSK2LFXGvRcIcNdKN37Q4Mj8kJWVxO8k1r%2BMnPFaVBsjy8EGOXyncuwxbr93wc6QJHGZ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b2/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381096_voluptates\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Aperiam perferendis laborum dolores eius.\", \"collapse_deleted_comments\": false, \"public_description\": \"Officia ipsam iste sint quia sed fuga.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsam iste sint quia sed fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5z\", \"created\": 1542381096.0, \"url\": \"/r/1542381096_voluptates/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381096.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2438" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "266.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "34" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2FvHYNsNLDRqm2kd91YEZ30DoK1U7wvGtQxmvlGonz1iQF0hdMiUMMSYVfz5uP11gdI7nA4DGOVq0KPAJ2hNobq5gIv%2BFIJ14" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b1/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Deserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b1\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"locked\": false, \"name\": \"t3_b1\", \"created\": 1542381121.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b1/illo_ducimus_soluta_repellendus_sed_aliquid/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Illo ducimus soluta repellendus sed aliquid.\", \"created_utc\": 1542381121.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1784" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "265.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "35" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=y8c84z1g6kYrUEfqytYXWzYXeMT2kKylmxZOhnB%2Bth7DedAZoYaR9NK5ktiZkBu1td3uDeB48VhfnSOy7CLQDFivxT%2BWRWtN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b1/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381096_voluptates\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Aperiam perferendis laborum dolores eius.\", \"collapse_deleted_comments\": false, \"public_description\": \"Officia ipsam iste sint quia sed fuga.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsam iste sint quia sed fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5z\", \"created\": 1542381096.0, \"url\": \"/r/1542381096_voluptates/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381096.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2438" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "264.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "36" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=jlZcxmjwPCCiXlPVAQBPCvoD%2FA%2BvYBx%2BZXIcrqe2Ol3935LaaFoLuEts%2BqNMXSZkN7rX9tpPGWj62FutSSJgazkSZjKWwnNN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/b0/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPraesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Praesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"b0\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"locked\": false, \"name\": \"t3_b0\", \"created\": 1542381118.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/b0/consectetur_similique_officia_magnam_temporibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur similique officia magnam temporibus.\", \"created_utc\": 1542381118.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1794" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "263.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "37" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rKpONZc5p1jbnbkBjFFftwz4LxHcvlq6Ias6u0vrVAIanGw1lsd5Ql9XSfZkMiUfRbbiyPtWl%2BmbZigyORnbu0KkEkbZ72fx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/b0/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381096_voluptates\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Aperiam perferendis laborum dolores eius.\", \"collapse_deleted_comments\": false, \"public_description\": \"Officia ipsam iste sint quia sed fuga.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsam iste sint quia sed fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5z\", \"created\": 1542381096.0, \"url\": \"/r/1542381096_voluptates/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381096.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2438" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "262.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "38" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SDkBoEk7w9HjdMpB%2Fq5NbLenqz%2B9m6bwBAf0kD%2BxFUPBqFgtPq8mvIUl64AJqsTUpGMkbhpVwt1AdVon6yvPjF%2FU20wQsBXU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/az/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"az\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"locked\": false, \"name\": \"t3_az\", \"created\": 1542381115.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/az/harum_culpa_possimus_quaerat_atque_similique/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum culpa possimus quaerat atque similique.\", \"created_utc\": 1542381115.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1815" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "261.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "39" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=2Oga%2BGZN2veCp0%2FvHl3jPNlUXjMwtsO9RKAHF5tPf1wQjj%2B0%2FnSDGHfOf%2BSOwNXgLD2QrP7nPz8xsM9sFXfi%2FNU0DzpgVYp6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/az/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381096_voluptates\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Aperiam perferendis laborum dolores eius.\", \"collapse_deleted_comments\": false, \"public_description\": \"Officia ipsam iste sint quia sed fuga.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsam iste sint quia sed fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5z\", \"created\": 1542381096.0, \"url\": \"/r/1542381096_voluptates/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381096.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2438" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "260.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "40" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dWde16biTjkYN7oCZdpPbOakd3YXefn9aShRN5MMqlcodcb9yrgDWWuulsjsj5enePHuSYCbOHMT1o2fYyrNGsL3MgESBw7h" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/ay/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542381096_voluptates\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"ay\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH7CQQJD0C95VKDNGXN434\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542381096_voluptates\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"locked\": false, \"name\": \"t3_ay\", \"created\": 1542381111.0, \"url\": \"http://reddit.local/r/1542381096_voluptates/comments/ay/at_aliquid_beatae_unde_maiores_quaerat_nostrum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At aliquid beatae unde maiores quaerat nostrum.\", \"created_utc\": 1542381111.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1751" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "259.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "41" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=xfubAI%2F0DUYrcf4u%2BAre3AeWaSx336kKiH8x8qNlMdR1hnrjRKV1m9fzPbwZXLp4nE%2ByJF2%2B0NiQb9xKIt5XTTn2qZ06KFQ8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/ay/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:12:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2320-SGryUcpeRdtvJYX-Ubnk7-v9rjY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Dx0jQjrg1rEol676su; loidcreated=2018-11-16T15%3A11%3A32.572Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542381096_voluptates\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Aperiam perferendis laborum dolores eius.\", \"collapse_deleted_comments\": false, \"public_description\": \"Officia ipsam iste sint quia sed fuga.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOfficia ipsam iste sint quia sed fuga.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5z\", \"created\": 1542381096.0, \"url\": \"/r/1542381096_voluptates/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542381096.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2438" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:12:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "258.0" - ], - "x-ratelimit-reset": [ - "454" - ], - "x-ratelimit-used": [ - "42" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yNoyElkWHP9E9F3znAomYnu61sylpUTtlUhnLaEfO7EVpWQykL6cF1gpvVA3G%2BhfdbcMRTk%2B07UFzb4RRbMhNaMHnHIeF317" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542381096_voluptates/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_sorted[hot].json b/cassettes/channels.views.posts_test.test_list_posts_sorted[hot].json deleted file mode 100644 index 650026f870..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_sorted[hot].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:07:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGZA3NRMPJANA8PPRYS84N" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjDT9da1KPavKKgyyAv3MMws9PT2jnQMCXSOKgwpVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsC7LIysgxCogP8y2LDE4rSQtN9HPWjcwrdjNKB2lKSS3LTE6Nz0wBmQzhKNUCANdpq4C6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:07 GMT", - "loidcreated=2018-11-16T15%3A07%3A07.617Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGZA3NRMPJANA8PPRYS84N" - } - }, - { - "recorded_at": "2018-11-16T15:07:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGZDD3DHEYPM8GZGZGK8ND" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12Nyw6CMBREf4V0aTSpkkh0KZs2YSeJ6KYpl2u4Ci22SHzEf5fKzuVM5px5Mw2A3qveXtGwbcRWMU8WHkrR1JbfdnfS6eVkYCMpz/ctAptHDB8dOfSKAhGvOR+7n0D1zw6DpUTt0IWtBztVs5Acnkew/rs7pDI5JqLJRFvAq5BDsQRtclNlMkAVDgSoqArmKbDPF2MeP8u6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEGZDD3DHEYPM8GZGZGK8ND" - } - }, - { - "recorded_at": "2018-11-16T15:07:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Et+doloribus+assumenda+quidem.+Occaecati+excepturi+ratione+consequuntur.+Repellendus+eius+maxime+reiciendis+aspernatur+voluptatibus+dolores.+Architecto+facere+harum+beatae+dolorem+laborum+officiis+eius.%0ADucimus+quaerat+voluptatum+assumenda+dignissimos+accusantium.+Adipisci+omnis+delectus+sed+dolorem+facere+corporis+quasi.+Sequi+cupiditate+quos+neque+totam+ad+error.+Nihil+reprehenderit+laboriosam+labore+nemo.&link_type=any&name=1542380831_sequi&public_description=Atque+aspernatur+libero+vel+ullam+commodi+rem+iure.&title=Earum+repellat+ipsum+assumenda.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2307-scbHlho0qBuiaCjZnc9IiTTSmec" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "630" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "169" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEGZA3NRMPJANA8PPRYS84N&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2307-scbHlho0qBuiaCjZnc9IiTTSmec" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380831_sequi/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "166" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380831_sequi" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "166" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380831_sequi&text=Expedita+suscipit+quae+impedit.+Ea+totam+et+saepe.+Et+odio+a+voluptate+voluptas+fugiat+quae.&title=Ad+magni+quis+maiores+deserunt." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "210" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"id\": \"95\", \"name\": \"t3_95\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "166" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/95/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"95\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"locked\": false, \"name\": \"t3_95\", \"created\": 1542380834.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ad magni quis maiores deserunt.\", \"created_utc\": 1542380834.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1741" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "166" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4skeFwq1dvPzCq5zxtzVZCYlO0S2oAPOI%2B%2FhxXsAHFJTT3sWAUsuvJfmz2vtjETUMEk2SIVnlfbaB1yKkq2RgHXyocW6p5Jx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/95/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380831_sequi&text=Assumenda+eveniet+consequatur+eos+autem+quos.+Autem+architecto+iure+nesciunt+voluptatibus.&title=Dignissimos+at+repellat+explicabo+rem+earum." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "221" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"id\": \"96\", \"name\": \"t3_96\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "163" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/96/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAssumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Assumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"96\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"locked\": false, \"name\": \"t3_96\", \"created\": 1542380837.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dignissimos at repellat explicabo rem earum.\", \"created_utc\": 1542380837.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1776" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "163" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IWyYIiytN1qhgnQmwbh8Oi0uOccWCFLME5Tti9yZdLbvGjer4cFFP2jCnNQ2v29qL%2F9NUddQ4UWlZQksQBHrkmhhVJFVyQsD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/96/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380831_sequi&text=Corrupti+at+dolorum+natus+neque+molestiae+veritatis.+Ab+ex+vero+beatae+vel+quaerat.&title=Sapiente+quidem+officiis+consectetur+amet." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"id\": \"97\", \"name\": \"t3_97\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "160" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/97/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"97\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"locked\": false, \"name\": \"t3_97\", \"created\": 1542380840.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quidem officiis consectetur amet.\", \"created_utc\": 1542380840.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "159" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=1ekSp4pLXWJKse2vI%2FJJy%2BRQadkXOhZCgtQeuKLLZhdqEZWepkdwX2eBy4cC3wqc6o2ct4ZRjU5EcF3Uzle%2BAF44HLqNsNqQ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/97/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380831_sequi&text=Quaerat+illum+explicabo+cumque+quo+hic.+Ratione+minima+officia+dolorum+blanditiis+ex+est.&title=Dolorum+voluptates+quisquam+ab+totam+occaecati." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "223" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"id\": \"98\", \"name\": \"t3_98\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "156" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/98/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"98\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"locked\": false, \"name\": \"t3_98\", \"created\": 1542380844.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolorum voluptates quisquam ab totam occaecati.\", \"created_utc\": 1542380844.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "156" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yANf2nk6yZ9tkPsEh5oOw9tU1yjP7ui903Cqx%2FbPTP8owEhf49bWQx3PK%2B40kHZCJvb5BOC4ThZVx0zKxc4tdgi6oqkQM%2FGI" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/98/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380831_sequi/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380831_sequi\", \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"98\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"name\": \"t3_98\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"locked\": false, \"stickied\": false, \"created\": 1542380844.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolorum voluptates quisquam ab totam occaecati.\", \"created_utc\": 1542380844.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380831_sequi\", \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"97\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"name\": \"t3_97\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"locked\": false, \"stickied\": false, \"created\": 1542380840.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quidem officiis consectetur amet.\", \"created_utc\": 1542380840.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380831_sequi\", \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAssumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Assumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"96\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"name\": \"t3_96\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"locked\": false, \"stickied\": false, \"created\": 1542380837.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dignissimos at repellat explicabo rem earum.\", \"created_utc\": 1542380837.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380831_sequi\", \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"95\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"name\": \"t3_95\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"locked\": false, \"stickied\": false, \"created\": 1542380834.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ad magni quis maiores deserunt.\", \"created_utc\": 1542380834.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6311" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=S8Nz9hhVcvv39pkHepNZFkw2yYerHZdoGSBNVCVZ1PfxHGJerty9dl44JKH%2BaKJ1FjZIdV5zbmsRo9urPRbkhxoWJ1m%2BsQc2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/98/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"98\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"locked\": false, \"name\": \"t3_98\", \"created\": 1542380844.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/98/dolorum_voluptates_quisquam_ab_totam_occaecati/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dolorum voluptates quisquam ab totam occaecati.\", \"created_utc\": 1542380844.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kY%2FfnUfm7oje%2BEKZMUzAEK%2Bw5hEwSnRb%2FbFNuTN7iHVSVvCcN5HFnVknsrwBwFdrFtrdBjcBkzB6xDrPxeu%2FBdzNm%2FKDgmvk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/98/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380831_sequi\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Earum repellat ipsum assumenda.\", \"collapse_deleted_comments\": false, \"public_description\": \"Atque aspernatur libero vel ullam commodi rem iure.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAtque aspernatur libero vel ullam commodi rem iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Et doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5s\", \"created\": 1542380831.0, \"url\": \"/r/1542380831_sequi/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380831.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2276" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ip28%2FHpxtvDe5olvtBIPmmfXOl1lCaP7LKO0RK7VlSaf9l3RPDYQQMq96iWI%2BYdf6ArlMf7sP3gFm3ykAHFlJaU9Fab9v0ZY" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/97/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECorrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Corrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"97\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"locked\": false, \"name\": \"t3_97\", \"created\": 1542380840.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/97/sapiente_quidem_officiis_consectetur_amet/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sapiente quidem officiis consectetur amet.\", \"created_utc\": 1542380840.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=YFcvQwi7RUJ8GqZjpiv9mKhm8OKJvItZ7upX4RZf9lt%2Fggpt8V6RG6g4v6p1JQ9H8UriDjFCFK8c%2BUHCeEgpRy23BoFDSTom" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/97/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380831_sequi\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Earum repellat ipsum assumenda.\", \"collapse_deleted_comments\": false, \"public_description\": \"Atque aspernatur libero vel ullam commodi rem iure.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAtque aspernatur libero vel ullam commodi rem iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Et doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5s\", \"created\": 1542380831.0, \"url\": \"/r/1542380831_sequi/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380831.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2276" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=qqs1w4CDcj091sS7dBwicQrZNCetku%2Bz0kN%2BdHGHkJWGjwADsccSf0rG46pYBKYcPytUm8xQWHpBMhJUVnWdd5DQsbfrVhrR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/96/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAssumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Assumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"96\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"locked\": false, \"name\": \"t3_96\", \"created\": 1542380837.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/96/dignissimos_at_repellat_explicabo_rem_earum/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Dignissimos at repellat explicabo rem earum.\", \"created_utc\": 1542380837.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1776" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IQGguN1Sk8Ewu5aPjrjUyF8q0DWRbpBJ9MBzGS%2Fkzaju38yWNnAOQaQSmGhAnkFy1OaybYn9VrvtqB5d98s2zSz3G9zD0%2B%2FE" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/96/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380831_sequi\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Earum repellat ipsum assumenda.\", \"collapse_deleted_comments\": false, \"public_description\": \"Atque aspernatur libero vel ullam commodi rem iure.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAtque aspernatur libero vel ullam commodi rem iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Et doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5s\", \"created\": 1542380831.0, \"url\": \"/r/1542380831_sequi/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380831.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2276" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B2jxPuxJDlerFfUJb2yrKrN2kXEdTJBhi3EMEVpl7GLTO2%2Bkq3As1BEN4jOEtaagSvBBdQxxRo%2FqyN0cl8tk6IzXEXMH%2Ff1I" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/95/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380831_sequi\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EExpedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Expedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"95\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEGZA3NRMPJANA8PPRYS84N\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380831_sequi\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"locked\": false, \"name\": \"t3_95\", \"created\": 1542380834.0, \"url\": \"http://reddit.local/r/1542380831_sequi/comments/95/ad_magni_quis_maiores_deserunt/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Ad magni quis maiores deserunt.\", \"created_utc\": 1542380834.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1741" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=iFQVZ5zXxAlh%2BkbRxWkUVRQSikK76c8dMiE5z20BYUo022UrWlUcRRDdXbW837fFqynsBzNzbdHTBKihDllyZqFMx7vvKX4n" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/95/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2306-K-8sOxpz0nWH1iqIKKYATQCZqTs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=8g4WUdB1dQ6tboBHeS; loidcreated=2018-11-16T15%3A07%3A07.617Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5s\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380831_sequi\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEt doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Earum repellat ipsum assumenda.\", \"collapse_deleted_comments\": false, \"public_description\": \"Atque aspernatur libero vel ullam commodi rem iure.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAtque aspernatur libero vel ullam commodi rem iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Et doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5s\", \"created\": 1542380831.0, \"url\": \"/r/1542380831_sequi/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380831.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2276" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "153" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=KcS2NeT4feuVrrO8RbSJ1gD7D6vw88eGERMGZZhKe9XCUKVSdPrg%2FwQEEDAy7g60muALGluE8QBatcqpkIE5w%2FqmVBQJQDBR" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380831_sequi/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_sorted[new].json b/cassettes/channels.views.posts_test.test_list_posts_sorted[new].json deleted file mode 100644 index 727b1a6ca7..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_sorted[new].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:07:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH0Q0XQ49S7PVDNH0AS5CA" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQ6CMBREr0K6NJKUogTdo2yIiUpw10D7wQa0pAVUjHeXLzuXM5n35k1yIcBa3uka7mTrEOZ71L0VyZiw5jFEbg9esE8Ppjmlu14UK7J0CDxbZcByhYQfUDp1PwHvXi2gpYDcgMGtFXquFpgMlBN4/buTR9bGZcZk3Xc8jMdQnC+ZjrzNukJIwqAEcCXRPAfy+QJvhjvrugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=EBCBxZddYAnNZbcPi4; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:53 GMT", - "loidcreated=2018-11-16T15%3A07%3A53.622Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:53 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH0Q0XQ49S7PVDNH0AS5CA" - } - }, - { - "recorded_at": "2018-11-16T15:07:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH0T9W280DZW73XPA1MB1G" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12N0QqCMBiFX0V2GQ2cKxndhUIYRBgMwpuh84/WMsdmw4jePZd3XZ7D+b7zRrWU4JwYeg0PtIlQQgnBz9WA6/WYEHZqbiOzle5opYqSe4aWEYLRKAtOqEDQNI6n7icQw8tAsDRQW7Bh62Q/V4uQLFwm8Pp3R8hOi731h2OX8zMudF76u2mydMsD1IJXEoRqg3kO6PMFJFpTR7oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH0T9W280DZW73XPA1MB1G" - } - }, - { - "recorded_at": "2018-11-16T15:07:57", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Hic+alias+reiciendis+nihil+consequatur+amet.+Alias+ut+ad+ea+quae+harum+sint+labore+itaque.+Impedit+dolor+perspiciatis+blanditiis.+Fugit+quaerat+quia+modi.%0ANostrum+vero+aliquam+optio+officia.+Soluta+neque+non+non+architecto.+In+assumenda+aspernatur+quos+ipsum+cum+itaque.&link_type=any&name=1542380877_totam&public_description=Necessitatibus+voluptatibus+animi+officiis+tempora+autem+eligendi+repellat.&title=Nihil+eos+praesentium+molestiae.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2311-u4t-a5x218Rbjx8rZkm3ZiIQUv8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "514" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:57 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "123" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH0Q0XQ49S7PVDNH0AS5CA&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2311-u4t-a5x218Rbjx8rZkm3ZiIQUv8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380877_totam/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "120" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380877_totam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "120" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380877_totam&text=Debitis+fugiat+repudiandae+iure+repellat+molestiae.+Quod+quibusdam+illum+eveniet+perspiciatis.&title=Vel+magni+vitae+nisi+vitae+sequi+rem+veniam." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "225" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"id\": \"9d\", \"name\": \"t3_9d\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "170" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "120" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9d/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"locked\": false, \"name\": \"t3_9d\", \"created\": 1542380880.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Vel magni vitae nisi vitae sequi rem veniam.\", \"created_utc\": 1542380880.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1784" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "120" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=TkpNmOT4MdeGz5G52BnRQuwn9CkiwVH5WO%2FUosYvdCRHdPy9ZaYZhogGEObAdLfGMAtk1Cb%2FvDkrOvK3VuoMmg%2B2kDMQQC%2BK" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9d/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380877_totam&text=Beatae+minima+at+delectus.+Illo+magnam+et+consequatur+nam+facere+odio+ex.&title=Porro+odit+corporis+suscipit+eum+voluptatibus." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "206" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"id\": \"9e\", \"name\": \"t3_9e\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "117" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:03", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBeatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Beatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"locked\": false, \"name\": \"t3_9e\", \"created\": 1542380883.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Porro odit corporis suscipit eum voluptatibus.\", \"created_utc\": 1542380883.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1748" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:03 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "117" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=EyZohby%2FqMkXCwJ4skvSmowGBBQa9d75spQUiKIHwfCmAt9K4nJmIh%2FcuibndftsZU40kGhafYlCLS%2BqlVwGgISl0Q9ZhhHb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380877_totam&text=Quod+soluta+consequatur+nesciunt+eos+ullam.+Molestias+temporibus+amet+adipisci+doloremque.&title=Quis+amet+fugiat+non." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "198" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"id\": \"9f\", \"name\": \"t3_9f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "147" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "114" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"locked\": false, \"name\": \"t3_9f\", \"created\": 1542380886.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quis amet fugiat non.\", \"created_utc\": 1542380886.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1707" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "114" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=q9Kvi4qwSw%2FaKcJWdoDCH8%2FVjUSpm%2BRBXEDxxU2XIZKSiW%2F1a%2B5mLxdJTXnXrarID5d0b9dWOUMsrsy%2BCFoMnWAIkLwhJ0KN" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380877_totam&text=Vero+id+voluptatem+dicta+ad.+Quas+et+expedita+autem+sequi+quasi+ipsum.+Magni+aspernatur+fuga+ipsam.&title=Quibusdam+accusantium+occaecati+tempora+corrupti." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "235" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"id\": \"9g\", \"name\": \"t3_9g\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "110" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9g/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9g\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"locked\": false, \"name\": \"t3_9g\", \"created\": 1542380890.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quibusdam accusantium occaecati tempora corrupti.\", \"created_utc\": 1542380890.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1809" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "110" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Le7fMWLgS1nGpbdwzA3tKY7r5ziZlQNpGWsYv0pdSixBddZa8IVhwpiuD871zjAhoJo4A%2FoCWkri1LMtEZtd2AChMOPPxcpb" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9g/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380877_totam/new?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380877_totam\", \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9g\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"name\": \"t3_9g\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"locked\": false, \"stickied\": false, \"created\": 1542380890.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quibusdam accusantium occaecati tempora corrupti.\", \"created_utc\": 1542380890.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380877_totam\", \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"name\": \"t3_9f\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"locked\": false, \"stickied\": false, \"created\": 1542380886.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quis amet fugiat non.\", \"created_utc\": 1542380886.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380877_totam\", \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBeatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Beatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"name\": \"t3_9e\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"locked\": false, \"stickied\": false, \"created\": 1542380883.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Porro odit corporis suscipit eum voluptatibus.\", \"created_utc\": 1542380883.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380877_totam\", \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"name\": \"t3_9d\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"locked\": false, \"stickied\": false, \"created\": 1542380880.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Vel magni vitae nisi vitae sequi rem veniam.\", \"created_utc\": 1542380880.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6303" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Oyknu52pqCUTmMzTu8LYceCWxi4q2OOtdLUaT1iB%2BVrfx7Ar0TeKtL0q%2BEOtEflvUTcGZp8paegLKU%2FcVPHUacH2cP3i3lux" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/new?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9g/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9g\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"locked\": false, \"name\": \"t3_9g\", \"created\": 1542380890.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9g/quibusdam_accusantium_occaecati_tempora_corrupti/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quibusdam accusantium occaecati tempora corrupti.\", \"created_utc\": 1542380890.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1809" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=EruPqCNH6wHsMIp1rY5B3FMYLaBHB8VzfDPwrX0glsdXsuUCTAH8KFujd%2BigEAXBbVaUJGbk287QmqkVUUvvxCDAiE91P4iM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9g/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5u\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380877_totam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nihil eos praesentium molestiae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Necessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Hic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5u\", \"created\": 1542380877.0, \"url\": \"/r/1542380877_totam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380877.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2043" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Wbkee0UVRrVQgatZjmYL2fs58jgeAp9QfctJgzcsdIV1cCk%2Fo1pne%2BsHEATBaIXwJQRc4LhlpVb43t9X3TbNHI1g9P9q5GBy" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"locked\": false, \"name\": \"t3_9f\", \"created\": 1542380886.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9f/quis_amet_fugiat_non/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quis amet fugiat non.\", \"created_utc\": 1542380886.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1707" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mvGOKsA17Mn75BP8JhzJcm8oq2cI3fD2o6QbjkPSo2GCFqcYPzIYfJpKnCqV%2BDLtVQ7gSBHR9OH6i2qH2j%2FgNX5otMjSQuSL" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5u\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380877_totam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nihil eos praesentium molestiae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Necessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Hic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5u\", \"created\": 1542380877.0, \"url\": \"/r/1542380877_totam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380877.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2043" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=B2ORrCbsb9oWCkYfAZpcD%2F%2FLqxxbb%2FgsdmdAcUP7TeEFgBAxLs82%2F598LxTwfkvC9P7S5%2F3f53mkvQKaV1vwbOfsJ9d1zJUH" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EBeatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Beatae minima at delectus. Illo magnam et consequatur nam facere odio ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"locked\": false, \"name\": \"t3_9e\", \"created\": 1542380883.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9e/porro_odit_corporis_suscipit_eum_voluptatibus/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Porro odit corporis suscipit eum voluptatibus.\", \"created_utc\": 1542380883.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1748" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=yL%2FTv1RFQrUgUcgYzpviuZpOp6ePFip4kax4FOvLEdWXxqb86HqAwZ70e61l4xbSXxBs7bAeyAHuc64lvrvoWFMowTtt9kwU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5u\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380877_totam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nihil eos praesentium molestiae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Necessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Hic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5u\", \"created\": 1542380877.0, \"url\": \"/r/1542380877_totam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380877.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2043" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mg22FJmGLeY3WKvuxFt0sLUsgmhWMZmwVS42l4M6b%2FMmTrUxQ0mTLE9SnYozAESlFXWQn1iQPfP9ziBy54cvgVCvFWNNKZVx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9d/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380877_totam\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDebitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Debitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9d\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH0Q0XQ49S7PVDNH0AS5CA\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380877_totam\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5u\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"locked\": false, \"name\": \"t3_9d\", \"created\": 1542380880.0, \"url\": \"http://reddit.local/r/1542380877_totam/comments/9d/vel_magni_vitae_nisi_vitae_sequi_rem_veniam/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Vel magni vitae nisi vitae sequi rem veniam.\", \"created_utc\": 1542380880.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1784" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=t2KyTUha0x927S7JQp%2BW31ZU7CAqNYNyDRmUxK3XOCTgvvMCfCEbi6Bqm9%2Fe3x%2Bu8Vi6rNokXbuMfkOEdOGwkwuNs9xzBStG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9d/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2310-mbMzM2lwvE-ue16GUOrlSUFucb4" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=EBCBxZddYAnNZbcPi4; loidcreated=2018-11-16T15%3A07%3A53.622Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5u\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380877_totam\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Nihil eos praesentium molestiae.\", \"collapse_deleted_comments\": false, \"public_description\": \"Necessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENecessitatibus voluptatibus animi officiis tempora autem eligendi repellat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Hic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5u\", \"created\": 1542380877.0, \"url\": \"/r/1542380877_totam/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380877.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2043" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=VQmbn2IbUPnMVw75tYffeD4n9hZS9GO8xCaHOyLNqmmMgZMW5WPIL5UIp9w6qJzqecliIKm2aSjLfM6a62VT8p3UVbDGmw%2BU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380877_totam/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_sorted[top].json b/cassettes/channels.views.posts_test.test_list_posts_sorted[top].json deleted file mode 100644 index 01a3d0f736..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_sorted[top].json +++ /dev/null @@ -1,1943 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:07:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH00N5E0PR2CH2RXFJEVVC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBzFv4rsGAmmbklHDy6S7JAEncba/uFUdGxmSfTdc3nr+B7v93tvxIUAa9nQN9ChnYfCKEj8klI/L4uqqEUcnR7qnLQbKpOc6CNaewheWhmwTDkiIkEwdz8BGyYNznIDbsC4rRX9Uq1cMnCfwervruqwynh4rafxglOS6YPGTbvvn9vYQRJGJYAp6cxLQJ8vQubatLoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=an11LO1UWXFUkr6S4Q; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:31 GMT", - "loidcreated=2018-11-16T15%3A07%3A30.727Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:07:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH00N5E0PR2CH2RXFJEVVC" - } - }, - { - "recorded_at": "2018-11-16T15:07:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH03Y5CRV488MZ25G3E0WC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NXQuCMBiF/4rsMhKG64O6kxIyIxhGUjdDtzccSa53K5Lov+fyrstzOM9z3qSUEqwVrr3CjSwDEjG6CEPI6/08abozKp2laYFxtZryXZRzMg4IvIxGsEJ7gs0o7bufQLjOgLdUUCKg31rZDtXIJ4RLD9Z/d4xnRXKEnG1hc8D1qeF3Fxn6COOJhxQ8tQShlTcPgXy+nnp66LoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH03Y5CRV488MZ25G3E0WC" - } - }, - { - "recorded_at": "2018-11-16T15:07:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ad+vel+ut+culpa+repudiandae.+Perspiciatis+libero+reiciendis+exercitationem+tenetur+enim+odit+nihil.%0AIllo+repellat+ipsam+consequatur+possimus+enim+porro+ex.+Quaerat+libero+possimus+ut+asperiores.+Distinctio+tempore+molestiae+minima+velit.+Officia+illum+ratione+dolorum+ipsum.%0ACulpa+error+aperiam+doloribus+dolores.+Nesciunt+ut+dicta+praesentium+dolore+quos+praesentium.+Et+fugiat+voluptate+sed+aliquam.&link_type=any&name=1542380854_mollitia&public_description=Odit+quo+eveniet+minus+vitae+quod.&title=Officiis+animi+tempora+aperiam+qui+quisquam+in.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2309--eShN7ElyZrdiKIIWrAbC5QL2SQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "624" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "146" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH00N5E0PR2CH2RXFJEVVC&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2309--eShN7ElyZrdiKIIWrAbC5QL2SQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380854_mollitia/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "143" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380854_mollitia" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "143" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380854_mollitia&text=Natus+quasi+soluta+nisi+architecto+quo+nihil.+Labore+totam+quas+nostrum+aliquam+ex.&title=Occaecati+magnam+delectus+nisi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "204" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"id\": \"99\", \"name\": \"t3_99\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "143" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/99/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENatus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Natus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"99\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"locked\": false, \"name\": \"t3_99\", \"created\": 1542380857.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Occaecati magnam delectus nisi.\", \"created_utc\": 1542380857.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1735" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "143" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hFf5U9TC8N30gRbTHCWKgD8oc6NbkEvm%2B1B%2B43D820d1VIoJCb8XdKwU%2FduHbAPl5IHJpEhCqvzR7bLWcjXuM9pLApd5Ivl9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/99/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380854_mollitia&text=A+vel+accusamus+provident.+Corporis+dolor+labore+culpa.&title=At+atque+magnam+earum+ratione+omnis+culpa+rem." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "191" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"id\": \"9a\", \"name\": \"t3_9a\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "175" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA vel accusamus provident. Corporis dolor labore culpa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"A vel accusamus provident. Corporis dolor labore culpa.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"locked\": false, \"name\": \"t3_9a\", \"created\": 1542380860.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At atque magnam earum ratione omnis culpa rem.\", \"created_utc\": 1542380860.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "140" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=V4sfM32vxApzWiNaww%2Fgb6OhrZKGDUnSt9ei%2FQSYAIML6031xm9OLr1Ggcya3Wg1E7D5cWREfBw1ZeWV%2BKOsshNGwvIZ2ntP" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380854_mollitia&text=Aspernatur+voluptatum+distinctio+nostrum+quos.+Beatae+tempora+quam+beatae+quaerat.&title=Quia+culpa+amet+quidem+illo." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "200" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"id\": \"9b\", \"name\": \"t3_9b\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "157" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "136" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Aspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"locked\": false, \"name\": \"t3_9b\", \"created\": 1542380864.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia culpa amet quidem illo.\", \"created_utc\": 1542380864.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "136" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=K7ni9G7%2BimmmazJtL4zVrRbhm7fd2gForCHWodVrQP1JAlzqP00sSU4q66df8EMAL3fVP7pyBk11PqYsTCjzX4GFtyILjeTe" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380854_mollitia&text=Amet+ea+excepturi+minima+neque+illo.+Nobis+maxime+suscipit+dolor+earum+voluptas.&title=Laborum+quaerat+officiis+velit+explicabo+maiores." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"id\": \"9c\", \"name\": \"t3_9c\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "133" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9c/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Amet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"locked\": false, \"name\": \"t3_9c\", \"created\": 1542380867.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laborum quaerat officiis velit explicabo maiores.\", \"created_utc\": 1542380867.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "133" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Ab5N8OmREHKBeoW63wyt9reduGwE2QEcgrQ6R%2FeMKduWEmAZl%2FBCRaiFSZp%2BgUkmOORqaZdaYS5I6nZmboFpXSRrHgC2U0kS" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9c/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380854_mollitia/top?count=0&t=all&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380854_mollitia\", \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Amet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"name\": \"t3_9c\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"locked\": false, \"stickied\": false, \"created\": 1542380867.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laborum quaerat officiis velit explicabo maiores.\", \"created_utc\": 1542380867.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380854_mollitia\", \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Aspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"name\": \"t3_9b\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"locked\": false, \"stickied\": false, \"created\": 1542380864.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia culpa amet quidem illo.\", \"created_utc\": 1542380864.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380854_mollitia\", \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA vel accusamus provident. Corporis dolor labore culpa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"A vel accusamus provident. Corporis dolor labore culpa.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"name\": \"t3_9a\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"locked\": false, \"stickied\": false, \"created\": 1542380860.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At atque magnam earum ratione omnis culpa rem.\", \"created_utc\": 1542380860.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380854_mollitia\", \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENatus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Natus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"99\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"name\": \"t3_99\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"locked\": false, \"stickied\": false, \"created\": 1542380857.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Occaecati magnam delectus nisi.\", \"created_utc\": 1542380857.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6221" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=n%2FgAsZ6Gha3b4%2BtzFdaJnh6Fltwy9Tuv9Blqvp83B5JyP5s3u4ql1dFA1kGIBjtROKz2iTy%2FrKimjUc4H7YT4%2Fvq2t06VKx9" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/top?count=0&t=all&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9c/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Amet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9c\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"locked\": false, \"name\": \"t3_9c\", \"created\": 1542380867.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9c/laborum_quaerat_officiis_velit_explicabo_maiores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Laborum quaerat officiis velit explicabo maiores.\", \"created_utc\": 1542380867.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1783" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rjSgp1iniEgwULgJloTjfaREXX5%2FJVCkalwv%2FsWBsaw7k9NEuONoefAHXdAkl3bue5yzbaHGhg5q6acnyVX2G83D9KU01ezk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9c/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5t\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380854_mollitia\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAd vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Officiis animi tempora aperiam qui quisquam in.\", \"collapse_deleted_comments\": false, \"public_description\": \"Odit quo eveniet minus vitae quod.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdit quo eveniet minus vitae quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ad vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5t\", \"created\": 1542380854.0, \"url\": \"/r/1542380854_mollitia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380854.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2246" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=8fEQvm%2FDbpdZAcgLdAogaXpS1cEKzxJ9ESyeP%2FBLvYQi%2B5NdFPrX3DgWzS4JEDZdRClwDavdvQEtcLdvJicSdC5VzDdhIPka" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Aspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"locked\": false, \"name\": \"t3_9b\", \"created\": 1542380864.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9b/quia_culpa_amet_quidem_illo/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia culpa amet quidem illo.\", \"created_utc\": 1542380864.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IXJlU1epE33SF22hwkVz%2BCLcqrVMjImbp9p5Z5w51ZnjEXnu1SQzmUZXBHJg5lx8dxEZ5kHrgnp1ocrQNx5DAaI9Lz1H8pH3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5t\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380854_mollitia\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAd vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Officiis animi tempora aperiam qui quisquam in.\", \"collapse_deleted_comments\": false, \"public_description\": \"Odit quo eveniet minus vitae quod.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdit quo eveniet minus vitae quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ad vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5t\", \"created\": 1542380854.0, \"url\": \"/r/1542380854_mollitia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380854.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2246" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=vcO%2B3Z2Njr2oauuRhQrhnrnSGZodFU7DL0bOeWB%2B8g3Ngw5fvW4hKtRsVBAxqsnaYQKN8tyDU%2BnSbTZjM3%2B5LopcTKJ8KMK%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA vel accusamus provident. Corporis dolor labore culpa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"A vel accusamus provident. Corporis dolor labore culpa.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"locked\": false, \"name\": \"t3_9a\", \"created\": 1542380860.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/9a/at_atque_magnam_earum_ratione_omnis_culpa_rem/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"At atque magnam earum ratione omnis culpa rem.\", \"created_utc\": 1542380860.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1724" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bP%2FfH9%2FNtXb3zjJ3YhWtEugIwHCQXCJYq8u7fH7Kl7lmwjwO3ED0RYtkiX%2FWsO1IYS7Sw7OMmnNbdXTTWlHYeA%2FKYjRj8xO1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5t\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380854_mollitia\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAd vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Officiis animi tempora aperiam qui quisquam in.\", \"collapse_deleted_comments\": false, \"public_description\": \"Odit quo eveniet minus vitae quod.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdit quo eveniet minus vitae quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ad vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5t\", \"created\": 1542380854.0, \"url\": \"/r/1542380854_mollitia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380854.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2246" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=t9w34kWQz8HQGXytG%2BtjbTdXY8YG3PlRbHp0gFNDIKMu%2FYXCliyKbX59Y%2BXeK7selSVEcr2fYTfytNY5jfnec%2BTGlUemsdNd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/99/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380854_mollitia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENatus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Natus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"99\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH00N5E0PR2CH2RXFJEVVC\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380854_mollitia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"locked\": false, \"name\": \"t3_99\", \"created\": 1542380857.0, \"url\": \"http://reddit.local/r/1542380854_mollitia/comments/99/occaecati_magnam_delectus_nisi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Occaecati magnam delectus nisi.\", \"created_utc\": 1542380857.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1735" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=xXfhL%2Fn1ODqBsqZe3xds8VO3418ChdKbIFNu4m99N45XgKx9AxseMTXsU0JKrbeFzR7yqSzRkODCC5qBYS9%2BF5yCd%2BNsNdtF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/99/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:07:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2308-TGG-KTNhNjc43OuiS8l1Gd8K6pM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=an11LO1UWXFUkr6S4Q; loidcreated=2018-11-16T15%3A07%3A30.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5t\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380854_mollitia\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAd vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Officiis animi tempora aperiam qui quisquam in.\", \"collapse_deleted_comments\": false, \"public_description\": \"Odit quo eveniet minus vitae quod.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOdit quo eveniet minus vitae quod.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Ad vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5t\", \"created\": 1542380854.0, \"url\": \"/r/1542380854_mollitia/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380854.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2246" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:07:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "130" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NcAHNPERFcEbk9GJ2%2FVMftM0WM5bMiy62nC9qrHSk2IpOfEGFr52zl3YkmU5LJNxZpx6l60VLXOOBBErE0P2fGY74MdksCu1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380854_mollitia/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_list_posts_stickied.json b/cassettes/channels.views.posts_test.test_list_posts_stickied.json deleted file mode 100644 index 51c60ca013..0000000000 --- a/cassettes/channels.views.posts_test.test_list_posts_stickied.json +++ /dev/null @@ -1,2035 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:08:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH1DEM3FW5FFZKHZNZCGCM" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQ6CMBREr0K6NJJUCAguRYlRSVziqqm/H6hGW1swivHuUtm5nMm8N2/CAdBa1qoL3sjCI0E4C/w1p0VkdYEl869pt2yqqEtZD/dNQqYewaeWBi2TjghjSofuJ2DtS6OznJAbNG5rQY3VxCWD1QA2f3fbbLcKepGfM3HY81ipeZ3UVQ7HEhwk8CEBmRTOPAby+QI6v8m+ugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:16 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:08:16 GMT", - "loidcreated=2018-11-16T15%3A08%3A16.612Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:08:16 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH1DEM3FW5FFZKHZNZCGCM" - } - }, - { - "recorded_at": "2018-11-16T15:08:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH1GPXJRG341F2AD1Z297B" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12Nyw6CMBREf4V0aTSpltTHjriiiS5Qw7Kp5QKNBZq2io/471LYuZzJnDMfJKQE57jvbtCiXYRWZEkWh0rqC16zdlPuSaI5PfVp4wUjFqN5hOBplAXHVSAIxXjoRgH3LwPBcgVhwYatk91UzUKyUA5g/XdX5bGJxfHNMm3ufZZSH2+dTvJzM94V8FASuCqCeQro+wOwPtULugAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEH1GPXJRG341F2AD1Z297B" - } - }, - { - "recorded_at": "2018-11-16T15:08:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Mollitia+commodi+ut+quam+aliquam.+Beatae+quas+magnam+veritatis+numquam+laborum+sed+repellat.+Soluta+dolor+libero+nulla+ipsa+accusamus+hic+optio.+Autem+adipisci+deserunt+ipsam+sint+vero.%0AFugit+deleniti+amet+corporis.+Repellendus+ab+molestias+illo.+Laboriosam+amet+corporis+ipsa+unde+mollitia.+Qui+fuga+qui+ab+iusto+laudantium.&link_type=any&name=1542380900_impedit&public_description=Voluptates+fugit+ab+delectus+ex+saepe+veritatis+molestias.&title=Repudiandae+culpa+molestias+non+libero+deleniti.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2313-MgclU07Jn8fC3Al_6SwImtaJ3r0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "570" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "100" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEH1DEM3FW5FFZKHZNZCGCM&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2313-MgclU07Jn8fC3Al_6SwImtaJ3r0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542380900_impedit/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "97" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542380900_impedit" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "97" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380900_impedit&text=Nemo+atque+dolore+aut+sed+quos.+Sint+aliquam+magnam+dolores.&title=Nostrum+assumenda+optio+aspernatur." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "184" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"id\": \"9h\", \"name\": \"t3_9h\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "163" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "97" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9h/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENemo atque dolore aut sed quos. Sint aliquam magnam dolores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nemo atque dolore aut sed quos. Sint aliquam magnam dolores.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"locked\": false, \"name\": \"t3_9h\", \"created\": 1542380903.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nostrum assumenda optio aspernatur.\", \"created_utc\": 1542380903.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1697" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "97" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SXydhEewcKvj%2F0boINSJiqrolvolDg1j5KT0cngKPb%2Frl8GtkPYdP4Q7EppfDOlncGzsdG0PS0Qb8L7%2BDjRSvksfxkG9DC4N" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9h/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380900_impedit&text=Minus+tempora+laborum+accusantium+necessitatibus+vel.+Adipisci+totam+aspernatur+iure+possimus+vero.&title=Asperiores+illum+doloremque+vero." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "221" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"id\": \"9i\", \"name\": \"t3_9i\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "94" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9i/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9i\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"locked\": false, \"name\": \"t3_9i\", \"created\": 1542380906.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Asperiores illum doloremque vero.\", \"created_utc\": 1542380906.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1769" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "94" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dvUgqguLiNfu20pLyuNG3zAIW4oSTa5JUwRnvMk0zNEGpj6Pho9ZS3TWY6pCevGrf%2BUPViZVlp3Atr3jThlc08M1Z1GjQO6K" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9i/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380900_impedit&text=Quidem+laboriosam+assumenda+error+laudantium.+Nisi+amet+voluptatibus+vel+id+cum+occaecati.&title=Fuga+ab+qui+dignissimos+quo+nisi+odit." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "217" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"id\": \"9j\", \"name\": \"t3_9j\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "166" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9j/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9j\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"locked\": false, \"name\": \"t3_9j\", \"created\": 1542380909.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fuga ab qui dignissimos quo nisi odit.\", \"created_utc\": 1542380909.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1766" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NgROB%2FQ0pY856p00J%2FjlQg6M6hVQ8V6hPnzI4FrrSI%2BTqHTEiQ5yVerNODimOLl3feqbbHzHqx252hDSTL8%2BlatHefPjb5kf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9j/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542380900_impedit&text=Animi+deleniti+occaecati+quasi.+Esse+nulla+provident+adipisci+minus.&title=Distinctio+rem+recusandae+assumenda+modi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "198" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"id\": \"9k\", \"name\": \"t3_9k\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "169" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "88" - ], - "x-ratelimit-used": [ - "8" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9k/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAnimi deleniti occaecati quasi. Esse nulla provident adipisci minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Animi deleniti occaecati quasi. Esse nulla provident adipisci minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"locked\": false, \"name\": \"t3_9k\", \"created\": 1542380912.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio rem recusandae assumenda modi.\", \"created_utc\": 1542380912.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1731" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "87" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sKKolO3ykkElYJ25g6Oary9DeOrw40O%2FDCi8EZ5790tSJQlFlEbv170f3Ulpi8JBcSeiDC5P3q6HGdwgzRRkQ2cC%2FH4nbW3N" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9k/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_9j&state=True" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2313-MgclU07Jn8fC3Al_6SwImtaJ3r0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/set_subreddit_sticky/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/set_subreddit_sticky/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380900_impedit/hot?count=0&limit=25&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380900_impedit\", \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9j\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"name\": \"t3_9j\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"locked\": false, \"stickied\": true, \"created\": 1542380909.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fuga ab qui dignissimos quo nisi odit.\", \"created_utc\": 1542380909.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380900_impedit\", \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAnimi deleniti occaecati quasi. Esse nulla provident adipisci minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Animi deleniti occaecati quasi. Esse nulla provident adipisci minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"name\": \"t3_9k\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"locked\": false, \"stickied\": false, \"created\": 1542380912.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio rem recusandae assumenda modi.\", \"created_utc\": 1542380912.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380900_impedit\", \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9i\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"name\": \"t3_9i\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"locked\": false, \"stickied\": false, \"created\": 1542380906.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Asperiores illum doloremque vero.\", \"created_utc\": 1542380906.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542380900_impedit\", \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENemo atque dolore aut sed quos. Sint aliquam magnam dolores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nemo atque dolore aut sed quos. Sint aliquam magnam dolores.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"name\": \"t3_9h\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"removal_reason\": null, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"mod_reports\": [], \"archived\": false, \"media_embed\": {}, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"locked\": false, \"stickied\": false, \"created\": 1542380903.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nostrum assumenda optio aspernatur.\", \"created_utc\": 1542380903.0, \"link_flair_text\": null, \"distinguished\": null, \"num_comments\": 0, \"visited\": false, \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "6217" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dzgCkrGbn%2FuMwOq1zmK0MwT5lo4XjZhLioF2auOd9HYfa%2BlJdaGmG6%2FgiUsecFohyuvAwc9ZTkndVI%2FIEvRZrUTNUXDpm16n" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/hot?count=0&limit=25&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9j/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Quidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9j\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": true, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"locked\": false, \"name\": \"t3_9j\", \"created\": 1542380909.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9j/fuga_ab_qui_dignissimos_quo_nisi_odit/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Fuga ab qui dignissimos quo nisi odit.\", \"created_utc\": 1542380909.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1765" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=J0ywopPTHIWThycp33Y8qdIODrScthyJJgpCRvAsQ4kl2ULI8uRluh1wgqYOtezcPFcblXSKYY8ZS29Vychy%2F5yJwGgmAkoB" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9j/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5v\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380900_impedit\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Repudiandae culpa molestias non libero deleniti.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptates fugit ab delectus ex saepe veritatis molestias.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptates fugit ab delectus ex saepe veritatis molestias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Mollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5v\", \"created\": 1542380900.0, \"url\": \"/r/1542380900_impedit/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380900.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=7tePRxzRCdPtIP74PZujWaFccvXXZ0CCjNasNvHrCPQ9t6RuKBrRIrWPLzTGkHcgBuNUy5JKYtPcY58BSuH8udYf%2BptgwDPs" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9k/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAnimi deleniti occaecati quasi. Esse nulla provident adipisci minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Animi deleniti occaecati quasi. Esse nulla provident adipisci minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9k\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"locked\": false, \"name\": \"t3_9k\", \"created\": 1542380912.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9k/distinctio_rem_recusandae_assumenda_modi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Distinctio rem recusandae assumenda modi.\", \"created_utc\": 1542380912.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1731" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "287.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "13" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=svl3RaK3VZ%2BwUvCtASJYK6AAQhgIC783PpzGKkhcKrnhKGFNekf8xxWB9knwKZBMK3NZThr2qY7LUJ%2BLqa7hdfhEh70THDSx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9k/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5v\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380900_impedit\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Repudiandae culpa molestias non libero deleniti.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptates fugit ab delectus ex saepe veritatis molestias.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptates fugit ab delectus ex saepe veritatis molestias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Mollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5v\", \"created\": 1542380900.0, \"url\": \"/r/1542380900_impedit/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380900.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "286.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "14" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NIm0Ysyl7LHsocquQLxlB8RSjkHEqeo7xMLJ0ZjP0iwMzsroKZy4oQ1zOxSxCk1i6Z%2FpT%2B%2FMSXG3WNL0xPKKYaTLSVHmNt2G" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9i/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9i\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"locked\": false, \"name\": \"t3_9i\", \"created\": 1542380906.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9i/asperiores_illum_doloremque_vero/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Asperiores illum doloremque vero.\", \"created_utc\": 1542380906.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1769" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "285.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "15" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BNYCWNQE%2BCMRS1%2Fa4NSBDrnk9GZWJo2PqWEFaGjWv4QTHs5hPPRNtPcDIPavd4Z7a6BjqrouqUpstNxB7EecY7nvfFbcrKKM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9i/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5v\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380900_impedit\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Repudiandae culpa molestias non libero deleniti.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptates fugit ab delectus ex saepe veritatis molestias.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptates fugit ab delectus ex saepe veritatis molestias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Mollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5v\", \"created\": 1542380900.0, \"url\": \"/r/1542380900_impedit/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380900.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "284.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "16" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=wzRscZijcAPnY%2BN%2F%2Bg7NDFQzyxH4AxZ%2FWlkDmiXMjkRgSEc3CV8fiznq7rFd8esdCGX0PF%2FqTJop1es%2F05G0UZjcOm40cmZm" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/9h/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542380900_impedit\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENemo atque dolore aut sed quos. Sint aliquam magnam dolores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Nemo atque dolore aut sed quos. Sint aliquam magnam dolores.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"9h\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEH1DEM3FW5FFZKHZNZCGCM\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542380900_impedit\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_5v\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"locked\": false, \"name\": \"t3_9h\", \"created\": 1542380903.0, \"url\": \"http://reddit.local/r/1542380900_impedit/comments/9h/nostrum_assumenda_optio_aspernatur/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Nostrum assumenda optio aspernatur.\", \"created_utc\": 1542380903.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1697" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "283.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "17" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HYlFlV9SuIudvUD%2FidHYFlM31j4Q1eBkopT3mb9D%2FYXtRSl1o1zAkFM0JpPaA8PzHwiiYunHFnjdAhJEeKn57Q%2BJyJoRrnkp" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/9h/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:08:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2312-Ea0M5spMeX_-m9uBhf5u9_zcqH8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=6K4ebE2NSyc3IKeBg1; loidcreated=2018-11-16T15%3A08%3A16.612Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"5v\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542380900_impedit\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Repudiandae culpa molestias non libero deleniti.\", \"collapse_deleted_comments\": false, \"public_description\": \"Voluptates fugit ab delectus ex saepe veritatis molestias.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVoluptates fugit ab delectus ex saepe veritatis molestias.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Mollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_5v\", \"created\": 1542380900.0, \"url\": \"/r/1542380900_impedit/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542380900.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2139" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:08:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "282.0" - ], - "x-ratelimit-reset": [ - "84" - ], - "x-ratelimit-used": [ - "18" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=MvqwoyG%2BC4gMVbrbOosKOMkcAhD%2FaKf9zRL3cjj3VvW3O%2F436JUUiHkqytRaI%2Bh%2By2v%2BW7vA29mmYCs6MMCMn6FXQUVa71ya" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542380900_impedit/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_patch_article_validate_cover_image.json b/cassettes/channels.views.posts_test.test_patch_article_validate_cover_image.json deleted file mode 100644 index 80c79bf636..0000000000 --- a/cassettes/channels.views.posts_test.test_patch_article_validate_cover_image.json +++ /dev/null @@ -1,418 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-12-20T12:32:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CZ5SMM4HWVZBKX8W7MQFGYVT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNNMtKMjyrXSt9LPI9HQqK400cQpI0630znANdM9X0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYFGPr4p+cF+5m5+oSb+ztG+ieFmHhGZYfHV5qA9KSklmUmp8ZnpoAMhnCUagFkqwphuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 20 Dec 2018 12:32:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=v2C9EBpitrJsUnAaBR; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sat, 19-Dec-2020 12:32:30 GMT", - "loidcreated=2018-12-20T12%3A32%3A30.312Z; Domain=reddit.local; Max-Age=63072000; Path=/; expires=Sat, 19-Dec-2020 12:32:30 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CZ5SMM4HWVZBKX8W7MQFGYVT" - } - }, - { - "recorded_at": "2018-12-20T12:32:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=v2C9EBpitrJsUnAaBR; loidcreated=2018-12-20T12%3A32%3A30.312Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CZ5SMQDTAK99K3GVEYFDTQY0" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNsQ6CMBiEX4V0NDapqEUdDcZBNlw6NaX9ixW1pD8SifHdpTKZm+5y392bKK0BUXa+gQfZJSRdZLRY8yYvFY4qVjUT59NRIk1lLzZknhB4tS4ASheBJWdszH687IYW4kgFKkCIXdR+imbRBbAjePl/w9LT/HYdtndmrbGHSvDMZPUenywyBnqnQToThydDPl8kIzW5uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 20 Dec 2018 12:32:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CZ5SMQDTAK99K3GVEYFDTQY0" - } - }, - { - "recorded_at": "2018-12-20T12:32:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Impedit+recusandae+et+totam.+Rem+odit+iure+doloremque+cupiditate+in.+Provident+repellat+ex+ratione+minus+distinctio+eum+dicta.+Minus+aut+ad+dignissimos+sunt+nemo+odit+ex+qui.%0AVoluptate+labore+inventore+animi.+Magni+provident+possimus+molestiae+corrupti+eos.%0ADolores+excepturi+architecto+odio+laudantium+aliquam+ipsum+asperiores+aliquam.+Nesciunt+labore+reprehenderit+tenetur+cupiditate+impedit+consectetur+labore+error.+Labore+nostrum+consequuntur+numquam+perspiciatis+tempore+eius.&link_type=any&name=1545309153_7_optio&public_description=Assumenda+libero+illum+laboriosam+aperiam+assumenda+hic.&title=Eveniet+voluptatum+maiores+inventore+in+iusto.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 217-L56kDSasasaL4g0YTKG_s-2_vY8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "725" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v2C9EBpitrJsUnAaBR; loidcreated=2018-12-20T12%3A32%3A30.312Z" - ], - "User-Agent": [ - "MIT-Open: 0.58.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 20 Dec 2018 12:32:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-20T12:32:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CZ5SMM4HWVZBKX8W7MQFGYVT&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 217-L56kDSasasaL4g0YTKG_s-2_vY8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v2C9EBpitrJsUnAaBR; loidcreated=2018-12-20T12%3A32%3A30.312Z" - ], - "User-Agent": [ - "MIT-Open: 0.58.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1545309153_7_optio/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 20 Dec 2018 12:32:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "443" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1545309153_7_optio/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-12-20T12:32:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1545309153_7_optio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 216-ppjMyEyN8iIBvuY4BPf-yKhEQGo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=v2C9EBpitrJsUnAaBR; loidcreated=2018-12-20T12%3A32%3A30.312Z" - ], - "User-Agent": [ - "MIT-Open: 0.58.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Thu, 20 Dec 2018 12:32:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "443" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_post_anonymous.json b/cassettes/channels.views.posts_test.test_post_anonymous.json deleted file mode 100644 index 21e7b446cc..0000000000 --- a/cassettes/channels.views.posts_test.test_post_anonymous.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "http_interactions": [], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_post_create_post_new_meta.json b/cassettes/channels.views.posts_test.test_post_create_post_new_meta.json deleted file mode 100644 index d8abf5ecc1..0000000000 --- a/cassettes/channels.views.posts_test.test_post_create_post_new_meta.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:35:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBS1SD0TWP40SAQHC1Z8JGQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULI00A0N8MzOTPQ18S8IdzIwNg7K9jYz8wspdq5MzFbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolrnmZ3mlOqZnhuQGV5rklZj7eBkEurrk6PpapIO0pKSWZSanxmemgMyFcJRqAcmUKPy2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=w5Dl26wwTIoIw78H3i; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:35:25 GMT", - "loidcreated=2020-07-28T22%3A35%3A25.393Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:35:25 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBS1SD0TWP40SAQHC1Z8JGQ" - } - }, - { - "recorded_at": "2020-07-28T22:35:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBS1WXZCWYCME136DPP9SZF" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQrVhkrcuRC12CIobkNMr3gpNU9sqvjvNnblcg5zZt5ESAnOca8aeJBVQth85gOWXZeFSjVtejDlcb/EcGZ1XlAyTQgEjRYcx9jP8jQd2E/nvtcQN64gLNjYdVKNaBKThdsg3v/OuHenakEpf222RpvLTjBX9KhMu45KDU+UwLGOu2Mgny+RgRXctgAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBS1WXZCWYCME136DPP9SZF" - } - }, - { - "recorded_at": "2020-07-28T22:35:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Court+return+break+address+final+act.+Bring+physical+cost+set+among.%0ANumber+but+follow+space+pick.+Chair+heart+around+once+cover+once+system.+Technology+program+activity+receive+American+nor+door.%0AMorning+have+leader+travel.+I+arrive+ok+item+water.+Door+major+ever+major+his+activity+decide.%0ACommunity+work+success+performance+morning+participant+affect.+Should+manager+card+spring.%0AProduction+clearly+network+building+able+message.&link_type=any&name=1595975729_1_special&public_description=Present+student+voice+certainly+child+social+wall+shake.&title=Yard+beyond+final+order+stock.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 91-txiMww3xNokm0LqMPI7ixT9d6J4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "665" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "271" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:35:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBS1SD0TWP40SAQHC1Z8JGQ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 91-txiMww3xNokm0LqMPI7ixT9d6J4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595975729_1_special/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595975729_1_special/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:35:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595975729_1_special" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 90-UPIkiaM4OpWB033RkK66NTsCyak" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:35:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1595975729_1_special&title=url+title+%F0%9F%90%A8&url=http%3A%2F%2Ffake" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 90-UPIkiaM4OpWB033RkK66NTsCyak" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "129" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595975729_1_special/comments/14/url_title/\", \"id\": \"14\", \"name\": \"t3_14\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "140" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:35:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 90-UPIkiaM4OpWB033RkK66NTsCyak" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/14/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595975729_1_special\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"14\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBS1SD0TWP40SAQHC1Z8JGQ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"fake\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_z\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1595975729_1_special/comments/14/url_title/\", \"locked\": false, \"name\": \"t3_14\", \"created\": 1595975734.0, \"url\": \"http://fake\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"url title \\ud83d\\udc28\", \"created_utc\": 1595975734.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1327" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4Z%2BzgSPc%2FhlzdzkEUHR0Q6w13ABzsX7KWKSGKL5gRr2W71kq7o4Zf2sdH2IgM4toakffE%2FycEAB1NXYUo6R3Gf4QXXX%2B7OOD" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/14/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:35:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 90-UPIkiaM4OpWB033RkK66NTsCyak" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=w5Dl26wwTIoIw78H3i; loidcreated=2020-07-28T22%3A35%3A25.393Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595975729_1_special/about/moderators/?user=01EEBS1SD0TWP40SAQHC1Z8JGQ&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:35:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=GOVBn2uYPPuA798%2FdLJ%2BvVElVWrsLnV4A29SSdewOGXH2SeFOrtmlIqWwmdXJrzB8FjFsJj15ajHiyEp8Xnad%2FnmeAKFKy1j" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595975729_1_special/about/moderators/?user=01EEBS1SD0TWP40SAQHC1Z8JGQ&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_post_create_post_no_thumbnail.json b/cassettes/channels.views.posts_test.test_post_create_post_no_thumbnail.json deleted file mode 100644 index b331906e2a..0000000000 --- a/cassettes/channels.views.posts_test.test_post_create_post_no_thumbnail.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:30:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBRSAAADXC3T1N25DKFD7YK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULKw0PXJDy0pCbc00s3yiXD28jOxsChOCix2LjJz8lXSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolulmGfpGRRr5ZpakO2emVwVHBpUElJqXlhQ4hoK0pKSWZSanxmemgMyFcJRqAZ+amA22AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=NwHNSVCRa8iztHbjUm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:30:48 GMT", - "loidcreated=2020-07-28T22%3A30%3A47.793Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:30:48 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBRSAAADXC3T1N25DKFD7YK" - } - }, - { - "recorded_at": "2020-07-28T22:30:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBRSDMMKF8PZFBHR3291WER" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNsQ6CMBiEX4V0NJpgJKW6wuLAADJUl6YtP1oaLWmxosZ3l8rkeF/uu3sjLiU4xwaj4YZ2ESLbFb0L4m2evUpRULoeq64uMqhMmR7RMkIw9sqCYyr0NziOJ/bT2fDsIWwI4BZs6DppZrQIyUI7iZf/s9QJfvYaX2vIO/84JNqeMBF7ngSlAa8kMNWE3Tmgzxf6R9DItgAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBRSDMMKF8PZFBHR3291WER" - } - }, - { - "recorded_at": "2020-07-28T22:30:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Ok+scientist+politics+section+political+let.%0ADifferent+wonder+agree+garden.+Of+citizen+part+buy.+More+themselves+painting+several+go+sort+measure.+Factor+rock+article+trip+form+walk+minute.%0AThreat+share+candidate+current+late+those+understand.+Explain+pressure+everything+choice+tonight+base+though.%0AWonder+way+building+day+page.+Not+indicate+possible+both+table+five.%0AMake+different+now+claim+fall.%0APerhaps+by+keep+lay+behind+produce+computer.+My+physical+letter.+Different+street+support+imagine.&link_type=any&name=1595975451_2_military&public_description=Human+operation+whom+house+pretty+sign.+Line+career+food+indicate+shoulder.&title=Father+green+stock+return+more+remember+charge.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 89-Xub8vrDCzQbMXX1xRjTMCeRoQ7Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "770" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "549" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:30:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBRSAAADXC3T1N25DKFD7YK&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 89-Xub8vrDCzQbMXX1xRjTMCeRoQ7Y" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595975451_2_military/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595975451_2_military/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:30:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595975451_2_military" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 88-LoUttW92-jLXCJN488sbQsCr6BM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:30:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=link&resubmit=True&sendreplies=True&sr=1595975451_2_military&title=url+title+%F0%9F%90%A8&url=http%3A%2F%2Ffake" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 88-LoUttW92-jLXCJN488sbQsCr6BM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "130" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595975451_2_military/comments/13/url_title/\", \"id\": \"13\", \"name\": \"t3_13\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "141" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:30:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 88-LoUttW92-jLXCJN488sbQsCr6BM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/13/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595975451_2_military\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"13\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBRSAAADXC3T1N25DKFD7YK\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"fake\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_y\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": false, \"hide_score\": false, \"permalink\": \"/r/1595975451_2_military/comments/13/url_title/\", \"locked\": false, \"name\": \"t3_13\", \"created\": 1595975454.0, \"url\": \"http://fake\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"url title \\ud83d\\udc28\", \"created_utc\": 1595975454.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1329" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=zo%2BIuxwxGSdr75pwiH3ZrwjJ7cDU8V9eHuU8%2BcPr4zIl6aeuusO93gkRKZALreNKWGv5Y6Oh4AJqsqYLWjtJ31b9qW8khSQx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/13/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:30:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 88-LoUttW92-jLXCJN488sbQsCr6BM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=NwHNSVCRa8iztHbjUm; loidcreated=2020-07-28T22%3A30%3A47.793Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595975451_2_military/about/moderators/?user=01EEBRSAAADXC3T1N25DKFD7YK&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:30:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "546" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nK3Iyczk9fSH36j9lrLq2AV1DfbSg%2BCykgHICidQqOkPKb3TAeKWHLzrvfFrr%2Fttd6mEv2XFks64QFaAA3b6CIleWhaShLHU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595975451_2_military/about/moderators/?user=01EEBRSAAADXC3T1N25DKFD7YK&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_subscribe_post[False-False-0-1].json b/cassettes/channels.views.posts_test.test_subscribe_post[False-False-0-1].json deleted file mode 100644 index ea4729ccc0..0000000000 --- a/cassettes/channels.views.posts_test.test_subscribe_post[False-False-0-1].json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:15:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBPNHW3W5FNR2ZGXDEJWK" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKytNB1MraosHDUNYjK8/UzrTJOMvJw0a3yK8gxCw1U0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVFZWUlWf5ePtZ5vkHpxgHlZdZmhYblxjmBHmC9KSklmUmp8ZnpoAMhnCUagF3K8T8uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:25 GMT", - "loidcreated=2018-08-24T18%3A15%3A25.082Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:25 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBPNHW3W5FNR2ZGXDEJWK" - } - }, - { - "recorded_at": "2018-08-24T18:15:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Saepe+quae+molestiae+perferendis+deserunt+necessitatibus+architecto.+Est+error+corporis+doloribus+distinctio+cupiditate+quae.+Adipisci+commodi+qui+ea+deserunt+labore.+Id+vel+non+quia+culpa.%0ADolores+quasi+minima+numquam+deleniti+rem.+Minima+perferendis+quae+eveniet+deleniti+voluptates.+Deserunt+illum+sit+vero+ipsum+officiis+quasi+id+quidem.&link_type=any&name=1535134525_quo&public_description=A+iure+quia+ex+sit+voluptates.+Cupiditate+reiciendis+ad+velit+quo+perspiciatis.&title=Odit+corporis+dolor+architecto+ducimus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 298-B38x8A-0ZnMN5z3b2HD-zNpl6UQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "594" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "275" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBX10XSED0SKX3TPVTF8Z" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKytNQtzfSM9HYPy/A0Copwc0rPCM1wtcw0NfKJcMpX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLa5e4SY+EYF5Xr7hbtEhXtkFLjlOPnmGaUblLiC9KSklmUmp8ZnpoAMhnCUagHDlAc3uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBX10XSED0SKX3TPVTF8Z" - } - }, - { - "recorded_at": "2018-08-24T18:15:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJBX10XSED0SKX3TPVTF8Z&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 298-B38x8A-0ZnMN5z3b2HD-zNpl6UQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134525_quo/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "269" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134525_quo/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134525_quo" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 299-uiIYKGVhI2RXFBghUhE9i52LXBo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "73" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "269" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134525_quo&text=Minima+dolores+natus+impedit+corporis+placeat.+Quasi+quaerat+alias+totam+nam+harum+eveniet+rerum.&title=Perferendis+consequuntur+error+commodi+sint." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 299-uiIYKGVhI2RXFBghUhE9i52LXBo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "226" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"id\": \"47\", \"name\": \"t3_47\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 299-uiIYKGVhI2RXFBghUhE9i52LXBo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134525_quo\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"47\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134525_quo\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"locked\": false, \"name\": \"t3_47\", \"created\": 1535134532.0, \"url\": \"http://reddit.local/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perferendis consequuntur error commodi sint.\", \"created_utc\": 1535134532.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1782" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "268" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hkV%2BiYkcLmAufRaxd8V6xSLrRLZXOTepGM%2FXrjqkAxsvmJaPu22M%2BUrrV5ytKFmyf7nnBNmuNZU1Z4%2B1%2Bwl%2Bbip7h%2FYhWpf0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Deleniti+molestiae+quas+fugiat+adipisci+ipsam.+Totam+fugit+assumenda+neque+nemo.&thing_id=t3_47" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 299-uiIYKGVhI2RXFBghUhE9i52LXBo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "114" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_47\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"parent_id\": \"t3_47\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Deleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134525_quo\", \"score_hidden\": false, \"name\": \"t1_3c\", \"created\": 1535134535.0, \"author_flair_text\": null, \"created_utc\": 1535134535.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "960" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "265" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 298-B38x8A-0ZnMN5z3b2HD-zNpl6UQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134525_quo\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"47\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134525_quo\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"locked\": false, \"name\": \"t3_47\", \"created\": 1535134532.0, \"url\": \"http://reddit.local/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perferendis consequuntur error commodi sint.\", \"created_utc\": 1535134532.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_47\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"parent_id\": \"t3_47\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Deleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134525_quo\", \"score_hidden\": false, \"name\": \"t1_3c\", \"created\": 1535134535.0, \"author_flair_text\": null, \"created_utc\": 1535134535.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2684" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "262" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HkJJ2jY0YNmuFFqwQQgJJC1d39ZcIePK%2Bq2qEDOQVSCe%2BGEgnBp0KA19PuWf4A5LA10Reo1SnTSvqcsCaO%2Bi5dyjlXOin3AJ" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 298-B38x8A-0ZnMN5z3b2HD-zNpl6UQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134525_quo\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EMinima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Minima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"47\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134525_quo\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2p\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"locked\": false, \"name\": \"t3_47\", \"created\": 1535134532.0, \"url\": \"http://reddit.local/r/1535134525_quo/comments/47/perferendis_consequuntur_error_commodi_sint/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Perferendis consequuntur error commodi sint.\", \"created_utc\": 1535134532.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2p\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_47\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3c\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJBX10XSED0SKX3TPVTF8Z\", \"parent_id\": \"t3_47\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Deleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDeleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134525_quo\", \"score_hidden\": false, \"name\": \"t1_3c\", \"created\": 1535134535.0, \"author_flair_text\": null, \"created_utc\": 1535134535.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2684" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "262" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=OEUqZXM%2Bt%2BbgQHMwkDuVB%2B6%2FT2aZnkLohQZNGd2OJCeylHT%2BIAD25KeaQ8qq4z2ElOFFbrVrDV6TGgdsnbu01VicvlfRZIV1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/47/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 298-B38x8A-0ZnMN5z3b2HD-zNpl6UQ" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=xQw8y5jlhkcIQXMoF7; loidcreated=2018-08-24T18%3A15%3A25.082Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134525_quo/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2p\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134525_quo\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESaepe quae molestiae perferendis deserunt necessitatibus architecto. Est error corporis doloribus distinctio cupiditate quae. Adipisci commodi qui ea deserunt labore. Id vel non quia culpa.\\nDolores quasi minima numquam deleniti rem. Minima perferendis quae eveniet deleniti voluptates. Deserunt illum sit vero ipsum officiis quasi id quidem.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Odit corporis dolor architecto ducimus.\", \"collapse_deleted_comments\": false, \"public_description\": \"A iure quia ex sit voluptates. Cupiditate reiciendis ad velit quo perspiciatis.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA iure quia ex sit voluptates. Cupiditate reiciendis ad velit quo perspiciatis.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Saepe quae molestiae perferendis deserunt necessitatibus architecto. Est error corporis doloribus distinctio cupiditate quae. Adipisci commodi qui ea deserunt labore. Id vel non quia culpa.\\nDolores quasi minima numquam deleniti rem. Minima perferendis quae eveniet deleniti voluptates. Deserunt illum sit vero ipsum officiis quasi id quidem.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2p\", \"created\": 1535134525.0, \"url\": \"/r/1535134525_quo/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134525.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2192" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "262" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=eNtqSydJPtPo8jcMEhVJNP%2FjURBvkb3LDsPJYLru%2Bo481p8UaQoMJhK5nRLXP9Zla%2FLgfVcwN8xBAwiUtQu5dqtUwKyMRot4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134525_quo/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_subscribe_post[False-True-1-2].json b/cassettes/channels.views.posts_test.test_subscribe_post[False-True-1-2].json deleted file mode 100644 index 6862dc7452..0000000000 --- a/cassettes/channels.views.posts_test.test_subscribe_post[False-True-1-2].json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:15:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJB6MV6D858J1RG6KEMYVC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKyNNM1LA9KNkqLDA+Iz3UsL/WLyHJx9w4zywooMitW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVhKQWWYb5epmHBHuHJKYF5LpEVOYEe4WXx+eD9KSklmUmp8ZnpoAMhnCUagGC6b5ZuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:08 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:08 GMT", - "loidcreated=2018-08-24T18%3A15%3A08.671Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:08 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJB6MV6D858J1RG6KEMYVC" - } - }, - { - "recorded_at": "2018-08-24T18:15:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quae+commodi+sapiente+rem+facilis+ipsum+veniam.+Quibusdam+ea+id+nesciunt+dicta+commodi.+Officiis+facilis+nihil+excepturi+impedit+impedit+dolor+atque+molestias.+Perferendis+porro+esse+placeat+temporibus+eligendi+repudiandae+impedit.+Iusto+ut+suscipit+omnis+iste+voluptate+ratione+tempora.&link_type=any&name=1535134508_facilis&public_description=Amet+reprehenderit+ab+numquam+odio.+Quia+id+debitis+pariatur.+Omnis+beatae+at+odio+odio+sunt.&title=Doloribus+tempora+beatae+illo+quia.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 296-1wRc2fYWP_mAwuNXjDGKV6jPr6s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "552" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "291" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBCZMNXF2SH6REXCMEEPY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKyNNcNDnR0ynH2KjSvNCsvz0s1zA9z8QxNyo13CslW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5V4QH5JtaBPpll2QnmxtVpKUE+5mF5Yf5eoNtS0kty0xOjc9MARkM4SjVAgC69KM/uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJBCZMNXF2SH6REXCMEEPY" - } - }, - { - "recorded_at": "2018-08-24T18:15:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJBCZMNXF2SH6REXCMEEPY&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 296-1wRc2fYWP_mAwuNXjDGKV6jPr6s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134508_facilis/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134508_facilis/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134508_facilis" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 297-SQABlCJq7y6wwne1oVDIUbm_BTk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134508_facilis&text=Dignissimos+dignissimos+quas+consequatur+facilis.+Repellat+consequuntur+earum+eligendi+quo+dolor.&title=Quisquam+ipsum+dolorum+minus+officiis." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 297-SQABlCJq7y6wwne1oVDIUbm_BTk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "224" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"id\": \"46\", \"name\": \"t3_46\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "166" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 297-SQABlCJq7y6wwne1oVDIUbm_BTk" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134508_facilis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"46\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134508_facilis\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"locked\": false, \"name\": \"t3_46\", \"created\": 1535134515.0, \"url\": \"http://reddit.local/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam ipsum dolorum minus officiis.\", \"created_utc\": 1535134515.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1780" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "285" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=p78Gz1kz33Jp2OeE1IcEYqwipaDmMw%2FfCUuRVVc2jwlt521PgSvxjPIUkRKY5ZQAG3BIS0Tb8ialwhoFFHCJhXeNGGIImiM0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Aperiam+nisi+et+excepturi+molestias+quisquam.+Mollitia+rerum+eveniet+nobis+velit+in.&thing_id=t3_46" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 297-SQABlCJq7y6wwne1oVDIUbm_BTk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "118" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_46\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"parent_id\": \"t3_46\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Aperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134508_facilis\", \"score_hidden\": false, \"name\": \"t1_3b\", \"created\": 1535134518.0, \"author_flair_text\": null, \"created_utc\": 1535134518.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "972" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "282" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 296-1wRc2fYWP_mAwuNXjDGKV6jPr6s" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134508_facilis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"46\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134508_facilis\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"locked\": false, \"name\": \"t3_46\", \"created\": 1535134515.0, \"url\": \"http://reddit.local/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam ipsum dolorum minus officiis.\", \"created_utc\": 1535134515.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_46\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"parent_id\": \"t3_46\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Aperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134508_facilis\", \"score_hidden\": false, \"name\": \"t1_3b\", \"created\": 1535134518.0, \"author_flair_text\": null, \"created_utc\": 1535134518.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=krDPjf%2BDYPD1LZK5%2BiafHGfpJlobS1nr%2BZCvLM0xmRD%2B7yGObSQmMZqQeCyuSJljw48cFrUJ0tNXdL2Lp9%2B7knhdT6v3YoRr" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 296-1wRc2fYWP_mAwuNXjDGKV6jPr6s" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134508_facilis\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EDignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Dignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"46\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134508_facilis\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2o\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"locked\": false, \"name\": \"t3_46\", \"created\": 1535134515.0, \"url\": \"http://reddit.local/r/1535134508_facilis/comments/46/quisquam_ipsum_dolorum_minus_officiis/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quisquam ipsum dolorum minus officiis.\", \"created_utc\": 1535134515.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2o\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_46\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJBCZMNXF2SH6REXCMEEPY\", \"parent_id\": \"t3_46\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Aperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134508_facilis\", \"score_hidden\": false, \"name\": \"t1_3b\", \"created\": 1535134518.0, \"author_flair_text\": null, \"created_utc\": 1535134518.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2694" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=OkHyJFweGbO%2Bc1MBoHR5vInAI6nW050DvIVJPuQvZVLMqNlYcJJNCZEq24QCEZS73wJSPSP3tyc9MUJl4loIB4jLpjTz%2BV1M" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/46/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 296-1wRc2fYWP_mAwuNXjDGKV6jPr6s" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=vCwXd2mtV1jHhyxUtT; loidcreated=2018-08-24T18%3A15%3A08.671Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134508_facilis/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2o\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134508_facilis\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuae commodi sapiente rem facilis ipsum veniam. Quibusdam ea id nesciunt dicta commodi. Officiis facilis nihil excepturi impedit impedit dolor atque molestias. Perferendis porro esse placeat temporibus eligendi repudiandae impedit. Iusto ut suscipit omnis iste voluptate ratione tempora.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Doloribus tempora beatae illo quia.\", \"collapse_deleted_comments\": false, \"public_description\": \"Amet reprehenderit ab numquam odio. Quia id debitis pariatur. Omnis beatae at odio odio sunt.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet reprehenderit ab numquam odio. Quia id debitis pariatur. Omnis beatae at odio odio sunt.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quae commodi sapiente rem facilis ipsum veniam. Quibusdam ea id nesciunt dicta commodi. Officiis facilis nihil excepturi impedit impedit dolor atque molestias. Perferendis porro esse placeat temporibus eligendi repudiandae impedit. Iusto ut suscipit omnis iste voluptate ratione tempora.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 4, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2o\", \"created\": 1535134509.0, \"url\": \"/r/1535134508_facilis/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134509.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2114" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:22 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "279" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=pCKI7BTTX1uJzmw5%2FqBmPCVMunrvLth4obea9IP0TW1cwbHiDz%2FMvpWsDw67E6IaosmN4JLpVH20Lk22AtbUZCAVBEP1%2FF5R" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134508_facilis/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_subscribe_post[True-False-1-1].json b/cassettes/channels.views.posts_test.test_subscribe_post[True-False-1-1].json deleted file mode 100644 index bdf3cd1d6b..0000000000 --- a/cassettes/channels.views.posts_test.test_subscribe_post[True-False-1-1].json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:14:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJA6NVC06BCEBG0XKZAMHS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKyNNLNC3E2cE32DnA3q3TLKAwIqso0qtTNKY4qLPVU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLal6xaUmZQG5fgXVVomWeS5BOc4WaYYFhmGB7qC9KSklmUmp8ZnpoAMhnCUagGblx7CuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=hJVkahM0TukaaljOqU; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:14:36 GMT", - "loidcreated=2018-08-24T18%3A14%3A35.918Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:14:36 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJA6NVC06BCEBG0XKZAMHS" - } - }, - { - "recorded_at": "2018-08-24T18:14:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Aut+recusandae+debitis+deserunt+nesciunt+facere+perferendis.+Sint+voluptatum+ut+voluptatibus+fugit+provident+dolor.+Quibusdam+architecto+consequuntur+ipsam+alias+illum+ut+quam+delectus.+Perferendis+beatae+beatae+ullam.%0ALaudantium+quod+adipisci+id+itaque+debitis+dolorem+assumenda.+Quod+voluptate+perferendis+ab+recusandae+harum+enim+labore+perferendis.+Maiores+dolorum+et+labore+in+cupiditate+ea.+Corrupti+officiis+aperiam+error+voluptatibus.&link_type=any&name=1535134476_labore&public_description=Velit+id+soluta+perferendis.+Nam+doloremque+atque+temporibus+amet+asperiores+modi.&title=Harum+voluptates+unde+sunt+nisi+soluta.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 292-nTC0EcKPG6yFhqPRzi2y-lsZquI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "701" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "324" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJACZ7A3EPJD9YV1KEGQ03" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNwQqCQBRFf0VmGQU2A1otByGQIhfV5GrQ58uGIu3NkEb07zm5ankP99z7ZgUAWqtdc8U7WwWML8UsRpMdVEr1CXITHbm8UcezOcAjZ9OAYd8aQquNF0QUhgP7+dq9WvQjJRaE5LsWmhFNfCI8D+Ll/21jOyvKhdr32S6ppVMi3vJUrknV3qnwaQC1qfzwGNjnC5dbKqO4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJACZ7A3EPJD9YV1KEGQ03" - } - }, - { - "recorded_at": "2018-08-24T18:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJACZ7A3EPJD9YV1KEGQ03&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 292-nTC0EcKPG6yFhqPRzi2y-lsZquI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134476_labore/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134476_labore/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134476_labore" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 293-7eiPUWJrgXcYi6V2Blrw2P1ccqY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134476_labore&text=Vitae+nemo+at+modi+deserunt.+Asperiores+laborum+vero+eum+aut+accusamus+voluptas+rerum+eos.&title=Consectetur+voluptatibus+eos+rerum+et." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 293-7eiPUWJrgXcYi6V2Blrw2P1ccqY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "216" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"id\": \"44\", \"name\": \"t3_44\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 293-7eiPUWJrgXcYi6V2Blrw2P1ccqY" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134476_labore\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"44\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134476_labore\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"locked\": false, \"name\": \"t3_44\", \"created\": 1535134482.0, \"url\": \"http://reddit.local/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur voluptatibus eos rerum et.\", \"created_utc\": 1535134482.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1762" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "318" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=LNX2OmWcLxe%2BMS2a%2FjFrqad6sQ%2B%2FjJbJVmhec2wGuUTOVrR%2B%2FSbrFcfEOkjLhx%2FRdI4yIYrmssobtF1t2AVxZcFdXbarHj%2B5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Quam+veniam+minus+tempora+dolore+consectetur+exercitationem.+Neque+alias+nemo+asperiores+non.&thing_id=t3_44" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 293-7eiPUWJrgXcYi6V2Blrw2P1ccqY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "127" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2m\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_44\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"39\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"parent_id\": \"t3_44\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134476_labore\", \"score_hidden\": false, \"name\": \"t1_39\", \"created\": 1535134485.0, \"author_flair_text\": null, \"created_utc\": 1535134485.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "989" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "315" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 292-nTC0EcKPG6yFhqPRzi2y-lsZquI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134476_labore\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"44\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134476_labore\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"locked\": false, \"name\": \"t3_44\", \"created\": 1535134482.0, \"url\": \"http://reddit.local/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur voluptatibus eos rerum et.\", \"created_utc\": 1535134482.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2m\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_44\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"39\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"parent_id\": \"t3_44\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134476_labore\", \"score_hidden\": false, \"name\": \"t1_39\", \"created\": 1535134485.0, \"author_flair_text\": null, \"created_utc\": 1535134485.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2693" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "311" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rJjjGxT%2BafheoWs5K%2FuYRta588qP%2B7AooisdtUGaPUpF6Np1SSR822AorTgyD5RRHPVuGMRdO0xYeT1hS%2FA86sjsTP9Za50E" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 292-nTC0EcKPG6yFhqPRzi2y-lsZquI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134476_labore\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Vitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"44\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134476_labore\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2m\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"locked\": false, \"name\": \"t3_44\", \"created\": 1535134482.0, \"url\": \"http://reddit.local/r/1535134476_labore/comments/44/consectetur_voluptatibus_eos_rerum_et/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Consectetur voluptatibus eos rerum et.\", \"created_utc\": 1535134482.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2m\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_44\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"39\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJACZ7A3EPJD9YV1KEGQ03\", \"parent_id\": \"t3_44\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Quam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134476_labore\", \"score_hidden\": false, \"name\": \"t1_39\", \"created\": 1535134485.0, \"author_flair_text\": null, \"created_utc\": 1535134485.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2693" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "311" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=mP3p%2B2cSBWSMe%2BlJWCcE9WO3YgxzVVyqg2jyGf4862qXWAt4Nlj%2BbUispgeqmtpbeZOPg2vBSc45duMMM6GxxpligpbKsWUH" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/44/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 292-nTC0EcKPG6yFhqPRzi2y-lsZquI" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=hJVkahM0TukaaljOqU; loidcreated=2018-08-24T18%3A14%3A35.918Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134476_labore/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2m\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134476_labore\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAut recusandae debitis deserunt nesciunt facere perferendis. Sint voluptatum ut voluptatibus fugit provident dolor. Quibusdam architecto consequuntur ipsam alias illum ut quam delectus. Perferendis beatae beatae ullam.\\nLaudantium quod adipisci id itaque debitis dolorem assumenda. Quod voluptate perferendis ab recusandae harum enim labore perferendis. Maiores dolorum et labore in cupiditate ea. Corrupti officiis aperiam error voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Harum voluptates unde sunt nisi soluta.\", \"collapse_deleted_comments\": false, \"public_description\": \"Velit id soluta perferendis. Nam doloremque atque temporibus amet asperiores modi.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVelit id soluta perferendis. Nam doloremque atque temporibus amet asperiores modi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Aut recusandae debitis deserunt nesciunt facere perferendis. Sint voluptatum ut voluptatibus fugit provident dolor. Quibusdam architecto consequuntur ipsam alias illum ut quam delectus. Perferendis beatae beatae ullam.\\nLaudantium quod adipisci id itaque debitis dolorem assumenda. Quod voluptate perferendis ab recusandae harum enim labore perferendis. Maiores dolorum et labore in cupiditate ea. Corrupti officiis aperiam error voluptatibus.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 1, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2m\", \"created\": 1535134476.0, \"url\": \"/r/1535134476_labore/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134476.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2406" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "311" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4soq2oBF5z6r1nTUhqcSXOdupcCyn1wnohGs%2BC796Bmsy6vd9DlMtC%2Bvb5wHNqxnFFW5sibQ2nUOxrUj3wgHvKVPZblX1xsi" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134476_labore/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_subscribe_post[True-True-2-2].json b/cassettes/channels.views.posts_test.test_subscribe_post[True-True-2-2].json deleted file mode 100644 index f2b3cbe53e..0000000000 --- a/cassettes/channels.views.posts_test.test_subscribe_post[True-True-2-2].json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:14:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJAPJG5HNFR391J3Y96FAS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKRaCsY+4FKkIdmdwGWJ628ZiE3Lro4j/bmNXLucwZ+ZNlNaAKAfbQU82EVnxdUx35nAqWsb3tpBZIlinrzop02fckGVE4OWMB5QmCCyldGI/Xw6jgzByAeXBhy5qO6NFSB7qSWz/31xjxcjP9I5H1pf0hl5s88zlqDA4FTyMBmmqMDwH8vkCN1B/iLgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=u0EKRONpBezPtJumCT; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:14:52 GMT", - "loidcreated=2018-08-24T18%3A14%3A52.212Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:14:52 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJAPJG5HNFR391J3Y96FAS" - } - }, - { - "recorded_at": "2018-08-24T18:14:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quaerat+neque+cum+consequatur+animi+sequi.+Aperiam+necessitatibus+fugit+sint+dignissimos.+In+minima+atque+aliquid+provident+ratione+error.+Itaque+rem+cumque+sint+molestias+minima+aut.%0ANemo+impedit+doloremque+eaque+odio.+Laborum+distinctio+quia+totam+ut+nesciunt+assumenda+est.+Soluta+dicta+laudantium+doloremque+quaerat+beatae.&link_type=any&name=1535134492_saepe&public_description=Perferendis+eligendi+omnis+a+quidem.+Laborum+modi+itaque+qui+officia+vel.&title=Ipsa+cum+corporis+praesentium+fugit+tempore+vero.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 294-0DiITFh39GoF_75U3kcjc5M6w-g" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "586" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "308" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJAWXK2C51C1MKPJDXXWP1" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDKyNNUtivSucswKtXDRLbVwNEt2K/HyCNH18S3JNC1W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5ZJYGV5jkumW4GRgWeqUU5AUWBJqkG0QFBJSD9KSklmUmp8ZnpoAMhnCUagFPRpEHuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJAWXK2C51C1MKPJDXXWP1" - } - }, - { - "recorded_at": "2018-08-24T18:14:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJAWXK2C51C1MKPJDXXWP1&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 294-0DiITFh39GoF_75U3kcjc5M6w-g" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134492_saepe/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "301" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134492_saepe/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134492_saepe" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 295-rYKzAjU8D-u8A6cFtJHT-LMti5s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "301" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134492_saepe&text=Qui+totam+distinctio+dolorum+accusantium.+Nobis+blanditiis+aliquid+atque+est.&title=Provident+eius+voluptates+sequi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 295-rYKzAjU8D-u8A6cFtJHT-LMti5s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "196" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"id\": \"45\", \"name\": \"t3_45\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "158" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "301" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:14:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 295-rYKzAjU8D-u8A6cFtJHT-LMti5s" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134492_saepe\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"45\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134492_saepe\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"locked\": false, \"name\": \"t3_45\", \"created\": 1535134499.0, \"url\": \"http://reddit.local/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Provident eius voluptates sequi.\", \"created_utc\": 1535134499.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1714" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:14:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "301" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=AVLRiKBnKphyzu4WkmJ6vKL9%2Bax18Qq47aL6l0iwCBZpn9EZ%2BVlq04u7qtySD0%2FHoe8gTSE%2F5EpXXhF%2BKB%2FcOeIg6VakDSJu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Modi+beatae+soluta+nihil+optio+nihil.+Voluptas+sint+molestiae+quos+cupiditate+voluptatibus.&thing_id=t3_45" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 295-rYKzAjU8D-u8A6cFtJHT-LMti5s" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "125" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_45\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"parent_id\": \"t3_45\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Modi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134492_saepe\", \"score_hidden\": false, \"name\": \"t1_3a\", \"created\": 1535134502.0, \"author_flair_text\": null, \"created_utc\": 1535134502.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "984" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "298" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 294-0DiITFh39GoF_75U3kcjc5M6w-g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134492_saepe\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"45\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134492_saepe\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"locked\": false, \"name\": \"t3_45\", \"created\": 1535134499.0, \"url\": \"http://reddit.local/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Provident eius voluptates sequi.\", \"created_utc\": 1535134499.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_45\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"parent_id\": \"t3_45\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Modi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134492_saepe\", \"score_hidden\": false, \"name\": \"t1_3a\", \"created\": 1535134502.0, \"author_flair_text\": null, \"created_utc\": 1535134502.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2640" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=JSeJ%2Fwena7DVv6%2B3289M748wWEkUhTnoqimlfssVsk1tLnStGZUD6GwesTtkp9dSQSKcI32n7asVYthM8O0Dl1s4mJLFTxFg" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 294-0DiITFh39GoF_75U3kcjc5M6w-g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134492_saepe\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Qui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"45\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [], \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134492_saepe\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2n\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"locked\": false, \"name\": \"t3_45\", \"created\": 1535134499.0, \"url\": \"http://reddit.local/r/1535134492_saepe/comments/45/provident_eius_voluptates_sequi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Provident eius voluptates sequi.\", \"created_utc\": 1535134499.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2n\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_45\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3a\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [], \"author\": \"01CNPJAWXK2C51C1MKPJDXXWP1\", \"parent_id\": \"t3_45\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Modi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EModi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134492_saepe\", \"score_hidden\": false, \"name\": \"t1_3a\", \"created\": 1535134502.0, \"author_flair_text\": null, \"created_utc\": 1535134502.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": 0, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2640" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=c5XS5sOcUfMzzK1JnLu6pbYKfe%2B7pto%2Bm3E0dYpgBC7gW9Lgi%2F3kve48cMVl%2FaQ6%2FdZF5AkawSFcXhwK%2B4InqUrmAYPn4NwF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/45/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 294-0DiITFh39GoF_75U3kcjc5M6w-g" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=u0EKRONpBezPtJumCT; loidcreated=2018-08-24T18%3A14%3A52.212Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134492_saepe/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2n\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134492_saepe\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EQuaerat neque cum consequatur animi sequi. Aperiam necessitatibus fugit sint dignissimos. In minima atque aliquid provident ratione error. Itaque rem cumque sint molestias minima aut.\\nNemo impedit doloremque eaque odio. Laborum distinctio quia totam ut nesciunt assumenda est. Soluta dicta laudantium doloremque quaerat beatae.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Ipsa cum corporis praesentium fugit tempore vero.\", \"collapse_deleted_comments\": false, \"public_description\": \"Perferendis eligendi omnis a quidem. Laborum modi itaque qui officia vel.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPerferendis eligendi omnis a quidem. Laborum modi itaque qui officia vel.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Quaerat neque cum consequatur animi sequi. Aperiam necessitatibus fugit sint dignissimos. In minima atque aliquid provident ratione error. Itaque rem cumque sint molestias minima aut.\\nNemo impedit doloremque eaque odio. Laborum distinctio quia totam ut nesciunt assumenda est. Soluta dicta laudantium doloremque quaerat beatae.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 2, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2n\", \"created\": 1535134492.0, \"url\": \"/r/1535134492_saepe/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134492.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2166" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "295" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Oewmq9%2B6isAfaUV8ZBS3KoFrS7o76bBhbCTNIuCowutnBFHfbFYle%2FCRM6AXWQcqwHlLVBi6DJ7cKJXOiGeyWkmNCSZxYa0j" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134492_saepe/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_unsubscribe_post.json b/cassettes/channels.views.posts_test.test_unsubscribe_post.json deleted file mode 100644 index aee5df8519..0000000000 --- a/cassettes/channels.views.posts_test.test_unsubscribe_post.json +++ /dev/null @@ -1,866 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:15:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJC6NMSMRX7H99V0CSWQQX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MNDNyLFITrVIc3S1CE4rCk83KNKtDDf3icrPTcxX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaFBvoXxAcnGjqnVZWlJJd5+wR5+7ibhphGBFqA9KSklmUmp8ZnpoAMhnCUagGQBMQIuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=9siUyXHXYWNWllW3Sq; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:41 GMT", - "loidcreated=2018-08-24T18%3A15%3A41.467Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:41 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJC6NMSMRX7H99V0CSWQQX" - } - }, - { - "recorded_at": "2018-08-24T18:15:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Vitae+consectetur+officiis+distinctio+reprehenderit+perspiciatis.+Culpa+repellat+ratione+voluptates+commodi+consequatur.+Omnis+amet+exercitationem+ratione+iure.+Porro+sunt+expedita+asperiores+labore.%0ACulpa+quos+nisi+reprehenderit+rerum.+Eveniet+at+perspiciatis+nemo.+Ullam+explicabo+a+rerum+doloribus+ut+dolores+adipisci.+Maxime+iure+inventore+occaecati+facilis+unde.+Totam+quam+in+voluptatem+molestiae+labore.&link_type=any&name=1535134541_et&public_description=Illo+praesentium+officia+quod+in+doloribus.+Sint+consequatur+maxime+dolore+id+eum.&title=Fuga+doloribus+consequuntur+molestiae+dicta.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 300-hl8ce8fAE8SfrWg0r-yW7LZomao" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "670" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "259" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCD0QQBXR9Q1FKGPD92H5" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKRZiK1Xc+uhCcVEoGDch5t5grKQ1qUEr/rtNu3I5hzkzHyKkROd4W1doyCoiKZ3FbHfucC0TJb1w/vQEtnV5t188WEmmEcFXoy06roOQZpT2bPB5+24wjFxQWLSh62Q9oklIFlUvXv/fbrFItLnnZaWWQI+ZgGIOh00BZngD9Foi1xCGx0C+P/9pjUi4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCD0QQBXR9Q1FKGPD92H5" - } - }, - { - "recorded_at": "2018-08-24T18:15:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJCD0QQBXR9Q1FKGPD92H5&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 300-hl8ce8fAE8SfrWg0r-yW7LZomao" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134541_et/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "252" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134541_et/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134541_et" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "72" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "252" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134541_et&text=Sit+odit+tempora+excepturi+dolores.+Neque+ipsam+itaque+occaecati.+Ipsam+amet+labore+nulla+tempore.&title=Quia+minus+magnam+ipsum+magnam+nihil." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "219" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"id\": \"48\", \"name\": \"t3_48\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "252" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134541_et\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"48\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJCD0QQBXR9Q1FKGPD92H5\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134541_et\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"locked\": false, \"name\": \"t3_48\", \"created\": 1535134548.0, \"url\": \"http://reddit.local/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia minus magnam ipsum magnam nihil.\", \"created_utc\": 1535134548.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1759" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "252" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=WLor%2BcEUjq26FwV5rRUfyDIfC2lhjURZBdvUzBaAx2Qt%2Fr6XD7gHdFB1eE24UK7tR%2F04iyIET5OWw6isTO5rj9YP%2BUADiYZM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134541_et\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"48\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJCD0QQBXR9Q1FKGPD92H5\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134541_et\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"locked\": false, \"name\": \"t3_48\", \"created\": 1535134548.0, \"url\": \"http://reddit.local/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia minus magnam ipsum magnam nihil.\", \"created_utc\": 1535134548.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1759" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "249" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DmloVedHgoegFo0JoXOBaGHicT3RsphfsuI4D0OixakBcUiUTR20uKzuO3au34D7l%2FIfktDNBRkUbJv51M5t2jBS5NxO1gmC" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134541_et\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Sit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"48\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJCD0QQBXR9Q1FKGPD92H5\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134541_et\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2q\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"locked\": false, \"name\": \"t3_48\", \"created\": 1535134548.0, \"url\": \"http://reddit.local/r/1535134541_et/comments/48/quia_minus_magnam_ipsum_magnam_nihil/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Quia minus magnam ipsum magnam nihil.\", \"created_utc\": 1535134548.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1759" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "249" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=sHquwBKta3dVWkmejwMlM6OADIqzxzhZiM7ggwMC6BAl06YIrc1Zzs%2FtwrMTrXPKXX01%2FrAxhs5PNGhD%2FVEoWde90Q1qLHsa" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/48/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:15:51", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 301-YFZzeCc2fcvasvXudYEsGzK7qYU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=9siUyXHXYWNWllW3Sq; loidcreated=2018-08-24T18%3A15%3A41.467Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134541_et/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2q\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134541_et\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae consectetur officiis distinctio reprehenderit perspiciatis. Culpa repellat ratione voluptates commodi consequatur. Omnis amet exercitationem ratione iure. Porro sunt expedita asperiores labore.\\nCulpa quos nisi reprehenderit rerum. Eveniet at perspiciatis nemo. Ullam explicabo a rerum doloribus ut dolores adipisci. Maxime iure inventore occaecati facilis unde. Totam quam in voluptatem molestiae labore.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Fuga doloribus consequuntur molestiae dicta.\", \"collapse_deleted_comments\": false, \"public_description\": \"Illo praesentium officia quod in doloribus. Sint consequatur maxime dolore id eum.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EIllo praesentium officia quod in doloribus. Sint consequatur maxime dolore id eum.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Vitae consectetur officiis distinctio reprehenderit perspiciatis. Culpa repellat ratione voluptates commodi consequatur. Omnis amet exercitationem ratione iure. Porro sunt expedita asperiores labore.\\nCulpa quos nisi reprehenderit rerum. Eveniet at perspiciatis nemo. Ullam explicabo a rerum doloribus ut dolores adipisci. Maxime iure inventore occaecati facilis unde. Totam quam in voluptatem molestiae labore.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 1, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2q\", \"created\": 1535134541.0, \"url\": \"/r/1535134541_et/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134541.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2340" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:51 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "249" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hQLpedjSbF%2BkhIj3lYJPh2JiW2HmwpqmOfUuF3SwZLYx5Y6klsomNRfp50ADeiiMHvdhlGW8k6DkJR%2Bs9gVUlrZzz%2BoEvjAs" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134541_et/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_update_article_cover.json b/cassettes/channels.views.posts_test.test_update_article_cover.json deleted file mode 100644 index 4ad8440f34..0000000000 --- a/cassettes/channels.views.posts_test.test_update_article_cover.json +++ /dev/null @@ -1,1400 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:15:44", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXQJM45JXKJ82CRSMA5TX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw061ILMvJyE4K9snJ9/TNKI0o96/0SEk3DPb3TlbSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolqVmJYVnBZtGOSeZpBuaJfuFp5b7mRhFRWQYOIK0pKSWZSanxmemgMyFcJRqAUMOXe22AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:44 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=l4LTigrYCOkBi42kBZ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:44 GMT", - "loidcreated=2020-07-28T22%3A15%3A43.885Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:44 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXQJM45JXKJ82CRSMA5TX" - } - }, - { - "recorded_at": "2020-07-28T22:15:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXTSTNDRJGYXXSKMH9CD8" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw102pqsgPrcytSvQ09vM0d88rCrLMMUtK9/PO91XSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkoluWVGri65RkYBLpXGKVHuuTFh6dYRmW5pgd7JIO0pKSWZSanxmemgMyFcJRqAQCgZoa2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXTSTNDRJGYXXSKMH9CD8" - } - }, - { - "recorded_at": "2020-07-28T22:15:47", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Firm+go+near+human+address+quite+million.+Story+or+third.%0AUnit+summer+agency+can+religious.+Executive+social+true+nearly+yes+may+animal.+Together+serve+run+technology+catch+music.%0ALive+expert+clearly+begin+future.+Entire+either+simply.+Six+agent+beautiful+before+doctor+partner+able.%0APolice+yard+future+offer.+Woman+reflect+home+whom.%0ATake+goal+quite+task+mouth+smile.%0AGarden+total+father+wind+put+attorney+just+word.+Trial+teach+such+laugh+east+management+third.+Join+various+girl+important+media.&link_type=any&name=1595974547_30_blood&public_description=Modern+perform+voice+war+center.&title=Institution+task+heart+hour+rise.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 87-dzxoUymzaI3NI7GnrR9l6bgNKoM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "711" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:47 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "253" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQXQJM45JXKJ82CRSMA5TX&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 87-dzxoUymzaI3NI7GnrR9l6bgNKoM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974547_30_blood/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "250" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974547_30_blood/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974547_30_blood" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "250" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974547_30_blood&text=&title=Want+human+political+stay+rich+way+establish." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "135" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"id\": \"12\", \"name\": \"t3_12\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "174" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "250" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:50", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:50 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "250" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=SyNloc636biCPsokAMFonkBp0VCRNEXRF5znpk1JEyUh08VnfpVdjLBjc1yHcxE7quSYo2VkLGHSOSgPOUv4DyjvL743aTLx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "247" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=IwxOxNeGNalRTKlSJO3mLpyb4HzCvuEgGIq8i5KxkRw9Yxc6sHMG1gTgDW2rgrmeVBodBXMWRuUALHm0eoPfXsp21VV1XzYA" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "247" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HkhaZIvR2RP5T%2BPi58GIpY%2BFkQ9C2lXYjd1oliWEBHdNYA13y31cQY7kvZuHogpY1WCzxagjQ%2F95euJZRw8HxR3w6huTdEzM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:53", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:53 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "247" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=dEag6MgfEHI5Gze2dCsCV9%2FXK0Wb0Kkx7eb%2Be2k6FcQ6ULLngQVCJF7HKfsHms6jSrGD40YMGJ4w58cBaG1XRK17PlcVntkV" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "247" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=HURCh7Y%2B0Y%2B8mNLT5A0wOd1G3nexh60mbpRh52By2fGSIwOsWC2Y9Pm1JkALL%2FQE7nnuQC7WQ3dbGphCrvcNUjUwh%2FEMPzWc" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=oDakqK9gY9%2Bh16RN1ZjY96c15cKtVgg2q3ELYi9fWos8W26%2Fh5WsCOdQxpTAl6VEtPs3mn198lQOmQ5hcwbKznBV%2BXVfvLZM" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ccDRLh3EaLRcfdScvDalNMddFAHIXaEo2Zi3Q2L4fs3GjwrG0QAgyW78NhbXihgypbwJhJwZYMDdqpCuOJ%2FUKPRxvqWuLAD0" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "290.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "10" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=i36Ej7TqWfm%2BWfwvkHXPTFGqLzNtUPuCwhJHZLpiulBMmOqQCwe3gWdQoqSGgzMrCtpsKo6L5zrDqCP9AxHTystB27VsvOTu" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "289.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "11" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Jrok4HuHP6mBghOhWWzeTCuUDPC14CZt9Vcj86fxLucXYKmx6M%2BTbNYepfjx0RNCnOAQ%2Feb7R4EOZbWbwjG9U7iG79xMV8nf" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974547_30_blood/about/moderators/?user=01EEBQXQJM45JXKJ82CRSMA5TX&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:54", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 86-xavlhkbSLloIMhuXwOyHdg1SOKc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=l4LTigrYCOkBi42kBZ; loidcreated=2020-07-28T22%3A15%3A43.885Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974547_30_blood\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"12\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXQJM45JXKJ82CRSMA5TX\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974547_30_blood\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_x\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"locked\": false, \"name\": \"t3_12\", \"created\": 1595974550.0, \"url\": \"http://reddit.local/r/1595974547_30_blood/comments/12/want_human_political_stay_rich_way_establish/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Want human political stay rich way establish.\", \"created_utc\": 1595974550.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1490" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:54 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "288.0" - ], - "x-ratelimit-reset": [ - "246" - ], - "x-ratelimit-used": [ - "12" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=adNUlILTf9W927rJ4laHf6N%2BYnc4kFUasJh4iBQhwcQ689lqvMbo%2BLI%2FjiztUL6YtPX7XdBe4psOs%2BLkP2bA6g9TAlZuoxnk" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/12/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.posts_test.test_update_article_post.json b/cassettes/channels.views.posts_test.test_update_article_post.json deleted file mode 100644 index 0ec13db0d9..0000000000 --- a/cassettes/channels.views.posts_test.test_update_article_post.json +++ /dev/null @@ -1,866 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-07-28T22:15:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXARTDD9YGQXE1Z08Y4Y7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw0XUsj88O8ysx8DE0NS/I8jXxCg8xK08yczHNSFfSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRkolvkGmgZk5lokJrrn+mWauhS6R/jEV4Q4GRdGBoK0pKSWZSanxmemgMyFcJRqAb8SmTC2AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=wGUVHsShKo1J0EZRih; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:31 GMT", - "loidcreated=2020-07-28T22%3A15%3A30.754Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 28-Jul-2022 22:15:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXARTDD9YGQXE1Z08Y4Y7" - } - }, - { - "recorded_at": "2020-07-28T22:15:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "python-requests/2.21.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXDZPKES5XBPK019CHXPY" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSULIw1Y0IDLU0cnWuCinO9S0MM4/Idg00MC8uKypLs1DSUVBKrSjILEotjs8EqTc2MzAAioG1x5dUFqSCzEhKTSxKLQKpLU7OhwhpgXhFqWlAjRmolunqGhhVZJgnR+VW5RlEJHkW+mSFhuckF/iagLSkpJZlJqfGZ6aAzIVwlGoBvuIl2LYAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EEBQXDZPKES5XBPK019CHXPY" - } - }, - { - "recorded_at": "2020-07-28T22:15:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Allow+list+girl+ability.+Total+under+try+subject+rock+cell.+Training+season+recent+share+condition+fight+fear.%0AHeart+all+real+accept+citizen.+Herself+much+decade+story+those.+Condition+total+goal+list+couple+price+happen+his.%0ASeries+nothing+room+style+often+bank.+Question+bit+ago+somebody.%0ALose+discussion+performance+tough+discussion+as+well.+Under+guess+decade+plan+animal.%0AInterest+local+across+glass+accept.+Character+plan+generation+though+tend.%0AFast+share+own+almost.&link_type=any&name=1595974534_29_and&public_description=Later+college+health+teach+step+discussion.+Reflect+drive+up+western.&title=Eight+those+should+sign+watch+rock+Congress.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 85-XQU92ECzTsmMqV7XkEQ07svrvf8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "733" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "266" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EEBQXARTDD9YGQXE1Z08Y4Y7&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 85-XQU92ECzTsmMqV7XkEQ07svrvf8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1595974534_29_and/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "263" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974534_29_and/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1595974534_29_and" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "263" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1595974534_29_and&text=&title=Suggest+order+after+mean+painting." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "122" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"id\": \"11\", \"name\": \"t3_11\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "161" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "263" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:37", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974534_29_and\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"11\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXARTDD9YGQXE1Z08Y4Y7\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974534_29_and\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"locked\": false, \"name\": \"t3_11\", \"created\": 1595974537.0, \"url\": \"http://reddit.local/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Suggest order after mean painting.\", \"created_utc\": 1595974537.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1449" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:37 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "263" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=kx0ooXA2gYDoI3eD3R359%2FKE8C6K6IsLN2mQ4bBlh4aSdVo10covXkpgujNRdZPC23OvsTuBUTdZtO%2FjOgr6YBJIK9tlV75U" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974534_29_and\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"11\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXARTDD9YGQXE1Z08Y4Y7\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974534_29_and\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"locked\": false, \"name\": \"t3_11\", \"created\": 1595974537.0, \"url\": \"http://reddit.local/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Suggest order after mean painting.\", \"created_utc\": 1595974537.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1449" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "260" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=xkmBcf6%2Fo9UKnDnNzL2Wt1VrC4LyjMI1wwiSnZmLeaaWblb40x2HyERC5Bh6D%2FmdqzQXjtsWk78LSfSNQtMauPRMBMfLk5Vv" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1595974534_29_and/about/moderators/?user=01EEBQXARTDD9YGQXE1Z08Y4Y7&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "46" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "260" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2BYM0I2le4NWaLSLu%2FxdneVJlTeS412gXc1iDFnGNL6zj8SWE%2Ba7yKK7Vyruiy%2FpsXnNu9AUad7LhEByZ%2BGbWd28sustLvQCG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1595974534_29_and/about/moderators/?user=01EEBQXARTDD9YGQXE1Z08Y4Y7&raw_json=1" - } - }, - { - "recorded_at": "2020-07-28T22:15:40", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 84-Aw_kVNt0L157pjM4JWT6wb6D5hg" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=wGUVHsShKo1J0EZRih; loidcreated=2020-07-28T22%3A15%3A30.754Z" - ], - "User-Agent": [ - "MIT-Open: 0.135.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1595974534_29_and\", \"selftext_html\": null, \"selftext\": \"\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"11\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EEBQXARTDD9YGQXE1Z08Y4Y7\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1595974534_29_and\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_w\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"locked\": false, \"name\": \"t3_11\", \"created\": 1595974537.0, \"url\": \"http://reddit.local/r/1595974534_29_and/comments/11/suggest_order_after_mean_painting/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Suggest order after mean painting.\", \"created_utc\": 1595974537.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1449" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 28 Jul 2020 22:15:40 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "260" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=rxtw16yi8rw8FYfzLPsIxhHLq%2BDLS8lVjWK079sTYrtx5u7PyL37sGAHuHNWYbPR4TM6TIHl9%2BIO%2FbeZlra3623wGq4Nr5iU" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/11/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_list_reports.json b/cassettes/channels.views.reports_test.test_list_reports.json deleted file mode 100644 index d15a121e6f..0000000000 --- a/cassettes/channels.views.reports_test.test_list_reports.json +++ /dev/null @@ -1,1326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T15:52:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKJ3JXRWWGMYEXDEHFQ8CR" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NTQuCQBRF/4rMMhKmFKmWin2AWYtCbDOMzye+hJQZMTP67zm5a3kv95z7ZhIAtRZtXeGDbSy2dFxur+VQ+f2Kwlvkne0k2EP99NMsIrqyucWwb0ihFmQIx+N87H4C0b4aNJYMpUJlthrqqZqZpLAYwfLvbmGfKLjHSQk71+tiofu0GC5bSo4HA+XYEaCg3JinwD5fpZBq/roAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=FO9LK1O8c90P5LTyyA; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:52:21 GMT", - "loidcreated=2018-11-16T15%3A52%3A20.834Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 15:52:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKJ3JXRWWGMYEXDEHFQ8CR" - } - }, - { - "recorded_at": "2018-11-16T15:52:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Suscipit+quas+possimus+ipsa+optio+exercitationem+explicabo+modi.+Tempore+reprehenderit+quibusdam+natus+harum+iusto+quidem.+Et+nulla+totam+est+maxime.%0AAsperiores+quia+doloremque+explicabo+optio+necessitatibus+repellat+nulla+aut.+Facilis+deserunt+suscipit+non+vel.+Quam+praesentium+alias+iusto+porro+voluptatem+itaque+quaerat+fugit.+Hic+laboriosam+asperiores+porro+voluptates+suscipit+neque.&link_type=any&name=1542383541_esse&public_description=Nulla+consectetur+eius+reiciendis+alias+asperiores.&title=Veniam+ratione+nam+harum+qui.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "605" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "459" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKJ9YE456S8YA76XZ0D4SS" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjHUNfYu1I3y8jfJTInyL49Kzgk1SS82L3TydTQwUNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsS7EsSkvzCiypqDBzC/FIq0p3twwytsyviixxBGlKSS3LTE6Nz0wBmQzhKNUCAIGpTxy6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEKJ9YE456S8YA76XZ0D4SS" - } - }, - { - "recorded_at": "2018-11-16T15:52:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CWEKJ9YE456S8YA76XZ0D4SS&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1542383541_esse/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383541_esse/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542383541_esse" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1542383541_esse&text=Possimus+quod+inventore+minima.+Itaque+hic+ex+consectetur+accusantium+qui+minus.&title=Facilis+ab+atque+quae+commodi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "196" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"id\": \"bf\", \"name\": \"t3_bf\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "155" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bf/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383541_esse\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPossimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Possimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"bf\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542383541_esse\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_69\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"locked\": false, \"name\": \"t3_bf\", \"created\": 1542383547.0, \"url\": \"http://reddit.local/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Facilis ab atque quae commodi.\", \"created_utc\": 1542383547.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1710" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "453" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=0yYJ1L%2B65yzS8B7FL1fTCwG6V2lVHHMa9ek67PL9xC845tySZMTVJkv%2FnMo%2BX89bzNDSh4UdcoZqWElWMID2yAVsxUZiRvHw" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bf/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Itaque+placeat+dolor+fuga+ullam+voluptatem+beatae.+Unde+cumque+ut+non.&thing_id=t3_bf" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_69\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bf\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"8b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"parent_id\": \"t3_bf\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Itaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EItaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542383541_esse\", \"score_hidden\": false, \"name\": \"t1_8b\", \"created\": 1542383551.0, \"author_flair_text\": null, \"created_utc\": 1542383551.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "941" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "449" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_8b&reason=spam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "34" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_bf&reason=bad" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2341-3Kq-ZJO4idZOwZclU4gs7qBMA00" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "33" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_8b&reason=spam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "34" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_bf&reason=junk" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "34" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542383541_esse/about/reports/?limit=100&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"link_url\": \"http://reddit.local/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"subreddit_id\": \"t5_69\", \"link_title\": \"Facilis ab atque quae commodi.\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bf\", \"link_author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"likes\": null, \"replies\": \"\", \"user_reports\": [[\"spam\", 1]], \"saved\": false, \"id\": \"8b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [\"This attribute is deprecated. Please use mod_reports and user_reports instead.\"], \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"parent_id\": \"t3_bf\", \"score\": 1, \"approved_by\": null, \"over_18\": false, \"controversiality\": 0, \"body\": \"Itaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EItaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542383541_esse\", \"score_hidden\": false, \"name\": \"t1_8b\", \"created\": 1542383551.0, \"author_flair_text\": null, \"quarantine\": false, \"created_utc\": 1542383551.0, \"ups\": 1, \"mod_reports\": [[\"spam\", \"01CWEKJ3JXRWWGMYEXDEHFQ8CR\"]], \"num_reports\": 2, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"domain\": \"self.1542383541_esse\", \"subreddit\": \"1542383541_esse\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPossimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Possimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [[\"bad\", 1]], \"secure_media\": null, \"saved\": false, \"id\": \"bf\", \"media_embed\": {}, \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [\"This attribute is deprecated. Please use mod_reports and user_reports instead.\"], \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_69\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"locked\": false, \"name\": \"t3_bf\", \"created\": 1542383547.0, \"url\": \"http://reddit.local/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Facilis ab atque quae commodi.\", \"created_utc\": 1542383547.0, \"link_flair_text\": null, \"ups\": 1, \"mod_reports\": [[\"junk\", \"01CWEKJ3JXRWWGMYEXDEHFQ8CR\"]], \"visited\": false, \"num_reports\": 2, \"distinguished\": null}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2962" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=%2B1iDp8xqNhQKnVp5BO6RFFq%2BMqr7WzDW1X9v8xtVOXLNuSxhr%2Fr26NSTJKdfbg8ASLjDrjfHt7QHWgUyxF9p%2FvK0BklO26iW" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383541_esse/about/reports/?limit=100&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/bf/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1542383541_esse\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPossimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Possimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [[\"bad\", 1]], \"secure_media\": null, \"saved\": false, \"id\": \"bf\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": [\"This attribute is deprecated. Please use mod_reports and user_reports instead.\"], \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1542383541_esse\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_69\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"locked\": false, \"name\": \"t3_bf\", \"created\": 1542383547.0, \"url\": \"http://reddit.local/r/1542383541_esse/comments/bf/facilis_ab_atque_quae_commodi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Facilis ab atque quae commodi.\", \"created_utc\": 1542383547.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [[\"junk\", \"01CWEKJ3JXRWWGMYEXDEHFQ8CR\"]], \"visited\": false, \"num_reports\": 2, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_69\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_bf\", \"likes\": null, \"replies\": \"\", \"user_reports\": [[\"spam\", 1]], \"saved\": false, \"id\": \"8b\", \"gilded\": 0, \"archived\": false, \"report_reasons\": [\"This attribute is deprecated. Please use mod_reports and user_reports instead.\"], \"author\": \"01CWEKJ9YE456S8YA76XZ0D4SS\", \"parent_id\": \"t3_bf\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Itaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EItaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1542383541_esse\", \"score_hidden\": false, \"name\": \"t1_8b\", \"created\": 1542383551.0, \"author_flair_text\": null, \"created_utc\": 1542383551.0, \"ups\": 1, \"mod_reports\": [[\"spam\", \"01CWEKJ3JXRWWGMYEXDEHFQ8CR\"]], \"num_reports\": 2, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2850" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=G0FyG1%2BozV5a5FFY6HD5idJiomecXAuqjmS4NgjDR9cOgv4l8Ord%2BNq1HUE%2BT24dRFbnF%2FEs%2FAENHDLlttKI4nAhmuRSRY4B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/bf/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T15:52:34", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2340-9azkBx8iEZL6P-WCHcowBYbLiiU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=FO9LK1O8c90P5LTyyA; loidcreated=2018-11-16T15%3A52%3A20.834Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1542383541_esse/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"69\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1542383541_esse\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ESuscipit quas possimus ipsa optio exercitationem explicabo modi. Tempore reprehenderit quibusdam natus harum iusto quidem. Et nulla totam est maxime.\\nAsperiores quia doloremque explicabo optio necessitatibus repellat nulla aut. Facilis deserunt suscipit non vel. Quam praesentium alias iusto porro voluptatem itaque quaerat fugit. Hic laboriosam asperiores porro voluptates suscipit neque.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Veniam ratione nam harum qui.\", \"collapse_deleted_comments\": false, \"public_description\": \"Nulla consectetur eius reiciendis alias asperiores.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENulla consectetur eius reiciendis alias asperiores.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Suscipit quas possimus ipsa optio exercitationem explicabo modi. Tempore reprehenderit quibusdam natus harum iusto quidem. Et nulla totam est maxime.\\nAsperiores quia doloremque explicabo optio necessitatibus repellat nulla aut. Facilis deserunt suscipit non vel. Quam praesentium alias iusto porro voluptatem itaque quaerat fugit. Hic laboriosam asperiores porro voluptates suscipit neque.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_69\", \"created\": 1542383541.0, \"url\": \"/r/1542383541_esse/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1542383541.0, \"banner_size\": null, \"user_is_moderator\": true, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2227" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 15:52:34 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "446" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=eRixcQ4zpIFZBhVN1ZiV4mXNqfFQ3VtrwM%2BPm92EuFE20wK2xlgR8N3v6fS6LXdz02vIANyTSIOT4hquxxIGzWaJecNyS7%2Fx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1542383541_esse/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_list_reports_empty.json b/cassettes/channels.views.reports_test.test_list_reports_empty.json deleted file mode 100644 index 9fb16f7d0d..0000000000 --- a/cassettes/channels.views.reports_test.test_list_reports_empty.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:17:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJETS82D74DKDSKSYA66K7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNJNq0rJd0xOjjLP94kwSPEL9fNKt8gK9s0MLCxW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlxmflmsRXpJVb5IdVBHn4e2T7B6WU5ZamWZaD9KSklmUmp8ZnpoAMhnCUagFtj/7WuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=myxqNk4MrqsV0nVMCJ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:07 GMT", - "loidcreated=2018-08-24T18%3A17%3A07.575Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:07 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJETS82D74DKDSKSYA66K7" - } - }, - { - "recorded_at": "2018-08-24T18:17:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Sint+eius+animi+consectetur+laudantium.+Vel+quae+nobis+placeat+quam+ut.+Aperiam+iste+dicta+natus+rerum+tenetur+voluptatum.+Aspernatur+laudantium+dicta+pariatur+quos+asperiores.%0APerspiciatis+alias+ea+veritatis.+Rem+ab+atque+nemo+molestiae+quam.+Et+voluptatibus+aut+doloribus.+Neque+pariatur+aliquid+reiciendis+eius+corporis+rerum.&link_type=any&name=1535134627_nesciunt&public_description=Nulla+nemo+beatae+sapiente.+Non+modi+magnam+provident+id+ullam.&title=Nihil+perferendis+molestiae+maxime+aut.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 312-fzdoAccZ7oLX0dNUNJg8jSMiQqs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "571" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=myxqNk4MrqsV0nVMCJ; loidcreated=2018-08-24T18%3A17%3A07.575Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "173" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:11", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 312-fzdoAccZ7oLX0dNUNJg8jSMiQqs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=myxqNk4MrqsV0nVMCJ; loidcreated=2018-08-24T18%3A17%3A07.575Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134627_nesciunt/about/reports/?limit=100&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "93" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:11 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "169" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=hxSBNUV01WNVpsaMRrr0GDJhyqnQPHHjjoOV7QmtXixNSoLp9cqBi1J%2FKN2whpSkoR8PUJ9VFNgeHZ3u1x07RVg3Fy3lxnO%2B" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134627_nesciunt/about/reports/?limit=100&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_patch_channel_noauth.json b/cassettes/channels.views.reports_test.test_patch_channel_noauth.json deleted file mode 100644 index 4bb97970b9..0000000000 --- a/cassettes/channels.views.reports_test.test_patch_channel_noauth.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:17:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFAVR2VPZGJ0MF12229XV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNWNdwwyNfNyTgqwLHSKyjGwLDP1Nch3MdUtMjBR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZVZXh6mUW5u7gnhhp7OeclBQUZ5aemuIaWOyWD9KSklmUmp8ZnpoAMhnCUagGUZ1RKuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=gNBTiJ8AKjeSvn68MJ; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:24 GMT", - "loidcreated=2018-08-24T18%3A17%3A24.046Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:24 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFAVR2VPZGJ0MF12229XV" - } - }, - { - "recorded_at": "2018-08-24T18:17:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Provident+at+id+quis+inventore+veritatis+natus+eius+reprehenderit.+A+quos+optio+pariatur+odit+temporibus.+Ullam+voluptates+sed+animi+dolore+sint+vel+ipsum.+Facilis+veniam+ea+similique+omnis.%0ARatione+unde+inventore+deleniti+dolor.+Reiciendis+sed+quia+quod+dolore+tempore+dignissimos+rem+labore.&link_type=any&name=1535134644_necessitat&public_description=Perferendis+odit+repudiandae+perferendis+culpa.+Molestias+nesciunt+debitis+ipsam.&title=Doloremque+pariatur+quaerat+molestias+aperiam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 315-_AR56JCbP9qBZl09v5M0oD5-r04" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "562" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=gNBTiJ8AKjeSvn68MJ; loidcreated=2018-08-24T18%3A17%3A24.046Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "156" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_patch_channel_nonstaff.json b/cassettes/channels.views.reports_test.test_patch_channel_nonstaff.json deleted file mode 100644 index f156ccadbf..0000000000 --- a/cassettes/channels.views.reports_test.test_patch_channel_nonstaff.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:17:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJF14YVZQZ3AST8WDYHEZ6" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNZ1LTcvzA4siDSIci1KyUjyM8+ucvbPyg90dwlV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFeuj6Oof6OxoC5YLcXVL9C+Izc9P9cgKSLEB6UlLLMpNT4zNTQAZDOEq1AGGG15+4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=sokD9h633W8tUDUvFt; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:14 GMT", - "loidcreated=2018-08-24T18%3A17%3A14.108Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJF14YVZQZ3AST8WDYHEZ6" - } - }, - { - "recorded_at": "2018-08-24T18:17:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=sokD9h633W8tUDUvFt; loidcreated=2018-08-24T18%3A17%3A14.108Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJF4DTJH6Q7JS8S99ENZWW" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNF1rwquSk2OyjJzLEnM8i3KMHbxrvQqzPbJ9zdR0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaFZpZYVGQFeuYaphbmmEYl5Rb4hwVkl6aHWISC9KSklmUmp8ZnpoAMhnCUagHL9sKyuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJF4DTJH6Q7JS8S99ENZWW" - } - }, - { - "recorded_at": "2018-08-24T18:17:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Enim+enim+quod+ducimus+reiciendis+molestiae+qui.+Nulla+eligendi+hic+nesciunt+nisi+blanditiis+ab+nesciunt.+Earum+quod+nesciunt+earum+sequi.%0AAtque+libero+error+et+illo.+Ut+assumenda+quas+ea.+Magni+possimus+vero+maxime+molestiae+corrupti.+Voluptatum+recusandae+sunt+quae+vel.%0AQuibusdam+reprehenderit+fugiat+quam+id+rem+eaque.+Molestiae+consequatur+iusto+id.+Voluptatibus+accusantium+repudiandae+rem+minima+voluptatum.+Quae+tempore+suscipit+dolor+a+eius+numquam.+Alias+esse+deserunt+ratione+libero.&link_type=any&name=1535134637_numquam&public_description=Temporibus+suscipit+pariatur+non+eligendi+beatae+maxime.+Labore+facilis+provident+rerum+molestiae.&title=Eveniet+id+vitae+maxime+ab+sit+sapiente+aliquam.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 314-GzSzecZj6AtajMrh3DKyJqkLoO4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "781" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=sokD9h633W8tUDUvFt; loidcreated=2018-08-24T18%3A17%3A14.108Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "163" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 313-Ew7qkQpY0ZErdhbN7kzCOjoQGDU" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=sokD9h633W8tUDUvFt; loidcreated=2018-08-24T18%3A17%3A14.108Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134637_numquam/about/moderators/?user=01CNPJF14YVZQZ3AST8WDYHEZ6&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "access-control-allow-origin": [ - "*" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=ERykYuJdmtR2U4idltYp%2FjLyEvxUYut5KMFcA5WeyXipV0NJ%2BehlgxcVShRpRHo2DTcHISuxc%2FjkC41iQBPMElJZXToKFWKF" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/r/1535134637_numquam/about/moderators/?user=01CNPJF14YVZQZ3AST8WDYHEZ6&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_report_anonymous.json b/cassettes/channels.views.reports_test.test_report_anonymous.json deleted file mode 100644 index 298539aef8..0000000000 --- a/cassettes/channels.views.reports_test.test_report_anonymous.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:16:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJDH5HS290ZD5KPVBZ4VT7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNsQ6CMBiEX4V0NJK0VqoyEiODLBoZOjWl/MTShEKLRmJ8d6lMjvflvrs3kkqB92K0BjqURohiFrPH/kQ5u+KkHEx8y0m2KxpuHSVbtI4QvHrtwAsdBMowntnPF+PUQxipQDpwoeuVXdAqJAfNLN7/3w5VlsiyzY8DV4JweSnabvJnYzYmODU8tQKh6zC8BPT5AtIwCz64AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:16:25 GMT", - "loidcreated=2018-08-24T18%3A16%3A24.973Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:16:25 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJDH5HS290ZD5KPVBZ4VT7" - } - }, - { - "recorded_at": "2018-08-24T18:16:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Sed+ex+odio+iste+doloribus+optio+voluptatem.+Error+doloremque+veniam+nisi+placeat+fugit+consectetur.+Maxime+nulla+facere+sapiente+aliquid.+Sit+iste+odit+autem+error+exercitationem+sint+ad+ipsam.%0AQuisquam+nemo+ipsum+voluptatem+officiis+vero+tenetur.+Ipsa+culpa+nesciunt+cupiditate+minima+necessitatibus.+Non+eveniet+rem+autem+suscipit+labore+occaecati.&link_type=any&name=1535134585_quae&public_description=Cum+earum+ab+quod+placeat+repellat.+Quod+sunt+rerum+pariatur.+Nam+enim+odit+at+nesciunt.&title=Corrupti+atque+suscipit+ipsa+nihil+consequatur.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 306-6u8F3Y6R05Uqk-TG1B7LfYor314" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "621" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; loidcreated=2018-08-24T18%3A16%3A24.973Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "215" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; loidcreated=2018-08-24T18%3A16%3A24.973Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJDQG4KDP8KD4N0MRGXW40" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MNf1rAjJLvINdy4pLI0PNPIPzfMuNU+rMA4rybBQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5Jpm5pFu4uec5Z3iY5/iHhXi6ZTqXGWYZFYFtS0kty0xOjc9MARkM4SjVAgA6Z9ZVuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJDQG4KDP8KD4N0MRGXW40" - } - }, - { - "recorded_at": "2018-08-24T18:16:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134585_quae&text=A+explicabo+dicta+magnam+a+illum+blanditiis.+Cum+eum+inventore+aut+sapiente.&title=Aperiam+velit+veritatis+ab+doloremque+molestiae." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 307-IxTkrMWCtqu_Q2OUnKu7fx3Vth8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "210" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; loidcreated=2018-08-24T18%3A16%3A24.973Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134585_quae/comments/4b/aperiam_velit_veritatis_ab_doloremque_molestiae/\", \"id\": \"4b\", \"name\": \"t3_4b\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "212" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 307-IxTkrMWCtqu_Q2OUnKu7fx3Vth8" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; loidcreated=2018-08-24T18%3A16%3A24.973Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4b/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134585_quae\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EA explicabo dicta magnam a illum blanditiis. Cum eum inventore aut sapiente.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"A explicabo dicta magnam a illum blanditiis. Cum eum inventore aut sapiente.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4b\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJDQG4KDP8KD4N0MRGXW40\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134585_quae\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2t\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134585_quae/comments/4b/aperiam_velit_veritatis_ab_doloremque_molestiae/\", \"locked\": false, \"name\": \"t3_4b\", \"created\": 1535134588.0, \"url\": \"http://reddit.local/r/1535134585_quae/comments/4b/aperiam_velit_veritatis_ab_doloremque_molestiae/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Aperiam velit veritatis ab doloremque molestiae.\", \"created_utc\": 1535134588.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1756" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "212" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=eMFAmpMFV4K69i%2BDUpPmKUR4uvpBR670VnGtzGZE0SEP6gTLDnk3xHL%2FvhOezCgDXrlaK2IuqjuxHbgcsO47IhPgyg%2BwXyPV" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4b/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Aut+fuga+numquam+eum+in.+Fugit+asperiores+quaerat+quasi+itaque.+Atque+sapiente+esse+facilis+ullam.&thing_id=t3_4b" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 307-IxTkrMWCtqu_Q2OUnKu7fx3Vth8" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "132" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=ZPqdnKQDhNP4pIrXQ2; loidcreated=2018-08-24T18%3A16%3A24.973Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2t\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4b\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3e\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJDQG4KDP8KD4N0MRGXW40\", \"parent_id\": \"t3_4b\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Aut fuga numquam eum in. Fugit asperiores quaerat quasi itaque. Atque sapiente esse facilis ullam.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAut fuga numquam eum in. Fugit asperiores quaerat quasi itaque. Atque sapiente esse facilis ullam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134585_quae\", \"score_hidden\": false, \"name\": \"t1_3e\", \"created\": 1535134591.0, \"author_flair_text\": null, \"created_utc\": 1535134591.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "997" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "209" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_report_comment.json b/cassettes/channels.views.reports_test.test_report_comment.json deleted file mode 100644 index 1dc7e5ed8f..0000000000 --- a/cassettes/channels.views.reports_test.test_report_comment.json +++ /dev/null @@ -1,783 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:16:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJD18V7W3WD4K05DKS4P1D" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MNHNcvQrDXI2DPap0M0pNClP9kl2Ki0pja9IKUlX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLb5mxenV2TFhweUeLumVhmFBKTmZRhFuLqVJxuA9KSklmUmp8ZnpoAMhnCUagFLh1SvuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=rGtMDoEJXxHQLqdPti; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:16:09 GMT", - "loidcreated=2018-08-24T18%3A16%3A08.705Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:16:09 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJD18V7W3WD4K05DKS4P1D" - } - }, - { - "recorded_at": "2018-08-24T18:16:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Incidunt+iure+quibusdam+qui+quasi+earum+quas.+Laborum+eaque+tempore+nihil+quos.+Reprehenderit+ipsa+et+quasi+necessitatibus+repellendus+quibusdam+exercitationem.+Dolore+beatae+temporibus+nemo+ipsum+asperiores+dicta+dicta.%0AVoluptatum+laborum+enim+amet+non+rem.+Sint+reprehenderit+aut+id+officiis+culpa.+Ipsam+perspiciatis+exercitationem+voluptatem+molestias.+Recusandae+nam+porro+cum.&link_type=any&name=1535134569_in&public_description=Magnam+assumenda+minima+quisquam+porro.+Consequuntur+pariatur+rem+quibusdam+saepe.&title=Asperiores+ut+explicabo+impedit+pariatur.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 304-jANuRC1SLx-lq4wcLcButu_xdtg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "639" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:09 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "231" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJD7M53P1BNXWQC5MJBXH7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQvCIBzFv8rwGAnSWoduMoYhSEiHsZMs9x/TKE3XKKLv3mynju/H+733Rq3WEKMa3QVuaJ+hnBR4YvdSUnVQQKujxNhGy7Qoi6tzaJ0heHoTICqThHxHyMx+vhpfHtLIGdoAIXWjdgtapRSgn8Xh/+2x4SfcWC/qoaZb7h0fWINp1QuZnA4mo0GZLg0vAX2+6RIpzbgAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJD7M53P1BNXWQC5MJBXH7" - } - }, - { - "recorded_at": "2018-08-24T18:16:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJD7M53P1BNXWQC5MJBXH7&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 304-jANuRC1SLx-lq4wcLcButu_xdtg" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134569_in/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134569_in/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134569_in" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 305-vGqCQA_H_eAEOQ--jsjGcMC5moo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "72" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134569_in&text=Animi+totam+ad+ullam+quas+repellat.+Amet+modi+doloremque+cum+voluptatum+temporibus+accusamus.&title=Sint+sed+facilis+ea+cumque+rem+quasi." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 305-vGqCQA_H_eAEOQ--jsjGcMC5moo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134569_in/comments/4a/sint_sed_facilis_ea_cumque_rem_quasi/\", \"id\": \"4a\", \"name\": \"t3_4a\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "160" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 305-vGqCQA_H_eAEOQ--jsjGcMC5moo" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4a/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134569_in\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAnimi totam ad ullam quas repellat. Amet modi doloremque cum voluptatum temporibus accusamus.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Animi totam ad ullam quas repellat. Amet modi doloremque cum voluptatum temporibus accusamus.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4a\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJD7M53P1BNXWQC5MJBXH7\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134569_in\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2s\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134569_in/comments/4a/sint_sed_facilis_ea_cumque_rem_quasi/\", \"locked\": false, \"name\": \"t3_4a\", \"created\": 1535134575.0, \"url\": \"http://reddit.local/r/1535134569_in/comments/4a/sint_sed_facilis_ea_cumque_rem_quasi/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Sint sed facilis ea cumque rem quasi.\", \"created_utc\": 1535134575.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1749" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:15 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "225" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=BYANEBk3CJmPgNqg5GwQ32b3Vzk6%2FAI%2B1tqUlvVnwXrv6%2FWNCBnVxBhNM8JZKetWAM5TMuOVUiRDxrafPFOp3dv5X%2B9%2FUtcS" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4a/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Fugiat+quas+deserunt+nihil+exercitationem+eos+maxime+sed.+Fugit+nemo+accusamus+vero+accusantium.&thing_id=t3_4a" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 305-vGqCQA_H_eAEOQ--jsjGcMC5moo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "130" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2s\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4a\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3d\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJD7M53P1BNXWQC5MJBXH7\", \"parent_id\": \"t3_4a\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Fugiat quas deserunt nihil exercitationem eos maxime sed. Fugit nemo accusamus vero accusantium.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EFugiat quas deserunt nihil exercitationem eos maxime sed. Fugit nemo accusamus vero accusantium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134569_in\", \"score_hidden\": false, \"name\": \"t1_3d\", \"created\": 1535134578.0, \"author_flair_text\": null, \"created_utc\": 1535134578.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "991" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:18 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "222" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t1_3d&reason=spam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 305-vGqCQA_H_eAEOQ--jsjGcMC5moo" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "34" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=rGtMDoEJXxHQLqdPti; loidcreated=2018-08-24T18%3A16%3A08.705Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "219" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.reports_test.test_report_post.json b/cassettes/channels.views.reports_test.test_report_post.json deleted file mode 100644 index 817e00ebd8..0000000000 --- a/cassettes/channels.views.reports_test.test_report_post.json +++ /dev/null @@ -1,691 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:15:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCM4GJF26RDD1WXD17Q47" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNQQrCMBREr1KyFIXUD424bBtBsSBCFnUTavrFWG1LEqMi3t3GrlzOY97Mm1RKobXSdQ22ZBkRoPNZ3BbldrcA5h/u3jiAg0tzYEXqBZlGBJ+9NmilDgIklA7s50v36jGMHLEyaELXqm5Ek5AMngbx/P8mxE3vLyuWXNfxxmvLM+BQ8oxbHpwavVYodR2Gx0A+X4oUkjS4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=stX09Ji9L17WJ33vjO; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:55 GMT", - "loidcreated=2018-08-24T18%3A15%3A55.252Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:15:55 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCM4GJF26RDD1WXD17Q47" - } - }, - { - "recorded_at": "2018-08-24T18:15:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Hic+rem+earum+ipsum.+Recusandae+iusto+non+itaque+quia.+Maxime+odio+ut+vitae+enim+explicabo.%0AMagnam+earum+esse+nemo+odio+nam+corrupti+totam.+Consequuntur+ex+accusantium+eos+placeat+neque.%0ANumquam+tempore+optio+repudiandae+magnam+quam+rem+deleniti.+Odit+ipsam+veritatis+animi+dolor+necessitatibus+quae+earum+sequi.+Voluptatum+atque+fugit+perferendis+eaque.+Ipsum+tempore+eaque+odio+corporis.%0AOdio+error+officia+tempora+corrupti+perspiciatis.+Sunt+ex+laborum+officiis+fugit+labore.&link_type=any&name=1535134555_officia&public_description=Numquam+quos+laborum+nostrum+at+eum+maiores.+Harum+quisquam+odio+soluta+nisi+quas.&title=Rem+facere+facere+nobis.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 302-1nMYLP837vwtukt33ZtBD37MBvU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "727" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:15:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCTF7NXVZVNSGRC27ACE9" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNywrCMBREf6VkKQqBi8+dWEGNGxe1ugppckuCksSk9YH47zZ25XIOc2beREiJMfLGXdCSRUaAwqj1c1vYw3o62we2LXWtGByXusVAyTAj+PQmYOQmCTChtGM/nzcvj2mkQhEwpG6UrkeDlALWnaj/39i1cvYGYnXe7Ep+emgtqYciHxuXHIV3I5EblYb7QD5f/yHKi7gAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJCTF7NXVZVNSGRC27ACE9" - } - }, - { - "recorded_at": "2018-08-24T18:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJCTF7NXVZVNSGRC27ACE9&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 302-1nMYLP837vwtukt33ZtBD37MBvU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134555_officia/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134555_officia/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134555_officia" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 303-up9nUnQE78LrKIWhfdK3VAhuer0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "77" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134555_officia&text=At+odio+corrupti+culpa+nam+sint+architecto.+Enim+neque+optio+ab+praesentium.&title=Accusamus+impedit+voluptas+deleniti+praesentium." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 303-up9nUnQE78LrKIWhfdK3VAhuer0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "213" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134555_officia/comments/49/accusamus_impedit_voluptas_deleniti_praesentium/\", \"id\": \"49\", \"name\": \"t3_49\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "176" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 303-up9nUnQE78LrKIWhfdK3VAhuer0" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/49/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134555_officia\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAt odio corrupti culpa nam sint architecto. Enim neque optio ab praesentium.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"At odio corrupti culpa nam sint architecto. Enim neque optio ab praesentium.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"49\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJCTF7NXVZVNSGRC27ACE9\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134555_officia\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2r\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134555_officia/comments/49/accusamus_impedit_voluptas_deleniti_praesentium/\", \"locked\": false, \"name\": \"t3_49\", \"created\": 1535134562.0, \"url\": \"http://reddit.local/r/1535134555_officia/comments/49/accusamus_impedit_voluptas_deleniti_praesentium/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Accusamus impedit voluptas deleniti praesentium.\", \"created_utc\": 1535134562.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1768" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=bmxsjcInkbq3Zc%2B2wzmaQbwfqVvlGwIbPRzqCUSVDWcIFGJOCZtE8mhYwryhqqTMhEgPDaWsh%2B3qxR7iPHWUmJQJ8tlPf9R6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/49/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:16:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&id=t3_49&reason=spam" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 303-up9nUnQE78LrKIWhfdK3VAhuer0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "34" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=stX09Ji9L17WJ33vjO; loidcreated=2018-08-24T18%3A15%3A55.252Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/report/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:16:05 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "235" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/report/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_add_subscriber[1].json b/cassettes/channels.views.subscribers_test.test_add_subscriber[1].json deleted file mode 100644 index 47066f919c..0000000000 --- a/cassettes/channels.views.subscribers_test.test_add_subscriber[1].json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T22:15:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7J9SQKAGJEXCZ8GB0V9Z6S" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIytDDUDc3TdS8INsnL8k8vNMlJcqmqSgst9Qj1LE8sV9JRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csi/TWzaxI9jEv9ApJMzWKikhyMcguco3XjfLzBGlKSS3LTE6Nz0wBmQzhKNUCAE1sfWS6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=XtLtxMjJjvrQR38AkB; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:39 GMT", - "loidcreated=2018-11-13T22%3A15%3A38.937Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:39 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7J9SQKAGJEXCZ8GB0V9Z6S" - } - }, - { - "recorded_at": "2018-11-13T22:15:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=XtLtxMjJjvrQR38AkB; loidcreated=2018-11-13T22%3A15%3A38.937Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7J9WZT8PN8KSMPS293ZB4E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NXQuCMBiF/4rsMhKmg5Auoy+losga62bM+UqjyLHJ0qL/nsu7Ls/hPM95IyElWMub+gYPNA1QHCVxaDcVXblLTgQ+0ftWpOc9acEBSxdoHCBotTJgufIEmWDcdz8BbzoN3lKAMGD81sp6qEY+Gah68Pp352QWFVJ3R8Z0YrN1jpd0Fz7nr9nBQyU4JYGr0puHgD5fWsEVG7oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7J9WZT8PN8KSMPS293ZB4E" - } - }, - { - "recorded_at": "2018-11-13T22:15:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Quam+vel+aliquid+sequi+ut+enim.+Ea+voluptatem+quasi+in.+Magni+nemo+sint+maiores.+Nihil+maiores+atque+commodi+dolorum+asperiores+atque.+Rem+quam+quos+nostrum+magnam.%0AExercitationem+sint+voluptatem+sit+vero.+Impedit+officiis+deleniti+quae+rem+officia+asperiores.+Itaque+excepturi+quo+beatae+quam+natus+fuga+soluta.+Tempore+fugit+placeat+eos+odit.&link_type=any&name=1542147342_reprehende&public_description=Dolor+expedita+similique+debitis+voluptatem+facere+itaque.&title=Illo+perferendis+adipisci+suscipit+modi.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2181-Un-GpS4njOgq4lbDzzfUuHUIwaw" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "583" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XtLtxMjJjvrQR38AkB; loidcreated=2018-11-13T22%3A15%3A38.937Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "258" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T22:15:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542147342_reprehende" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2182-sLfWGvZT3a0UWlMaIVP3xeveYIE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=XtLtxMjJjvrQR38AkB; loidcreated=2018-11-13T22%3A15%3A38.937Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "255" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_add_subscriber[2].json b/cassettes/channels.views.subscribers_test.test_add_subscriber[2].json deleted file mode 100644 index c6161ab824..0000000000 --- a/cassettes/channels.views.subscribers_test.test_add_subscriber[2].json +++ /dev/null @@ -1,418 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T22:15:49", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JA3DECYZ39J99C64CW911" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIytDDWLS/JLAl1Ci3LSIsIz6vwCQsxMEiLys0qccqPVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsKzUPT3OrTDb18SsPSPUoybXI8IwvNK7K9nQsBmlKSS3LTE6Nz0wBmQzhKNUCAH+MUxK6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:49 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=DxmDrAuOZZ1X1hptoz; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:49 GMT", - "loidcreated=2018-11-13T22%3A15%3A48.868Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:49 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JA3DECYZ39J99C64CW911" - } - }, - { - "recorded_at": "2018-11-13T22:15:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=DxmDrAuOZZ1X1hptoz; loidcreated=2018-11-13T22%3A15%3A48.868Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JA6QRHJE70J1BR4YZNPSW" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4V0NJpAWw1xM+gAQmBwkaWhj6c2JpS0xSjGf5fK5nhv7jn3TRoAtFY4fceObANCo5ivZAXXksIYUVnV+pBnqijHIa+LpCDLgOCzVwatUJ5gmzCcup9AuFeP3iKxMWj81oKeq4VPBi8TePu7G2Ts8pSdzlnW6R1n416v+dEYzVIPtfhQgEK13jwH8vkClvTFYLoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JA6QRHJE70J1BR4YZNPSW" - } - }, - { - "recorded_at": "2018-11-13T22:15:52", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Necessitatibus+tempore+similique+nam+eos+voluptatum+asperiores+quae.+Impedit+et+distinctio+reprehenderit+sint+consequatur+exercitationem+dolorem+error.+Ad+animi+eveniet+alias+culpa+ab+quisquam+ut.+Animi+officia+consequatur+odio+temporibus+quo+facilis.%0APossimus+iste+maiores+aliquid+minima+quidem+sed+praesentium.+Iure+in+doloremque+voluptatem+expedita+excepturi+quae.+Corrupti+deserunt+a+nobis+libero.&link_type=any&name=1542147352_distinctio&public_description=Ex+itaque+minus+culpa+consectetur+ea+esse+dignissimos+dolorum.&title=Eos+dolor+illo+animi+consequuntur.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2183-wtitUBUvhfXWnxLVT00fZmjtBoY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "638" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DxmDrAuOZZ1X1hptoz; loidcreated=2018-11-13T22%3A15%3A48.868Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:52 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "248" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T22:15:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542147352_distinctio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2184-bPcgO2cz12bPZoELJiMOzuLZMCM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DxmDrAuOZZ1X1hptoz; loidcreated=2018-11-13T22%3A15%3A48.868Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-13T22:15:55", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542147352_distinctio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2184-bPcgO2cz12bPZoELJiMOzuLZMCM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DxmDrAuOZZ1X1hptoz; loidcreated=2018-11-13T22%3A15%3A48.868Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:55 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "245" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_add_subscriber_anonymous.json b/cassettes/channels.views.subscribers_test.test_add_subscriber_anonymous.json deleted file mode 100644 index 16d0968200..0000000000 --- a/cassettes/channels.views.subscribers_test.test_add_subscriber_anonymous.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T22:15:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JADF3Z85PFAMT9F6PRQK0" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIytDDVNUhJywjKd/MLKoywTPSOTI+I8PDJNykyNTMOVdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsCzPwT04OcjEuyCn29glwyfYIqLIs9YlPifIGW5eSWpaZnBqfmQIyGcJRqgUA3yUpJLoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:15:59 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=7k2d0iITXs1LMEzU1m; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:59 GMT", - "loidcreated=2018-11-13T22%3A15%3A59.143Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:15:59 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JADF3Z85PFAMT9F6PRQK0" - } - }, - { - "recorded_at": "2018-11-13T22:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=7k2d0iITXs1LMEzU1m; loidcreated=2018-11-13T22%3A15%3A59.143Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JAGQ7DM3ZGS2X5C1EFTPD" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NQQuCMBzFv4rsGAk2Y2S3QBiSdQgE8TLm/FtrMG1TW0TfPZe3ju/xfr/3RlwIsJYNnQKN9gHCmx0JtSoNJ0WSNVglVVXyMbuf8ikNH1u0DhC4XhqwTHoiJlE0dz8BG149eEsN3IDxWyu6pVr5ZKCdwdvfHT+2tBjTuo4YzS/u6uLnGWtxoKnyUAOTFMBk481LQJ8vyf+VZboAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7JAGQ7DM3ZGS2X5C1EFTPD" - } - }, - { - "recorded_at": "2018-11-13T22:16:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Mollitia+illum+quas+fugit+natus+odio+harum+consequatur.+Atque+magni+accusantium+velit+quia.+Ullam+occaecati+minima+culpa+nesciunt+veniam+praesentium.+Id+distinctio+harum+a+natus+necessitatibus+voluptas+voluptate.%0ACum+minus+mollitia+dolores+voluptatum+maxime+totam+est.+Vero+maxime+beatae+unde+quis+dolore+provident.+Ipsa+blanditiis+labore+nisi+odio+rem+repellendus+ut+animi.&link_type=any&name=1542147362_repellat&public_description=Facilis+odit+dolores+mollitia+itaque+ut+fugiat.&title=Aperiam+vitae+officia+neque.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2185-0dfhRoFNRqX9aKYgXXHLo4r563U" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "588" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=7k2d0iITXs1LMEzU1m; loidcreated=2018-11-13T22%3A15%3A59.143Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:16:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "238" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_add_subscriber_forbidden.json b/cassettes/channels.views.subscribers_test.test_add_subscriber_forbidden.json deleted file mode 100644 index 1758ad896b..0000000000 --- a/cassettes/channels.views.subscribers_test.test_add_subscriber_forbidden.json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2019-01-14T20:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01D172AHZRF3Y1F5633EG5AHB7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNrHUzTBy8s8w9nP0zi4NNS9NLc92DzHM93KuSC51VdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsCyyqdDMM9fQ2KcwIMHa0CEkpSQxMMcgpdc6JBGlKSS3LTE6Nz0wBmQzhKNUCAJi7Osq6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 14 Jan 2019 20:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=mWVH6Wkl55974UbWXn; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Jan-2021 20:54:56 GMT", - "loidcreated=2019-01-14T20%3A54%3A55.690Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 13-Jan-2021 20:54:56 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01D172AHZRF3Y1F5633EG5AHB7" - } - }, - { - "recorded_at": "2019-01-14T20:54:56", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Officiis+explicabo+deserunt+aut+nesciunt+praesentium+adipisci+optio+esse.+Libero+quidem+consectetur+iusto.+Cumque+aspernatur+maiores+ut+voluptate+provident+aliquid+rerum.%0APraesentium+amet+consequuntur+quasi+amet+neque+ipsam+esse.+Neque+veritatis+ipsam+ullam+omnis+aliquid.+Aut+magnam+dolorum+magnam+accusantium.%0AEarum+ea+nostrum+atque+velit+labore.+Quis+suscipit+ullam+pariatur+voluptas+ad+ea+voluptate.+Neque+blanditiis+doloremque+autem+corrupti+accusantium.+Odio+adipisci+ut+blanditiis+cum+optio.&link_type=any&name=1547499296_115_saepe&public_description=Natus+unde+eos+saepe+tempore+laudantium+nam+exercitationem+dolores.&title=Repellat+ullam+quidem+sint.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2349-h2BOh3NAKkuU7uewkGT1oJCxcuE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "735" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=mWVH6Wkl55974UbWXn; loidcreated=2019-01-14T20%3A54%3A55.690Z" - ], - "User-Agent": [ - "MIT-Open: 0.62.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 14 Jan 2019 20:54:56 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "304" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2019-01-14T20:55:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=mWVH6Wkl55974UbWXn; loidcreated=2019-01-14T20%3A54%3A55.690Z" - ], - "User-Agent": [ - "MIT-Open: 0.62.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01D172ARDZG7Q2X8M2TEAV3SBB" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjXQLY4w9Ag3TQ42NXG38DD0NI8vzM4yMckIyA0pVtJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9CsKzctcQ/yzqn0SEuvSMsJdjQ2tUiPzA818wvyBWlKSS3LTE6Nz0wBmQzhKNUCAF3qZLC6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 14 Jan 2019 20:55:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01D172ARDZG7Q2X8M2TEAV3SBB" - } - }, - { - "recorded_at": "2019-01-14T20:55:02", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1547499296_115_saepe" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2350-sX1HW5cS54G8H1I7_qkj44hPmTs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=mWVH6Wkl55974UbWXn; loidcreated=2019-01-14T20%3A54%3A55.690Z" - ], - "User-Agent": [ - "MIT-Open: 0.62.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Forbidden\", \"error\": 403}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 14 Jan 2019 20:55:02 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "298" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 403, - "message": "Forbidden" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_add_subscriber_mod.json b/cassettes/channels.views.subscribers_test.test_add_subscriber_mod.json deleted file mode 100644 index 63ee715493..0000000000 --- a/cassettes/channels.views.subscribers_test.test_add_subscriber_mod.json +++ /dev/null @@ -1,667 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-09-14T15:14:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCAB6P6ZXHVQXM3ZEDBDQZV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2tdA1cAlwNq5Ijs/w8naMyIzwNCmt8PTwSS1JKTFQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaZuHlYVuQV5BYmehd4GyVH+Ud6pKVn5WUEu4SC9KSklmUmp8ZnpoAMhnCUagH8CRxXuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=szgFdyA1lqS33Cwai9; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 13-Sep-2020 15:14:19 GMT", - "loidcreated=2018-09-14T15%3A14%3A19.490Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 13-Sep-2020 15:14:19 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCAB6P6ZXHVQXM3ZEDBDQZV" - } - }, - { - "recorded_at": "2018-09-14T15:14:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Dolorum+corporis+labore+minima+dolore.+Culpa+inventore+eum+accusamus+similique+similique+voluptates+cupiditate.%0AConsequuntur+dignissimos+blanditiis+perspiciatis+sequi+ad.+Laudantium+incidunt+nisi+voluptatem+eos+totam+ex.+Sapiente+cupiditate+pariatur+deleniti+rem+voluptate+consectetur+dolores.+Mollitia+natus+exercitationem+sed+non+quos+vel+omnis.+Illum+praesentium+mollitia+doloribus+quam+accusantium+deleniti+debitis.&link_type=any&name=1536938059_natus&public_description=Voluptatibus+cupiditate+inventore+repellat+dolores.+Eveniet+dolore+laboriosam+autem+alias+corrupti.&title=Iure+consectetur+possimus+molestias+doloremque.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-0DPC3xc_hJKAXiXI4uxIHLetdt0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "701" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "341" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-14T15:14:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCABD7C0AYE733CKG73FM1Z" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2tdTND3cPTvQL8043T3PL9rEscPR2DjcwcCtOTy9W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5OXuG+yTmJJunhnsluaRahhRFhVlk+jm7VwaC9KSklmUmp8ZnpoAMhnCUagHffP6guAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCABD7C0AYE733CKG73FM1Z" - } - }, - { - "recorded_at": "2018-09-14T15:14:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCABGEG379XRANA5GVK9VK7" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2M9ANcY5P9XZLywsL8YgPNzZ1082NKK1ITUwztTBR0lFQSq0oyCxKLY7PBGkAqjcAioH1x5dUFqSCDElKTSxKLQKpLU7OhwhpgXhFqWlAjRmotvlalBsXFoW6RfpW+HikBAS66KabBAY5mXn7eoL0pKSWZSanxmemgAyGcJRqAayWwfy4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CQCABGEG379XRANA5GVK9VK7" - } - }, - { - "recorded_at": "2018-09-14T15:14:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CQCABD7C0AYE733CKG73FM1Z&permissions=%2Ball&type=moderator" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 358-0DPC3xc_hJKAXiXI4uxIHLetdt0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "79" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536938059_natus/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "331" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536938059_natus/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-09-14T15:14:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 359-oWGSaNVKg7fFkL9pAKCW00Fsggs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "13" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1536938059_natus/api/accept_moderator_invite?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "330" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536938059_natus/api/accept_moderator_invite?raw_json=1" - } - }, - { - "recorded_at": "2018-09-14T15:14:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 359-oWGSaNVKg7fFkL9pAKCW00Fsggs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1536938059_natus/about/moderators/?user=01CQCABD7C0AYE733CKG73FM1Z&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"UserList\", \"data\": {\"children\": [{\"date\": 1536938070.0, \"mod_permissions\": [\"all\"], \"name\": \"01CQCABD7C0AYE733CKG73FM1Z\", \"id\": \"t2_9z\"}]}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "149" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "330" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=nFaP%2F9fxhoMvUhRpy0A4ltb%2BOLTttPyF830NQcpqo6wTQPDQLAwARW7bU8H2UWeg8Wal7e8wTbj9gPDaFtnOWmOkScJAZtWG" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1536938059_natus/about/moderators/?user=01CQCABD7C0AYE733CKG73FM1Z&raw_json=1" - } - }, - { - "recorded_at": "2018-09-14T15:14:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1536938059_natus" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 360-TC_eKFfnVTH_W35F-mXuxeaf584" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=szgFdyA1lqS33Cwai9; loidcreated=2018-09-14T15%3A14%3A19.490Z" - ], - "User-Agent": [ - "MIT-Open: 0.45.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 14 Sep 2018 15:14:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "330" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_detail_subscriber.json b/cassettes/channels.views.subscribers_test.test_detail_subscriber.json deleted file mode 100644 index 1b9575036d..0000000000 --- a/cassettes/channels.views.subscribers_test.test_detail_subscriber.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:17:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFJ40CQ18CS13JGC2NK40" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNMNKqyKNHWLKIpy9bf0LTYvMw4OCPfMDTG0MAtU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZlFeVVhmT6mJmHpFS6mPuV+xoUGVY5Z5YnuRWD9KSklmUmp8ZnpoAMhnCUagFE7OKouAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=Q3CWak180kdfa80fuT; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:31 GMT", - "loidcreated=2018-08-24T18%3A17%3A31.494Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:31 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFJ40CQ18CS13JGC2NK40" - } - }, - { - "recorded_at": "2018-08-24T18:17:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q3CWak180kdfa80fuT; loidcreated=2018-08-24T18%3A17%3A31.494Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFNDKRC5JGMB00CZGDWHZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2NNcNKzZwjApzjHRJrIpPqch2M04P8ff19w11jM9W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5GSbqxidZ+rtaFpZHOpYYZkb5ZSf7GQV5xJuA9KSklmUmp8ZnpoAMhnCUagF8C3qFuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFNDKRC5JGMB00CZGDWHZ" - } - }, - { - "recorded_at": "2018-08-24T18:17:35", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Vitae+placeat+inventore+ipsum+eveniet.+Aperiam+est+placeat+molestias+quod+esse.+Debitis+nostrum+iusto+a+eius.+Modi+nihil+soluta+aspernatur+sed.%0AFacere+ratione+quaerat+pariatur+necessitatibus+facere+natus+sit.+Error+ab+et+hic+nesciunt+pariatur.+Maiores+ex+quas+odio+occaecati+hic+expedita+sint+quae.%0ADoloremque+culpa+dicta+blanditiis+molestiae+doloribus.+Saepe+laudantium+alias+error+et+consequuntur+itaque.+Id+consequuntur+culpa+voluptates+architecto+hic.&link_type=any&name=1535134655_odio&public_description=Ad+ratione+dolore+ad+porro+quia+maiores+rem+asperiores.+Nesciunt+unde+perspiciatis+adipisci+nam.&title=Quis+at+soluta+perspiciatis+amet+accusamus.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 317-Vs0AZVAYDaz_dxkF3gTOMOMUA_k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "732" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q3CWak180kdfa80fuT; loidcreated=2018-08-24T18%3A17%3A31.494Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:35 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "145" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJFJ40CQ18CS13JGC2NK40&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 317-Vs0AZVAYDaz_dxkF3gTOMOMUA_k" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q3CWak180kdfa80fuT; loidcreated=2018-08-24T18%3A17%3A31.494Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134655_odio/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "142" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134655_odio/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134655_odio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 316-RqzY5FXrZEO9Ms7v3SPWImT186Q" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=Q3CWak180kdfa80fuT; loidcreated=2018-08-24T18%3A17%3A31.494Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "142" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 316-RqzY5FXrZEO9Ms7v3SPWImT186Q" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=Q3CWak180kdfa80fuT; loidcreated=2018-08-24T18%3A17%3A31.494Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"2z\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134655_odio\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVitae placeat inventore ipsum eveniet. Aperiam est placeat molestias quod esse. Debitis nostrum iusto a eius. Modi nihil soluta aspernatur sed.\\nFacere ratione quaerat pariatur necessitatibus facere natus sit. Error ab et hic nesciunt pariatur. Maiores ex quas odio occaecati hic expedita sint quae.\\nDoloremque culpa dicta blanditiis molestiae doloribus. Saepe laudantium alias error et consequuntur itaque. Id consequuntur culpa voluptates architecto hic.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quis at soluta perspiciatis amet accusamus.\", \"collapse_deleted_comments\": false, \"public_description\": \"Ad ratione dolore ad porro quia maiores rem asperiores. Nesciunt unde perspiciatis adipisci nam.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAd ratione dolore ad porro quia maiores rem asperiores. Nesciunt unde perspiciatis adipisci nam.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Vitae placeat inventore ipsum eveniet. Aperiam est placeat molestias quod esse. Debitis nostrum iusto a eius. Modi nihil soluta aspernatur sed.\\nFacere ratione quaerat pariatur necessitatibus facere natus sit. Error ab et hic nesciunt pariatur. Maiores ex quas odio occaecati hic expedita sint quae.\\nDoloremque culpa dicta blanditiis molestiae doloribus. Saepe laudantium alias error et consequuntur itaque. Id consequuntur culpa voluptates architecto hic.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": null, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_2z\", \"created\": 1535134655.0, \"url\": \"/r/1535134655_odio/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134655.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2559" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "142" - ], - "x-ratelimit-used": [ - "2" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=UV0Qrg15iYCbcZn8I9ggWgdT126vlIGbJPpmR7FZqXDXbTBDZyGxaNCk%2Foai8Jj%2B2kLr15ZApEDtPS%2BKBYYxhSXq%2BQ18Y6xr" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_detail_subscriber_anonymous.json b/cassettes/channels.views.subscribers_test.test_detail_subscriber_anonymous.json deleted file mode 100644 index d641cc14d7..0000000000 --- a/cassettes/channels.views.subscribers_test.test_detail_subscriber_anonymous.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-13T22:00:21", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7HDSF9FAT27TW1ZHS1BZRJ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNLPUTTaIT3INivIuDLdwtQwNjA8J9PWLD0ozS3aLVNJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csc84IMgk280z2KDV1CjMtiShPNtV1MQ4P9ElLBmlKSS3LTE6Nz0wBmQzhKNUCAEJNygO6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:00:21 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=iQDFrde9v9TpXhflzm; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:00:21 GMT", - "loidcreated=2018-11-13T22%3A00%3A21.171Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Thu, 12-Nov-2020 22:00:21 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7HDSF9FAT27TW1ZHS1BZRJ" - } - }, - { - "recorded_at": "2018-11-13T22:00:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=iQDFrde9v9TpXhflzm; loidcreated=2018-11-13T22%3A00%3A21.171Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7HDWR6VANCFBMVCB8X3A45" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NywrCMBREf6VkKQoxjRVcis+CUEGEdhPa9NbGV0petIr/bmN3LmeYc+aNcs5Ba2bkDZ5oESAyneMJpcu0IQcXHSNXnblpJa9XWQpht0bjAEHbCAWaCU+EEcZ99xMw0zXgLQXkCpTfai6HauSTgqoH6787S17F5hHfr7M4y2libXq6iO0OJ9neQyU4wYGJ0puHgD5fGfnohboAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:00:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW7HDWR6VANCFBMVCB8X3A45" - } - }, - { - "recorded_at": "2018-11-13T22:00:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Rerum+temporibus+sed+quibusdam+consectetur+quisquam+occaecati+suscipit.+Quo+tenetur+ducimus+animi+voluptate+earum+et+odio.+Reprehenderit+magni+illo+atque+impedit+nisi+incidunt.+Rerum+cum+beatae+maiores+nihil+amet+soluta.%0AAnimi+atque+qui+quos+voluptatum+repellat+nulla+aspernatur.+Quae+delectus+molestiae+neque+officiis.&link_type=any&name=1542146424_ipsam&public_description=Repudiandae+praesentium+sapiente+dolorum+ratione+sunt+eum.&title=Recusandae+quisquam+eligendi+voluptate+enim+fuga.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2169-c0_bERZKqW8E9UQ_TQMN_Rf6cFY" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "562" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=iQDFrde9v9TpXhflzm; loidcreated=2018-11-13T22%3A00%3A21.171Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Tue, 13 Nov 2018 22:00:25 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "576" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_detail_subscriber_missing.json b/cassettes/channels.views.subscribers_test.test_detail_subscriber_missing.json deleted file mode 100644 index 7feecd89e9..0000000000 --- a/cassettes/channels.views.subscribers_test.test_detail_subscriber_missing.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:17:41", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFVWRX89JDWZX9FW5MX6E" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2tNCN0vUPNqyK97Q0tUy3LKvIKNbN9ww0MnD0d/NV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZ5upiXuVlG5VaU5JU4uQSkh0emVpjoBrjr+pqA9KSklmUmp8ZnpoAMhnCUagHQRZ9OuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:41 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=57IpseGruxbXgSBQHG; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:41 GMT", - "loidcreated=2018-08-24T18%3A17%3A41.477Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:17:41 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFVWRX89JDWZX9FW5MX6E" - } - }, - { - "recorded_at": "2018-08-24T18:17:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=57IpseGruxbXgSBQHG; loidcreated=2018-08-24T18%3A17%3A41.477Z" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFZ49RBAXF9BZBMWVQ9KX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2tNTNNK/SjXKyNDaLNHOPDDD2Ci2v1PWrKilKCzJQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYVpJc5F5qZZgWVprsXlAd6err7OmZFBpdEeOaD9KSklmUmp8ZnpoAMhnCUagHQBlU8uAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJFZ49RBAXF9BZBMWVQ9KX" - } - }, - { - "recorded_at": "2018-08-24T18:17:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Earum+perferendis+expedita+consectetur.+Eos+facere+voluptatibus+laudantium+alias.%0AEnim+impedit+rerum+earum.+Vel+asperiores+debitis+eligendi+aperiam.+Amet+nobis+vero+atque+harum+consectetur.+Facere+cum+quas+reiciendis+nesciunt+sequi+voluptas.%0AQuidem+impedit+voluptatum+sit+id+consectetur.+Enim+nobis+consequatur+libero+beatae+ex+consequatur+voluptatem.%0ATempora+totam+molestias+illo+perferendis+explicabo.+Possimus+rerum+voluptatum+eius+odio.+Neque+eligendi+vitae+fugiat+fugit+dolorem.&link_type=any&name=1535134665_vel&public_description=Architecto+quibusdam+cum+iste.+Minima+beatae+quod+eaque+maiores+ab+vel+qui.&title=Aliquid+earum+dolorum+architecto+adipisci.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 319-i7z-ZB936Y6GYP3JUwy-NztrfR0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "739" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=57IpseGruxbXgSBQHG; loidcreated=2018-08-24T18%3A17%3A41.477Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "135" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:17:48", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 318-Z-OS1z_I959g9vxhs-oIQ20AOFM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=57IpseGruxbXgSBQHG; loidcreated=2018-08-24T18%3A17%3A41.477Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "93" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:17:48 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "132" - ], - "x-ratelimit-used": [ - "1" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NohzocDqcw3QIu3JhTHgr3eBl7JXEQIza8zA25Nv9jiRInaXxOzjhsCQ9vvihGCm8U5oWR4gwWTqTnmQAGVaIZOdqnUDrWWp" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/subreddits/mine/subscriber/?limit=1024&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_list_subscribers.json b/cassettes/channels.views.subscribers_test.test_list_subscribers.json deleted file mode 100644 index f33bd8d65d..0000000000 --- a/cassettes/channels.views.subscribers_test.test_list_subscribers.json +++ /dev/null @@ -1,486 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T19:32:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04EQC40Z680Y42KD877BH" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNUtSAwKdC/38k8xNM7xzPE0c/HJCfPNMMzMyAxU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFeZiEeIdHevlGmbokpqQY+qfk+qdmGfqH6LqC9KSklmUmp8ZnpoAMhnCUagHPU5dhuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 04:19:06 GMT", - "loidcreated=2018-11-16T04%3A19%3A06.285Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 04:19:06 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04EQC40Z680Y42KD877BH" - } - }, - { - "recorded_at": "2018-11-16T19:32:05", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Eligendi+optio+sunt+provident+suscipit+veniam+unde.+Repellat+saepe+id+minima+molestiae+numquam+ducimus+cum.%0ADeserunt+esse+veniam+sapiente+numquam+eveniet+illum+facilis.+Officiis+iste+quo+quod+consequuntur.+Iste+optio+veniam+eveniet+optio.%0AEsse+soluta+quae+dolorum+incidunt+sequi+molestiae.+Doloribus+delectus+officiis+molestias+ex.+Libero+cum+ea+quibusdam+asperiores.+Accusamus+laborum+cumque+nemo+ipsam+ea+corrupti+dolorum.&link_type=any&name=1542396725_sint&public_description=Perspiciatis+qui+esse+dolorem+laboriosam.&title=Quae+sapiente+dolore+beatae+suscipit.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 185-paRQGwJOd13lIlI6DLlVMh1ihiQ" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "639" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; loidcreated=2018-11-16T04%3A19%3A06.285Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "54" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T19:32:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; loidcreated=2018-11-16T04%3A19%3A06.285Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04N621TD888PKTEC6YVEX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNN1rCjMTitLDTJ0zkoJrMrOMYus8kr3Nc+vykxX0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLaVOzrqeodlmvq7prtlZHr6u4aVROSEeKekF5aD9KSklmUmp8ZnpoAMhnCUagHB68BruAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04N621TD888PKTEC6YVEX" - } - }, - { - "recorded_at": "2018-11-16T19:32:08", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542396725_sint" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 186-AxqkfveR1CjdQzkl6YzJgM7ozig" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; loidcreated=2018-11-16T04%3A19%3A06.285Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "50" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-16T19:32:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; loidcreated=2018-11-16T04%3A19%3A06.285Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04N6JXYB9RGTPVW9GG3Q3" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDK0MNf1KHDzqMx3dg2pCE4OdM92cyvPqgrTjS/I9vNU0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLblBPlWllbFJxmnVfmkZOsWxYckeoebuGdnliWD9KSklmUmp8ZnpoAMhnCUagErqEzOuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWF04N6JXYB9RGTPVW9GG3Q3" - } - }, - { - "recorded_at": "2018-11-16T19:32:09", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542396725_sint" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 187-HpFHyoCETxScQGkFFwjzV-_pkNI" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=0XNN2C5g7ooIAv81Ld; loidcreated=2018-11-16T04%3A19%3A06.285Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 04:19:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "50" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_list_subscribers_allowed.json b/cassettes/channels.views.subscribers_test.test_list_subscribers_allowed.json deleted file mode 100644 index 118662e6fe..0000000000 --- a/cassettes/channels.views.subscribers_test.test_list_subscribers_allowed.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T14:53:59", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEG780363E4E12Y13GZY7GC" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4V0aTSpwfeORBtNIHFDXDZwe4EGwqOFKjX+u1RWLudkzsybJACoNe+bEmty8sh6f1xFYQP+RgRp+mQ1FMZcaWDjre1ETpYewVcrFWouneDvKJ3Yz+f92KIbSTFRqFxXQzOjhUsKs0ks/t9GZsaD1FDGVRZVdnhEd3o5D2HHbs4RaCQgl8INz4F8vqluak64AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Thu, 15 Nov 2018 23:41:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=ptVc0D5a7HkSMYSlGA; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 14-Nov-2020 23:41:00 GMT", - "loidcreated=2018-11-15T23%3A41%3A00.477Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sat, 14-Nov-2020 23:41:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEG780363E4E12Y13GZY7GC" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_list_subscribers_not_allowed.json b/cassettes/channels.views.subscribers_test.test_list_subscribers_not_allowed.json deleted file mode 100644 index 9c03d5aa95..0000000000 --- a/cassettes/channels.views.subscribers_test.test_list_subscribers_not_allowed.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-22T20:25:36", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJPGDK7XYJ7ME7JR56WA4ZP" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNyw6CMBREf4V0aSSp9YGwc8POxNQE0U0D5QoVQ1+gEOO/S2Hlck7mzHxQxjlYy1pZQ4MiDwV74lOdXja1VrlOQry99eXVX8XBUw9KoqWHoFfCgGXCCesdxiObfNYOCtxIDpkB47qWyxktXDJwH8Xq/60lKaXx+WDK5v0o4UiSuvNlF56q6a2Al+DAROGG54C+P01ONKe4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 22 Nov 2017 20:25:36 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=AY05AwatgzrZ0nXoaW; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 22-Nov-2019 20:25:36 GMT", - "loidcreated=2017-11-22T20%3A25%3A36.043Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 22-Nov-2019 20:25:36 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01BZJPGDK7XYJ7ME7JR56WA4ZP" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_remove_subscriber[1].json b/cassettes/channels.views.subscribers_test.test_remove_subscriber[1].json deleted file mode 100644 index 66affa2b11..0000000000 --- a/cassettes/channels.views.subscribers_test.test_remove_subscriber[1].json +++ /dev/null @@ -1,418 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T14:33:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7SQHT52QBSTCV7BCTSBQ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBRFf4W80WhSUVTYHNQmRAcTB1gabJ+holL6GsQY/10qm+O9uefcNxRSIpFwdYUPSAIIQxZP7rajQ2nmJNs85dluxad5JErD0wrGAWBntEUS2hOzBWN99xMI9zLoLWcsLFq/JVkP1cgni5ceLP/ubvvMYRWtG6Gb7TF6qlNMm2WTXRnzkMJWSxRaefMQ4PMFX4YGJLoAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:14 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=DYEMMmMb4OknhSMa3C; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:33:14 GMT", - "loidcreated=2018-11-14T14%3A33%3A13.694Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:33:14 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7SQHT52QBSTCV7BCTSBQ" - } - }, - { - "recorded_at": "2018-11-14T14:33:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=DYEMMmMb4OknhSMa3C; loidcreated=2018-11-14T14%3A33%3A13.694Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7X1G6M1VJPAASQF3WM1A" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12N0QqCMBiFX0V2GQnTJKjbGpUwqAtHdDNs/uKQpv1bmkXvnsu7Ls/hfN95k1wpsFa6pgZD1gGJ44iGO1OfnOnwbLc9VokTjG8SnR14z8k8IPBsNYKV2hOLJaVj9xNIN7TgLVfIEdBvrWqmauYTQjmC1d+dSPNw/4jk5SVTttLsOCjB79EtaTMPFdBpBVIX3jwF8vkCRCoQaroAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A7X1G6M1VJPAASQF3WM1A" - } - }, - { - "recorded_at": "2018-11-14T14:33:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Laudantium+temporibus+numquam+similique+tempora+laboriosam+corporis+sit.+Inventore+nam+sint+provident+voluptate.+Iure+at+perspiciatis+rem+accusamus+omnis+sit.+Eius+quas+ex+dolore+corrupti+quidem+ab.%0ASimilique+maiores+ullam+sit+minus+soluta+magnam.+Molestiae+quasi+deleniti+non+facere+doloribus+suscipit.%0AQuos+culpa+perferendis+quaerat.+Eum+ad+error+possimus+numquam+quod.+Molestiae+delectus+impedit+in+nesciunt+temporibus+esse+natus+fuga.&link_type=any&name=1542205997_distinctio&public_description=Vitae+tempora+iste+repellendus+nobis+repellat+nam+illo+quisquam.&title=Recusandae+temporibus+quam+vero+quas+odio+porro.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2209-mrxsNhp4scvZKHYG8H1Z5_hpHKk" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "693" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DYEMMmMb4OknhSMa3C; loidcreated=2018-11-14T14%3A33%3A13.694Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:17 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "403" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542205997_distinctio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2210-GnkQtnvrXsDwrh4tVEMC4iUIMwM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "80" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DYEMMmMb4OknhSMa3C; loidcreated=2018-11-14T14%3A33%3A13.694Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "400" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=unsub&api_type=json&sr_name=1542205997_distinctio" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2210-GnkQtnvrXsDwrh4tVEMC4iUIMwM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "56" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=DYEMMmMb4OknhSMa3C; loidcreated=2018-11-14T14%3A33%3A13.694Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "400" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_remove_subscriber[2].json b/cassettes/channels.views.subscribers_test.test_remove_subscriber[2].json deleted file mode 100644 index b71dc6b5cc..0000000000 --- a/cassettes/channels.views.subscribers_test.test_remove_subscriber[2].json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-14T14:33:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A83HBFD1TFGVVTM6SJQGX" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyMjTU9cn1M3Au8QhMyU2p9C028cvzMfUtTs+JqihxVdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Csy8vMySlN8XD01HXMSwq3sCzXLfUtC3Y19DUoBmlKSS3LTE6Nz0wBmQzhKNUCAJVpSGS6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:24 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=BfhQxYArBcuHHFIV6C; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:33:24 GMT", - "loidcreated=2018-11-14T14%3A33%3A23.727Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Fri, 13-Nov-2020 14:33:24 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A83HBFD1TFGVVTM6SJQGX" - } - }, - { - "recorded_at": "2018-11-14T14:33:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=BfhQxYArBcuHHFIV6C; loidcreated=2018-11-14T14%3A33%3A23.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A86SY9SXA0070K682CE65" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NXQuCMBiF/4rsMgp0pUJ3Yh8GYdGN0s2Y8xVHpWPvCkf033N51+U5nOc5b8KFAERm+ht0ZO0RSgO6EKpNI9OEj+3Fx+A8JJu9zWOaldmKzD0Cg5IakElHLCPfH7ufgBmrwFkq4Bq026Lop2rmkoZmBNu/u0IXSYpXw606xcyUu46Hz+M9x+DgoBpeUgCTtTNPgXy+yPwkj7oAAAA=", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CW9A86SY9SXA0070K682CE65" - } - }, - { - "recorded_at": "2018-11-14T14:33:27", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Illo+inventore+nulla+accusamus+rerum+iste+maiores.+Soluta+sequi+voluptates+adipisci+vel+laudantium.+Veniam+repellendus+dolorem+expedita+perferendis+tempore+beatae+dignissimos.%0AQuasi+eligendi+delectus+animi.+Voluptates+nulla+illum+labore+occaecati+aspernatur+eius+quidem.+Accusamus+beatae+consequatur+rem+ullam+accusantium+reprehenderit+ipsam.+Doloribus+facere+quasi+placeat+vel+velit+earum.&link_type=any&name=1542206007_et&public_description=Magni+maxime+delectus+pariatur+ratione.+Eos+aut+nisi+beatae+eos.&title=Voluptatum+qui+hic+dignissimos+qui+distinctio+id.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2211-LmN0CtHQdmdyMs4NnL5MsglZxtE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "636" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=BfhQxYArBcuHHFIV6C; loidcreated=2018-11-14T14%3A33%3A23.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:27 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "393" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1542206007_et" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2212-cphC6tf5mER0s1PxADGyN72HXH4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "72" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=BfhQxYArBcuHHFIV6C; loidcreated=2018-11-14T14%3A33%3A23.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "390" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=unsub&api_type=json&sr_name=1542206007_et" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2212-cphC6tf5mER0s1PxADGyN72HXH4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=BfhQxYArBcuHHFIV6C; loidcreated=2018-11-14T14%3A33%3A23.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "390" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-11-14T14:33:30", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=unsub&api_type=json&sr_name=1542206007_et" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2212-cphC6tf5mER0s1PxADGyN72HXH4" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "48" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=BfhQxYArBcuHHFIV6C; loidcreated=2018-11-14T14%3A33%3A23.727Z" - ], - "User-Agent": [ - "MIT-Open: 0.52.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"message\": \"Not Found\", \"error\": 404}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Wed, 14 Nov 2018 14:33:30 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "390" - ], - "x-ratelimit-used": [ - "3" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 404, - "message": "Not Found" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views.subscribers_test.test_remove_subscriber_anonymous.json b/cassettes/channels.views.subscribers_test.test_remove_subscriber_anonymous.json deleted file mode 100644 index 09d8f10a9a..0000000000 --- a/cassettes/channels.views.subscribers_test.test_remove_subscriber_anonymous.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-11-16T16:56:28", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEQ7GVFJT5PM7YXJ0EAMDBR" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDIyNjHTDXBOMq7MNAzKjEj3DXbLMq8IcCk3zzUPsvB0VdJRUEqtKMgsSi2OzwTpMDYzMACKgQ2IL6ksSAWZkpSaWJRaBFJbnJwPEdIC8YpS04AaM9Cs884uLgsONAwMLY9KdjU2iPQI8HWzTLMMDiqOBGlKSS3LTE6Nz0wBmQzhKNUCAD1tNt26AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 16:56:28 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=2SX0cCQZn7h2ocbXNr; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 16:56:28 GMT", - "loidcreated=2018-11-16T16%3A56%3A28.262Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 15-Nov-2020 16:56:28 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEQ7GVFJT5PM7YXJ0EAMDBR" - } - }, - { - "recorded_at": "2018-11-16T16:56:31", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=2SX0cCQZn7h2ocbXNr; loidcreated=2018-11-16T16%3A56%3A28.262Z" - ], - "User-Agent": [ - "python-requests/2.20.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEQ7M5SQ3GK5G2DQNYJMKFW" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA12NsQ6CMBiEX4V0NJIAFWucMRYGDUkXpoaWH60EaFpE0fjuUtkc73Lfd29USgnW8qFvoEN7D0V4Q/wHOdpUNm0M95hNRX6gGITOziLfobWH4KmVAcuVI/A2CObuJ+DDpMFZBJQGjNta2S/VyiUD9Qxe/+46GtLTRVmWtMwPs1tUsTGhxLzSwkEVjEoCV5UzLwF9vuKXj5G6AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 16:56:31 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CWEQ7M5SQ3GK5G2DQNYJMKFW" - } - }, - { - "recorded_at": "2018-11-16T16:56:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Perspiciatis+adipisci+excepturi+officia+commodi.+Iste+dicta+sit+incidunt+aperiam+unde+recusandae+necessitatibus+at.+Vitae+omnis+at+inventore+qui+cumque+aliquam.+Et+rem+explicabo+rem+quis+quia+rerum+expedita.%0AOdio+illo+in+consequuntur.+Voluptates+libero+a+beatae+corrupti+maiores+debitis+quia+similique.+Ducimus+omnis+neque+commodi+ex+eligendi+sed+expedita+et.+Ad+ullam+minus+deserunt+facilis.&link_type=any&name=1542387391_consequunt&public_description=Doloremque+harum+recusandae+ad+officiis+ipsum.&title=Deleniti+vero+magnam+dolorum+voluptatum.&type=public&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 2346-PCb3yi1RiXgMSFj7xPDw7m7R8IE" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "619" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=2SX0cCQZn7h2ocbXNr; loidcreated=2018-11-16T16%3A56%3A28.262Z" - ], - "User-Agent": [ - "MIT-Open: 0.53.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 16 Nov 2018 16:56:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "208" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/channels.views_test.test_api_exception.json b/cassettes/channels.views_test.test_api_exception.json deleted file mode 100644 index fb5bbf7836..0000000000 --- a/cassettes/channels.views_test.test_api_exception.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2017-11-06T17:32:38", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=george" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0NdcNqyooqfQrdPcJzknMqMwONg5Ks3Qx9XAJyE5W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLZFRXlllQWl+RaUeAZUZpb4W5YEJTm7uef4mwSC9KSklmUmp8ZnpoAMhnCUagFMBEGquAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 06 Nov 2017 17:32:38 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=VhoGLKgWOSbKoMIz9G; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:32:38 GMT", - "loidcreated=2017-11-06T17%3A32%3A38.978Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 06-Nov-2019 17:32:38 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=george" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/notifications.notifiers.comments_test.test_send_notification[False].json b/cassettes/notifications.notifiers.comments_test.test_send_notification[False].json deleted file mode 100644 index 37a03dd0fb..0000000000 --- a/cassettes/notifications.notifiers.comments_test.test_send_notification[False].json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:18:32", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJHDSYVFABBT2MGRTTXJST" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MtJNd4rMK8ypNEgMMMnLS3HytnDMq3COCEurSjJQ0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLbFB6eYhORHGbhnheU4pvhFhIe4R5i7uxW7W4aC9KSklmUmp8ZnpoAMhnCUagF52voVuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:32 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=thfUOJfTpeQ12tOgTe; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:18:32 GMT", - "loidcreated=2018-08-24T18%3A18%3A32.589Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:18:32 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJHDSYVFABBT2MGRTTXJST" - } - }, - { - "recorded_at": "2018-08-24T18:18:33", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Cum+sint+eaque+quasi+ducimus+mollitia.+Porro+facere+culpa+sunt+et+ipsum+asperiores.%0ATempore+dolore+quae+eius+praesentium.+Nobis+nobis+non+est+asperiores+mollitia+incidunt+quas.+Officia+doloremque+rerum+qui+fugiat+corporis+repudiandae.+Reiciendis+maiores+placeat+tempore+ex+a+non.+Nobis+sapiente+impedit+exercitationem.%0AVitae+blanditiis+aperiam+molestias+iure+expedita+incidunt.+Eos+sapiente+veniam+sed.+Ipsam+unde+harum+officia.&link_type=any&name=1535134712_ut&public_description=Non+laborum+cumque+illo+similique.+Dolor+ducimus+ullam+est+illo.+Animi+ipsam+illo+modi+vel.&title=Quod+odit+dolores+excepturi+harum+suscipit.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 322-gBYnqly0aP4nndBK8AnxCXVfzb0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "698" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:33 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "88" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJHM3CJEN8DE4XRQYWTRNT" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MtYtMfJ1qjDwMy9xNC/LscytiAzyyM7JT84vdPZV0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYlFng6mxsaJ+vqmjom51e4pDnlOWUXu4RGZDiC9KSklmUmp8ZnpoAMhnCUagFGkA+XuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJHM3CJEN8DE4XRQYWTRNT" - } - }, - { - "recorded_at": "2018-08-24T18:18:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJHM3CJEN8DE4XRQYWTRNT&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 322-gBYnqly0aP4nndBK8AnxCXVfzb0" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134712_ut/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "81" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134712_ut/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134712_ut" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "72" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "81" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134712_ut&text=Consectetur+eaque+vero+maxime+dolore+ab.+Perspiciatis+sunt+aspernatur+sequi+iure.&title=Harum+culpa+optio+unde+quia." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "193" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134712_ut/comments/4f/harum_culpa_optio_unde_quia/\", \"id\": \"4f\", \"name\": \"t3_4f\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "151" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "81" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:39", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134712_ut\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsectetur eaque vero maxime dolore ab. Perspiciatis sunt aspernatur sequi iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consectetur eaque vero maxime dolore ab. Perspiciatis sunt aspernatur sequi iure.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJHM3CJEN8DE4XRQYWTRNT\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134712_ut\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_32\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134712_ut/comments/4f/harum_culpa_optio_unde_quia/\", \"locked\": false, \"name\": \"t3_4f\", \"created\": 1535134719.0, \"url\": \"http://reddit.local/r/1535134712_ut/comments/4f/harum_culpa_optio_unde_quia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum culpa optio unde quia.\", \"created_utc\": 1535134719.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1698" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:39 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "81" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=DWk0jQfRaYUkxQX2R04%2BMfFUJMxHqLDy%2B2pD98U%2FdNjUO1sFNBaFft%2B9f4F3A7bO8b7VmR5hlgORhRtXb1Cp3DG9UNgSG5gi" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:42", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Amet+quod+velit+amet+beatae+suscipit.+Labore+maxime+at+omnis+tenetur.&thing_id=t3_4f" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_32\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4f\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJHM3CJEN8DE4XRQYWTRNT\", \"parent_id\": \"t3_4f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Amet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134712_ut\", \"score_hidden\": false, \"name\": \"t1_3j\", \"created\": 1535134722.0, \"author_flair_text\": null, \"created_utc\": 1535134722.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "937" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:42 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "78" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_3j&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_32\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4f\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJHM3CJEN8DE4XRQYWTRNT\", \"parent_id\": \"t3_4f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Amet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134712_ut\", \"score_hidden\": false, \"name\": \"t1_3j\", \"created\": 1535134722.0, \"author_flair_text\": null, \"created_utc\": 1535134722.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "982" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "75" - ], - "x-ratelimit-used": [ - "5" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=NvnPf45YeIOr96ef%2BhYpXcbzSj59BqeEH0Mclgti709s41sNKYgPlOm2js5UPnWzmfS52OzAdb4%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_3j&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4f/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134712_ut\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EConsectetur eaque vero maxime dolore ab. Perspiciatis sunt aspernatur sequi iure.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Consectetur eaque vero maxime dolore ab. Perspiciatis sunt aspernatur sequi iure.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4f\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJHM3CJEN8DE4XRQYWTRNT\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134712_ut\", \"hidden\": false, \"num_comments\": 1, \"thumbnail\": \"\", \"subreddit_id\": \"t5_32\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134712_ut/comments/4f/harum_culpa_optio_unde_quia/\", \"locked\": false, \"name\": \"t3_4f\", \"created\": 1535134719.0, \"url\": \"http://reddit.local/r/1535134712_ut/comments/4f/harum_culpa_optio_unde_quia/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Harum culpa optio unde quia.\", \"created_utc\": 1535134719.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_32\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4f\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3j\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJHM3CJEN8DE4XRQYWTRNT\", \"parent_id\": \"t3_4f\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Amet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EAmet quod velit amet beatae suscipit. Labore maxime at omnis tenetur.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134712_ut\", \"score_hidden\": false, \"name\": \"t1_3j\", \"created\": 1535134722.0, \"author_flair_text\": null, \"created_utc\": 1535134722.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2587" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "75" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=aKNl3GsHE2Gxiu4XRIZqbzU%2FicCiITSR6%2F9ddb06tcHqouPnXRbFEkLWXIx%2FIuyQ0qHkYvnH1ZvWq5Pum71GC6%2Bc7YKYhow6" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4f/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:45", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 323-t2MBx0N7tA7vl9mxYRHklocoqCM" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=thfUOJfTpeQ12tOgTe; loidcreated=2018-08-24T18%3A18%3A32.589Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134712_ut/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"32\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134712_ut\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ECum sint eaque quasi ducimus mollitia. Porro facere culpa sunt et ipsum asperiores.\\nTempore dolore quae eius praesentium. Nobis nobis non est asperiores mollitia incidunt quas. Officia doloremque rerum qui fugiat corporis repudiandae. Reiciendis maiores placeat tempore ex a non. Nobis sapiente impedit exercitationem.\\nVitae blanditiis aperiam molestias iure expedita incidunt. Eos sapiente veniam sed. Ipsam unde harum officia.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Quod odit dolores excepturi harum suscipit.\", \"collapse_deleted_comments\": false, \"public_description\": \"Non laborum cumque illo similique. Dolor ducimus ullam est illo. Animi ipsam illo modi vel.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENon laborum cumque illo similique. Dolor ducimus ullam est illo. Animi ipsam illo modi vel.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Cum sint eaque quasi ducimus mollitia. Porro facere culpa sunt et ipsum asperiores.\\nTempore dolore quae eius praesentium. Nobis nobis non est asperiores mollitia incidunt quas. Officia doloremque rerum qui fugiat corporis repudiandae. Reiciendis maiores placeat tempore ex a non. Nobis sapiente impedit exercitationem.\\nVitae blanditiis aperiam molestias iure expedita incidunt. Eos sapiente veniam sed. Ipsam unde harum officia.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 1, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_32\", \"created\": 1535134712.0, \"url\": \"/r/1535134712_ut/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134712.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2395" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:45 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "75" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=r0LxvXIv4Lw3x2RVWjx%2B9xOqxgdie10SIuppy12bbluVqjzaxwtdT5e68%2FFljAjnWMSDzsw4BpO4auSnFkUjw1TuI%2F%2FrStu2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134712_ut/about/?raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/notifications.notifiers.comments_test.test_send_notification[True].json b/cassettes/notifications.notifiers.comments_test.test_send_notification[True].json deleted file mode 100644 index 8506ac02c5..0000000000 --- a/cassettes/notifications.notifiers.comments_test.test_send_notification[True].json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-08-24T18:18:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.18.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJGTPKPHX5RTX7V6FFHS7F" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA1WNUQuCMACE/4rsMQrWBhm9BQ0LMooKqZdh88QRpWxL1Oi/5/Kpx/u47+5NUqVgrXTlHU+yCAhndLJ8OJagUGG01Uyca8RHk8sa11NMxgFBU2kDK7UX+IzSnv186doKfuSG1MD4rlXlgEY+GeS9WPy/rVk7Zw2n4SbqDtNLsn/tOlFUrFwJ72SotYLUmR8eAvl8AXRdlHa4AAAA", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=kJiMkzmIWDXcXioSgL; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:18:13 GMT", - "loidcreated=2018-08-24T18%3A18%3A13.027Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Sun, 23-Aug-2020 18:18:13 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJGTPKPHX5RTX7V6FFHS7F" - } - }, - { - "recorded_at": "2018-08-24T18:18:13", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Vel+consectetur+nemo+amet+nemo+nisi+nostrum.+Veritatis+officia+nulla+voluptate+voluptatem+adipisci+molestias.+Enim+molestiae+porro+dolorum+exercitationem.+Mollitia+placeat+recusandae+eaque+rerum+cupiditate+quo+deleniti+sed.+Reiciendis+inventore+nostrum+repellat+placeat+sit.%0AFuga+debitis+eius+fugiat+molestiae.+Perspiciatis+dolores+deleniti+corporis+minus+beatae+eveniet.%0ADolorem+vitae+ducimus+at+aliquid+ut+quisquam+ipsam+deleniti.+Esse+odio+totam+totam+ipsa.&link_type=any&name=1535134693_delectus&public_description=Eveniet+fugit+neque+dolorum+unde.+Maxime+quam+ullam+excepturi+sint+distinctio+deleniti.&title=Molestiae+omnis+saepe+dolor+consectetur.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 320-Amt2Wehc7GLi2EUveMSrf_veZTM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "729" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:13 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "107" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJH103W906X220J9GHBREV" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI2MtR1L6msigrQDc82CC1ONk31Kso0LDPONwxyd01W0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYluTr5hRUYVThmJeZGGVum+hgZFGflhCS7ZHqC9KSklmUmp8ZnpoAMhnCUagFD+zsTuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01CNPJH103W906X220J9GHBREV" - } - }, - { - "recorded_at": "2018-08-24T18:18:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01CNPJH103W906X220J9GHBREV&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 320-Amt2Wehc7GLi2EUveMSrf_veZTM" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1535134693_delectus/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134693_delectus/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1535134693_delectus" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:19 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1535134693_delectus&text=Repellendus+excepturi+voluptatum+qui.+Perferendis+molestias+debitis+voluptatem+corrupti.&title=Velit+rem+amet+maiores+quam+dolores." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1535134693_delectus/comments/4e/velit_rem_amet_maiores_quam_dolores/\", \"id\": \"4e\", \"name\": \"t3_4e\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "101" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134693_delectus\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERepellendus excepturi voluptatum qui. Perferendis molestias debitis voluptatem corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Repellendus excepturi voluptatum qui. Perferendis molestias debitis voluptatem corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134693_delectus\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_31\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134693_delectus/comments/4e/velit_rem_amet_maiores_quam_dolores/\", \"locked\": false, \"name\": \"t3_4e\", \"created\": 1535134699.0, \"url\": \"http://reddit.local/r/1535134693_delectus/comments/4e/velit_rem_amet_maiores_quam_dolores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Velit rem amet maiores quam dolores.\", \"created_utc\": 1535134699.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1760" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:20 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "100" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Prlhe1yEVbTwOpxIW99WvSbGEXdgkXw0eQKyVp%2FlCELWI6nC3WqowEQiaKfVC1cCJGy4rDERrRZuETE%2FBA300Cjsi3gg6MjV" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Eveniet+ipsa+architecto+non.+Omnis+voluptate+enim+perspiciatis+animi.&thing_id=t3_4e" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t3_4e\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Eveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3h\", \"created\": 1535134703.0, \"author_flair_text\": null, \"created_utc\": 1535134703.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "943" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:23 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "97" - ], - "x-ratelimit-used": [ - "4" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:26", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&text=Unde+totam+molestiae+iure.+Tempora+deleniti+veritatis+dolore+cupiditate.&thing_id=t1_3h" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/comment/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"things\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t1_3h\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Unde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUnde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3i\", \"created\": 1535134706.0, \"author_flair_text\": null, \"created_utc\": 1535134706.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}]}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "949" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:26 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "295.0" - ], - "x-ratelimit-reset": [ - "94" - ], - "x-ratelimit-used": [ - "5" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/comment/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_3i&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t1_3h\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Unde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUnde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3i\", \"created\": 1535134706.0, \"author_flair_text\": null, \"created_utc\": 1535134706.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "994" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "294.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "6" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=3v7mYuu%2FYdcJf5YWB04jvXSHyeoKs%2BNAgNcuWy5DRqLlRylp6hy5BsuVXb4oj7pXS6WYwqtK5as%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_3i&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/4e/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1535134693_delectus\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ERepellendus excepturi voluptatum qui. Perferendis molestias debitis voluptatem corrupti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Repellendus excepturi voluptatum qui. Perferendis molestias debitis voluptatem corrupti.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"4e\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1535134693_delectus\", \"hidden\": false, \"num_comments\": 2, \"thumbnail\": \"\", \"subreddit_id\": \"t5_31\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1535134693_delectus/comments/4e/velit_rem_amet_maiores_quam_dolores/\", \"locked\": false, \"name\": \"t3_4e\", \"created\": 1535134699.0, \"url\": \"http://reddit.local/r/1535134693_delectus/comments/4e/velit_rem_amet_maiores_quam_dolores/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Velit rem amet maiores quam dolores.\", \"created_utc\": 1535134699.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3i\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t1_3h\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Unde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EUnde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3i\", \"created\": 1535134706.0, \"author_flair_text\": null, \"created_utc\": 1535134706.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"3h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t3_4e\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Eveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3h\", \"created\": 1535134703.0, \"author_flair_text\": null, \"created_utc\": 1535134703.0, \"ups\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "3647" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "293.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "7" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=Y0F%2BzZEJYPl%2B94%2ForyabqhOi20mYDhDUbItTGTWpSFx1bZ3RVKH9yO1M2FtMS4X8fkKiqhYq%2BXJgwd1%2BSO1n2kAMCaQht9as" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/4e/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/r/1535134693_delectus/about/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"t5\", \"data\": {\"banner_img\": \"\", \"submit_text_html\": null, \"user_is_banned\": false, \"wiki_enabled\": false, \"show_media\": false, \"id\": \"31\", \"user_is_contributor\": true, \"submit_text\": \"\", \"display_name\": \"1535134693_delectus\", \"header_img\": null, \"description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EVel consectetur nemo amet nemo nisi nostrum. Veritatis officia nulla voluptate voluptatem adipisci molestias. Enim molestiae porro dolorum exercitationem. Mollitia placeat recusandae eaque rerum cupiditate quo deleniti sed. Reiciendis inventore nostrum repellat placeat sit.\\nFuga debitis eius fugiat molestiae. Perspiciatis dolores deleniti corporis minus beatae eveniet.\\nDolorem vitae ducimus at aliquid ut quisquam ipsam deleniti. Esse odio totam totam ipsa.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"title\": \"Molestiae omnis saepe dolor consectetur.\", \"collapse_deleted_comments\": false, \"public_description\": \"Eveniet fugit neque dolorum unde. Maxime quam ullam excepturi sint distinctio deleniti.\", \"over18\": false, \"public_description_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet fugit neque dolorum unde. Maxime quam ullam excepturi sint distinctio deleniti.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"community_rules\": [], \"icon_size\": null, \"suggested_comment_sort\": null, \"icon_img\": \"\", \"header_title\": null, \"description\": \"Vel consectetur nemo amet nemo nisi nostrum. Veritatis officia nulla voluptate voluptatem adipisci molestias. Enim molestiae porro dolorum exercitationem. Mollitia placeat recusandae eaque rerum cupiditate quo deleniti sed. Reiciendis inventore nostrum repellat placeat sit.\\nFuga debitis eius fugiat molestiae. Perspiciatis dolores deleniti corporis minus beatae eveniet.\\nDolorem vitae ducimus at aliquid ut quisquam ipsam deleniti. Esse odio totam totam ipsa.\", \"user_is_muted\": false, \"submit_link_label\": null, \"accounts_active\": 6, \"public_traffic\": false, \"header_size\": null, \"subscribers\": 2, \"submit_text_label\": null, \"lang\": \"en\", \"name\": \"t5_31\", \"created\": 1535134693.0, \"url\": \"/r/1535134693_delectus/\", \"quarantine\": false, \"hide_ads\": false, \"created_utc\": 1535134693.0, \"banner_size\": null, \"user_is_moderator\": false, \"user_sr_theme_enabled\": true, \"show_media_preview\": true, \"comment_score_hide_mins\": 0, \"subreddit_type\": \"private\", \"submission_type\": \"any\", \"user_is_subscriber\": true}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2460" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "292.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "8" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=b%2Fvh9VuZ61oVoga2TREhVM0aYVhsFLKUNtEa3IN9PR%2BTrgjvZ3htum0%2Bhwu2HFNAb78yr3OHb1B5dBiH8CtBl2QguRYEOqCx" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1535134693_delectus/about/?raw_json=1" - } - }, - { - "recorded_at": "2018-08-24T18:18:29", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 321-GtyzZP-Wk0Usc5eJri1v3o1RGEc" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=kJiMkzmIWDXcXioSgL; loidcreated=2018-08-24T18%3A18%3A13.027Z" - ], - "User-Agent": [ - "MIT-Open: 0.42.0 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/info/?id=t1_3h&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_31\", \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_4e\", \"likes\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"3h\", \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"01CNPJH103W906X220J9GHBREV\", \"parent_id\": \"t3_4e\", \"score\": 1, \"approved_by\": null, \"controversiality\": 0, \"body\": \"Eveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EEveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"subreddit\": \"1535134693_delectus\", \"score_hidden\": false, \"name\": \"t1_3h\", \"created\": 1535134703.0, \"author_flair_text\": null, \"created_utc\": 1535134703.0, \"distinguished\": null, \"mod_reports\": [], \"num_reports\": null, \"ups\": 1}}], \"after\": null, \"before\": null}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "988" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Fri, 24 Aug 2018 18:18:29 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "291.0" - ], - "x-ratelimit-reset": [ - "91" - ], - "x-ratelimit-used": [ - "9" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=4qvADWGrwBLudBI088ktooTuZJWPURXPpw0J8pLxUqzMr153%2FR4dQAJe7sSPAeCiFhVNxMWGrJY%3D" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/info/?id=t1_3h&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/cassettes/notifications.notifiers.moderator_posts_test.test_send_notification.json b/cassettes/notifications.notifiers.moderator_posts_test.test_send_notification.json deleted file mode 100644 index 6b2ca70485..0000000000 --- a/cassettes/notifications.notifiers.moderator_posts_test.test_send_notification.json +++ /dev/null @@ -1,688 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2020-11-16T14:04:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "User-Agent": [ - "python-requests/2.24.0" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EQ8NX4C1HWYMFQFKT949BPET" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0stB1Ca2y9PIIy3CJN0m1yPHy9aywqHQO8c32zQ5V0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLY5pZYlhnt6l/mG+1t6pFuml6X5eFv4+4Vnm+eD9KSklmUmp8ZnpoAMhnCUagGAsz8ruAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "set-cookie": [ - "loid=umL5IDlgsdzoC3WTX4; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 16-Nov-2022 14:04:00 GMT", - "loidcreated=2020-11-16T14%3A04%3A00.207Z; Domain=reddit.local; Max-Age=63071999; Path=/; expires=Wed, 16-Nov-2022 14:04:00 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EQ8NX4C1HWYMFQFKT949BPET" - } - }, - { - "recorded_at": "2020-11-16T14:04:00", - "request": { - "body": { - "encoding": "utf-8", - "string": "allow_top=True&api_type=json&description=Thus+risk+example+west+area+Mrs.+Guess+rest+message.+Develop+woman+security+still+chance+huge.%0ARemain+late+development+keep+far+thought.+Design+form+letter+somebody+discussion.+At+small+account+edge+magazine+own.%0AAll+day+foreign+once+foot+lot.+Be+chance+result.+Onto+visit+big+produce.%0ABefore+leave+continue+reason+discuss+city+day.+Cell+grow+environment+course+personal+act.+Detail+nice+teacher+set+hold.%0ARecent+try+word+open.+Test+per+staff+situation+whole+rate.&link_type=any&name=1605535440_0_result&public_description=The+assume+beautiful+state+research+brother.&title=Mission+college+nearly+work.&type=private&wikimode=disabled" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 128-DUz9JHVhD_4e8lJMIx8yCTMkMkU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "682" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/site_admin/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:00 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "360" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/site_admin/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-16T14:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/api/v1/generate_refresh_token?username=01EQ8NXAQS3AZF79GKMKQ29QJZ" - }, - "response": { - "body": { - "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI0stR1NcsOKo5IzQ+NzAsvyDQNd0n29Y/PdPZJzChW0lFQSq0oyCxKLY7PBGkwNjMwAIqB9ceXVBakggxJSk0sSi0CqS1OzocIaYF4RalpQI0ZqLYZmxSnFgZbVGW65Yd5BuQkGYSXuzqVJxa4ugaC9KSklmUmp8ZnpoAMhnCUagGG2QPbuAAAAA==", - "encoding": "UTF-8" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Type": [ - "text/html; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:06 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/v1/generate_refresh_token?username=01EQ8NXAQS3AZF79GKMKQ29QJZ" - } - }, - { - "recorded_at": "2020-11-16T14:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&name=01EQ8NXAQS3AZF79GKMKQ29QJZ&type=contributor" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 128-DUz9JHVhD_4e8lJMIx8yCTMkMkU" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "62" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/r/1605535440_0_result/api/friend/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": []}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "24" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/r/1605535440_0_result/api/friend/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-16T14:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "action=sub&api_type=json&skip_inital_defaults=True&sr_name=1605535440_0_result" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 129-E6kRsXeoUYnWpi5WDcMO_iCLahs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "78" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/subscribe/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "2" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "299.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "1" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/subscribe/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-16T14:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "api_type=json&kind=self&resubmit=True&sendreplies=True&sr=1605535440_0_result&text=Pull+leader+whom+include+also.+Source+event+success+else+training+laugh+ball+summer.&title=Minute+black+difficult+walk+different." - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 129-E6kRsXeoUYnWpi5WDcMO_iCLahs" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "212" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "POST", - "uri": "https://reddit.local/api/submit/?raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "{\"json\": {\"errors\": [], \"data\": {\"url\": \"https://reddit.local/r/1605535440_0_result/comments/2q/minute_black_difficult_walk_different/\", \"id\": \"2q\", \"name\": \"t3_2q\"}}}" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "167" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "298.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "2" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/api/submit/?raw_json=1" - } - }, - { - "recorded_at": "2020-11-16T14:04:07", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 129-E6kRsXeoUYnWpi5WDcMO_iCLahs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/2q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1605535440_0_result\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPull leader whom include also. Source event success else training laugh ball summer.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Pull leader whom include also. Source event success else training laugh ball summer.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"2q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EQ8NXAQS3AZF79GKMKQ29QJZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1605535440_0_result\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_14\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1605535440_0_result/comments/2q/minute_black_difficult_walk_different/\", \"locked\": false, \"name\": \"t3_2q\", \"created\": 1605535447.0, \"url\": \"http://reddit.local/r/1605535440_0_result/comments/2q/minute_black_difficult_walk_different/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Minute black difficult walk different.\", \"created_utc\": 1605535447.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1758" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:07 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "297.0" - ], - "x-ratelimit-reset": [ - "353" - ], - "x-ratelimit-used": [ - "3" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=lZWMOuZDad0ifa2lGMMeCGlE%2BYilSCQX%2FB88yRAnlKTanaMwgpJ1kUc%2Bufp59ky6kFLXpTLvQfwYqD1QcJY5fnHSAOkj0ayd" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/2q/?limit=2048&sort=best&raw_json=1" - } - }, - { - "recorded_at": "2020-11-16T14:04:10", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Authorization": [ - "bearer 129-E6kRsXeoUYnWpi5WDcMO_iCLahs" - ], - "Connection": [ - "keep-alive" - ], - "Cookie": [ - "loid=umL5IDlgsdzoC3WTX4; loidcreated=2020-11-16T14%3A04%3A00.207Z" - ], - "User-Agent": [ - "MIT-Open: 0.149.1 PRAW/4.5.1 prawcore/0.10.1" - ] - }, - "method": "GET", - "uri": "https://reddit.local/comments/2q/?limit=2048&sort=best&raw_json=1" - }, - "response": { - "body": { - "encoding": "UTF-8", - "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"1605535440_0_result\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EPull leader whom include also. Source event success else training laugh ball summer.\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Pull leader whom include also. Source event success else training laugh ball summer.\", \"likes\": true, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"saved\": false, \"id\": \"2q\", \"gilded\": 0, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"01EQ8NXAQS3AZF79GKMKQ29QJZ\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.1605535440_0_result\", \"hidden\": false, \"num_comments\": 0, \"thumbnail\": \"\", \"subreddit_id\": \"t5_14\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\": 0, \"archived\": false, \"removal_reason\": null, \"stickied\": false, \"is_self\": true, \"hide_score\": false, \"permalink\": \"/r/1605535440_0_result/comments/2q/minute_black_difficult_walk_different/\", \"locked\": false, \"name\": \"t3_2q\", \"created\": 1605535447.0, \"url\": \"http://reddit.local/r/1605535440_0_result/comments/2q/minute_black_difficult_walk_different/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"Minute black difficult walk different.\", \"created_utc\": 1605535447.0, \"link_flair_text\": null, \"ups\": 1, \"upvote_ratio\": 1.0, \"mod_reports\": [], \"visited\": false, \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"children\": [], \"after\": null, \"before\": null}}]" - }, - "headers": { - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "1758" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Mon, 16 Nov 2020 14:04:10 GMT" - ], - "Server": [ - "PasteWSGIServer/0.5 Python/2.7.6" - ], - "cache-control": [ - "private, s-maxage=0, max-age=0, must-revalidate" - ], - "expires": [ - "-1" - ], - "x-content-type-options": [ - "nosniff" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-ratelimit-remaining": [ - "296.0" - ], - "x-ratelimit-reset": [ - "350" - ], - "x-ratelimit-used": [ - "4" - ], - "x-reddit-tracking": [ - "https://reddit.local/pixel/of_destiny.png?v=RixtQtspTALHj7pQMCpG%2BmxOXZjcDKJRYkh%2Ffovpbe3yuQCqVgssijWTs6JC8yr5YJkXPw8zPlLrwRAEp0tqNhqMT%2BTQGfaB" - ], - "x-ua-compatible": [ - "IE=edge" - ], - "x-xss-protection": [ - "1; mode=block" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://reddit.local/comments/2q/?limit=2048&sort=best&raw_json=1" - } - } - ], - "recorded_with": "betamax/0.8.0" -} \ No newline at end of file diff --git a/channels/__init__.py b/channels/__init__.py deleted file mode 100644 index 3b55ddd07f..0000000000 --- a/channels/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# pylint: disable=missing-docstring,invalid-name -default_app_config = "channels.apps.ChannelsConfig" diff --git a/channels/admin.py b/channels/admin.py deleted file mode 100644 index 6d8a43b23e..0000000000 --- a/channels/admin.py +++ /dev/null @@ -1,149 +0,0 @@ -""" Admin for channels """ -from django.contrib import admin -from django.contrib.postgres import fields -from django_json_widget.widgets import JSONEditorWidget - -from channels.models import ( - Channel, - ChannelInvitation, - ChannelMembershipConfig, - SpamCheckResult, -) -from channels.constants import POST_TYPE -from open_discussions.utils import get_field_names - - -class ChannelAdmin(admin.ModelAdmin): - """Customized Channel admin model""" - - model = Channel - exclude = ("banner", "avatar", "widget_list", "allowed_post_types") - search_fields = ("name",) - readonly_fields = ("name",) - list_filter = ("ga_tracking_id",) - - def has_add_permission(self, request): - return False - - -admin.site.register(Channel, ChannelAdmin) - - -class ChannelInvitationAdmin(admin.ModelAdmin): - """Customized ChannelInvitation admin model""" - - model = ChannelInvitation - search_fields = ("email", "user__email", "inviter__email") - - def has_change_permission(self, request, obj=None): - return False - - -admin.site.register(ChannelInvitation, ChannelInvitationAdmin) - - -class ChannelMembershipConfigAdmin(admin.ModelAdmin): - """Admin for ChannelMembershipConfig""" - - model = ChannelMembershipConfig - - formfield_overrides = { - fields.JSONField: { - "widget": JSONEditorWidget( - options={ - "mode": "tree", - "schema": { - "type": "object", - "properties": { - "email__iendswith": {"type": "string"}, - "social_auth_provider": { - "type": "array", - "items": { - "type": "string", - "enum": ["saml", "micromasters"], - }, - "minItems": 1, - }, - "moira_lists": { - "type": "array", - "items": {"type": "string"}, - "minItems": 0, - }, - }, - "minProperties": 1, - "additionalProperties": False, - }, - "templates": [ - { - "text": "Email suffix", - "title": "Email suffix", - "field": "email__endswith", - "value": "@example.com", - }, - { - "text": "Social Auth", - "title": "Social Auth", - "field": "social_auth_provider", - "value": [""], - }, - { - "text": "Moira Lists", - "title": "Moira Lists", - "field": "moira_lists", - "value": [""], - }, - ], - } - ) - } - } - - -admin.site.register(ChannelMembershipConfig, ChannelMembershipConfigAdmin) - - -class SpamCheckResultAdmin(admin.ModelAdmin): - """Customized SpamCheckResult admin model""" - - model = SpamCheckResult - search_fields = ("object_id", "user_ip") - list_filter = ("content_type", "is_spam") - list_display = ( - "content_type", - "object_id", - "user_ip", - "is_spam", - "title", - "truncated_text", - "author", - ) - readonly_fields = get_field_names(SpamCheckResult) + ["title", "text", "author"] - - def has_add_permission(self, request): - return False - - def title(self, spam_check): - """Title of spam checked post""" - if spam_check.content_type.name == POST_TYPE: - return spam_check.content_object.title - else: - return None - - def text(self, spam_check): - """Text of spam checked post or comment""" - - return spam_check.content_object.text - - def truncated_text(self, spam_check): - """Truncated text of spam checked post or comment""" - if spam_check.content_object.text: - return spam_check.content_object.text[0:350] - else: - return "" - - def author(self, spam_check): - """Email text of spam checked post or comment author""" - return spam_check.content_object.author.email - - -admin.site.register(SpamCheckResult, SpamCheckResultAdmin) diff --git a/channels/api.py b/channels/api.py deleted file mode 100644 index 139ec02bb2..0000000000 --- a/channels/api.py +++ /dev/null @@ -1,1793 +0,0 @@ -"""Channels APIs""" -# pylint: disable=too-many-public-methods, too-many-lines -import logging -import operator -from datetime import datetime, timedelta, timezone -from functools import reduce, partialmethod -from urllib.parse import urljoin - -import pytz -import requests -from django.conf import settings -from django.contrib.auth import get_user_model -from django.contrib.auth.models import AnonymousUser, Group -from django.db import transaction -from django.db.models.functions import Coalesce -from django.http.response import Http404 -from guardian.shortcuts import assign_perm -import praw -from praw.exceptions import APIException -from praw.models import Comment as RedditComment -from praw.models.comment_forest import CommentForest -from praw.models.reddit import more -from praw.models.reddit.redditor import Redditor -from praw.models.reddit.submission import Submission -import prawcore -from prawcore.exceptions import ( - Forbidden as PrawForbidden, - NotFound as PrawNotFound, - ResponseException, -) -from rest_framework.exceptions import PermissionDenied, NotFound - -from channels import task_helpers as channel_task_helpers -from channels.constants import ( - DELETED_COMMENT_OR_POST_TEXT, - CHANNEL_TYPE_PUBLIC, - POSTS_SORT_HOT, - POSTS_SORT_NEW, - POSTS_SORT_TOP, - VALID_CHANNEL_TYPES, - VALID_POST_SORT_TYPES, - VALID_COMMENT_SORT_TYPES, - POST_TYPE, - COMMENT_TYPE, - VoteActions, - ROLE_CONTRIBUTORS, - ROLE_MODERATORS, - ROLE_CHOICES, - LINK_TYPE_ANY, - LINK_TYPE_LINK, - LINK_TYPE_SELF, - EXTENDED_POST_TYPE_ARTICLE, - WIDGET_LIST_CHANGE_PERM, -) -from channels.exceptions import ConflictException -from channels.models import ( - Article, - Channel, - Comment, - Post, - RedditAccessToken, - RedditRefreshToken, - Subscription, - ChannelSubscription, - ChannelGroupRole, -) -from channels.proxies import ( - PostProxy, - ChannelProxy, - proxy_post, - proxy_channel, - proxy_channels, -) -from channels.utils import ( - get_kind_mapping, - get_or_create_link_meta, - get_kind_and_id, - num_items_not_none, -) - -from notifications.models import ( - NotificationSettings, - NOTIFICATION_TYPE_MODERATOR, - FREQUENCY_IMMEDIATE, -) -from open_discussions.utils import now_in_utc -from search import search_index_helpers -from search.search_index_helpers import reddit_object_persist -from widgets.models import WidgetList - -USER_AGENT = "MIT-Open: {version}" -ACCESS_TOKEN_HEADER_NAME = "X-Access-Token" - -CHANNEL_SETTINGS = ( - "header_title", - "link_type", - "description", - "public_description", - "submit_link_label", - "submit_text", - "submit_text_label", - "allow_top", -) - -# this comes from https://github.com/mitodl/reddit/blob/master/r2/r2/models/token.py#L270 -FULL_ACCESS_SCOPE = "*" -EXPIRES_IN_OFFSET = 30 # offsets the reddit refresh_token expirations by 30 seconds - -User = get_user_model() - -# monkey patch praw's rate limiter to not limit us -prawcore.rate_limit.RateLimiter.delay = lambda *args: None - -log = logging.getLogger() - - -def _get_refresh_token(username): - """ - Get or create a user on reddit using our refresh_token plugin - - Args: - username (str): The reddit username - - Returns: - dict: parsed json response for refresh token - """ - # This is using our custom refresh_token plugin which is installed against - # a modified instance of reddit. It registers a new user with a random password if - # one does not exist, then obtains an OAuth refresh token for that user. This is then used - # with praw to authenticate. - refresh_token_url = urljoin( - settings.MITOPEN_REDDIT_URL, "/api/v1/generate_refresh_token" - ) - - session = _get_session() - return session.get(refresh_token_url, params={"username": username}).json() - - -def get_or_create_auth_tokens(user): - """ - Gets the stored refresh token or generates a new one - - Args: - user (User): the authenticated user - - Returns: - (channels.models.RedditRefreshToken, channels.models.RedditAccessToken): the stored tokens - """ - threshold_date = now_in_utc() + timedelta(minutes=2) - refresh_token, _ = RedditRefreshToken.objects.get_or_create(user=user) - access_token = None - - # if we created this token just now, atomically generate one - if not refresh_token.token_value: - with transaction.atomic(): - refresh_token = RedditRefreshToken.objects.filter( - user=user - ).select_for_update()[0] - if not refresh_token.token_value: - response = _get_refresh_token(user.username) - refresh_token.token_value = response["refresh_token"] - refresh_token.save() - - # the response also returns a valid access_token, so we might as well store that for use - # offset it negatively a bit to account for response time - expires_at = now_in_utc() + timedelta( - seconds=response["expires_in"] - EXPIRES_IN_OFFSET - ) - access_token = RedditAccessToken.objects.create( - user=user, - token_value=response["access_token"], - token_expires_at=expires_at, - ) - - # return the refresh token and access_token - return ( - refresh_token, - ( - access_token - or RedditAccessToken.valid_tokens_for_user(user, threshold_date).first() - ), - ) - - -def _configure_access_token(client, access_token, user): - """ - Configure or fetch a new access_token for the client - - Args: - client (praw.Reddit): the client needing access_token configuration - access_token (channels.models.RedditAccessToken): an access token to try - user (User): the authenticated user - - Returns: - client (praw.Reddit): the configured client - """ - # pylint: disable=protected-access - - # if we have a valid access token, use it - # otherwise force a fetch for a new one and persist it - authorizer = client._core._authorizer - - if access_token: - # "hydrate" the authorizer from our stored access token - authorizer.access_token = access_token.token_value - authorizer._expiration_timestamp = access_token.token_expires_at.timestamp() - authorizer.scopes = set([FULL_ACCESS_SCOPE]) - else: - authorizer = client._core._authorizer - authorizer.refresh() - expires_at = datetime.fromtimestamp(authorizer._expiration_timestamp) - RedditAccessToken.objects.create( - user=user, - token_value=authorizer.access_token, - token_expires_at=expires_at.replace(tzinfo=pytz.utc), - ) - - return client - - -def _get_client_base_kwargs(): - """ - Returns common kwargs passed to praw.Redditor - - Returns: - dict: set of client kwargs - """ - return { - "reddit_url": settings.MITOPEN_REDDIT_URL, - "oauth_url": settings.MITOPEN_REDDIT_URL, - "short_url": settings.MITOPEN_REDDIT_URL, - "user_agent": _get_user_agent(), - "requestor_kwargs": _get_requester_kwargs(), - "check_for_updates": False, - "client_id": settings.MITOPEN_REDDIT_CLIENT_ID, - "client_secret": settings.MITOPEN_REDDIT_SECRET, - } - - -def _get_session(): - """ - Get a session to be used for communicating with reddit - - Returns: - requests.Session: A session - """ - session = requests.Session() - session.verify = settings.MITOPEN_REDDIT_VALIDATE_SSL - session.headers.update( - {ACCESS_TOKEN_HEADER_NAME: settings.MITOPEN_REDDIT_ACCESS_TOKEN} - ) - return session - - -def _get_requester_kwargs(): - """ - Gets the arguments for the praw requester - - Returns: - dict: dictionary of requester arguments - """ - return {"session": _get_session()} - - -def _get_client(user): - """ - Get a configured Reddit client_id - - Args: - user (User): the authenticated user, or None for anonymous user - - Returns: - praw.Reddit: configured reddit client - """ - if user.is_anonymous: - return praw.Reddit(**_get_client_base_kwargs()) - - refresh_token, access_token = get_or_create_auth_tokens(user) - - return _configure_access_token( - praw.Reddit( - refresh_token=refresh_token.token_value, **_get_client_base_kwargs() - ), - access_token, - user, - ) - - -def _get_user_agent(): - """Gets the user agent""" - return USER_AGENT.format(version=settings.VERSION) - - -def evict_expired_access_tokens(): - """Evicts expired access tokens""" - # give a 5-minute buffer - now = now_in_utc() - timedelta(minutes=5) - RedditAccessToken.objects.filter(token_expires_at__lt=now).delete() - - -def replace_load_comment(original_load_comment): - """ - Return patched version of MoreComments._load_comment which handles the case where the parent id is missing - - Args: - original_load_comment (callable): The original MoreComments._load_comment method - - Returns: - callable: A function wrapping original_load_comment - """ - - def replacement_load_comment(*args, **kwargs): - """Patch function to handle AssertionError""" - try: - return original_load_comment(*args, **kwargs) - except AssertionError: - # If the parent doesn't exist the code will receive no children which will error as - # an AssertionError - raise Http404 - - return replacement_load_comment - - -def sync_channel_subscription_model(channel_name, user): - """ - Create or update channel subscription for a user - - Args: - channel_name (str): The name of the channel - user (django.contrib.models.auth.User): The user - - Returns: - ChannelSubscription: the channel user role object - """ - with transaction.atomic(): - channel = Channel.objects.get(name=channel_name) - return ChannelSubscription.objects.update_or_create(channel=channel, user=user)[ - 0 - ] - - -@transaction.atomic -def get_role_model(channel, role): - """ - Get or create a ChannelGroupRole object - - Args: - channel(channels.models.Channel): The channel - role(str): The role name (moderators, contributors) - - Returns: - ChannelGroupRole: the ChannelGroupRole object - """ - return ChannelGroupRole.objects.get(channel=channel, role=role) - - -def add_user_role(channel, role, user): - """ - Add a user to a channel role's group - - Args: - channel(channels.models.Channel): The channel - role(str): The role name (moderators, contributors) - user(django.contrib.auth.models.User): The user - """ - get_role_model(channel, role).group.user_set.add(user) - - -def remove_user_role(channel, role, user): - """ - Remove a user from a channel role's group - - Args: - channel(channels.models.Channel): The channel - role(str): The role name (moderators, contributors) - user(django.contrib.auth.models.User): The user - """ - get_role_model(channel, role).group.user_set.remove(user) - - -def get_post_type(*, text, url, article_content): - """ - Returns the post type given the passed input values - - Args: - text (str or None): the post text - url (str): the post url - article_content (dict): the post article text data - Returns: - str: the type of post - Raises: - ValueError: If incompatible pieces of content are being submitted (e.g.: a URL is - being submitted for a text post) - """ - if not any([text, url, article_content]): - # title-only text post - return LINK_TYPE_SELF - - if num_items_not_none([text, url, article_content]) != 1: - raise ValueError( - "Not more than one of text, url, or article_content can be provided" - ) - - if url is not None: - return LINK_TYPE_LINK - elif article_content is not None: - return EXTENDED_POST_TYPE_ARTICLE - return LINK_TYPE_SELF - - -def get_admin_api(): - """ - Creates an instance of the API configured with the admin user - - Returns: - channels.api.Api: Api instance configured for the admin user - """ - admin_user = User.objects.get(username=settings.INDEXING_API_USERNAME) - return Api(admin_user) - - -def get_allowed_post_types_from_link_type(link_type): - """ - Determine allowed_post_types based on a value for reddit's link_type setting - - Args: - link_type (str): the link type or None - - Returns: - list of str: list of allowed post types - """ - if link_type in [LINK_TYPE_LINK, LINK_TYPE_SELF]: - return [link_type] - else: - # ANY or enforce a standard default - return [LINK_TYPE_LINK, LINK_TYPE_SELF] - - -def allowed_post_types_bitmask(allowed_post_types): - """ - Returns a computer bitmask for the post types - - Args: - allowed_post_types (list of str): list of allowed post types - - Returns: - int: bit mask for the allowed post types - """ - return reduce( - operator.or_, - [ - bit - for post_type, bit in Channel.allowed_post_types.items() - if post_type in allowed_post_types - ], - 0, - ) - - -def create_channel( - name, title, membership_is_managed, allowed_post_types, channel_type -): - """ - Create a channel and related models - - Args: - name(str): the channel name - title(str): the channel title - membership_is_managed (boolean): True if the channel is managed by another app - allowed_post_types (list of str): list of allowed post types - channel_type (str): the channel type - - Returns: - channels.models.Channel: the created channel - """ - widget_list = WidgetList.objects.create() - - channel, created = Channel.objects.get_or_create( - name=name, - defaults={ - "title": title, - "widget_list": widget_list, - "membership_is_managed": membership_is_managed, - "allowed_post_types": allowed_post_types_bitmask(allowed_post_types), - "channel_type": channel_type, - }, - ) - - if not created: - # previously this was handled by a praw exception being converted in channels.utils.translate_praw_exceptions - # but now we raise if we try to create, but didn't - raise ConflictException() - - roles = create_channel_groups_and_roles(channel) - - moderator_group = roles[ROLE_MODERATORS].group - assign_perm(WIDGET_LIST_CHANGE_PERM, moderator_group, widget_list) - - return channel - - -def create_channel_groups_and_roles(channel): - """ - Create a channel's groups and roles - - Args: - channel(channels.models.Channel): the channel to create groups for - """ - roles = {} - for role in ROLE_CHOICES: - group = Group.objects.create(name=f"{channel.name}_{role}") - roles[role] = ChannelGroupRole.objects.create( - channel=channel, group=group, role=role - ) - - return roles - - -def comment_values_from_reddit(comment): - """ - Returns the values to populate the comment from a comment - - Args: - comment (praw.models.Comment): the reddit comment to source data from - - Returns: - dict: property values for a channels.models.Comment record - """ - _, parent_id = get_kind_and_id(comment.parent_id) - return dict( - parent_id=parent_id, - text=comment.body, - score=comment.score, - edited=comment.edited if comment.edited is False else True, - removed=comment.banned_by is not None, - deleted=comment.body == DELETED_COMMENT_OR_POST_TEXT, - created_on=datetime.fromtimestamp(comment.created, tz=timezone.utc).isoformat(), - ) - - -def create_comment(*, post, comment, author): - """ - Creates a comment based on values from reddit - - Args: - post (channels.models.Post): the post the comment is on - comment (praw.models.Comment): the reddit comment - author (User): the user who wrote the comment or None if the user doesn't exist anymore - - Returns: - channels.models.Comment: a new comment - """ - - comment_values = comment_values_from_reddit(comment) - - # special case, the field is auto_now_add, so we need to set this by doing an update after create - created_on = comment_values.get("created_on") - - comment, created = Comment.objects.update_or_create( - comment_id=comment.id, - defaults={**comment_values, "post": post, "author": author}, - ) - - if created: - # intentionally not an update(), because otherwise we'd have to re-select - comment.created_on = created_on - comment.save() - - return comment - - -class Api: - """Channel API""" - - # help Mock() spec this object correctly - reddit = None - user = None - - def __init__(self, user): - """Constructor""" - if user is None: - user = AnonymousUser() - - self.user = user - try: - self.reddit = _get_client(user=user) - except ResponseException as ex: - if not user.is_anonymous and ex.response.status_code == 401: - RedditAccessToken.objects.filter(user=user).delete() - RedditRefreshToken.objects.filter(user=user).delete() - - self.reddit = _get_client(user=user) - else: - raise - - def list_channels(self): - """ - List the channels - - Returns: - ListingGenerator(praw.models.Subreddit): a generator over channel listings - """ - if self.user.is_anonymous: - subreddits = self.reddit.subreddits.default() - else: - subreddits = self.reddit.user.subreddits(limit=None) - - # call list() to force one-time evaluation of the generator - return proxy_channels(list(subreddits)) - - def get_subreddit(self, name): - """ - Get the subreddit - - Args: - name (str): The subreddit name - - Returns: - praw.models.Subreddit: the specified subreddit - """ - return self.reddit.subreddit(name) - - def get_channel(self, name): - """ - Get the channel - - Args: - name (str): The channel name - - Returns: - channels.proxies.ChannelProxy: the specified channel - """ - return proxy_channel(self.get_subreddit(name)) - - def create_channel( - self, - name, - title, - channel_type=CHANNEL_TYPE_PUBLIC, - membership_is_managed=False, - allowed_post_types=None, - link_type=LINK_TYPE_ANY, - **other_settings, - ): # pylint: disable=too-many-arguments - """ - Create a channel - - Args: - name (str): name of the channel - title (str): title of the channel - channel_type (str): type of the channel - membership_is_managed (bool): Whether the channel membership is managed externally - allowed_post_types (list of str): list of allowed post types - link_type (str): the link type for this channel - **other_settings (dict): dict of additional settings - - Returns: - channels.proxies.ChannelProxy: the created channel - """ - if channel_type not in VALID_CHANNEL_TYPES: - raise ValueError("Invalid argument channel_type={}".format(channel_type)) - - for key, value in other_settings.items(): - if key not in CHANNEL_SETTINGS: - raise ValueError("Invalid argument {}={}".format(key, value)) - - if not isinstance(membership_is_managed, bool): - raise ValueError("Invalid argument membership_is_managed") - - if not allowed_post_types: - # forward-port link type to allowed_post_types - allowed_post_types = get_allowed_post_types_from_link_type(link_type) - - # wrap channel creation as an atomic operation across the db and reddit - with transaction.atomic(): - channel = create_channel( - name, title, membership_is_managed, allowed_post_types, channel_type - ) - - # create in reddit after we persist the db records so an error here rolls back everything - subreddit = self.reddit.subreddit.create( - name, - title=title, - subreddit_type=channel_type, - allow_top=True, - link_type=link_type, - **other_settings, - ) - - return ChannelProxy(subreddit, channel) - - @reddit_object_persist(search_index_helpers.update_channel_index) - def update_channel(self, name, title=None, channel_type=None, **other_settings): - """ - Updates a channel - - Args: - name (str): name of the channel - title (str): title of the channel - channel_type (str): type of the channel - **other_settings (dict): dict of additional settings - - Returns: - praw.models.Subreddit: the updated subreddit - """ - membership_is_managed = other_settings.pop("membership_is_managed", False) - allowed_post_types = other_settings.pop("allowed_post_types", None) - - if channel_type is not None and channel_type not in VALID_CHANNEL_TYPES: - raise ValueError("Invalid argument channel_type={}".format(channel_type)) - - for key, value in other_settings.items(): - if key not in CHANNEL_SETTINGS: - raise ValueError("Invalid argument {}={}".format(key, value)) - - channel_kwargs = {} - if membership_is_managed is not None: - if not isinstance(membership_is_managed, bool): - raise ValueError("Invalid argument membership_is_managed") - channel_kwargs["membership_is_managed"] = membership_is_managed - - if channel_type is not None: - channel_kwargs["channel_type"] = channel_type - - if title is not None: - channel_kwargs["title"] = title - - if allowed_post_types is not None: - channel_kwargs["allowed_post_types"] = allowed_post_types_bitmask( - allowed_post_types - ) - - # set reddit to allow all link types, going forward we will validate the post link_type against allowed_post_types if it is set - other_settings["link_type"] = LINK_TYPE_ANY - elif "link_type" in other_settings: - channel_kwargs["allowed_post_types"] = allowed_post_types_bitmask( - get_allowed_post_types_from_link_type(other_settings["link_type"]) - ) - - if channel_kwargs: - Channel.objects.filter(name=name).update(**channel_kwargs) - - values = other_settings.copy() - if title is not None: - values["title"] = title - if channel_type is not None: - values["subreddit_type"] = channel_type - - self.get_channel(name).mod.update(**values) - return self.get_channel(name) - - @staticmethod - def _apply_comment_vote(comment, upvote, downvote, is_upvoted, is_downvoted): - """ - Applies an upvote to the related Comment record - - Args: - comment (Comment): the reddit comment - upvote (boolean): nullable flag for applying an upvote - downvote (boolean): nullable flag for applying a downvote - is_upvoted (boolean): True if the user currently has upvoted the post - is_downvoted (boolean): True if the user currently has downvoted the post - """ - vote_delta = sum( - [ - # start handle upvote - # adds the upvote - 1 if upvote and not is_upvoted else 0, - # removes an opposing downvote, if present - 1 if upvote and is_downvoted else 0, - # clear an existing upvote only, but only count this once if downvoting also - -1 if upvote is False and is_upvoted and not downvote else 0, - # end handle upvote - # -------- - # start handle downvote - # adds the downvote - -1 if downvote and not is_downvoted else 0, - # removes an opposing upvote, if present - -1 if downvote and is_upvoted else 0, - # clear an existing downvote, but only count this once if upvoting also - 1 if downvote is False and is_downvoted and not upvote else 0, - # end handle downvote - ] - ) - - if vote_delta: - # apply an update to the nullable comment score - # by substituting the current score from reddit if there's a null - Comment.objects.filter(comment_id=comment.id).update( - score=Coalesce("score", comment.score) + vote_delta - ) - - @staticmethod - def _apply_post_vote(submission, upvote, is_upvoted): - """ - Applies an upvote to the related Post record - - Args: - submission (Submission): the reddit submission - upvote (boolean): nullable flag for applying an upvote - is_upvoted (boolean): True if the user currently has upvoted the post - """ - vote_delta = sum( - [ - # adds the upvote - 1 if upvote and not is_upvoted else 0, - # clear an existing upvote - -1 if upvote is False and is_upvoted else 0, - ] - ) - - if vote_delta: - # apply an update to the nullable post score - # by substituting the current ups value from reddit if there's a null - Post.objects.filter(post_id=submission.id).update( - score=Coalesce("score", submission.ups) + vote_delta - ) - - @classmethod - def _apply_vote( - cls, instance, validated_data, allow_downvote=False, instance_type=None - ): # pylint: disable=too-many-branches - """ - Apply a vote provided by the user to a comment or post, if it's different than before. - - Args: - instance (Comment or Post): A comment or post - validated_data (dict): validated data which contains the new vote from the user - allow_downvote (bool): If false, ignore downvotes - instance_type (str): A string indicating the reddit object type (comment, post/submission) - Returns: - bool: - True if a change was made, False otherwise - """ - upvote = validated_data.get("upvoted") - if allow_downvote: - downvote = validated_data.get("downvoted") - else: - downvote = None - - is_upvoted = instance.likes is True - is_downvoted = instance.likes is False - - # Determine vote action to take based on the request and any already-applied votes - if upvote and not is_upvoted: - vote_action = VoteActions.UPVOTE - elif downvote and not is_downvoted: - vote_action = VoteActions.DOWNVOTE - elif upvote is False and is_upvoted: - vote_action = VoteActions.CLEAR_UPVOTE - elif downvote is False and is_downvoted: - vote_action = VoteActions.CLEAR_DOWNVOTE - else: - return False - - with transaction.atomic(): - # make upvotes atomic - if isinstance(instance, Submission): - cls._apply_post_vote(instance, upvote, is_upvoted) - elif isinstance(instance, RedditComment): - cls._apply_comment_vote( - instance, upvote, downvote, is_upvoted, is_downvoted - ) - - if vote_action == VoteActions.UPVOTE: - instance.upvote() - elif vote_action == VoteActions.DOWNVOTE: - instance.downvote() - elif vote_action in (VoteActions.CLEAR_UPVOTE, VoteActions.CLEAR_DOWNVOTE): - instance.clear_vote() - - try: - search_index_helpers.update_indexed_score( - instance, instance_type, vote_action - ) - except Exception: # pylint: disable=broad-except - log.exception( - "Error occurred while trying to index [%s] object score", instance_type - ) - return True - - apply_post_vote = partialmethod( - _apply_vote, allow_downvote=False, instance_type=POST_TYPE - ) - apply_comment_vote = partialmethod( - _apply_vote, allow_downvote=True, instance_type=COMMENT_TYPE - ) - - @reddit_object_persist( - search_index_helpers.index_new_post, - channel_task_helpers.maybe_repair_post_in_host_listing, - ) # pylint: disable=too-many-arguments, too-many-locals - def create_post( - self, - channel_name, - title, - *, - text=None, - url=None, - article_content=None, - cover_image=None, - ): - """ - Create a new post in a channel - - Args: - channel_name(str): the channel name identifier - title(str): the title of the post - text(str): the text of the post - url(str): the url of the post - article_content (dict): the article content of the post as a JSON dict - cover_image(bytes): article cover image - Raises: - ValueError: if both text and url are provided - - Returns: - channels.proxies.PostProxy: the proxied submission and post - """ - post_type = get_post_type(text=text, url=url, article_content=article_content) - channel = self.get_channel(channel_name) - - # If the channel has allowed_post_types configured, use that, otherwise delegate to reddit via the submit() call - if channel.allowed_post_types: - if not channel.allowed_post_types & getattr( - Channel.allowed_post_types, post_type - ): - raise ValueError( - f"Post type {post_type} is not permitted in this channel" - ) - - # Reddit requires at least an empty string for text posts (article posts shadow an empty text post) - if post_type != LINK_TYPE_LINK and not text: - text = "" - submission = channel.submit(title, selftext=text, url=url) - - # Don't use empty str for article posts in the database - if post_type == EXTENDED_POST_TYPE_ARTICLE: - text = None - - users_first_post = ( - Post.objects.filter(author=self.user, removed=False, deleted=False) - .order_by("created_on") - .first() - ) - - exclude_from_frontpage_emails = bool( - users_first_post is None - or (datetime.now(pytz.UTC) - users_first_post.created_on).days < 1 - ) - - with transaction.atomic(): - # select_for_update so no one else can write to this - post, created = Post.objects.select_for_update().get_or_create( - post_id=submission.id, - defaults={ - "channel": channel._self_channel, # pylint: disable=protected-access - "title": title, - "text": text, - "url": url, - "post_type": post_type, - "author": self.user, - "score": submission.ups, - "num_comments": 0, - "edited": False, - "removed": False, - "deleted": False, - "created_on": datetime.fromtimestamp( - submission.created, tz=timezone.utc - ), - "exclude_from_frontpage_emails": exclude_from_frontpage_emails, - }, - ) - - if created and article_content: - article, _ = Article.objects.get_or_create( - post=post, - defaults={"author": self.user, "content": article_content}, - ) - - if cover_image and hasattr(cover_image, "name"): - article.cover_image.save( - f"article_image_{post.id}.jpg", cover_image, save=False - ) - article.save(update_fields=["cover_image"]) - - if created and url and post.link_meta is None and settings.EMBEDLY_KEY: - post.link_meta = get_or_create_link_meta(url) - post.save() - - return PostProxy(submission, post) - - def front_page(self, listing_params): - """ - List posts on front page - - Args: - listing_params (channels.utils.ListingParams): the pagination/sorting params requested for the listing - - Returns: - praw.models.listing.generator.ListingGenerator: - A generator of posts for a subreddit - """ - return self._get_listing(self.reddit.front, listing_params) - - def list_posts(self, channel_name, listing_params): - """ - List posts for a channel - - Args: - channel_name(str): the channel name identifier - listing_params (channels.utils.ListingParams): the pagination/sorting params requested for the listing - - Returns: - praw.models.listing.generator.ListingGenerator: - A generator of posts for a subreddit - """ - channel = self.get_channel(channel_name) - return self._get_listing(channel, listing_params) - - def list_user_posts(self, username, listing_params): - """List posts submitted by a given user""" - redditor = Redditor(self.reddit, name=username) - return self._get_listing(redditor.submissions, listing_params) - - def list_user_comments(self, username, listing_params): - """List comments submitted by a given user""" - redditor = Redditor(self.reddit, name=username) - return self._get_listing(redditor.comments, listing_params) - - def _get_listing(self, listing, listing_params): - """ - List posts using the 'hot' algorithm - - Args: - listing(praw.models.listing.BaseListingMixin): the listing to return a generator for - listing_params (channels.utils.ListingParams): the pagination/sorting params requested for the listing - - Returns: - praw.models.listing.generator.ListingGenerator: - A generator of posts for a subreddit - """ - before, after, count, sort = listing_params - if sort not in VALID_POST_SORT_TYPES: - raise ValueError("Sort method '{}' is not supported".format(sort)) - - params = {} - if before is not None: - params["before"] = before - if after is not None: - params["after"] = after - if count is not None: - params["count"] = count - - kwargs = { - "limit": settings.MITOPEN_CHANNEL_POST_LIMIT, - "params": params, - } - - if sort == POSTS_SORT_HOT: - return listing.hot(**kwargs) - elif sort == POSTS_SORT_NEW: - return listing.new(**kwargs) - elif sort == POSTS_SORT_TOP: - return listing.top(**kwargs) - else: - raise Exception( # pylint:disable=broad-exception-raised - "Sort method '{}' is in VALID_POST_SORT_TYPES but not actually supported".format( - sort - ) - ) - - def get_submission(self, submission_id): - """ - Gets the submission - - Args: - submission_id(str): the base36 id for the submission - - Returns: - praw.models.Submission: the submission - """ - return self.reddit.submission(id=submission_id) - - def get_post(self, post_id): - """ - Gets the post - - Args: - post_id(str): the base36 id for the post - - Returns: - channels.proxies.PostProxy: the submitted post - """ - return proxy_post(self.get_submission(post_id)) - - @reddit_object_persist(search_index_helpers.update_post_text) - def update_post( - self, post_id, *, text=None, article_content=None, cover_image=None - ): - """ - Updates the post - - Args: - post_id(str): the base36 id for the post - text (str): The text for the post - article_content (dict): The article content as a JSON dict - cover_image (bytes): The article cover image - - Raises: - ValueError: if the url post was provided - - Returns: - praw.models.Submission: the submitted post - """ - if text and article_content: - raise ValueError("Only one of text and article_content can be specified") - - if not text and not article_content and not cover_image: - raise ValueError( - "One of text, article_content, or cover_image must be specified" - ) - - post = self.get_post(post_id) - - if post.post_type: - # new validation - if text and post.post_type != LINK_TYPE_SELF: - raise ValueError( - f"Posts of type '{post.post_type}' cannot have text updated" - ) - elif article_content and post.post_type != EXTENDED_POST_TYPE_ARTICLE: - raise ValueError( - f"Posts of type '{post.post_type}' cannot have article updated" - ) - elif not post.is_self: - # legacy validation - raise ValueError("Posts with a url cannot be updated") - - with transaction.atomic(): - if text: - Post.objects.filter(post_id=post_id).update(text=text, edited=True) - return proxy_post(post.edit(text)) - - edited = False - - if article_content: - post.article.content = article_content - edited = True - if cover_image: - if hasattr(cover_image, "name"): - post.article.cover_image.save( - f"article_image_{post.id}.jpg", cover_image, save=False - ) - edited = True - elif post.article.cover_image: - post.article.cover_image = None - edited = True - post.article.save() - - if edited: - # pylint: disable=protected-access - post._self_post.edited = True - post._self_post.save() - - return post - - def pin_post(self, post_id, pinned): - """ - Pin the Post! - - Args: - post_id(str): the base36 id for the post - pinned(bool): the value for the 'stickied' field - """ - post = self.get_post(post_id) - post.mod.sticky(pinned) - - @reddit_object_persist(search_index_helpers.update_post_removal_status) - def remove_post(self, post_id): - """ - Removes the post, opposite of approve_post - - Args: - post_id(str): the base36 id for the post - """ - post = self.get_post(post_id) - with transaction.atomic(): - Post.objects.filter(post_id=post_id).update(removed=True) - post.mod.remove() - return post - - @reddit_object_persist(search_index_helpers.update_post_removal_status) - def approve_post(self, post_id): - """ - Approves the post, opposite of remove_post - - Args: - post_id(str): the base36 id for the post - """ - post = self.get_post(post_id) - with transaction.atomic(): - Post.objects.filter(post_id=post_id).update(removed=False) - post.mod.approve() - return post - - @reddit_object_persist(search_index_helpers.set_post_to_deleted) - def delete_post(self, post_id): - """ - Deletes the post - - Args: - post_id(str): the id of the post to delete - - """ - post = self.get_post(post_id) - with transaction.atomic(): - # pylint: disable=protected-access - post._self_post.deleted = True - post._self_post.save() - post.delete() - return post - - @reddit_object_persist(search_index_helpers.index_new_comment) - def create_comment(self, text, post_id=None, comment_id=None): - """ - Create a new comment in reply to a post or comment - - Args: - text(str): the text of the comment - post_id(str): the parent post id if replying to a post - comment_id(str): the parent comment id if replying to a comment - - Raises: - ValueError: if both post_id and comment_id are provided - - Returns: - praw.models.Comment: the submitted comment - """ - if num_items_not_none([post_id, comment_id]) != 1: - raise ValueError("Exactly one of post_id and comment_id must be provided") - - if post_id is not None: - comment = self.get_post(post_id).reply(text) - else: - comment = self.get_comment(comment_id).reply(text) - - _, link_id = get_kind_and_id(comment.link_id) - - with transaction.atomic(): - Post.objects.filter(post_id=link_id).update( - num_comments=Coalesce("num_comments", 0) + 1 - ) - - create_comment( - post=Post.objects.get(post_id=link_id), - comment=comment, - author=self.user, - ) - - return comment - - @reddit_object_persist(search_index_helpers.update_comment_text) - def update_comment(self, comment_id, text): - """ - Updates a existing comment - - Args: - comment_id(str): the id of the comment - text(str): the updated text of the comment - - Returns: - praw.models.Comment: the updated comment - """ - comment = self.get_comment(comment_id) - - with transaction.atomic(): - Comment.objects.filter(comment_id=comment.id).update(text=text, edited=True) - comment = comment.edit(text) - return comment - - @reddit_object_persist(search_index_helpers.update_comment_removal_status) - def remove_comment(self, comment_id): - """ - Removes a comment - - Args: - comment_id(str): the id of the comment - """ - comment = self.get_comment(comment_id) - with transaction.atomic(): - Comment.objects.filter(comment_id=comment_id).update(removed=True) - comment.mod.remove() - return comment - - @reddit_object_persist(search_index_helpers.update_comment_removal_status) - def approve_comment(self, comment_id): - """ - Approves a comment - - Args: - comment_id(str): the id of the comment - """ - comment = self.get_comment(comment_id) - with transaction.atomic(): - Comment.objects.filter(comment_id=comment_id).update(removed=False) - comment.mod.approve() - return comment - - @reddit_object_persist(search_index_helpers.set_comment_to_deleted) - def delete_comment(self, comment_id): - """ - Deletes the comment - - Args: - comment_id(str): the id of the comment to delete - - """ - comment = self.get_comment(comment_id) - with transaction.atomic(): - Comment.objects.filter(comment_id=comment_id).update(deleted=False) - comment.delete() - return comment - - def get_comment(self, comment_id): - """ - Gets the comment - - Args: - comment_id(str): the base36 id for the comment - - Returns: - praw.models.Comment: the comment - """ - return self.reddit.comment(comment_id) - - def list_comments(self, post_id, sort): - """ - Lists the comments of a post_id - - Args: - post_id(str): the base36 id for the post - sort(str): the sort method for comments - - Returns: - praw.models.CommentForest: the base of the comment tree - """ - if sort not in VALID_COMMENT_SORT_TYPES: - raise ValueError( - "Sort method '{}' is not supported for comments".format(sort) - ) - - post = self.get_post(post_id) - post.comment_sort = sort - post.comment_limit = settings.MITOPEN_REDDIT_COMMENTS_LIMIT - return post.comments - - def more_comments(self, parent_id, post_id, children, sort): - """ - Fetches data for a comment and its children and returns a list of comments - (which might include another MoreComment) - - Args: - parent_id (str): the fullname for the comment - post_id (str): the id of the post - children (list(str)): - a list of comment ids - sort(str): the sort method for comments - - Returns: - list: A list of comments, might include a MoreComment at the end if more fetching required - """ - more_comments = self.init_more_comments( - parent_id=parent_id, post_id=post_id, children=children, sort=sort - ) - - # more_comments.comments() can return either a list of comments or a CommentForest object - comments = more_comments.comments() - if isinstance(comments, CommentForest): - comments = comments.list() - - # if the number of comments is less than the number of children, it means that the morecomments - # object did not return all the comments, so we need to manually add another morecomments - # object with the remaining children; not sure why praw does not do it automatically - # anyway this seems to happen only with objects that do NOT look like this one: - # - if len(comments) < len(children): - remaining_morecomments = self.init_more_comments( - parent_id=parent_id, - post_id=post_id, - children=children[len(comments) :], - sort=sort, - ) - comments.append(remaining_morecomments) - return comments - - def init_more_comments(self, parent_id, post_id, children, sort): - """ - Initializes a MoreComments instance from the passed data and fetches channel - - Args: - parent_id (str): the fullname for the comment - post_id (str): the id of the post - children(list(str)): - a list of comment ids - sort(str): the sort method for comments - - Returns: - praw.models.MoreComments: the set of more comments - """ - if parent_id is not None: - qualified_parent_id = "{kind}_{parent_id}".format( - kind=get_kind_mapping()["comment"], parent_id=parent_id - ) - else: - qualified_parent_id = "{kind}_{parent_id}".format( - kind=get_kind_mapping()["submission"], parent_id=post_id - ) - - if sort not in VALID_COMMENT_SORT_TYPES: - raise ValueError( - "Sort method '{}' is not supported for comments".format(sort) - ) - - more_comments = more.MoreComments( - self.reddit, - { - "children": children, - "count": len(children), - "parent_id": qualified_parent_id, - }, - ) - more_comments.submission = self.reddit.submission(post_id) - more_comments.submission.comment_limit = settings.MITOPEN_REDDIT_COMMENTS_LIMIT - more_comments.submission.comment_sort = sort - - more_comments._load_comment = ( - replace_load_comment( # pylint: disable=protected-access - more_comments._load_comment # pylint: disable=protected-access - ) - ) - more_comments.comments() # load the comments - return more_comments - - def add_contributor(self, contributor_name, channel_name): - """ - Adds a user to the contributors of a channel - - Args: - contributor_name(str): the username for the user to be added as contributor - channel_name(str): the channel name identifier - - Returns: - praw.models.Redditor: the reddit representation of the user - """ - try: - user = User.objects.get(username=contributor_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(contributor_name)) - proxied_channel = self.get_channel(channel_name) - with transaction.atomic(): - add_user_role(proxied_channel.channel, ROLE_CONTRIBUTORS, user) - proxied_channel.contributor.add(user) - search_index_helpers.upsert_profile(user.profile.id) - return Redditor(self.reddit, name=contributor_name) - - def remove_contributor(self, contributor_name, channel_name): - """ - Removes a user from the contributors of a channel - - Args: - contributor_name(str): the username for the user to be added as contributor - channel_name(str): the channel name identifier - - """ - try: - user = User.objects.get(username=contributor_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(contributor_name)) - # This doesn't check if a user is a moderator because they should have access to the channel - # regardless of their contributor status - proxied_channel = self.get_channel(channel_name) - with transaction.atomic(): - remove_user_role(proxied_channel.channel, ROLE_CONTRIBUTORS, user) - proxied_channel.contributor.remove(user) - search_index_helpers.upsert_profile(user.profile.id) - - def list_contributors(self, channel_name): - """ - Returns a list of contributors in a channel - - Args: - channel_name(str): the channel name identifier - - Returns: - praw.models.listing.generator.ListingGenerator: a generator representing the contributors in the channel - """ - return self.get_channel(channel_name).contributor() - - def add_moderator(self, moderator_name, channel_name): - """ - Add a user to moderators for the channel - - Args: - moderator_name(str): username of the user - channel_name(str): name of the channel - """ - try: - user = User.objects.get(username=moderator_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(moderator_name)) - proxied_channel = self.get_channel(channel_name) - self_channel = Channel.objects.get(name=channel_name) - with transaction.atomic(): - add_user_role(proxied_channel.channel, ROLE_MODERATORS, user) - try: - proxied_channel.moderator.add(user) - Api(user).accept_invite(channel_name) - NotificationSettings.objects.get_or_create( - user=user, - notification_type=NOTIFICATION_TYPE_MODERATOR, - channel=self_channel, - defaults={"trigger_frequency": FREQUENCY_IMMEDIATE}, - ) - - except APIException as ex: - if ex.error_type != "ALREADY_MODERATOR": - raise - - search_index_helpers.upsert_profile(user.profile.id) - - def accept_invite(self, channel_name): - """ - Accept invitation as a subreddit moderator - - Args: - channel_name(str): name of the channel - """ - self.get_channel(channel_name).mod.accept_invite() - - def remove_moderator(self, moderator_name, channel_name): - """ - Remove moderator from a channel - - Args: - moderator_name(str): username of the user - channel_name(str): name of the channel - """ - try: - user = User.objects.get(username=moderator_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(moderator_name)) - - proxied_channel = self.get_channel(channel_name) - self_channel = Channel.objects.get(name=channel_name) - with transaction.atomic(): - remove_user_role(proxied_channel.channel, ROLE_MODERATORS, user) - proxied_channel.moderator.remove(user) - NotificationSettings.objects.filter( - user=user, - channel=self_channel, - notification_type=NOTIFICATION_TYPE_MODERATOR, - ).delete() - - search_index_helpers.upsert_profile(user.profile.id) - - def _list_moderators(self, *, channel_name, moderator_name): - """ - Returns a list of moderators for the channel - - Args: - channel_name(str): name of the channel - moderator_name(str): optional moderator username to filter list to - - Returns: - praw.models.listing.generator.ListingGenerator: a generator representing the contributors in the channel - """ - return self.get_channel(channel_name).moderator(redditor=moderator_name) - - def list_moderators(self, channel_name): - """ - Returns a list of moderators for the channel - - Args: - channel_name(str): name of the channel - - Returns: - praw.models.listing.generator.ListingGenerator: a generator representing the contributors in the channel - """ - return self._list_moderators(channel_name=channel_name, moderator_name=None) - - def is_moderator(self, channel_name, moderator_name): - """ - Returns True if the given username is a moderator on the channel - - Args: - channel_name(str): name of the channel - moderator_name(str): moderator username - - Returns: - bool: True if the given username is a moderator on the channel - """ - if not moderator_name: - # If we just let this pass through to reddit it will helpfully assume we mean to return all moderators. - # So we have to be explicit here. - raise ValueError("Missing moderator_name") - # generators always eval True, so eval as list first and then as bool - try: - return bool( - list( - self._list_moderators( - channel_name=channel_name, moderator_name=moderator_name - ) - ) - ) - except PrawForbidden: - return False - - def add_subscriber(self, subscriber_name, channel_name): - """ - Adds an user to the subscribers of a channel - - Args: - subscriber_name(str): the username for the user to be added as subscriber - channel_name(str): the channel name identifier - - Returns: - praw.models.Redditor: the reddit representation of the user - """ - try: - user = User.objects.get(username=subscriber_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(subscriber_name)) - channel = Api(user).get_channel(channel_name) - with transaction.atomic(): - sync_channel_subscription_model(channel_name, user) - try: - channel.subscribe() - except PrawForbidden as ex: - raise PermissionDenied() from ex - search_index_helpers.upsert_profile(user.profile.id) - return Redditor(self.reddit, name=subscriber_name) - - def remove_subscriber(self, subscriber_name, channel_name): - """ - Removes an user from the subscribers of a channel - - Args: - subscriber_name(str): the username for the user to be added as subscriber - channel_name(str): the channel name identifier - - """ - try: - user = User.objects.get(username=subscriber_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(subscriber_name)) - channel = Api(user).get_channel(channel_name) - with transaction.atomic(): - ChannelSubscription.objects.filter( - user=user, channel__name=channel_name - ).delete() - try: - channel.unsubscribe() - except PrawNotFound: - # User is already unsubscribed, - # or maybe there's another unrelated 403 error from reddit, but we can't tell the difference, - # and the double removal case is probably more common. - pass - search_index_helpers.upsert_profile(user.profile.id) - - def is_subscriber(self, subscriber_name, channel_name): - """ - Checks if an user is subscriber a channel - - Args: - subscriber_name(str): the username for the user to be added as subscriber - channel_name(str): the channel name identifier - - Returns: - bool: whether the user has subscribed to the channel - """ - try: - user = User.objects.get(username=subscriber_name) - except User.DoesNotExist: - raise NotFound("User {} does not exist".format(subscriber_name)) - - api = Api(user) - return channel_name in (channel.display_name for channel in api.list_channels()) - - def report_post(self, post_id, reason): - """ - Reports a post to moderators - - Args: - post_id(str): the id of the post to report - reason(str): the reason why the post is being reported - """ - self.get_post(post_id).report(reason) - - def report_comment(self, comment_id, reason): - """ - Reports a comment to moderators - - Args: - comment_id(str): the id of the comment to report - reason(str): the reason why the comment is being reported - """ - self.get_comment(comment_id).report(reason) - - def list_reports(self, channel_name): - """ - Lists reported content in a channel - - Args: - channel_name(str): the channel name identifier - - Returns: - praw.models.listing.generator.ListingGenerator: a generator representing the reports in the channel - """ - return self.get_channel(channel_name).mod.reports() - - def ignore_comment_reports(self, comment_id): - """ - Ignore further reports on this comment - - Args: - comment_id(str): the id of the comment to report - """ - self.get_comment(comment_id).mod.ignore_reports() - - def ignore_post_reports(self, post_id): - """ - Ignore further reports on this post - - Args: - post_id(str): the id of the post to report - """ - self.get_post(post_id).mod.ignore_reports() - - def add_post_subscription(self, post_id): - """ - Adds a subscription to a post - - Args: - post_id(str): the id of the post to subscribe to - - Returns: - Subscription: the subscription - """ - subscription, _ = Subscription.objects.get_or_create( - user=self.user, - post_id=post_id, - comment_id=None, # must be explicit about this - ) - return subscription - - def remove_post_subscription(self, post_id): - """ - Remove a subscription to a post - - Args: - post_id(str): the id of the post to unsubscribe from - """ - Subscription.objects.filter( - user=self.user, post_id=post_id, comment_id__isnull=True - ).delete() - - def add_comment_subscription(self, post_id, comment_id): - """ - Adds a subscription to a comment - - Args: - post_id(str): the id of the post to subscribe to - comment_id(str): the id of the comment to subscribe to - - Returns: - Subscription: the subscription - """ - subscription, _ = Subscription.objects.get_or_create( - user=self.user, post_id=post_id, comment_id=comment_id - ) - return subscription - - def remove_comment_subscription(self, post_id, comment_id): - """ - Remove a subscription to a comment - - Args: - post_id(str): the id of the post to unsubscribe from - comment_id(str): the id of the comment to unsubscribe from - """ - Subscription.objects.filter( - user=self.user, post_id=post_id, comment_id=comment_id - ).delete() diff --git a/channels/api_test.py b/channels/api_test.py deleted file mode 100644 index 9830e492f6..0000000000 --- a/channels/api_test.py +++ /dev/null @@ -1,1574 +0,0 @@ -"""API tests""" -# pylint: disable=redefined-outer-name,too-many-lines -from unittest.mock import Mock, MagicMock -from urllib.parse import urljoin -from types import SimpleNamespace -from datetime import datetime, timedelta -import pytz - -from django.contrib.auth.models import AnonymousUser -import pytest -from praw.models import Comment as RedditComment -from praw.models.comment_forest import CommentForest -from praw.models.reddit.redditor import Redditor -from prawcore.exceptions import ResponseException, Forbidden -from rest_framework.exceptions import NotFound - -from channels import api -from channels.constants import ( - COMMENTS_SORT_BEST, - CHANNEL_TYPE_PUBLIC, - CHANNEL_TYPE_PRIVATE, - CHANNEL_TYPE_RESTRICTED, - VALID_CHANNEL_TYPES, - POST_TYPE, - COMMENT_TYPE, - VoteActions, - ROLE_CONTRIBUTORS, - ROLE_MODERATORS, - LINK_TYPE_LINK, - LINK_TYPE_SELF, - LINK_TYPE_ANY, - EXTENDED_POST_TYPE_ARTICLE, - POSTS_SORT_HOT, -) -from channels.factories.models import ArticleFactory, ChannelFactory, PostFactory -from channels.models import ( - Article, - Channel, - Comment, - Post, - RedditAccessToken, - RedditRefreshToken, - Subscription, - ChannelSubscription, - ChannelGroupRole, -) -from channels.utils import DEFAULT_LISTING_PARAMS, ListingParams -from channels.test_utils import assert_properties_eq -from search import search_index_helpers -from open_discussions.factories import UserFactory -from notifications.models import NotificationSettings, NOTIFICATION_TYPE_MODERATOR -from notifications.factories import NotificationSettingsFactory - -pytestmark = pytest.mark.django_db - - -def _mock_channel(*, name, **kwargs): - """Create a mock channel and associated DB record""" - if not Channel.objects.filter(name=name).exists(): - ChannelFactory.create(name=name) - return Mock(display_name=name, **kwargs) - - -def _mock_post(*, post_id, subreddit, **kwargs): - """Create a mock post and associated DB record""" - if not Post.objects.filter(post_id=post_id).exists(): - PostFactory.create( - post_id=post_id, - is_text=True, - channel=Channel.objects.get(name=subreddit.display_name), - ) - return Mock( - id=post_id, - created=1_547_749_404, - ups=1, - banned_by=None, - removed=False, - selftext="content", - url="http://example.com", - **kwargs, - ) - - -def _mock_comment(*, comment_id, submission, subreddit, parent_id, **kwargs): - """Create a mock comment and associated DB record""" - author = kwargs.pop("user", None) or UserFactory.create() - mock_author = Mock() - mock_author.configure_mock(name=author.username) - comment = Mock( - id=comment_id, - parent_id=parent_id, - body="comment body", - removed=False, - banned_by=None, - created=1_547_749_404, - score=1, - author=mock_author, - submission=submission, - subreddit=subreddit, - **kwargs, - ) - api.create_comment( - post=Post.objects.get(post_id=submission.id), comment=comment, author=author - ) - return comment - - -@pytest.fixture() -def mock_get_client(mocker): - """Mock reddit get_client""" - return mocker.patch( - "channels.api._get_client", - autospec=True, - return_value=MagicMock( - subreddit=Mock( - return_value=_mock_channel( - name="channel", - submit=Mock( - return_value=_mock_post( - post_id="abc", subreddit=_mock_channel(name="channel") - ) - ), - ) - ), - submission=Mock( - return_value=_mock_post( - post_id="abc", - subreddit=_mock_channel(name="subreddit"), - reply=Mock( - return_value=_mock_comment( - comment_id="456", - parent_id="t3_abc", - link_id="t3_abc", - submission=_mock_post( - post_id="abc", subreddit=_mock_channel(name="subreddit") - ), - subreddit=_mock_channel(name="subreddit"), - ) - ), - edit=Mock( - return_value=_mock_post( - post_id="abc", subreddit=_mock_channel(name="subreddit") - ) - ), - ) - ), - comment=Mock( - return_value=_mock_comment( - comment_id="567", - parent_id="t3_123", - link_id="t3_123", - submission=_mock_post( - post_id="123", subreddit=_mock_channel(name="other_subreddit") - ), - subreddit=_mock_channel(name="other_subreddit"), - reply=Mock( - return_value=_mock_comment( - comment_id="789", - parent_id="t1_567", - link_id="t3_123", - submission=_mock_post( - post_id="123", - subreddit=_mock_channel(name="other_subreddit"), - ), - subreddit=_mock_channel(name="other_subreddit"), - ) - ), - ) - ), - ), - ) - - -@pytest.fixture() -def mock_client(mock_get_client): - """Mock reddit client""" - return mock_get_client.return_value - - -@pytest.fixture() -def mock_upsert_profile(mocker): - """Mock of upsert_profile function""" - return mocker.patch("channels.api.search_index_helpers.upsert_profile") - - -@pytest.fixture() -def listing_params(): - """Fixture for a basic ListingParams object""" - return ListingParams(None, None, 0, POSTS_SORT_HOT) - - -@pytest.mark.parametrize( - "vote_func", [api.Api.apply_post_vote, api.Api.apply_comment_vote] -) -@pytest.mark.parametrize( - "request_data,likes_value,expected_instance_vote_func", - [ - ({"upvoted": True}, None, "upvote"), - ({"upvoted": True}, False, "upvote"), - ({"downvoted": True}, None, "downvote"), - ({"downvoted": True}, True, "downvote"), - ({"upvoted": False}, True, "clear_vote"), - ({"downvoted": False}, False, "clear_vote"), - ({"upvoted": True}, True, None), - ({"upvoted": False}, False, None), - ({"downvoted": True}, False, None), - ({"downvoted": False}, True, None), - ], -) -def test_apply_vote( - mocker, vote_func, request_data, likes_value, expected_instance_vote_func -): - """ - Tests that the functions to apply an upvote/downvote behave appropriately given - the voting request and the current state of upvotes/downvotes for the user. - """ - mocker.patch("search.search_index_helpers.update_indexed_score") - mock_instance = mocker.Mock(likes=likes_value) - vote_result = vote_func(mock_instance, request_data, allow_downvote=True) - expected_vote_success = expected_instance_vote_func is not None - assert vote_result is expected_vote_success - if expected_vote_success: - expected_vote_func = getattr(mock_instance, expected_instance_vote_func) - assert expected_vote_func.call_count == 1 - - -@pytest.mark.parametrize( - "vote_func,expected_allowed_downvote,expected_instance_type", - [ - (api.Api.apply_post_vote, False, POST_TYPE), - (api.Api.apply_comment_vote, True, COMMENT_TYPE), - ], -) -def test_vote_indexing( - mocker, vote_func, expected_allowed_downvote, expected_instance_type -): - """Test that an upvote/downvote calls a function to update the index""" - post = PostFactory.create(is_text=True) - patched_vote_indexer = mocker.patch( - "channels.api.search_index_helpers.update_indexed_score" - ) - # Test upvote - mock_reddit_obj = Mock() - mock_reddit_obj.id = post.post_id - mock_reddit_obj.likes = False - vote_func(mock_reddit_obj, {"upvoted": True}) - patched_vote_indexer.assert_called_once_with( - mock_reddit_obj, expected_instance_type, VoteActions.UPVOTE - ) - # Test downvote (which may not be allowed) - patched_vote_indexer.reset_mock() - mock_reddit_obj.likes = True - vote_func(mock_reddit_obj, {"downvoted": True}) - assert patched_vote_indexer.called is expected_allowed_downvote - if patched_vote_indexer.called: - patched_vote_indexer.assert_called_once_with( - mock_reddit_obj, expected_instance_type, VoteActions.DOWNVOTE - ) - # Test unchanged vote - patched_vote_indexer.reset_mock() - mock_reddit_obj.likes = True - vote_func(mock_reddit_obj, {"upvoted": True}) - assert not patched_vote_indexer.called - - -def test_get_session(settings): - """Test that _get_session uses the access token from settings""" - settings.MITOPEN_REDDIT_ACCESS_TOKEN = "ACCESS_TOKEN" - # pylint: disable=protected-access - assert api._get_session().headers[api.ACCESS_TOKEN_HEADER_NAME] == "ACCESS_TOKEN" - - -def test_get_channel_user(mock_get_client): - """Test get_channels for logged-in user""" - user = UserFactory.create() - channel = api.Api(user=user).get_channel("test") - assert channel == mock_get_client.return_value.subreddit.return_value - mock_get_client.assert_called_once_with(user=user) - mock_get_client.return_value.subreddit.assert_called_once_with("test") - - -def test_list_channels_user(mock_get_client): - """Test list_channels for logged-in user""" - user = UserFactory.create() - mock_get_client.return_value.user.subreddits.return_value = [ - _mock_channel(name="abc") - ] - channels = api.Api(user=user).list_channels() - assert channels == mock_get_client.return_value.user.subreddits.return_value - mock_get_client.assert_called_once_with(user=user) - mock_get_client.return_value.user.subreddits.assert_called_once_with(limit=None) - - -@pytest.mark.parametrize( - "kwargs, expected, allowed_post_types", - [ - [ - {"channel_type": CHANNEL_TYPE_PUBLIC}, - {"subreddit_type": CHANNEL_TYPE_PUBLIC}, - [LINK_TYPE_LINK, LINK_TYPE_SELF], - ], - [ - {"channel_type": CHANNEL_TYPE_PRIVATE}, - {"subreddit_type": CHANNEL_TYPE_PRIVATE}, - [LINK_TYPE_LINK, LINK_TYPE_SELF], - ], - [ - {"channel_type": CHANNEL_TYPE_RESTRICTED}, - {"subreddit_type": CHANNEL_TYPE_RESTRICTED}, - [LINK_TYPE_LINK, LINK_TYPE_SELF], - ], - [ - {"link_type": LINK_TYPE_ANY}, - {"link_type": LINK_TYPE_ANY}, - [LINK_TYPE_LINK, LINK_TYPE_SELF], - ], - [ - {"link_type": LINK_TYPE_LINK}, - {"link_type": LINK_TYPE_LINK}, - [LINK_TYPE_LINK], - ], - [ - {"link_type": LINK_TYPE_SELF}, - {"link_type": LINK_TYPE_SELF}, - [LINK_TYPE_SELF], - ], - [ - {"allowed_post_types": [LINK_TYPE_LINK]}, - {"link_type": LINK_TYPE_ANY}, - [LINK_TYPE_LINK], - ], - ], -) -def test_create_channel_user( - mock_get_client, indexing_decorator, kwargs, expected, allowed_post_types -): - """Test create_channel for logged-in user""" - user = UserFactory.create() - # some defaults - input_kwargs = { - "channel_type": CHANNEL_TYPE_PUBLIC, - "link_type": LINK_TYPE_ANY, - **kwargs, - } - expected = { - "subreddit_type": input_kwargs["channel_type"], - "link_type": input_kwargs["link_type"], - **expected, - } - channel = api.Api(user=user).create_channel("name", "Title", **input_kwargs) - assert channel == mock_get_client.return_value.subreddit.create.return_value - mock_get_client.assert_called_once_with(user=user) - mock_get_client.return_value.subreddit.create.assert_called_once_with( - "name", title="Title", allow_top=True, **expected - ) - assert indexing_decorator.mock_persist_func.call_count == 0 - assert Channel.objects.filter(name="name").exists() - channel = Channel.objects.get(name="name") - assert [ - key for key, enabled in channel.allowed_post_types if enabled - ] == allowed_post_types - assert ChannelGroupRole.objects.filter(channel=channel).count() == 2 - assert channel.widget_list is not None - moderator_perms = api.get_role_model( - channel, ROLE_MODERATORS - ).group.groupobjectpermission_set.all() - assert len(moderator_perms) == 1 - assert any( - [ - p.content_object == channel.widget_list - and p.permission.codename == "change_widgetlist" - for p in moderator_perms - ] - ) - - -@pytest.mark.parametrize("channel_setting", api.CHANNEL_SETTINGS) -def test_create_channel_setting(mock_client, channel_setting): - """Test create_channel for {channel_setting}""" - user = UserFactory.create() - kwargs = {channel_setting: "value"} if channel_setting != "allow_top" else {} - expected_kwargs = {"link_type": LINK_TYPE_ANY, **kwargs} - channel = api.Api(user=user).create_channel("name", "Title", **kwargs) - assert channel == mock_client.subreddit.create.return_value - mock_client.subreddit.create.assert_called_once_with( - "name", - title="Title", - subreddit_type=api.CHANNEL_TYPE_PUBLIC, - allow_top=True, - **expected_kwargs, - ) - - -def test_create_channel_invalid_setting(mock_client): - """Test create_channel for invalid other_settings""" - user = UserFactory.create() - client = api.Api(user=user) - with pytest.raises(ValueError): - client.create_channel("name", "Title", invalidarg="bad") - assert mock_client.subreddit.create.call_count == 0 - - -def test_create_channel_user_invalid_type(mock_client): - """Test create_channel for logged-in user""" - user = UserFactory.create() - client = api.Api(user=user) - with pytest.raises(ValueError): - client.create_channel("name", "Title", channel_type="notachanneltype") - assert mock_client.subreddit.create.call_count == 0 - - -def test_create_channel_invalid_membership(mock_client): - """Test create_channel for logged-in user""" - user = UserFactory.create() - client = api.Api(user=user) - with pytest.raises(ValueError): - client.create_channel("name", "Title", membership_is_managed="notabool") - assert mock_client.subreddit.create.call_count == 0 - - -@pytest.mark.parametrize("channel_type", VALID_CHANNEL_TYPES) -def test_update_channel_type(mock_client, channel_type, indexing_decorator): - """Test create_channel for channel_type""" - user = UserFactory.create() - channel = api.Api(user=user).update_channel("name", channel_type=channel_type) - assert channel == mock_client.subreddit.return_value - mock_client.subreddit.assert_called_with("name") - assert mock_client.subreddit.call_count == 2 - mock_client.subreddit.return_value.mod.update.assert_called_once_with( - subreddit_type=channel_type - ) - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_channel_index - in indexing_decorator.mock_persist_func.original - ) - - -@pytest.mark.parametrize("channel_setting", api.CHANNEL_SETTINGS + ("title",)) -def test_update_channel_setting(mock_client, channel_setting, indexing_decorator): - """Test update_channel for channel_setting""" - user = UserFactory.create() - kwargs = {channel_setting: "value" if channel_setting != "allow_top" else False} - channel = api.Api(user=user).update_channel("name", **kwargs) - assert channel == mock_client.subreddit.return_value - mock_client.subreddit.assert_called_with("name") - assert mock_client.subreddit.call_count == 2 - mock_client.subreddit.return_value.mod.update.assert_called_once_with(**kwargs) - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_channel_index - in indexing_decorator.mock_persist_func.original - ) - - -@pytest.mark.parametrize( - "allowed_post_types", - [ - [LINK_TYPE_LINK, LINK_TYPE_SELF, EXTENDED_POST_TYPE_ARTICLE], - [LINK_TYPE_LINK, EXTENDED_POST_TYPE_ARTICLE], - [LINK_TYPE_LINK, LINK_TYPE_SELF], - [LINK_TYPE_SELF, EXTENDED_POST_TYPE_ARTICLE], - [LINK_TYPE_LINK], - [LINK_TYPE_SELF], - [EXTENDED_POST_TYPE_ARTICLE], - ], -) -def test_update_channel_allowed_(mock_client, allowed_post_types): - """Test update_channel for channel_setting""" - user = UserFactory.create() - channel = ChannelFactory.create() - - updated_channel = api.Api(user=user).update_channel( - channel.name, allowed_post_types=allowed_post_types - ) - - assert updated_channel == mock_client.subreddit.return_value - mock_client.subreddit.assert_called_with(channel.name) - assert mock_client.subreddit.call_count == 2 - mock_client.subreddit.return_value.mod.update.assert_called_once_with( - link_type=LINK_TYPE_ANY - ) - - channel.refresh_from_db() - assert [ - key for key, enabled in channel.allowed_post_types if enabled - ] == allowed_post_types - - -@pytest.mark.parametrize("membership_is_managed", [None, True, False]) -def test_update_channel_membership(mock_client, membership_is_managed): - """Test update_channel for membership""" - name = "name" - Channel.objects.create(name=name) - user = UserFactory.create() - channel = api.Api(user=user).update_channel( - name, membership_is_managed=membership_is_managed - ) - assert channel == mock_client.subreddit.return_value - mock_client.subreddit.assert_called_with(name) - assert mock_client.subreddit.call_count == 2 - mock_client.subreddit.return_value.mod.update.assert_called_once_with() - - channel_obj = Channel.objects.get(name=name) - assert channel_obj.membership_is_managed is ( - membership_is_managed if membership_is_managed is not None else False - ) - - -def test_update_channel_invalid_channel_type(mock_client): - """update_channel should restrict to valid channel types""" - user = UserFactory.create() - with pytest.raises(ValueError): - api.Api(user=user).update_channel("name", channel_type="not_a_type") - assert mock_client.subreddit.call_count == 0 - - -def test_update_channel_invalid_key(mock_client): - """update_channel should restrict to valid channel types""" - user = UserFactory.create() - with pytest.raises(ValueError): - api.Api(user=user).update_channel("name", unexpected="key") - assert mock_client.subreddit.call_count == 0 - - -def test_update_channel_invalid_membership(mock_client): - """update_channel should restrict to valid channel types""" - user = UserFactory.create() - with pytest.raises(ValueError): - api.Api(user=user).update_channel("name", membership_is_managed="not_a_bool") - assert mock_client.subreddit.call_count == 0 - - -DEFAULT_POST_PROPS = dict( - title="Title", num_comments=0, edited=False, deleted=False, removed=False, score=1 -) - - -class TestCreatePost: - """Tests for channel API create_post method""" - - @pytest.fixture() - def scenario(self, mock_client): - """Fixture for setup and test data needed for all create_post tests""" - mock_reddit_post_submit = mock_client.subreddit.return_value.submit - mock_returned_post = mock_reddit_post_submit.return_value - Post.objects.filter( - post_id=mock_returned_post.id - ).delete() # don't want this for this test - channel = Channel.objects.create(name="123") - return SimpleNamespace( - mock_reddit_post_submit=mock_reddit_post_submit, - mock_returned_post=mock_returned_post, - channel=channel, - ) - - @pytest.mark.parametrize("text", ["Text", None]) - @pytest.mark.parametrize("exclude_from_frontpage_emails", [True, False]) - def test_create_post_text( # pylint: disable=protected-access,too-many-arguments - self, - mock_client, - contributor_api, - scenario, - text, - exclude_from_frontpage_emails, - user, - ): - """Test create_post with text""" - if not exclude_from_frontpage_emails: - old_post = PostFactory.create(author=user) - old_post.created_on = datetime.now(pytz.UTC) - timedelta(days=10) - old_post.save() - - post = contributor_api.create_post(scenario.channel.name, "Title", text=text) - assert post.__wrapped__ == scenario.mock_returned_post - mock_client.subreddit.assert_called_once_with(scenario.channel.name) - scenario.mock_reddit_post_submit.assert_called_once_with( - "Title", selftext=text or "", url=None - ) - post = Post.objects.filter(post_id=scenario.mock_returned_post.id) - assert post.exists() - assert_properties_eq( - post.first(), - dict( - text=text or "", - url=None, - post_type=LINK_TYPE_SELF, - exclude_from_frontpage_emails=exclude_from_frontpage_emails, - **DEFAULT_POST_PROPS, - ), - ) - - @pytest.mark.parametrize("exclude_from_frontpage_emails", [True, False]) - def test_create_post_url( # pylint: disable=too-many-arguments - self, - mock_client, - contributor_api, - scenario, - exclude_from_frontpage_emails, - user, - ): - """Test create_post with url""" - if not exclude_from_frontpage_emails: - old_post = PostFactory.create(author=user) - old_post.created_on = datetime.now(pytz.UTC) - timedelta(days=10) - old_post.save() - - post = contributor_api.create_post( - scenario.channel.name, "Title", url="http://google.com" - ) - assert post.__wrapped__ == scenario.mock_returned_post - mock_client.subreddit.assert_called_once_with(scenario.channel.name) - scenario.mock_reddit_post_submit.assert_called_once_with( - "Title", selftext=None, url="http://google.com" - ) - post = Post.objects.filter(post_id=scenario.mock_returned_post.id) - assert post.exists() - assert_properties_eq( - post.first(), - dict( - url="http://google.com", - text=None, - post_type=LINK_TYPE_LINK, - exclude_from_frontpage_emails=exclude_from_frontpage_emails, - **DEFAULT_POST_PROPS, - ), - ) - - @pytest.mark.parametrize("exclude_from_frontpage_emails", [True, False]) - def test_create_post_article( # pylint: disable=too-many-arguments - self, - mock_client, - contributor_api, - exclude_from_frontpage_emails, - scenario, - user, - ): - """Test create_post with article content""" - if not exclude_from_frontpage_emails: - old_post = PostFactory.create(author=user) - old_post.created_on = datetime.now(pytz.UTC) - timedelta(days=10) - old_post.save() - - post = contributor_api.create_post( - scenario.channel.name, "Title", article_content=["data"] - ) - assert post.__wrapped__ == scenario.mock_returned_post - mock_client.subreddit.assert_called_once_with(scenario.channel.name) - scenario.mock_reddit_post_submit.assert_called_once_with( - "Title", selftext="", url=None - ) - post = Post.objects.filter(post_id=scenario.mock_returned_post.id) - assert post.exists() - assert_properties_eq( - post.first(), - dict( - url=None, - text=None, - post_type=EXTENDED_POST_TYPE_ARTICLE, - exclude_from_frontpage_emails=exclude_from_frontpage_emails, - **DEFAULT_POST_PROPS, - ), - ) - article_query = Article.objects.filter( - post__post_id=scenario.mock_returned_post.id - ) - assert article_query.exists() is True - assert article_query.count() == 1 - assert article_query.first().content == ["data"] - - -@pytest.mark.parametrize( - "kwargs", - [ - {"url": "http://google.com", "text": "Text"}, - {"url": "http://google.com", "text": "Text", "article_content": []}, - {"url": "http://google.com", "article_content": []}, - {"text": "Text", "article_content": []}, - ], -) -def test_create_post_errors(mock_client, kwargs): - """Test create_post with url and text (or neither) raises error""" - client = api.Api(UserFactory.create()) - with pytest.raises(ValueError): - client.create_post("channel", "Title", **kwargs) - assert mock_client.subreddit.call_count == 0 - - -def test_list_posts(mock_client): - """list_posts should return a generator of posts""" - client = api.Api(UserFactory.create()) - posts = client.list_posts("channel", DEFAULT_LISTING_PARAMS) - assert posts == mock_client.subreddit.return_value.hot.return_value - mock_client.subreddit.return_value.hot.assert_called_once_with( - limit=25, params={"count": 0} - ) - mock_client.subreddit.assert_called_once_with("channel") - - -def test_list_posts_invalid_sort(mock_client): - """list_posts should raise an error is sort is invalid""" - client = api.Api(UserFactory.create()) - with pytest.raises(ValueError): - client.list_posts("channel", ListingParams(None, None, 0, "bad")) - mock_client.subreddit.assert_called_once_with("channel") - - -def test_get_post(mock_client): - """Test get_post""" - client = api.Api(UserFactory.create()) - post = client.get_post("abc") - assert post.__wrapped__ == mock_client.submission.return_value - assert post._self_post.post_id == "abc" # pylint: disable=protected-access - mock_client.submission.assert_called_once_with(id="abc") - - -def test_update_post_text(mock_client, indexing_decorator): - """Test update_post for text passes""" - mock_client.submission.return_value.selftext = "text" - client = api.Api(UserFactory.create()) - post = client.update_post("abc", text="Text") - assert post.__wrapped__ == mock_client.submission.return_value.edit.return_value - assert post._self_post.post_id == "abc" # pylint: disable=protected-access - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.edit.assert_called_once_with("Text") - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_post_text - in indexing_decorator.mock_persist_func.original - ) - - -def test_update_post_article(mock_client, indexing_decorator): - """Test update_post for article passes""" - mock_client.submission.return_value.selftext = "" - client = api.Api(UserFactory.create()) - Post.objects.filter(post_id=mock_client.submission.return_value.id).delete() - article = PostFactory.create( - is_article=True, post_id=mock_client.submission.return_value.id - ).article - updated_content = [{"data": "updated"}] - post_id = article.post.post_id - post = client.update_post(post_id, article_content=updated_content) - assert post.__wrapped__ == mock_client.submission.return_value - assert post._self_post.post_id == post_id # pylint: disable=protected-access - mock_client.submission.assert_called_once_with(id=post_id) - article.refresh_from_db() - assert article.content == updated_content - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_post_text - in indexing_decorator.mock_persist_func.original - ) - - -@pytest.mark.parametrize( - "kwargs, post_type", - [ - [{"text": "abc"}, LINK_TYPE_LINK], - [{"article_content": ["abc"]}, LINK_TYPE_LINK], - [{}, LINK_TYPE_SELF], - [{}, EXTENDED_POST_TYPE_ARTICLE], - [{"article_content": ["abc"], "text": "abc"}, LINK_TYPE_SELF], - [{"article_content": ["abc"], "text": "abc"}, EXTENDED_POST_TYPE_ARTICLE], - [{}, EXTENDED_POST_TYPE_ARTICLE], - [{"text": "abc"}, None], - [{"article_content": ["abc"]}, None], - [{"article_content": ["abc"], "text": "abc"}, None], - ], -) -def test_update_post_invalid(mock_client, kwargs, post_type): - """Test update_post raises error if updating a post which is not a self post""" - Post.objects.filter(post_id="abc").update(post_type=post_type) - article = None - mock_client.submission.return_value.is_self = False - if post_type == EXTENDED_POST_TYPE_ARTICLE: - article = ArticleFactory.create( - post=Post.objects.get(post_id=mock_client.submission.return_value.id) - ) - client = api.Api(UserFactory.create()) - with pytest.raises(ValueError): - client.update_post("abc", **kwargs) - assert mock_client.submission.return_value.edit.call_count == 0 - if "article_content" in kwargs and article is not None: - article.refresh_from_db() - assert article.content != kwargs["article_content"] - - -def test_approve_post(mock_client, indexing_decorator): - """Test approve_post passes""" - mock_client.submission.return_value.selftext = "text" - client = api.Api(UserFactory.create()) - client.approve_post("abc") - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.mod.approve.assert_called_once_with() - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_post_removal_status - in indexing_decorator.mock_persist_func.original - ) - - -def test_remove_post(mock_client, indexing_decorator): - """Test remove_post passes""" - mock_client.submission.return_value.selftext = "text" - client = api.Api(UserFactory.create()) - client.remove_post("abc") - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.mod.remove.assert_called_once_with() - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_post_removal_status - in indexing_decorator.mock_persist_func.original - ) - - -def test_create_comment_on_post(mock_client, indexing_decorator): - """Makes correct calls for comment on post""" - Comment.objects.filter( - comment_id=mock_client.submission.return_value.reply.return_value.id - ).delete() # don't want this for this test - client = api.Api(UserFactory.create()) - post = Post.objects.get(post_id="abc") - comment = client.create_comment("text", post_id="abc") - assert comment == mock_client.submission.return_value.reply.return_value - assert mock_client.comment.call_count == 0 - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.reply.assert_called_once_with("text") - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.index_new_comment - in indexing_decorator.mock_persist_func.original - ) - assert Comment.objects.filter( - comment_id=mock_client.submission.return_value.reply.return_value.id, - parent_id=mock_client.submission.return_value.id, - ).exists() - assert post.num_comments + 1 == Post.objects.get(post_id="abc").num_comments - - -def test_create_comment_on_comment(mock_client, indexing_decorator): - """Makes correct calls for comment on comment""" - Comment.objects.filter( - comment_id=mock_client.comment.return_value.reply.return_value.id - ).delete() # don't want this for this test - client = api.Api(UserFactory.create()) - post = Post.objects.get(post_id="abc") - comment = client.create_comment("text", comment_id="567") - assert comment == mock_client.comment.return_value.reply.return_value - assert mock_client.submission.call_count == 0 - mock_client.comment.assert_called_once_with("567") - mock_client.comment.return_value.reply.assert_called_once_with("text") - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.index_new_comment - in indexing_decorator.mock_persist_func.original - ) - assert Comment.objects.filter( - comment_id=mock_client.comment.return_value.reply.return_value.id, - parent_id=mock_client.comment.return_value.id, - ).exists() - assert post.num_comments + 1 == Post.objects.get(post_id="123").num_comments - - -def test_create_comment_args_error(mock_client): - """Errors if both args provided""" - client = api.Api(UserFactory.create()) - with pytest.raises(ValueError): - client.create_comment("text", post_id="id1", comment_id="id2") - with pytest.raises(ValueError): - client.create_comment("text") - assert mock_client.submission.call_count == 0 - assert mock_client.comment.call_count == 0 - - -def test_list_comments(mock_client): - """Test list_comments""" - client = api.Api(UserFactory.create()) - result = client.list_comments("abc", COMMENTS_SORT_BEST) - mock_client.submission.assert_called_once_with(id="abc") - assert mock_client.submission.return_value.comment_sort == COMMENTS_SORT_BEST - assert result == mock_client.submission.return_value.comments - - -def test_list_comments_invalid_sort(mock_client): - """Test list_comments with invalid sort raises error""" - client = api.Api(UserFactory.create()) - with pytest.raises(ValueError): - client.list_comments("id", "invalid") - assert mock_client.submission.call_count == 0 - - -def test_get_comment(mock_client): - """Test get_comment""" - client = api.Api(UserFactory.create()) - comment = client.get_comment("id") - assert comment == mock_client.comment.return_value - mock_client.comment.assert_called_once_with("id") - - -def test_delete_comment(mock_client, indexing_decorator): - """Test delete_comment""" - client = api.Api(UserFactory.create()) - client.delete_comment("id") - mock_client.comment.assert_called_once_with("id") - mock_client.comment.return_value.delete.assert_called_once_with() - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.set_comment_to_deleted - in indexing_decorator.mock_persist_func.original - ) - - -def test_update_comment(mock_client, indexing_decorator): - """Test update_post passes""" - client = api.Api(UserFactory.create()) - comment = client.update_comment("id", "Text") - assert comment == mock_client.comment.return_value.edit.return_value - mock_client.comment.assert_called_once_with("id") - mock_client.comment.return_value.edit.assert_called_once_with("Text") - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_comment_text - in indexing_decorator.mock_persist_func.original - ) - - -def test_approve_comment(mock_client, indexing_decorator): - """Test approve_post passes""" - mock_client.submission.return_value.selftext = "text" - client = api.Api(UserFactory.create()) - client.approve_comment("id") - mock_client.comment.assert_called_once_with("id") - mock_client.comment.return_value.mod.approve.assert_called_once_with() - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_comment_removal_status - in indexing_decorator.mock_persist_func.original - ) - - -def test_remove_comment(mock_client, indexing_decorator): - """Test remove_comment passes""" - mock_client.submission.return_value.selftext = "text" - client = api.Api(UserFactory.create()) - client.remove_comment("id") - mock_client.comment.assert_called_once_with("id") - mock_client.comment.return_value.mod.remove.assert_called_once_with() - # This API function should be wrapped with the indexing decorator and pass in a specific indexer function - assert indexing_decorator.mock_persist_func.call_count == 1 - assert ( - search_index_helpers.update_comment_removal_status - in indexing_decorator.mock_persist_func.original - ) - - -def test_init_more_comments(mock_client, mocker): - """Test init_more_comments""" - client = api.Api(UserFactory.create()) - children = ["t1_itmt", "t1_it56t"] - - more_patch = mocker.patch("praw.models.reddit.more.MoreComments") - result = client.init_more_comments( - "parent_3i", "post_i2", children, COMMENTS_SORT_BEST - ) - - more_patch.assert_called_once_with( - client.reddit, - {"parent_id": "t1_parent_3i", "children": children, "count": len(children)}, - ) - assert result == more_patch.return_value - mock_client.submission.assert_called_once_with("post_i2") - assert result.submission == mock_client.submission.return_value - assert result.submission.comment_sort == COMMENTS_SORT_BEST - result.comments.assert_called_once_with() - - -def test_init_more_comments_no_parents(mock_client, mocker): - """If no parent id is present the post id should be used""" - client = api.Api(UserFactory.create()) - children = ["t1_itmt", "t1_it56t"] - - more_patch = mocker.patch("praw.models.reddit.more.MoreComments") - result = client.init_more_comments(None, "post_i2", children, COMMENTS_SORT_BEST) - - more_patch.assert_called_once_with( - client.reddit, - {"parent_id": "t3_post_i2", "children": children, "count": len(children)}, - ) - assert result == more_patch.return_value - mock_client.submission.assert_called_once_with("post_i2") - assert result.submission == mock_client.submission.return_value - result.comments.assert_called_once_with() - - -def test_init_more_comments_invalid_sort( - mock_client, mocker -): # pylint: disable=unused-argument - """If no parent id is present the post id should be used""" - client = api.Api(UserFactory.create()) - children = ["t1_itmt", "t1_it56t"] - - more_patch = mocker.patch("praw.models.reddit.more.MoreComments") - with pytest.raises(ValueError): - client.init_more_comments(None, "post_i2", children, "invalid_sort") - - assert more_patch.call_count == 0 - - -def test_more_comments(mock_client, mocker): # pylint: disable=unused-argument - """Test more_comments without any extra comments""" - client = api.Api(UserFactory.create()) - children = ["t1_itmt", "t1_it56t"] - - init_more_mock = mocker.patch("channels.api.Api.init_more_comments") - post_id = "post_i2" - mocker.patch.object(RedditComment, "replies", []) - - def _make_comment(comment_id): - """Helper to make a comment with a valid list of replies""" - return RedditComment(client.reddit, id=comment_id) - - comments = [_make_comment(comment_id) for comment_id in children] - init_more_mock.return_value.comments.return_value = CommentForest( - post_id, comments=comments - ) - - result = client.more_comments("parent_3i", post_id, children, COMMENTS_SORT_BEST) - init_more_mock.assert_called_once_with( - parent_id="parent_3i", - post_id="post_i2", - children=children, - sort=COMMENTS_SORT_BEST, - ) - assert result == comments - - -def test_more_comments_with_more_comments( - mock_client, mocker -): # pylint: disable=unused-argument - """Test more_comments with an extra MoreComments""" - client = api.Api(UserFactory.create()) - children = ["1", "2", "3"] - extra_children = ["4", "5", "6"] - - init_more_mock = mocker.patch("channels.api.Api.init_more_comments") - post_id = "post_i2" - mocker.patch.object(RedditComment, "replies", []) - - def _make_comment(comment_id): - """Helper to make a comment with a valid list of replies""" - return RedditComment(client.reddit, id=comment_id) - - first_comments = [_make_comment(child) for child in children] - side_effects = [ - Mock( - comments=Mock(return_value=CommentForest(post_id, comments=first_comments)) - ), - Mock(), # only used for identity comparison - ] - init_more_mock.side_effect = side_effects - - result = client.more_comments( - "parent_3i", post_id, children + extra_children, COMMENTS_SORT_BEST - ) - assert init_more_mock.call_count == 2 - init_more_mock.assert_any_call( - parent_id="parent_3i", - post_id="post_i2", - children=children + extra_children, - sort=COMMENTS_SORT_BEST, - ) - init_more_mock.assert_any_call( - parent_id="parent_3i", - post_id="post_i2", - children=extra_children, - sort=COMMENTS_SORT_BEST, - ) - - assert result[:-1] == first_comments - more_comments = result[-1] - assert side_effects[1] == more_comments - - -def test_list_user_contributions( - mocker, mock_client, listing_params, user -): # pylint: disable=unused-argument - """Test list_user_posts and list_user_comments""" - mock_redditor = Mock() - mocker.patch("channels.api.Redditor", autospec=True, return_value=mock_redditor) - client = api.Api(user) - client.list_user_posts(user.username, listing_params) - assert mock_redditor.submissions.hot.call_count == 1 - client.list_user_comments(user.username, listing_params) - assert mock_redditor.comments.hot.call_count == 1 - - -def test_frontpage(mock_client): - """Test front page""" - client = api.Api(UserFactory.create()) - posts = client.front_page(DEFAULT_LISTING_PARAMS) - assert posts == mock_client.front.hot.return_value - mock_client.front.hot.assert_called_once_with(limit=25, params={"count": 0}) - - -def test_add_contributor(mock_client, mock_upsert_profile): - """Test add contributor""" - client_user = UserFactory.create() - contributor = UserFactory.create() - client = api.Api(client_user) - redditor = client.add_contributor(contributor.username, "channel") - mock_client.subreddit.return_value.contributor.add.assert_called_once_with( - contributor - ) - assert ( - ChannelGroupRole.objects.get( - channel__name="channel", role=ROLE_CONTRIBUTORS - ).group - in contributor.groups.all() - ) - mock_upsert_profile.assert_called_with(contributor.profile.id) - assert isinstance(redditor, Redditor) - assert redditor.name == contributor.username - - -def test_add_remove_contributor_no_user(mock_client): - """Test add and remove contributor in case the user does not exist""" - client_user = UserFactory.create() - client = api.Api(client_user) - with pytest.raises(NotFound): - client.add_contributor("fooooooo", "channel") - assert mock_client.subreddit.return_value.contributor.add.call_count == 0 - - with pytest.raises(NotFound): - client.remove_contributor("fooooooo", "channel") - assert mock_client.subreddit.return_value.contributor.remove.call_count == 0 - - -def test_remove_contributor(mock_client, mock_upsert_profile): - """Test remove contributor""" - client_user = UserFactory.create() - contributor = UserFactory.create() - client = api.Api(client_user) - client.remove_contributor(contributor.username, "channel") - mock_client.subreddit.return_value.contributor.remove.assert_called_once_with( - contributor - ) - assert ( - ChannelGroupRole.objects.get( - channel__name="channel", role=ROLE_CONTRIBUTORS - ).group - not in contributor.groups.all() - ) - mock_upsert_profile.assert_called_with(contributor.profile.id) - - -def test_list_contributors(mock_client): - """Test list contributor""" - client_user = UserFactory.create() - client = api.Api(client_user) - contributors = client.list_contributors("channel") - mock_client.subreddit.return_value.contributor.assert_called_once_with() - assert mock_client.subreddit.return_value.contributor.return_value == contributors - - -def test_add_moderator(mock_client, mock_upsert_profile): - """Test add moderator""" - client = api.Api(UserFactory.create()) - moderator = UserFactory.create() - # pylint: disable=assignment-from-no-return - redditor = client.add_moderator(moderator.username, "channel") - mock_client.subreddit.return_value.moderator.add.assert_called_once_with(moderator) - # API function doesn't return the moderator. To do this the view calls _list_moderators - assert redditor is None - assert ( - ChannelGroupRole.objects.get( - channel__name="channel", role=ROLE_MODERATORS - ).group - in moderator.groups.all() - ) - mock_upsert_profile.assert_called_with(moderator.profile.id) - - notification_setting = NotificationSettings.objects.last() - assert notification_setting.user == moderator - assert notification_setting.notification_type == NOTIFICATION_TYPE_MODERATOR - - -def test_add_moderator_no_user(mock_client): - """Test add moderator where user does not exist""" - client = api.Api(UserFactory.create()) - with pytest.raises(NotFound): - client.add_moderator("foo_username", "channel") - assert mock_client.subreddit.return_value.moderator.add.call_count == 0 - - with pytest.raises(NotFound): - client.remove_moderator("foo_username", "channel") - assert mock_client.subreddit.return_value.moderator.remove.call_count == 0 - - -def test_remove_moderator(mock_client, mock_upsert_profile): - """Test remove moderator""" - client = api.Api(UserFactory.create()) - moderator = UserFactory.create() - channel = Channel.objects.get(name="channel") - NotificationSettingsFactory.create( - channel=channel, notification_type=NOTIFICATION_TYPE_MODERATOR, user=moderator - ) - client.remove_moderator(moderator.username, "channel") - mock_client.subreddit.return_value.moderator.remove.assert_called_once_with( - moderator - ) - assert ( - ChannelGroupRole.objects.get( - channel__name="channel", role=ROLE_MODERATORS - ).group - not in moderator.groups.all() - ) - mock_upsert_profile.assert_called_with(moderator.profile.id) - assert NotificationSettings.objects.count() == 0 - - -def test_list_moderator(mock_client): - """Test list moderator""" - client = api.Api(UserFactory.create()) - moderators = client.list_moderators("channel") - mock_client.subreddit.return_value.moderator.assert_called_once_with(redditor=None) - assert mock_client.subreddit.return_value.moderator.return_value == moderators - - -@pytest.mark.parametrize("is_moderator", [True, False]) -def test_is_moderator(mock_client, is_moderator): - """is_moderator should pass a username to reddit to filter on""" - client = api.Api(UserFactory.create()) - # the actual return value here will be different against a reddit backend - # but truthiness of the return iterable is all that matters - mock_client.subreddit.return_value.moderator.return_value = ( - ["username"] if is_moderator else [] - ) - assert client.is_moderator("channel", "username") is is_moderator - mock_client.subreddit.return_value.moderator.assert_called_once_with( - redditor="username" - ) - - -def test_is_moderator_forbidden(mock_client): - """is_moderator should return False if the user is not allowed to make the API call""" - client = api.Api(UserFactory.create()) - # the actual return value here will be different against a reddit backend - # but truthiness of the return iterable is all that matters - mock_client.subreddit.return_value.moderator.side_effect = Forbidden( - Mock(status_code=403) - ) - assert client.is_moderator("channel", "username") is False - mock_client.subreddit.return_value.moderator.assert_called_once_with( - redditor="username" - ) - - -def test_is_moderator_missing_username(mock_client): # pylint: disable=unused-argument - """is_moderator should raise an exception if the username is missing""" - client = api.Api(UserFactory.create()) - # the actual return value here will be different against a reddit backend - # but truthiness of the return iterable is all that matters - with pytest.raises(ValueError) as ex: - client.is_moderator("channel", "") - assert ex.value.args[0] == "Missing moderator_name" - - -@pytest.mark.parametrize("verify_ssl", [True, False]) -def test_api_constructor(mocker, settings, verify_ssl): - """ - Api() should have a client which uses certain settings to configure its request session - """ - client_user = UserFactory.create() - session_stub = mocker.patch("channels.api.requests.Session", autospec=True) - refresh_token = "token" - session_stub.return_value.get.return_value.json.return_value = { - "refresh_token": refresh_token, - "access_token": "access_token", - "expires_in": 123, - } - session_stub.return_value.headers = {} - - settings.MITOPEN_REDDIT_CLIENT_ID = "client_id" - settings.MITOPEN_REDDIT_SECRET = "secret" - settings.MITOPEN_REDDIT_VALIDATE_SSL = verify_ssl - settings.MITOPEN_REDDIT_URL = "http://fake_url" - settings.VERSION = "1.2.3" - - client = api.Api(client_user) - config = client.reddit.config - assert config.short_url == settings.MITOPEN_REDDIT_URL - assert config.reddit_url == settings.MITOPEN_REDDIT_URL - assert config.oauth_url == settings.MITOPEN_REDDIT_URL - assert config.user_agent == "MIT-Open: {}".format(settings.VERSION) - assert config.client_id == settings.MITOPEN_REDDIT_CLIENT_ID - assert config.client_secret == settings.MITOPEN_REDDIT_SECRET - assert config.refresh_token == refresh_token - - -def test_api_constructor_error(mocker): - """ - If a non-401 response is received during Api() initialization, we should not delete the refresh - and access tokens. - """ - client_user = UserFactory.create() - - error = ResponseException(response=Mock(status_code=400)) - mocker.patch("channels.api._get_client", autospec=True, side_effect=error) - - RedditAccessToken.objects.create(user=client_user, token_value="token") - RedditRefreshToken.objects.create(user=client_user, token_value="token") - - with pytest.raises(ResponseException): - api.Api(client_user) - - # No attempt to clear tokens was made - assert RedditAccessToken.objects.count() == 1 - assert RedditRefreshToken.objects.count() == 1 - - -def test_api_constructor_anonymous_error(mocker): - """ - If a 401 error is raised and the user is anonymous we should just raise the exception instead of trying again - """ - error = ResponseException(response=Mock(status_code=401)) - get_client_mock = mocker.patch( - "channels.api._get_client", autospec=True, side_effect=error - ) - - with pytest.raises(ResponseException): - api.Api(None) - - assert get_client_mock.call_count == 1 - - -def test_api_constructor_401_once(mocker): - """ - If a 401 response is received during Api() initialization, we should delete the refresh - and access tokens and try once more. The second time should succeed - """ - client_user = UserFactory.create() - - mocked_client = Mock() - effect = [ResponseException(response=Mock(status_code=401)), mocked_client] - mocker.patch("channels.api._get_client", autospec=True, side_effect=effect) - - RedditAccessToken.objects.create(user=client_user, token_value="token") - RedditRefreshToken.objects.create(user=client_user, token_value="token") - - assert api.Api(client_user).reddit == mocked_client - - assert RedditAccessToken.objects.count() == 0 - assert RedditRefreshToken.objects.count() == 0 - - -def test_api_constructor_401_twice(mocker): - """ - If a 401 response is received during Api() initialization, we should delete the refresh - and access tokens and try once more. The second time should raise the error - """ - client_user = UserFactory.create() - - effect = [ - ResponseException(response=Mock(status_code=401)), - ResponseException(response=Mock(status_code=401)), - ] - mocker.patch("channels.api._get_client", autospec=True, side_effect=effect) - - RedditAccessToken.objects.create(user=client_user, token_value="token") - RedditRefreshToken.objects.create(user=client_user, token_value="token") - - with pytest.raises(ResponseException): - api.Api(client_user) - - assert RedditAccessToken.objects.count() == 0 - assert RedditRefreshToken.objects.count() == 0 - - -@pytest.mark.parametrize("is_none", [True, False]) -def test_api_constructor_none(is_none): - """Api(None) should initialize for an anonymous user""" - client = api.Api(None if is_none else AnonymousUser()) - assert bool(client.user.is_anonymous) is True - - -def test_get_or_create_auth_tokens(mocker, settings, user): - """ - get_or_create_auth_tokens will contact our plugin's API to get a refresh token for a user, or to create one - """ - settings.MITOPEN_REDDIT_URL = "http://fake" - refresh_token_url = urljoin( - settings.MITOPEN_REDDIT_URL, "/api/v1/generate_refresh_token" - ) - get_session_stub = mocker.patch("channels.api._get_session", autospec=True) - refresh_token_value = "refresh_token" - access_token_value = "access_token" - get_session_stub.return_value.get.return_value.json.return_value = { - "refresh_token": refresh_token_value, - "access_token": access_token_value, - "expires_in": 123, - } - assert RedditAccessToken.objects.filter(user=user).count() == 0 - assert RedditRefreshToken.objects.filter(user=user).count() == 0 - refresh_token, access_token = api.get_or_create_auth_tokens(user) - assert refresh_token.token_value == refresh_token_value - assert access_token.token_value == access_token_value - get_session_stub.return_value.get.assert_called_once_with( - refresh_token_url, params={"username": user.username} - ) - get_session_stub.return_value.get.return_value.json.assert_called_once_with() - assert RedditAccessToken.objects.filter(user=user).count() == 1 - assert RedditRefreshToken.objects.filter(user=user).count() == 1 - - -def test_add_subscriber(mock_client, mock_upsert_profile): - """Test add subscriber""" - client = api.Api(UserFactory.create()) - subscriber = UserFactory.create() - redditor = client.add_subscriber(subscriber.username, "channel") - mock_client.subreddit.return_value.subscribe.assert_called_once_with() - assert redditor.name == subscriber.username - assert ChannelSubscription.objects.filter( - channel__name="channel", user=subscriber - ).exists() - mock_upsert_profile.assert_called_with(subscriber.profile.id) - - -def test_add_remove_subscriber_no_user(mock_client): - """Test add and remove subscriber in case the user does not exist""" - client_user = UserFactory.create() - client = api.Api(client_user) - with pytest.raises(NotFound): - client.add_subscriber("fooooooo", "channel") - assert mock_client.subreddit.return_value.subscribe.call_count == 0 - - with pytest.raises(NotFound): - client.remove_contributor("fooooooo", "channel") - assert mock_client.subreddit.return_value.unsubscribe.call_count == 0 - - -def test_remove_subscriber(mock_client, mock_upsert_profile): - """Test remove subscriber""" - client = api.Api(UserFactory.create(username="mitodl")) - subscriber = UserFactory.create(username="01BTN7HY2SGT9677JXGNDDW859") - client.remove_subscriber(subscriber.username, "testchannel5") - mock_client.subreddit.return_value.unsubscribe.assert_called_once_with() - assert not ChannelSubscription.objects.filter( - channel__name="testchannel5", user=subscriber - ).exists() - mock_upsert_profile.assert_called_with(subscriber.profile.id) - - -def test_is_subscriber(mock_client): - """Test is subscriber""" - client = api.Api(UserFactory.create(username="mitodl")) - subscriber = UserFactory.create() - mock_client.user.subreddits.return_value = [ - _mock_channel(name="sub1"), - _mock_channel(name="sub2"), - ] - assert client.is_subscriber(subscriber.username, "channel") is False - assert client.is_subscriber(subscriber.username, "sub2") is True - assert mock_client.user.subreddits.call_count == 2 - - -def test_report_comment(mock_client): - """Test report_comment""" - client = api.Api(UserFactory.create()) - client.report_comment("id", "reason") - mock_client.comment.assert_called_once_with("id") - mock_client.comment.return_value.report.assert_called_once_with("reason") - - -def test_report_post(mock_client): - """Test report_post""" - client = api.Api(UserFactory.create()) - client.report_post("abc", "reason") - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.report.assert_called_once_with("reason") - - -def test_list_reports(mock_client): - """Test list_reports""" - client = api.Api(UserFactory.create()) - assert ( - client.list_reports("channel") - == mock_client.subreddit.return_value.mod.reports.return_value - ) - mock_client.subreddit.assert_called_once_with("channel") - mock_client.subreddit.return_value.mod.reports.assert_called_once_with() - - -def test_ignore_comment_reports(mock_client): - """Test ignore_comment_reports""" - client = api.Api(UserFactory.create()) - client.ignore_comment_reports("456") - mock_client.comment.assert_called_once_with("456") - mock_client.comment.return_value.mod.ignore_reports.assert_called_once_with() - - -def test_ignore_post_reports(mock_client): - """Test ignore_post_reports""" - client = api.Api(UserFactory.create()) - client.ignore_post_reports("abc") - mock_client.submission.assert_called_once_with(id="abc") - mock_client.submission.return_value.mod.ignore_reports.assert_called_once_with() - - -def test_add_post_subscription(mock_client, user): # pylint: disable=unused-argument - """Test add_post_subscription""" - client = api.Api(user) - assert not Subscription.objects.filter(user=user, post_id="abc").exists() - client.add_post_subscription("abc") - assert Subscription.objects.filter(user=user, post_id="abc").exists() - - -def test_remove_post_subscription(mock_client, user): # pylint: disable=unused-argument - """Test remove_post_subscription""" - client = api.Api(user) - client.add_post_subscription("abc") - assert Subscription.objects.filter(user=user, post_id="abc").exists() - client.remove_post_subscription("abc") - assert not Subscription.objects.filter(user=user, post_id="abc").exists() - - -def test_add_comment_subscription(mock_client, user): # pylint: disable=unused-argument - """Test add_comment_subscription""" - client = api.Api(user) - assert not Subscription.objects.filter( - user=user, post_id="abc", comment_id="def" - ).exists() - client.add_comment_subscription("abc", "def") - assert Subscription.objects.filter( - user=user, post_id="abc", comment_id="def" - ).exists() - - -def test_remove_comment_subscription( - mock_client, user -): # pylint: disable=unused-argument - """Test remove_comment_subscription""" - client = api.Api(user) - client.add_comment_subscription("abc", "def") - assert Subscription.objects.filter( - user=user, post_id="abc", comment_id="def" - ).exists() - client.remove_comment_subscription("abc", "def") - assert not Subscription.objects.filter( - user=user, post_id="abc", comment_id="def" - ).exists() - - -@pytest.mark.parametrize( - "link_type, expected", - [ - [None, [LINK_TYPE_LINK, LINK_TYPE_SELF]], - [LINK_TYPE_ANY, [LINK_TYPE_LINK, LINK_TYPE_SELF]], - [LINK_TYPE_LINK, [LINK_TYPE_LINK]], - [LINK_TYPE_SELF, [LINK_TYPE_SELF]], - ], -) -def test_get_allowed_post_types_from_link_type(link_type, expected): - """Tests that allowed_post_types is correctly determined from link_type""" - assert api.get_allowed_post_types_from_link_type(link_type) == expected diff --git a/channels/apps.py b/channels/apps.py deleted file mode 100644 index 5e658641ab..0000000000 --- a/channels/apps.py +++ /dev/null @@ -1,14 +0,0 @@ -"""Channel app""" -from django.apps import AppConfig - - -class ChannelsConfig(AppConfig): - """Channels AppConfig""" - - name = "channels" - - def ready(self): - """ - Ready handler. Import signals. - """ - import channels.signals # pylint: disable=unused-import diff --git a/channels/backpopulate_api.py b/channels/backpopulate_api.py deleted file mode 100644 index ca83ddaf04..0000000000 --- a/channels/backpopulate_api.py +++ /dev/null @@ -1,88 +0,0 @@ -"""API for backpopulating the db from reddit""" -from datetime import datetime, timezone -import logging - -from django.conf import settings -from django.contrib.auth import get_user_model - -from channels import api, utils -from channels.constants import ( - LINK_TYPE_LINK, - LINK_TYPE_SELF, - EXTENDED_POST_TYPE_ARTICLE, - DELETED_COMMENT_OR_POST_TEXT, -) - -User = get_user_model() -log = logging.getLogger() - - -def backpopulate_post(*, post, submission): - """ - Backpopulates a post with values from a submission - - Args: - post (channels.models.Post): the post to backpopulate - submission (Submission): the reddit submission to source data from - """ - - if not submission.is_self: - post.post_type = LINK_TYPE_LINK - post.url = submission.url - if post.link_meta is None and settings.EMBEDLY_KEY: - post.link_meta = utils.get_or_create_link_meta(submission.url) - elif getattr(post, "article", None): - post.post_type = EXTENDED_POST_TYPE_ARTICLE - else: - post.post_type = LINK_TYPE_SELF - post.text = submission.selftext - - try: - if submission.author: - post.author = User.objects.get(username=submission.author.name) - except User.DoesNotExist: - log.warning( - "Unable to find author '%s'' for submission '%s'", - submission.author.name, - submission.id, - ) - - post.title = submission.title - post.score = submission.ups - post.num_comments = submission.num_comments - post.edited = submission.edited if submission.edited is False else True - post.removed = submission.banned_by is not None - # this already has a values, but it's incorrect for records prior to the creation of the Post model - post.created_on = datetime.fromtimestamp(submission.created, tz=timezone.utc) - post.deleted = submission.selftext == DELETED_COMMENT_OR_POST_TEXT - post.save() - - -def backpopulate_comments(*, post, submission): - """ - Backpopulates a post's comments with values from a submission CommentTree - - Args: - post (channels.models.Post): the post to backpopulate - submission (Submission): the reddit submission to source data from - - Returns: - int: number of comments backpopulated - """ - submission.comments.replace_more(limit=None) - all_comments = submission.comments.list() - author_usernames = { - comment.author.name for comment in all_comments if comment.author - } - authors_by_username = User.objects.in_bulk(author_usernames, field_name="username") - update_count = 0 - - for comment in all_comments: - author = ( - authors_by_username.get(comment.author.name) if comment.author else None - ) - - api.create_comment(post=post, comment=comment, author=author) - update_count += 1 - - return update_count diff --git a/channels/backpopulate_api_test.py b/channels/backpopulate_api_test.py deleted file mode 100644 index 8e784b8927..0000000000 --- a/channels/backpopulate_api_test.py +++ /dev/null @@ -1,262 +0,0 @@ -"""Backpopulate API tests""" -from datetime import datetime, timezone - -import pytest - -from channels import backpopulate_api -from channels.constants import ( - LINK_TYPE_SELF, - LINK_TYPE_LINK, - EXTENDED_POST_TYPE_ARTICLE, - VALID_EXTENDED_POST_TYPES, - DELETED_COMMENT_OR_POST_TEXT, -) -from channels.factories.models import PostFactory, ArticleFactory, LinkMetaFactory -from channels.models import Comment -from channels.test_utils import assert_properties_eq -from open_discussions.factories import UserFactory - -pytestmark = pytest.mark.django_db - - -CREATED_TIMESTAMP = 1_547_749_404 -CREATED_ON_DATETIME = datetime(2019, 1, 17, 18, 23, 24, tzinfo=timezone.utc) - - -@pytest.mark.parametrize("post_type", VALID_EXTENDED_POST_TYPES) -@pytest.mark.parametrize("has_author", [True, False]) -@pytest.mark.parametrize("author_exists", [True, False]) -@pytest.mark.parametrize("is_removed", [True, False]) -@pytest.mark.parametrize("is_deleted", [True, False]) -@pytest.mark.parametrize("is_edited", [True, False]) -def test_backpopulate_post( - mocker, - settings, - post_type, - has_author, - author_exists, - is_removed, - is_deleted, - is_edited, -): # pylint: disable=too-many-arguments,too-many-locals - """Tests backpopulate_post""" - - settings.EMBEDLY_KEY = "abc" - author = UserFactory.create() - post = PostFactory.create(unpopulated=True, post_type=None) - if post_type == EXTENDED_POST_TYPE_ARTICLE: - post.article = ArticleFactory.create(author=author) - post.save() - mock_author = mocker.Mock() - mock_author.configure_mock(name=author.username if author_exists else "missing") - - if is_deleted: - selftext = DELETED_COMMENT_OR_POST_TEXT - elif post_type == LINK_TYPE_SELF: - selftext = "content" - else: - selftext = "" - - url, link_meta = None, None - if post_type == LINK_TYPE_LINK: - url = "http://example.com" - link_meta = LinkMetaFactory.create(url=url) - - mock_link_meta = mocker.patch( - "channels.utils.get_or_create_link_meta", return_value=link_meta - ) - - submission = mocker.Mock( - id=post.post_id, - title="title", - is_self=post_type != LINK_TYPE_LINK, - author=mock_author if has_author else None, - selftext=selftext, - url=url, - ups=12, - num_comments=123, - edited=is_edited, - banned_by="abc" if is_removed else None, - created=CREATED_TIMESTAMP, - ) - backpopulate_api.backpopulate_post(post=post, submission=submission) - - post.refresh_from_db() - - if post_type == LINK_TYPE_LINK: - mock_link_meta.assert_called_once_with(url) - else: - mock_link_meta.assert_not_called() - - assert_properties_eq( - post, - dict( - author=author if has_author and author_exists else None, - text=selftext if post_type == LINK_TYPE_SELF else None, - link_meta=link_meta, - title="title", - edited=is_edited, - score=12, - url=url, - num_comments=123, - created_on=CREATED_ON_DATETIME, - removed=is_removed, - deleted=is_deleted, - post_type=post_type, - ), - ) - - -def test_backpopulate_comments(mocker): - """Tests backpopulate_comments""" - author = UserFactory.create() - mock_author = mocker.Mock() - mock_author.configure_mock(name=author.username) - missing_author = mocker.Mock() - missing_author.configure_mock(name="missing") - post = PostFactory.create() - submission = mocker.Mock(comments=mocker.MagicMock()) - comments = [ - mocker.Mock( - id="1", - parent_id=f"t3_{post.post_id}", - author=mock_author, - body="comment", - score=12, - edited=False, - banned_by=None, - created=CREATED_TIMESTAMP, - ), - # deleted - mocker.Mock( - id="2", - parent_id=f"t3_{post.post_id}", - author=mock_author, - body=DELETED_COMMENT_OR_POST_TEXT, - score=12, - edited=False, - banned_by=None, - created=CREATED_TIMESTAMP, - ), - # removed - mocker.Mock( - id="3", - parent_id=f"t3_{post.post_id}", - author=mock_author, - body="comment removed", - score=12, - edited=False, - banned_by="abc", - created=CREATED_TIMESTAMP, - ), - # edited - mocker.Mock( - id="4", - parent_id=f"t3_{post.post_id}", - author=mock_author, - body="comment edited", - score=12, - edited=True, - banned_by="abc", - created=CREATED_TIMESTAMP, - ), - # missing author - mocker.Mock( - id="5", - parent_id=f"t3_{post.post_id}", - author=missing_author, - body="comment missing author", - score=12, - edited=False, - banned_by=None, - created=CREATED_TIMESTAMP, - ), - # no author - mocker.Mock( - id="6", - parent_id=f"t3_{post.post_id}", - author=None, - body="comment no author", - score=12, - edited=False, - banned_by=None, - created=CREATED_TIMESTAMP, - ), - ] - submission.comments.list.return_value = comments - - result = backpopulate_api.backpopulate_comments(post=post, submission=submission) - - assert result == len(comments) - - submission.comments.replace_more.assert_called_once_with(limit=None) - - expected_values = [ - dict( - author=author, - text="comment", - score=12, - edited=False, - removed=False, - deleted=False, - created_on=CREATED_ON_DATETIME, - ), - # deleted - dict( - author=author, - text=DELETED_COMMENT_OR_POST_TEXT, - score=12, - edited=False, - removed=False, - deleted=True, - created_on=CREATED_ON_DATETIME, - ), - # removed - dict( - author=author, - text="comment removed", - score=12, - edited=False, - removed=True, - deleted=False, - created_on=CREATED_ON_DATETIME, - ), - # edited - dict( - author=author, - text="comment edited", - score=12, - edited=True, - removed=True, - deleted=False, - created_on=CREATED_ON_DATETIME, - ), - # missing author - dict( - author=None, - text="comment missing author", - score=12, - edited=False, - removed=False, - deleted=False, - created_on=CREATED_ON_DATETIME, - ), - # no author - dict( - author=None, - text="comment no author", - score=12, - edited=False, - removed=False, - deleted=False, - created_on=CREATED_ON_DATETIME, - ), - ] - - populated_comments = list( - Comment.objects.order_by("id").filter( - comment_id__in=[comment.id for comment in comments] - ) - ) - for comment, expected in zip(populated_comments, expected_values): - assert_properties_eq(comment, expected) diff --git a/channels/conftest.py b/channels/conftest.py deleted file mode 100644 index 6fe8af53b0..0000000000 --- a/channels/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Test config for channels""" -import pytest - - -@pytest.fixture(autouse=True) -def mock_search_tasks(mocker): - """Patch the helpers so they don't fire celery tasks""" - return mocker.patch("channels.api.search_index_helpers") diff --git a/channels/constants.py b/channels/constants.py deleted file mode 100644 index 0feb66edb5..0000000000 --- a/channels/constants.py +++ /dev/null @@ -1,62 +0,0 @@ -"""Constants for channels""" -from enum import Enum, auto - - -CHANNEL_TYPE_PUBLIC = "public" -CHANNEL_TYPE_RESTRICTED = "restricted" -CHANNEL_TYPE_PRIVATE = "private" - -VALID_CHANNEL_TYPES = ( - CHANNEL_TYPE_PRIVATE, - CHANNEL_TYPE_PUBLIC, - CHANNEL_TYPE_RESTRICTED, -) - -VALID_CHANNEL_CHOICES = zip( - VALID_CHANNEL_TYPES, map(str.capitalize, VALID_CHANNEL_TYPES) -) - -LINK_TYPE_ANY = "any" -LINK_TYPE_LINK = "link" -LINK_TYPE_SELF = "self" - -VALID_LINK_TYPES = (LINK_TYPE_ANY, LINK_TYPE_LINK, LINK_TYPE_SELF) - -EXTENDED_POST_TYPE_ARTICLE = "article" - -VALID_EXTENDED_POST_TYPES = (LINK_TYPE_LINK, LINK_TYPE_SELF, EXTENDED_POST_TYPE_ARTICLE) -VALID_EXTENDED_POST_CHOICES = list( - zip(VALID_EXTENDED_POST_TYPES, VALID_EXTENDED_POST_TYPES) -) - -POSTS_SORT_HOT = "hot" -POSTS_SORT_TOP = "top" -POSTS_SORT_NEW = "new" - -VALID_POST_SORT_TYPES = (POSTS_SORT_HOT, POSTS_SORT_TOP, POSTS_SORT_NEW) - -COMMENTS_SORT_BEST = "best" -COMMENTS_SORT_NEW = "new" -COMMENTS_SORT_OLD = "old" - -VALID_COMMENT_SORT_TYPES = (COMMENTS_SORT_BEST, COMMENTS_SORT_NEW, COMMENTS_SORT_OLD) - -POST_TYPE = "post" -COMMENT_TYPE = "comment" - -ROLE_MODERATORS = "moderators" -ROLE_CONTRIBUTORS = "contributors" -ROLE_CHOICES = (ROLE_MODERATORS, ROLE_CONTRIBUTORS) - -WIDGET_LIST_CHANGE_PERM = "widgets.change_widgetlist" - -DELETED_COMMENT_OR_POST_TEXT = "[deleted]" - - -class VoteActions(Enum): - """An enum indicating the valid vote actions that can be taken for a post or comment""" - - UPVOTE = auto() - DOWNVOTE = auto() - CLEAR_UPVOTE = auto() - CLEAR_DOWNVOTE = auto() diff --git a/channels/exceptions.py b/channels/exceptions.py deleted file mode 100644 index 6d97c387f0..0000000000 --- a/channels/exceptions.py +++ /dev/null @@ -1,31 +0,0 @@ -""" -Exceptions for the channels app -""" -from rest_framework import status -from rest_framework.exceptions import APIException - - -class RemoveUserException(Exception): - """ - To be raised in case the provided user or username cannot be removed - """ - - -class ConflictException(APIException): - """ - An action would cause a conflict with an existing resource - """ - - status_code = status.HTTP_409_CONFLICT - default_detail = "Resource conflict." - default_code = "resource_conflict" - - -class GoneException(APIException): - """ - Existing resource is gone - """ - - status_code = status.HTTP_410_GONE - default_detail = "Resource is gone." - default_code = "resource_gone" diff --git a/channels/factories/__init__.py b/channels/factories/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/factories/models.py b/channels/factories/models.py deleted file mode 100644 index 62cc03d309..0000000000 --- a/channels/factories/models.py +++ /dev/null @@ -1,286 +0,0 @@ -"""Factories for making test data""" -import operator -import string -from functools import reduce - -import base36 -import faker -import factory -from factory import SubFactory -from factory.django import DjangoModelFactory -from factory.fuzzy import FuzzyChoice, FuzzyText -import pytz - -from django.contrib.contenttypes.models import ContentType -from channels import api -from channels.constants import ( - VALID_CHANNEL_TYPES, - LINK_TYPE_SELF, - LINK_TYPE_LINK, - VALID_EXTENDED_POST_TYPES, - EXTENDED_POST_TYPE_ARTICLE, -) -from channels.factories.utils import channel_name -from channels.models import ( - RedditRefreshToken, - RedditAccessToken, - Subscription, - LinkMeta, - Channel, - ChannelInvitation, - ChannelMembershipConfig, - Post, - Comment, - Article, - SpamCheckResult, -) -from open_discussions.factories import UserFactory - -FAKE = faker.Factory.create() - -DEFAULT_ALLOWED_POST_TYPES = reduce(operator.or_, Channel.allowed_post_types.values()) - - -class RedditRefreshTokenFactory(DjangoModelFactory): - """Factory for refresh tokens""" - - user = factory.SubFactory(UserFactory) - - token_value = factory.Faker("word") - - class Meta: - model = RedditRefreshToken - - -class RedditAccessTokenFactory(DjangoModelFactory): - """Factory for access tokens""" - - user = factory.SubFactory(UserFactory) - - token_value = factory.Faker("word") - token_expires_at = factory.LazyFunction( - lambda: FAKE.date_time_this_year( - before_now=False, after_now=True, tzinfo=pytz.utc - ) - ) - - class Meta: - model = RedditAccessToken - - class Params: - expired = factory.Trait( - token_expires_at=factory.LazyFunction( - lambda: FAKE.date_time_this_year( - before_now=True, after_now=False, tzinfo=pytz.utc - ) - ) - ) - - -class LinkMetaFactory(DjangoModelFactory): - """Factory for a channels.models.LinkMeta object""" - - url = FuzzyText(prefix="https://") - thumbnail = FuzzyText(prefix="https://", suffix=".jpg") - - class Meta: - model = LinkMeta - - -class ChannelMembershipConfigFactory(DjangoModelFactory): - """Factory for channels.models.ChannelMembershipConfig""" - - name = factory.Faker("text", max_nb_chars=50) - query = factory.LazyFunction(lambda: {"email__endswith": "@mit.edu"}) - - class Meta: - model = ChannelMembershipConfig - - -class ChannelFactory(DjangoModelFactory): - """Factory for a channels.models.Channel object""" - - name = factory.LazyAttributeSequence(channel_name) - allowed_post_types = DEFAULT_ALLOWED_POST_TYPES - title = factory.Faker("text", max_nb_chars=50) - channel_type = FuzzyChoice(VALID_CHANNEL_TYPES) - about = factory.List( - [ - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - ] - ) - moderator_notifications = False - - @factory.post_generation - def create_roles( - self, create, extracted, **kwargs - ): # pylint: disable=unused-argument - """Create the channel groups and roles after the channel is created""" - if not create: - return - - api.create_channel_groups_and_roles(self) - - class Meta: - model = Channel - - -class ChannelInvitationFactory(DjangoModelFactory): - """Factory for a channels.models.ChannelInvitation object""" - - inviter = SubFactory(UserFactory) - channel = SubFactory(ChannelFactory) - user = None - email = factory.Faker("email") - - class Params: - redeemed = factory.Trait( - user=SubFactory(UserFactory, email=factory.SelfAttribute("..email")) - ) - - class Meta: - model = ChannelInvitation - - -class PostFactory(DjangoModelFactory): - """Factory for a channels.models.Post object""" - - author = SubFactory(UserFactory) - channel = SubFactory(ChannelFactory) - link_meta = factory.Maybe( - factory.LazyAttribute(lambda post: post.post_type == LINK_TYPE_LINK), - yes_declaration=SubFactory(LinkMetaFactory), - no_declaration=None, - ) - - post_id = factory.Sequence(base36.dumps) - post_type = FuzzyChoice(VALID_EXTENDED_POST_TYPES) - - title = factory.Faker("text", max_nb_chars=50) - text = factory.Maybe( - factory.LazyAttribute(lambda post: post.post_type == LINK_TYPE_SELF), - yes_declaration=factory.Faker("text", max_nb_chars=100), - no_declaration=None, - ) - url = factory.Maybe( - factory.LazyAttribute(lambda post: post.post_type == LINK_TYPE_LINK), - yes_declaration=factory.Faker("url"), - no_declaration=None, - ) - article = factory.Maybe( - factory.LazyAttribute( - lambda post: post.post_type == EXTENDED_POST_TYPE_ARTICLE - ), - yes_declaration=factory.RelatedFactory( - "channels.factories.models.ArticleFactory", - "post", - # special case to support nullable author only on Post - author=factory.LazyAttribute( - lambda article: article.factory_parent.author or UserFactory.create() - ), - ), - no_declaration=None, - ) - - edited = False - removed = False - deleted = False - num_comments = 0 - - class Meta: - model = Post - - class Params: - # this trait denotes what a comment that hasn't had data populated from reddit looks like - unpopulated = factory.Trait( - title=None, - url=None, - text=None, - author=None, - edited=None, - removed=None, - deleted=None, - ) - is_link = factory.Trait(post_type=LINK_TYPE_LINK) - is_text = factory.Trait(post_type=LINK_TYPE_SELF) - is_article = factory.Trait(post_type=EXTENDED_POST_TYPE_ARTICLE) - - -class ArticleFactory(DjangoModelFactory): - """Factory for channels.models.Article""" - - author = factory.SubFactory(UserFactory) - post = factory.SubFactory( - "channels.factories.models.PostFactory", - is_article=True, - article=None, - author=factory.SelfAttribute("..author"), - ) - content = factory.List( - [ - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - ] - ) - - class Meta: - model = Article - - -class CommentFactory(DjangoModelFactory): - """Factory for a channels.models.Comment object""" - - post = SubFactory(PostFactory) - author = SubFactory(UserFactory) - - comment_id = FuzzyText(chars=string.ascii_lowercase) - parent_id = FuzzyText(chars=string.ascii_lowercase) - - text = factory.Faker("text", max_nb_chars=100) - edited = False - removed = False - deleted = False - - class Meta: - model = Comment - - class Params: - # this trait denotes what a comment that hasn't had data populated from reddit looks like - unpopulated = factory.Trait( - text=None, author=None, edited=None, removed=None, deleted=None - ) - - -class SubscriptionFactory(DjangoModelFactory): - """Factory for Subscription""" - - user = factory.SubFactory(UserFactory) - post_id = factory.Sequence(base36.dumps) - comment_id = factory.Maybe( - "is_comment", - yes_declaration=factory.Sequence(base36.dumps), - no_declaration=None, - ) - - class Meta: - model = Subscription - - class Params: - is_comment = False - - -class SpamCheckResultFactory(DjangoModelFactory): - """Factory for SpamCheckResult""" - - content_object = SubFactory(CommentFactory) - object_id = factory.SelfAttribute("content_object.id") - content_type = factory.LazyAttribute( - lambda o: ContentType.objects.get_for_model(o.content_object) - ) - user_ip = "111.11.111.1" - - class Meta: - model = SpamCheckResult diff --git a/channels/factories/reddit.py b/channels/factories/reddit.py deleted file mode 100644 index dc3bc4a9e8..0000000000 --- a/channels/factories/reddit.py +++ /dev/null @@ -1,541 +0,0 @@ -"""Factories for making test data""" -import copy -import json -import os -import time -from datetime import datetime - -import pytz -from django.contrib.auth import get_user_model -import factory -from factory.fuzzy import FuzzyChoice - -from channels import api -from channels.constants import VALID_CHANNEL_TYPES, LINK_TYPE_ANY -from channels.factories.utils import channel_name -from channels.models import Channel, Article -from open_discussions.factories import UserFactory - -STRATEGY_CREATE = "create" -STRATEGY_BUILD = "build" - -SERIALIZABLE_KEYS = ("comments", "posts", "channels", "users") - -User = get_user_model() - - -class RedditChannel: # pylint: disable=too-many-instance-attributes - """Simple factory representation for a reddit channel (subreddit)""" - - def __init__(self, **kwargs): - self.name = kwargs.get("name", None) - self.title = kwargs.get("title", None) - self.display_name = kwargs.get("display_name", None) - self.subreddit_type = kwargs.get("subreddit_type", None) - self.channel_type = kwargs.get("channel_type", None) - self.link_type = kwargs.get("link_type", None) - self.description = kwargs.get("description", None) - self.public_description = kwargs.get("public_description", None) - self.user_is_contributor = kwargs.get("user_is_contributor", True) - self.user_is_moderator = kwargs.get("user_is_moderator", True) - self.allowed_post_types = kwargs.get( - "allowed_post_types", Channel.allowed_post_types.keys() - ) - self.api = kwargs.get("api", None) - - -class RedditPost: # pylint: disable=too-many-instance-attributes - """Simple factory representation for a reddit post""" - - def __init__(self, **kwargs): - self.id = kwargs.get("id", None) - self.title = kwargs.get("title", None) - self.text = kwargs.get("text", None) - self.article_content = kwargs.get("article_content", None) - self.url = kwargs.get("url", None) - self.channel = kwargs.get("channel", None) - self.created = kwargs.get("created", None) - self.api = kwargs.get("api", None) - - -class RedditComment: - """Simple factory representation for a reddit comment""" - - def __init__(self, **kwargs): - self.id = kwargs.get("id", None) - self.text = kwargs.get("text", None) - self.comment_id = kwargs.get("comment_id", None) - self.post_id = kwargs.get("post_id", None) - self.children = kwargs.get("children", []) - self.created = kwargs.get("created", None) - self.api = kwargs.get("api", None) - - -def serialize_factory_result(obj): - """ - Serializes a factory object for JSON storage - - Args: - obj: the object to serialize - - Returns: - dict: serialized form of the object - """ - if isinstance(obj, User): - return {"username": obj.username} - elif isinstance(obj, RedditComment): - return { - "id": obj.id, - "text": obj.text, - "comment_id": obj.comment_id, - "post_id": obj.post_id, - "children": [serialize_factory_result(child) for child in obj.children], - } - elif isinstance(obj, RedditPost): - if obj.url is not None: - return {"id": obj.id, "title": obj.title, "url": obj.url} - elif Article.objects.filter(post__post_id=obj.id).exists(): - return { - "id": obj.id, - "title": obj.title, - "article_content": Article.objects.get(post__post_id=obj.id).content, - } - elif obj.text is not None: - return {"id": obj.id, "title": obj.title, "text": obj.text} - elif isinstance(obj, RedditChannel): - return { - "name": obj.name, - "title": obj.title, - "channel_type": obj.channel_type, - "description": obj.description, - "public_description": obj.public_description, - } - - raise Exception("Unable to serialize: {}".format(obj)) - - -def transform_to_factory_kwargs(data, original_kwargs=None, prefix=""): - """ - Transforms factory data into the correct kwargs to pass to the factory - - Args: - data (dict): dictionary of data from the factory_data file - original_kwargs (dict): kwargs passed into the factory function from code - prefix (str): argument prefix string - - Returns: - dict: the generate kwargs to call the factory with - """ - if original_kwargs is None: - original_kwargs = {} - - kwargs = { - key: value for key, value in original_kwargs.items() if key not in data.keys() - } - - for key, value in data.items(): - prefixed_key = "{}__{}".format(prefix, key) if prefix else key - - if original_kwargs is not None and prefixed_key in original_kwargs: - kwargs[prefixed_key] = original_kwargs[prefixed_key] - elif isinstance(value, dict): - kwargs.update(transform_to_factory_kwargs(value, prefix=prefixed_key)) - elif isinstance(value, list): - kwargs[prefixed_key] = [ - transform_to_factory_kwargs(item, prefix=prefixed_key) for item in value - ] - else: - kwargs[prefixed_key] = value - - return kwargs - - -class FactoryStore: - """ - Handles storage of factory data to/from disk - """ - - def __init__(self, name): - self.filename = "factory_data/{}.json".format(name) - self.data = {} - self._dirty = False - - def load(self): - """Loads the factory data from disk""" - if not self.exists(): - return - - with open(self.filename, "r") as f: - self.data = json.loads(f.read()) - - def exists(self): - """ - Returns True if the factory file exists - - Returns: - bool: True if the file exists - """ - return os.path.exists(self.filename) - - def write(self): - """Saves the accumulated factory data to disk""" - if not self._dirty: - return - - with open(self.filename, "w") as f: - json.dump(self.data, f, indent=2, sort_keys=True) - - self._dirty = False - - def get_instances(self, factory_type): - """ - Gets the dict of instances for the factory type - - Args: - factory_type (str): class of the factory to generate the post - - Returns: - dict: dictionary to store instances in - """ - if factory_type not in self.data: - self.data[factory_type] = {} - - return self.data[factory_type] - - def build_or_create(self, factory_cls, strategy, kwargs): - """ - Creates a new named object from the provided factory - - Args: - factory_cls (cls): class of the factory to generate the post - strategy (str): either a create or build strategy for the factory - kwargs (dict): the kwargs to pass to the factory - - Returns: - object: the created object - """ - if strategy == STRATEGY_CREATE: - return factory_cls.create(**kwargs) - elif strategy == STRATEGY_BUILD: - return factory_cls.build(**kwargs) - else: - raise ValueError('Factory strategy "{}" is invalid'.format(strategy)) - - def get_or_make( - self, factory_cls, factory_type, ident, strategy=STRATEGY_CREATE, **kwargs - ): - """ - Creates a new named object from the provided factory - - Args: - factory_cls (cls): class of the factory to generate the post - factory_type (str): class of the factory to generate the post - ident (str): the logical name of the post within the test - strategy (str): either a create or build strategy for the factory - - Returns: - object: the created object - """ - ident = str(ident) - instances = self.get_instances(factory_type) - if ident not in instances: - result = self.build_or_create(factory_cls, strategy, kwargs) - instances[ident] = serialize_factory_result(result) - self._dirty = True - time.sleep(3) # arbitrary sleep to let reddit async computations catch up - return result - else: - factory_kwargs = transform_to_factory_kwargs( - copy.deepcopy(instances[ident]), original_kwargs=kwargs - ) - return self.build_or_create(factory_cls, strategy, factory_kwargs) - - -class RedditFactories: - """ - Factory for users, channels, posts, and comments - """ - - def __init__(self, store): - self.store = store - - def user(self, ident, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named user - - Args: - ident (str): the logical name of the user within the test - strategy (str): either a create or build strategy for the factory - - Returns: - User: the created user - """ - user = self.store.get_or_make( - UserFactory, "users", ident, strategy=strategy, **kwargs - ) - api.get_or_create_auth_tokens(user) - return user - - def channel(self, ident, user, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named channel - - Args: - ident (str): the logical name of the channel within the test - strategy (str): either a create or build strategy for the factory - - Returns: - Channel: the created channel - """ - return self.store.get_or_make( - RedditChannelFactory, - "channels", - ident, - strategy=strategy, - api=api.Api(user), - **kwargs, - ) - - def text_post(self, ident, user, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named text post - - Args: - ident (str): the logical name of the post within the test - strategy (str): either a create or build strategy for the factory - - Returns: - Post: the created post - """ - return self.store.get_or_make( - RedditTextPostFactory, - "posts", - ident, - strategy=strategy, - api=api.Api(user), - **kwargs, - ) - - def link_post(self, ident, user, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named url post - - Args: - ident (str): the logical name of the post within the test - strategy (str): either a create or build strategy for the factory - - Returns: - Post: the created post - """ - return self.store.get_or_make( - RedditLinkPostFactory, - "posts", - ident, - strategy=strategy, - api=api.Api(user), - **kwargs, - ) - - def article_post(self, ident, user, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named article post - - Args: - ident (str): the logical name of the post within the test - strategy (str): either a create or build strategy for the factory - - Returns: - Post: the created post - """ - return self.store.get_or_make( - ArticlePostFactory, - "posts", - ident, - strategy=strategy, - api=api.Api(user), - **kwargs, - ) - - def comment(self, ident, user, strategy=STRATEGY_CREATE, **kwargs): - """ - Creates a new named comment - - Args: - ident (str): the logical name of the comment within the test - strategy (str): either a create or build strategy for the factory - - Returns: - Comment: the created comment - """ - return self.store.get_or_make( - RedditCommentFactory, - "comments", - ident, - strategy=strategy, - api=api.Api(user), - **kwargs, - ) - - -def _timestamp_to_iso_str(timestamp): - """ - Converts the timestamp value into a iso str - - Args: - timestamp(float): the timestamp to convert - - Returns: - str: converted timestamp - """ - return datetime.fromtimestamp(timestamp).replace(tzinfo=pytz.utc).isoformat() - - -class RedditChannelFactory(factory.Factory): - """Factory for reddit-persisted channels""" - - api = None - name = factory.LazyAttributeSequence(channel_name) - title = factory.Faker("text", max_nb_chars=50) - description = factory.Faker("text", max_nb_chars=500) - public_description = factory.Faker("text", max_nb_chars=80) - channel_type = FuzzyChoice(VALID_CHANNEL_TYPES) - link_type = LINK_TYPE_ANY - ga_tracking_id = None - allowed_post_types = Channel.allowed_post_types.keys() - - @factory.post_generation - def _create_in_reddit( - self, create, extracted, **kwargs - ): # pylint: disable=unused-argument - """Lazily create the channel""" - if not create: - return - if not self.api: - raise ValueError("RedditChannelFactory requires an api instance") - - self.api.create_channel( - self.name, - self.title, - channel_type=self.channel_type, - link_type=self.link_type, - description=self.description, - public_description=self.public_description, - allowed_post_types=self.allowed_post_types, - ) - - class Meta: - model = RedditChannel - - -class RedditPostFactory(factory.Factory): - """Abstract factory for posts""" - - api = None - id = None - created = None - title = factory.Faker("text", max_nb_chars=50) - channel = factory.SubFactory( - RedditChannelFactory, api=factory.SelfAttribute("..api") - ) - permalink = factory.Faker("word") - - class Meta: - abstract = True - model = RedditPost - - -class RedditTextPostFactory(RedditPostFactory): - """Factory for text posts""" - - text = factory.Faker("text", max_nb_chars=100) - article_content = None - - @factory.post_generation - def _create_in_reddit(self, *args, **kwargs): # pylint: disable=unused-argument - """Create the post""" - if not self.api: - raise ValueError("RedditTextPostFactory requires an api instance") - - reddit_post = self.api.create_post( - self.channel.name, - self.title, - text=self.text, - article_content=self.article_content, - ) - - self.id = reddit_post.id - self.created = _timestamp_to_iso_str(reddit_post.created) - self.permalink = reddit_post.permalink - - -class RedditLinkPostFactory(RedditPostFactory): - """Factory for link posts""" - - url = factory.Faker("uri") - - @factory.post_generation - def _create_in_reddit(self, *args, **kwargs): # pylint: disable=unused-argument - """Create the post""" - if not self.api: - raise ValueError("RedditLinkPostFactory requires an api instance") - - reddit_post = self.api.create_post(self.channel.name, self.title, url=self.url) - - self.id = reddit_post.id - self.created = _timestamp_to_iso_str(reddit_post.created) - self.permalink = reddit_post.permalink - - -class ArticlePostFactory(RedditTextPostFactory): - """Factory for article posts""" - - article_content = factory.List( - [ - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - factory.Dict({"node": "text", "value": factory.Faker("text")}), - ] - ) - text = None - - -class RedditCommentFactory(factory.Factory): - """Factory for comments""" - - id = None - api = None - comment_id = None - created = None - children = factory.LazyFunction(lambda: []) - text = factory.Faker("text", max_nb_chars=100) - - @factory.lazy_attribute - def post_id(self): - """Lazily create the post""" - if not self.api: - raise ValueError("RedditCommentFactory requires an api instance") - - if self.comment_id: - return None - - return RedditTextPostFactory.create(api=self.api).id - - @factory.post_generation - def create_in_reddit(self, *args, **kwargs): # pylint: disable=unused-argument - """Lazily create the comment""" - if not self.api: - raise ValueError("RedditCommentFactory requires an api instance") - - comment = self.api.create_comment( - self.text, - post_id=self.post_id - if not self.comment_id - else None, # only use post_id if top-level comment - comment_id=self.comment_id, - ) - - self.id = comment.id - self.created = _timestamp_to_iso_str(comment.created) - - class Meta: - model = RedditComment diff --git a/channels/factories/utils.py b/channels/factories/utils.py deleted file mode 100644 index e0c9a267e8..0000000000 --- a/channels/factories/utils.py +++ /dev/null @@ -1,14 +0,0 @@ -"""Factory utils""" -import faker - -from open_discussions.utils import now_in_utc - -FAKE = faker.Factory.create() - - -def channel_name(channel, index): # pylint: disable=unused-argument - """Generate a channel name from the current time and a random word""" - now = now_in_utc().timestamp() - return "{}_{}_{}".format(int(now), index, FAKE.word())[ - :21 - ] # maximum of 21-char channel names diff --git a/channels/management/__init__.py b/channels/management/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/management/commands/__init__.py b/channels/management/commands/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/management/commands/add_index_user_to_channels.py b/channels/management/commands/add_index_user_to_channels.py deleted file mode 100644 index 47180b6e04..0000000000 --- a/channels/management/commands/add_index_user_to_channels.py +++ /dev/null @@ -1,81 +0,0 @@ -"""Management command to add the indexing user account as a moderator to all channels""" -import sys -import traceback - -from django.conf import settings -from django.contrib.auth import get_user_model -from django.core.management.base import BaseCommand -from prawcore import Forbidden - -from channels.api import get_admin_api, Api -from channels.models import Channel - -User = get_user_model() - - -class Command(BaseCommand): - """Add indexing user as moderator to all channels""" - - help = "Add indexing user as moderator to all channels" - - def handle(self, *args, **options): - """Adds the indexing user as the moderator on all channels""" - - index_api = get_admin_api() - failed = False - for channel in Channel.objects.values_list("name", flat=True): - processed = False - for user in User.objects.filter(is_staff=True): - user_api = Api(user) - try: - existing_mods = sorted( - user_api.list_moderators(channel), - key=lambda moderator: moderator.date, - ) - if settings.INDEXING_API_USERNAME not in [ - mod.name for mod in existing_mods - ]: - if existing_mods and existing_mods[0].name != user.username: - # First mod is most powerful mod, use that one. - user_api = Api(User.objects.get(username=existing_mods[0])) - # Add the indexing user as moderator if not present - user_api.add_moderator(settings.INDEXING_API_USERNAME, channel) - # Remove all the old moderators in reverse order - for mod in reversed(existing_mods): - user_api.remove_moderator(mod.name, channel) - # Add back all the old moderators in original order - for mod in existing_mods: - index_api.add_moderator(mod.name, channel) - self.stdout.write( - self.style.SUCCESS( - "Channel '{}' SUCCESS: Indexing user added.".format( - channel - ) - ) - ) - else: - self.stdout.write( - self.style.SUCCESS( - "Channel '{}' Indexing user already present.".format( - channel - ) - ) - ) - processed = True - break - except Forbidden: - # Just try the next user - pass - except: # pylint: disable=bare-except - self.stderr.write( - "Channel '{}' ERROR: {}".format(channel, traceback.format_exc()) - ) - failed = True - if not processed: - self.stderr.write( - "No working user found for Channel '{}'".format(channel) - ) - failed = True - - if failed: - sys.exit(1) diff --git a/channels/management/commands/backpopulate_channel_fields.py b/channels/management/commands/backpopulate_channel_fields.py deleted file mode 100644 index d783a3399e..0000000000 --- a/channels/management/commands/backpopulate_channel_fields.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Management command to backpopulate channel fields""" -from django.core.management.base import BaseCommand - -from channels.tasks import populate_channel_fields -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Backpopulate channel fields from reddit""" - - help = "Backpopulate channel fields from reddit" - - def handle(self, *args, **options): - """Run celery task to backpopulate channel fields from reddit""" - task = populate_channel_fields.delay() - self.stdout.write( - "Started celery task {task} to populate channel fieldss".format(task=task) - ) - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write( - "Population of channel fields finished, took {} seconds".format( - total_seconds - ) - ) diff --git a/channels/management/commands/backpopulate_channel_widget_lists.py b/channels/management/commands/backpopulate_channel_widget_lists.py deleted file mode 100644 index b38fff93d7..0000000000 --- a/channels/management/commands/backpopulate_channel_widget_lists.py +++ /dev/null @@ -1,57 +0,0 @@ -"""Management command to create Channel WidgetList records""" -from django.db import transaction -from django.core.management.base import BaseCommand -from guardian.shortcuts import assign_perm - -from channels.api import get_admin_api -from channels.constants import ROLE_MODERATORS, WIDGET_LIST_CHANGE_PERM -from channels.models import Channel -from widgets.models import WidgetList, WidgetInstance -from widgets.serializers.markdown import MarkdownWidgetSerializer - - -class Command(BaseCommand): - """Create Channel WidgetList records""" - - help = "Create Channel WidgetList records" - - def handle(self, *args, **options): - """Adds WidgetLists to existing channels""" - api = get_admin_api() - for channel_id in Channel.objects.values_list("id", flat=True): - with transaction.atomic(): - channel = Channel.objects.select_for_update().get(id=channel_id) - self.stdout.write(f"Channel: {channel.name}") - - subreddit = api.get_channel(channel.name) - widget_list = None - - if channel.widget_list is None: - widget_list = WidgetList.objects.create() - WidgetInstance.objects.create( - widget_list=widget_list, - widget_type=MarkdownWidgetSerializer.name, - title="About this channel", - configuration={"source": subreddit.description}, - position=0, - ) - - channel.widget_list = widget_list - channel.save() - - moderator_group_role = ( - channel.channelgrouprole_set.filter(role=ROLE_MODERATORS) - .select_for_update() - .first() - ) - - if moderator_group_role: - assign_perm( - WIDGET_LIST_CHANGE_PERM, - moderator_group_role.group, - channel.widget_list, - ) - self.stdout.write(f"Permission added: {WIDGET_LIST_CHANGE_PERM}") - else: - self.stderr.write("\tNo moderator group found") - self.stdout.write("Done") diff --git a/channels/management/commands/backpopulate_post_and_comment_fields.py b/channels/management/commands/backpopulate_post_and_comment_fields.py deleted file mode 100644 index f6cd3f1643..0000000000 --- a/channels/management/commands/backpopulate_post_and_comment_fields.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Management command to backpopulate post and comment fields""" -from django.core.management.base import BaseCommand - -from channels.tasks import populate_post_and_comment_fields -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Backpopulates post and comment fields""" - - help = "Backpopulates post and comment fields" - - def handle(self, *args, **options): - """Backpopulates post and comment fields""" - task = populate_post_and_comment_fields.delay() - self.stdout.write( - "Started celery task {task} to backpopulate post and comment fields".format( - task=task - ) - ) - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write( - "Backpopulate of post and comment fields finished, took {} seconds".format( - total_seconds - ) - ) diff --git a/channels/management/commands/backpopulate_posts.py b/channels/management/commands/backpopulate_posts.py deleted file mode 100644 index 97d52ae64f..0000000000 --- a/channels/management/commands/backpopulate_posts.py +++ /dev/null @@ -1,56 +0,0 @@ -"""Management command for populating posts and comments from reddit""" -import sys - -import base36 -from django.core.management import BaseCommand - -from channels import tasks - - -class Command(BaseCommand): - """Populate posts and comments from reddit""" - - help = "Populate posts and comments from reddit" - - def add_arguments(self, parser): - parser.add_argument("--post", nargs="?", action="append") - - def handle(self, *args, **options): - """Populate posts and comments from reddit""" - - if options["post"]: - task = tasks.populate_posts_and_comments.delay( - [base36.loads(post_id) for post_id in options["post"]] - ) - else: - task = tasks.populate_all_posts_and_comments.delay() - - self.stdout.write( - "Started celery task {task} to backpopulate posts and comments".format( - task=task - ) - ) - self.stdout.write("Waiting on task...") - results = task.get() - # Results will look like this: - # results = { - # 'posts': 1734, - # 'comments': 3547, - # "failures": [ - # {"thing_type": "comment", "thing_id": "c4", "reason": "errors happen"}, - # {"thing_type": "post", "thing_id": "b9i", "reason": "more than you want them to"} - # ] - # } - self.stdout.write("Successes:") - self.stdout.write(f"Posts: {results['posts']}") - self.stdout.write(f"Comments: {results['comments']}") - failures = results["failures"] - if failures: - self.stdout.write("") - self.stdout.write("Failures:") - self.stdout.write("thing_type thing_id reason") - for failure in results["failures"]: - self.stdout.write( - f"{failure['thing_type']:<12} {failure['thing_id']:<10} {failure['reason']}" - ) - sys.exit(1) diff --git a/channels/management/commands/backpopulate_subscriptions_roles.py b/channels/management/commands/backpopulate_subscriptions_roles.py deleted file mode 100644 index 36cd5cd8a0..0000000000 --- a/channels/management/commands/backpopulate_subscriptions_roles.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Management command to create/update each user's channels.models.ChannelSubscription""" -from django.core.management.base import BaseCommand - -from channels.tasks import populate_subscriptions_and_roles -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Create/update each user's channel subscriptions and moderator/contributor roles""" - - help = "Create/update each user's ChannelSubscriptions and ChannelRoles (subscriber, moderator, contributor)" - - def handle(self, *args, **options): - """Run celery task to create/update channel subscriptions and moderator/contributor roles""" - task = populate_subscriptions_and_roles.delay() - self.stdout.write( - "Started celery task {task} to populate channel user roles and subscriptions".format( - task=task - ) - ) - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write( - "Population of channel user roles and subscriptions finished, took {} seconds".format( - total_seconds - ) - ) diff --git a/channels/management/commands/reclassify_spam.py b/channels/management/commands/reclassify_spam.py deleted file mode 100644 index 379c04caa6..0000000000 --- a/channels/management/commands/reclassify_spam.py +++ /dev/null @@ -1,80 +0,0 @@ -"""Reclassify posts/comments as spam or ham""" -from django.core.management.base import BaseCommand - -from channels import tasks -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Reclassify posts/comments as spam or ham""" - - help = __doc__ - - def add_arguments(self, parser): - parser.add_argument( - "--spam", - dest="is_spam", - action="store_true", - help="Mark comments and posts as spam.", - ) - - parser.add_argument( - "--ham", - dest="is_ham", - action="store_true", - help="Mark comments and posts as ham", - ) - - parser.add_argument( - "-c", - "--comment-id", - dest="comment_ids", - action="append", - default=[], - help="Comment ids to reclassify", - ) - parser.add_argument( - "-p", - "--post-id", - dest="post_ids", - action="append", - default=[], - help="Post ids to reclassify", - ) - parser.add_argument( - "--retire-users", - dest="retire_users", - action="store_true", - default=False, - help="Retire users", - ) - parser.add_argument( - "--skip-akismet", - dest="skip_akismet", - action="store_true", - default=False, - help="Skip submitting spam/ham reclassification to askimet", - ) - - def handle(self, *args, **options): - if options["is_spam"]: - is_spam = True - elif options["is_ham"]: - is_spam = False - else: - self.stdout.write("Either --spam or --ham flag is required") - return - - task = tasks.update_spam.delay( - spam=is_spam, - comment_ids=options["comment_ids"], - post_ids=options["post_ids"], - retire_users=options["retire_users"], - skip_akismet=options["skip_akismet"], - ) - - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write("Updated spam, took {} seconds".format(total_seconds)) diff --git a/channels/management/commands/set_channel_allow_top.py b/channels/management/commands/set_channel_allow_top.py deleted file mode 100644 index d6a39a3fc3..0000000000 --- a/channels/management/commands/set_channel_allow_top.py +++ /dev/null @@ -1,50 +0,0 @@ -"""Management command to set allow_top on channels""" -import sys - -from django.core.management.base import BaseCommand - -from channels.api import get_admin_api -from channels.models import Channel - - -class Command(BaseCommand): - """Sets allow_top=True on channels""" - - help = "Sets allow_top=True on channels" - - def add_arguments(self, parser): - parser.add_argument("--name", nargs="?", action="append") - parser.add_argument("--allow-top", action="store", default=True) - - def handle(self, *args, **options): - """Sets allow_top on channels""" - channels = Channel.objects.all() - - allow_top = options["allow_top"] - - if options["name"]: - channels = channels.filter(name__in=options["name"]) - - api = get_admin_api() - - self.stdout.write("Found {} channels to update".format(channels.count())) - - failed = False - for channel in channels: - try: - api.update_channel(channel.name, allow_top=allow_top) - self.stdout.write( - self.style.SUCCESS( - "Channel '{}' SUCCESS: set allow_top={}".format( - channel.name, allow_top - ) - ) - ) - except Exception as exc: # pylint: disable=broad-except - self.stderr.write( - "Channel '{}' ERROR: {}".format(channel.name, str(exc)) - ) - failed = True - - if failed: - sys.exit(1) diff --git a/channels/management/commands/subscribe_all_users_to_channel.py b/channels/management/commands/subscribe_all_users_to_channel.py deleted file mode 100644 index 4418e133e2..0000000000 --- a/channels/management/commands/subscribe_all_users_to_channel.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Subscribes all users to a new channel""" -from django.core.management.base import BaseCommand - -from channels import tasks -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Subscribes all users to a new channel""" - - help = "Subscribes all users to a new channel" - - def add_arguments(self, parser): - parser.add_argument("channel_names", metavar="CHANNEL_NAME", nargs="+") - - def handle(self, *args, **options): - task = tasks.subscribe_all_users_to_channels.delay( - channel_names=options["channel_names"] - ) - - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write( - "Subscribed all users to channels, took {} seconds".format(total_seconds) - ) diff --git a/channels/management/commands/update_managed_channel_memberships.py b/channels/management/commands/update_managed_channel_memberships.py deleted file mode 100644 index c40d247510..0000000000 --- a/channels/management/commands/update_managed_channel_memberships.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Update managed channel memberships""" -from django.core.management.base import BaseCommand - -from channels import tasks -from open_discussions.utils import now_in_utc - - -class Command(BaseCommand): - """Update managed channel memberships""" - - help = __doc__ - - def add_arguments(self, parser): - parser.add_argument("channel_names", metavar="CHANNEL_NAME", nargs="+") - - def handle(self, *args, **options): - task = tasks.update_memberships_for_managed_channels.delay( - channel_names=options["channel_names"] - ) - - self.stdout.write("Waiting on task...") - start = now_in_utc() - task.get() - total_seconds = (now_in_utc() - start).total_seconds() - self.stdout.write( - "Updated user channel memberships, took {} seconds".format(total_seconds) - ) diff --git a/channels/membership_api.py b/channels/membership_api.py deleted file mode 100644 index e226e8a171..0000000000 --- a/channels/membership_api.py +++ /dev/null @@ -1,101 +0,0 @@ -"""API for managing channel memberships""" -import logging -import operator -from functools import reduce - -from django.contrib.auth import get_user_model - -from channels.api import get_admin_api -from channels.models import Channel -from profiles.filters import UserFilter -from profiles.models import Profile - -log = logging.getLogger() -User = get_user_model() - - -def update_memberships_for_managed_channels(*, channel_ids=None, user_ids=None): - """ - Update channels that are managed and have channel memberhip configs - - Args: - channel_ids (list of int): - optional list of channel ids to generate memberships for - user_ids (list of int): - optional list of user ids to filter to - """ - # channels with a membership config - channels = Channel.objects.filter( - membership_is_managed=True, channel_membership_configs__isnull=False - ) - - if channel_ids: - channels = channels.filter(id__in=channel_ids) - for channel in channels: - update_memberships_for_managed_channel(channel, user_ids=user_ids) - - -def update_memberships_for_managed_channel(channel, *, user_ids=None): - """ - Update the channel memberships for a given channel. - If the channel is not managed, nothing happens. - - Args: - channel (Channel): - the channel to generate memberships for - user_ids (list of int): - optional list of user ids to filter to - """ - if ( - not channel.membership_is_managed - or not channel.channel_membership_configs.exists() - ): - log.debug( - "update_managed_channel_membership() called for a channel" - "that is not managed and/or has no channel membership configs: %s", - channel.name, - ) - return - - admin_api = get_admin_api() - active_users = User.objects.filter(is_active=True) - - # create a list of user queries as generated by UserFilter - filtered_user_queries = [ - UserFilter(config.query, queryset=active_users).qs - for config in channel.channel_membership_configs.all() - ] - # bitwise OR the queries together so that users that match ANY of them are added to the channel - users_in_channel = reduce( - operator.or_, - filtered_user_queries, - # specify an initial empty query in case we hit a race condition and - # `filtered_user_queries` ended up empty, otherwise `reduce()` would fail - User.objects.none(), - ) - - # ensure that we're not about to select all users, because this is almost definitely not what we want - # this can happen if the query configs didn't match ANY filter options - # this is a bit of a hack to protect this, but it's sufficient for now - if str(users_in_channel.query) == str(active_users.query): - log.error( - "Membership query configs for channel '%s' result in all active users being added, this is likely not desired", - channel.name, - ) - return - - # filter here, rather than earlier - # this ensure the check above works in all cases - if user_ids: - users_in_channel = users_in_channel.filter(id__in=user_ids) - - for user in users_in_channel.only("username").distinct(): - try: - admin_api.add_contributor(user.username, channel.name) - admin_api.add_subscriber(user.username, channel.name) - except Profile.DoesNotExist: - log.exception( - "Channel %s membership update failed due to missing user profile: %s", - channel.name, - user.username, - ) diff --git a/channels/membership_api_test.py b/channels/membership_api_test.py deleted file mode 100644 index 2715b1a52c..0000000000 --- a/channels/membership_api_test.py +++ /dev/null @@ -1,119 +0,0 @@ -"""Tests for membership api""" -import pytest - -from channels.factories.models import ChannelFactory, ChannelMembershipConfigFactory -from channels.membership_api import ( - update_memberships_for_managed_channels, - update_memberships_for_managed_channel, -) -from open_discussions.factories import UserFactory -from profiles.models import Profile - -pytestmark = pytest.mark.django_db - - -def test_update_memberships_for_managed_channels(mocker): - """ - Verify that update_memberships_for_managed_channels() calls - update_memberships_for_managed_channel() with configured channels - """ - # channels with no configs, shouldn't be used - ChannelFactory.create(membership_is_managed=True) - ChannelFactory.create(membership_is_managed=False) - - # channels with configs, only managed one should be used - managed_channel1 = ChannelFactory.create(membership_is_managed=True) - managed_channel1.channel_membership_configs.add( - ChannelMembershipConfigFactory.create() - ) - managed_channel2 = ChannelFactory.create(membership_is_managed=True) - managed_channel2.channel_membership_configs.add( - ChannelMembershipConfigFactory.create() - ) - nonmanaged_channel = ChannelFactory.create(membership_is_managed=False) - nonmanaged_channel.channel_membership_configs.add( - ChannelMembershipConfigFactory.create() - ) - - mock_update_memberships_for_managed_channel = mocker.patch( - "channels.membership_api.update_memberships_for_managed_channel", autospec=True - ) - - update_memberships_for_managed_channels( - channel_ids=[managed_channel1.id], user_ids=[1, 2, 3] - ) - - mock_update_memberships_for_managed_channel.assert_called_once_with( - managed_channel1, user_ids=[1, 2, 3] - ) - - -@pytest.mark.usefixtures("indexing_user") -@pytest.mark.parametrize("is_managed", [True, False]) -@pytest.mark.parametrize("has_configs", [True, False]) -def test_update_memberships_for_managed_channel(mocker, is_managed, has_configs): - """ "Verifies that update_memberships_for_managed_channel() adds matching users as members to a channel""" - mock_api = mocker.patch("channels.api.Api", autospec=True).return_value - channel = ChannelFactory.create(membership_is_managed=is_managed) - if has_configs: - channel.channel_membership_configs.add( - ChannelMembershipConfigFactory.create( - query={"email__endswith": "@matching.email"} - ) - ) - - user = UserFactory.create(email="user@matching.email", is_active=True) - UserFactory.create(email="user2@matching.email", is_active=True) - UserFactory.create(email="user3@matching.email", is_active=False) - - update_memberships_for_managed_channel(channel, user_ids=[user.id]) - - if is_managed and has_configs: - mock_api.add_subscriber.assert_called_once_with(user.username, channel.name) - mock_api.add_contributor.assert_called_once_with(user.username, channel.name) - else: - mock_api.add_subscriber.assert_not_called() - mock_api.add_contributor.assert_not_called() - - -@pytest.mark.usefixtures("indexing_user") -def test_update_memberships_for_managed_channel_missing_profile(mocker): - """Verify that an exception is logged if a profile is missing for a user""" - mock_api = mocker.patch("channels.api.Api", autospec=True).return_value - mock_api.add_contributor.side_effect = Profile.DoesNotExist - user = UserFactory.create(email="user@matching.email", is_active=True, profile=None) - channel = ChannelFactory.create(membership_is_managed=True) - channel.channel_membership_configs.add( - ChannelMembershipConfigFactory.create( - query={"email__endswith": "@matching.email"} - ) - ) - - update_memberships_for_managed_channel(channel, user_ids=[user.id]) - - mock_log = mocker.patch("channels.membership_api.log.exception") - update_memberships_for_managed_channel(channel, user_ids=[user.id]) - mock_log.assert_called_once_with( - "Channel %s membership update failed due to missing user profile: %s", - channel.name, - user.username, - ) - - -@pytest.mark.usefixtures("indexing_user") -def test_update_memberships_for_managed_channel_empty_queries(mocker): - """Verifies that update_memberships_for_managed_channel() bails if the queries would return all users""" - mock_api = mocker.patch("channels.api.Api", autospec=True).return_value - channel = ChannelFactory.create(membership_is_managed=True) - channel.channel_membership_configs.add( - ChannelMembershipConfigFactory.create( - query={} # an empty query should match all users - ) - ) - - UserFactory.create(is_active=True) # this user will match the `active_users` query - - update_memberships_for_managed_channel(channel) - - mock_api.add_subscriber.assert_not_called() - mock_api.add_contributor.assert_not_called() diff --git a/channels/migrations/0001_add_tokens.py b/channels/migrations/0001_add_tokens.py deleted file mode 100644 index 231ef0f93c..0000000000 --- a/channels/migrations/0001_add_tokens.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.5 on 2017-10-26 18:35 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] - - operations = [ - migrations.CreateModel( - name="RedditAccessToken", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("token_value", models.CharField(max_length=255, null=True)), - ("token_expires_at", models.DateTimeField(null=True)), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.CreateModel( - name="RedditRefreshToken", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("token_value", models.CharField(max_length=255, null=True)), - ( - "user", - models.OneToOneField( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - ] diff --git a/channels/migrations/0002_add_subscription.py b/channels/migrations/0002_add_subscription.py deleted file mode 100644 index 0fddd94718..0000000000 --- a/channels/migrations/0002_add_subscription.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-03-19 19:08 -from __future__ import unicode_literals - -import channels.models -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("channels", "0001_add_tokens"), - ] - - operations = [ - migrations.CreateModel( - name="Subscription", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("post_id", channels.models.Base36IntegerField()), - ("comment_id", channels.models.Base36IntegerField(null=True)), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="subscription", - unique_together=set([("user", "post_id", "comment_id")]), - ), - migrations.AlterIndexTogether( - name="subscription", index_together=set([("post_id", "comment_id")]) - ), - ] diff --git a/channels/migrations/0003_channels_comments_posts.py b/channels/migrations/0003_channels_comments_posts.py deleted file mode 100644 index 273e0f1fc2..0000000000 --- a/channels/migrations/0003_channels_comments_posts.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-05-29 16:04 -from __future__ import unicode_literals - -import channels.models -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0002_add_subscription")] - - operations = [ - migrations.CreateModel( - name="Channel", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("name", models.CharField(max_length=100, unique=True)), - ], - options={"abstract": False}, - ), - migrations.CreateModel( - name="Comment", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("comment_id", channels.models.Base36IntegerField(unique=True)), - ("parent_id", channels.models.Base36IntegerField(null=True)), - ], - options={"abstract": False}, - ), - migrations.CreateModel( - name="Post", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("post_id", channels.models.Base36IntegerField(unique=True)), - ( - "channel", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="channels.Channel", - ), - ), - ], - options={"abstract": False}, - ), - migrations.AddField( - model_name="comment", - name="post", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="channels.Post" - ), - ), - ] diff --git a/channels/migrations/0004_channel_membership_is_managed.py b/channels/migrations/0004_channel_membership_is_managed.py deleted file mode 100644 index 675ef7534c..0000000000 --- a/channels/migrations/0004_channel_membership_is_managed.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-07-05 21:39 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0003_channels_comments_posts")] - - operations = [ - migrations.AddField( - model_name="channel", - name="membership_is_managed", - field=models.BooleanField(default=False), - ) - ] diff --git a/channels/migrations/0005_membership_default_true.py b/channels/migrations/0005_membership_default_true.py deleted file mode 100644 index 820fdcaab5..0000000000 --- a/channels/migrations/0005_membership_default_true.py +++ /dev/null @@ -1,22 +0,0 @@ -""" -Set all membership_is_managed to true at the time this migration is run, -since all Channels come from micromasters at this point -""" -from django.db import migrations - - -def set_membership_to_true(apps, schema_editor): - """Set membership_is_managed to true""" - Channel = apps.get_model("channels", "Channel") - # At the point the migration runs - Channel.objects.all().update(membership_is_managed=True) - - -class Migration(migrations.Migration): - dependencies = [("channels", "0004_channel_membership_is_managed")] - - operations = [ - migrations.RunPython( - set_membership_to_true, reverse_code=migrations.RunPython.noop - ) - ] diff --git a/channels/migrations/0006_link_meta.py b/channels/migrations/0006_link_meta.py deleted file mode 100644 index da3b9e6979..0000000000 --- a/channels/migrations/0006_link_meta.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-07-19 14:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0005_membership_default_true")] - - operations = [ - migrations.CreateModel( - name="LinkMeta", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("url", models.URLField(max_length=2048, unique=True)), - ("thumbnail", models.URLField(blank=True, max_length=2048, null=True)), - ], - options={"abstract": False}, - ), - migrations.AddField( - model_name="post", - name="link_meta", - field=models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="channels.LinkMeta", - ), - ), - ] diff --git a/channels/migrations/0007_avatar_banner.py b/channels/migrations/0007_avatar_banner.py deleted file mode 100644 index 864ce2ae2b..0000000000 --- a/channels/migrations/0007_avatar_banner.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-07-20 21:41 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0006_link_meta")] - - operations = [ - migrations.AddField( - model_name="channel", - name="avatar", - field=models.ImageField(null=True, upload_to=""), - ), - migrations.AddField( - model_name="channel", - name="banner", - field=models.ImageField(null=True, upload_to=""), - ), - ] diff --git a/channels/migrations/0008_channel_ga_tracking_id.py b/channels/migrations/0008_channel_ga_tracking_id.py deleted file mode 100644 index 0be58f2073..0000000000 --- a/channels/migrations/0008_channel_ga_tracking_id.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-08-01 19:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0007_avatar_banner")] - - operations = [ - migrations.AddField( - model_name="channel", - name="ga_tracking_id", - field=models.CharField(blank=True, max_length=24, null=True), - ) - ] diff --git a/channels/migrations/0009_avatar_banner_filename.py b/channels/migrations/0009_avatar_banner_filename.py deleted file mode 100644 index b461aa183b..0000000000 --- a/channels/migrations/0009_avatar_banner_filename.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-08-14 17:51 -from __future__ import unicode_literals - -from django.db import migrations, models -import profiles.utils - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0008_channel_ga_tracking_id")] - - operations = [ - migrations.AlterField( - model_name="channel", - name="avatar", - field=models.ImageField( - max_length=2083, null=True, upload_to=profiles.utils.avatar_uri - ), - ), - migrations.AlterField( - model_name="channel", - name="banner", - field=models.ImageField( - max_length=2083, null=True, upload_to=profiles.utils.banner_uri - ), - ), - ] diff --git a/channels/migrations/0010_avatar_small_medium.py b/channels/migrations/0010_avatar_small_medium.py deleted file mode 100644 index ea43bd4542..0000000000 --- a/channels/migrations/0010_avatar_small_medium.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-08-16 16:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import profiles.utils - - -def nullify_avatars(apps, schema_editor): - """ - Set all avatars to None. Since we don't show avatars yet - this avoids the work of populating avatar_small and avatar_medium - """ - Channel = apps.get_model("channels", "Channel") - # At the point the migration runs - Channel.objects.all().update(avatar_medium=None, avatar_small=None, avatar=None) - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0009_avatar_banner_filename")] - - operations = [ - migrations.AddField( - model_name="channel", - name="avatar_medium", - field=models.ImageField( - max_length=2083, null=True, upload_to=profiles.utils.avatar_uri_medium - ), - ), - migrations.AddField( - model_name="channel", - name="avatar_small", - field=models.ImageField( - max_length=2083, null=True, upload_to=profiles.utils.avatar_uri_small - ), - ), - migrations.RunPython(nullify_avatars, reverse_code=migrations.RunPython.noop), - ] diff --git a/channels/migrations/0011_channel_subscriptions_roles.py b/channels/migrations/0011_channel_subscriptions_roles.py deleted file mode 100644 index 9ac563e3e0..0000000000 --- a/channels/migrations/0011_channel_subscriptions_roles.py +++ /dev/null @@ -1,95 +0,0 @@ -# Generated by Django 2.1.2 on 2018-11-08 19:16 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("auth", "0009_alter_user_last_name_max_length"), - ("channels", "0010_avatar_small_medium"), - ] - - operations = [ - migrations.CreateModel( - name="ChannelGroupRole", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ( - "role", - models.CharField( - choices=[ - ("moderators", "moderators"), - ("contributors", "contributors"), - ], - max_length=48, - ), - ), - ( - "channel", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="channels.Channel", - ), - ), - ( - "group", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="auth.Group" - ), - ), - ], - ), - migrations.CreateModel( - name="ChannelSubscription", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ( - "channel", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="channels.Channel", - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="channelsubscription", unique_together={("user", "channel")} - ), - migrations.AlterUniqueTogether( - name="channelgrouprole", unique_together={("channel", "group", "role")} - ), - migrations.AlterIndexTogether( - name="channelgrouprole", index_together={("channel", "role")} - ), - ] diff --git a/channels/migrations/0012_add_post_type_and_article.py b/channels/migrations/0012_add_post_type_and_article.py deleted file mode 100644 index 22a4e2db0b..0000000000 --- a/channels/migrations/0012_add_post_type_and_article.py +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by Django 2.1.2 on 2018-11-14 22:32 - -from django.conf import settings -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("channels", "0011_channel_subscriptions_roles"), - ] - - operations = [ - migrations.CreateModel( - name="Article", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("content", django.contrib.postgres.fields.jsonb.JSONField()), - ( - "author", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - options={"abstract": False}, - ), - migrations.AddField( - model_name="post", - name="post_type", - field=models.CharField( - choices=[("link", "link"), ("self", "self"), ("article", "article")], - max_length=10, - null=True, - ), - ), - migrations.AddField( - model_name="article", - name="post", - field=models.OneToOneField( - on_delete=django.db.models.deletion.CASCADE, to="channels.Post" - ), - ), - ] diff --git a/channels/migrations/0013_add_channel_widgetlist.py b/channels/migrations/0013_add_channel_widgetlist.py deleted file mode 100644 index 68b4195e5e..0000000000 --- a/channels/migrations/0013_add_channel_widgetlist.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by Django 2.1.2 on 2018-12-06 22:15 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("widgets", "0001_initial"), - ("channels", "0012_add_post_type_and_article"), - ] - - operations = [ - migrations.AddField( - model_name="channel", - name="widget_list", - field=models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="widgets.WidgetList", - ), - ) - ] diff --git a/channels/migrations/0014_add_allowed_post_types.py b/channels/migrations/0014_add_allowed_post_types.py deleted file mode 100644 index e4aeb5156c..0000000000 --- a/channels/migrations/0014_add_allowed_post_types.py +++ /dev/null @@ -1,21 +0,0 @@ -# Generated by Django 2.1.2 on 2018-12-11 18:37 - -import bitfield.models -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0013_add_channel_widgetlist")] - - operations = [ - migrations.AddField( - model_name="channel", - name="allowed_post_types", - field=bitfield.models.BitField( - [("link", "link"), ("self", "self"), ("article", "article")], - default=None, - null=True, - ), - ) - ] diff --git a/channels/migrations/0015_add_article_cover_image.py b/channels/migrations/0015_add_article_cover_image.py deleted file mode 100644 index 0deacd312f..0000000000 --- a/channels/migrations/0015_add_article_cover_image.py +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by Django 2.1.2 on 2018-12-18 19:27 - -from django.db import migrations, models -import open_discussions.utils -import profiles.utils - - -def article_image_uri_small(instance, filename): - """ - upload_to handler for Article.cover_image_small - """ - return open_discussions.utils.generate_filepath( - filename, instance.post.post_id, "_article_small", "article" - ) - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0014_add_allowed_post_types")] - - operations = [ - migrations.AddField( - model_name="article", - name="cover_image", - field=models.ImageField( - blank=True, - max_length=2083, - null=True, - upload_to=profiles.utils.article_image_uri, - ), - ), - migrations.AddField( - model_name="article", - name="cover_image_small", - field=models.ImageField( - blank=True, - max_length=2083, - null=True, - upload_to=article_image_uri_small, - ), - ), - ] diff --git a/channels/migrations/0016_add_channel_fields.py b/channels/migrations/0016_add_channel_fields.py deleted file mode 100644 index bb093b9109..0000000000 --- a/channels/migrations/0016_add_channel_fields.py +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by Django 2.1.2 on 2019-01-08 19:59 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0015_add_article_cover_image")] - - operations = [ - migrations.AddField( - model_name="channel", - name="channel_type", - field=models.CharField( - choices=[ - ("private", "Private"), - ("public", "Public"), - ("restricted", "Restricted"), - ], - max_length=20, - null=True, - ), - ), - migrations.AddField( - model_name="channel", - name="title", - field=models.CharField(max_length=100, null=True, unique=True), - ), - ] diff --git a/channels/migrations/0017_remove_unique.py b/channels/migrations/0017_remove_unique.py deleted file mode 100644 index 1ae434443a..0000000000 --- a/channels/migrations/0017_remove_unique.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 2.1.2 on 2019-01-10 18:31 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0016_add_channel_fields")] - - operations = [ - migrations.AlterField( - model_name="channel", - name="title", - field=models.CharField(max_length=100, null=True), - ) - ] diff --git a/channels/migrations/0018_add_post_and_comment_fields.py b/channels/migrations/0018_add_post_and_comment_fields.py deleted file mode 100644 index 477403a44f..0000000000 --- a/channels/migrations/0018_add_post_and_comment_fields.py +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by Django 2.1.5 on 2019-01-18 19:04 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("channels", "0017_remove_unique"), - ] - - operations = [ - migrations.AddField( - model_name="comment", - name="author", - field=models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - migrations.AddField( - model_name="comment", name="deleted", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="comment", name="edited", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="comment", name="removed", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="comment", name="score", field=models.BigIntegerField(null=True) - ), - migrations.AddField( - model_name="comment", name="text", field=models.TextField(null=True) - ), - migrations.AddField( - model_name="post", - name="author", - field=models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - migrations.AddField( - model_name="post", name="deleted", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="post", name="edited", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="post", - name="num_comments", - field=models.BigIntegerField(null=True), - ), - migrations.AddField( - model_name="post", name="removed", field=models.BooleanField(null=True) - ), - migrations.AddField( - model_name="post", name="score", field=models.BigIntegerField(null=True) - ), - migrations.AddField( - model_name="post", name="text", field=models.TextField(null=True) - ), - migrations.AddField( - model_name="post", - name="title", - field=models.CharField(max_length=300, null=True), - ), - migrations.AddField( - model_name="post", - name="url", - field=models.URLField(max_length=2048, null=True), - ), - ] diff --git a/channels/migrations/0019_channel_about.py b/channels/migrations/0019_channel_about.py deleted file mode 100644 index 3a2f612fdc..0000000000 --- a/channels/migrations/0019_channel_about.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 2.1.5 on 2019-01-29 16:04 - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0018_add_post_and_comment_fields")] - - operations = [ - migrations.AddField( - model_name="channel", - name="about", - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True), - ) - ] diff --git a/channels/migrations/0020_remove_article_thumbnail.py b/channels/migrations/0020_remove_article_thumbnail.py deleted file mode 100644 index b2cc5cfd9c..0000000000 --- a/channels/migrations/0020_remove_article_thumbnail.py +++ /dev/null @@ -1,12 +0,0 @@ -# Generated by Django 2.1.5 on 2019-02-06 19:52 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0019_channel_about")] - - operations = [ - migrations.RemoveField(model_name="article", name="cover_image_small") - ] diff --git a/channels/migrations/0021_post_preview_text.py b/channels/migrations/0021_post_preview_text.py deleted file mode 100644 index d7d2fb07d2..0000000000 --- a/channels/migrations/0021_post_preview_text.py +++ /dev/null @@ -1,14 +0,0 @@ -# Generated by Django 2.1.5 on 2019-02-12 18:57 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0020_remove_article_thumbnail")] - - operations = [ - migrations.AddField( - model_name="post", name="preview_text", field=models.TextField(null=True) - ) - ] diff --git a/channels/migrations/0022_add_channel_invitation.py b/channels/migrations/0022_add_channel_invitation.py deleted file mode 100644 index 26bbfbaf58..0000000000 --- a/channels/migrations/0022_add_channel_invitation.py +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by Django 2.1.5 on 2019-02-26 16:28 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("channels", "0021_post_preview_text"), - ] - - operations = [ - migrations.CreateModel( - name="ChannelInvitation", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("email", models.EmailField(max_length=254)), - ("redeemed", models.BooleanField(db_index=True, default=False)), - ( - "channel", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to="channels.Channel", - ), - ), - ( - "inviter", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="sent_invitations", - to=settings.AUTH_USER_MODEL, - ), - ), - ( - "user", - models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - related_name="received_invitations", - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="channelinvitation", unique_together={("channel", "email")} - ), - migrations.AlterIndexTogether( - name="channelinvitation", index_together={("email", "redeemed")} - ), - ] diff --git a/channels/migrations/0023_add_subscriptions_related_name.py b/channels/migrations/0023_add_subscriptions_related_name.py deleted file mode 100644 index 216dcce943..0000000000 --- a/channels/migrations/0023_add_subscriptions_related_name.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 2.1.11 on 2019-08-15 18:08 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0022_add_channel_invitation")] - - operations = [ - migrations.AlterField( - model_name="subscription", - name="user", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="content_subscriptions", - to=settings.AUTH_USER_MODEL, - ), - ) - ] diff --git a/channels/migrations/0024_channel_membership_config.py b/channels/migrations/0024_channel_membership_config.py deleted file mode 100644 index 121d6386f6..0000000000 --- a/channels/migrations/0024_channel_membership_config.py +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by Django 2.2.10 on 2020-03-12 19:42 - -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0023_add_subscriptions_related_name")] - - operations = [ - migrations.CreateModel( - name="ChannelMembershipConfig", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("name", models.CharField(max_length=150)), - ("query", django.contrib.postgres.fields.jsonb.JSONField(default=dict)), - ( - "channels", - models.ManyToManyField( - related_name="channel_membership_configs", to="channels.Channel" - ), - ), - ], - options={"abstract": False}, - ) - ] diff --git a/channels/migrations/0025_spamcheckresult.py b/channels/migrations/0025_spamcheckresult.py deleted file mode 100644 index b9d84e1711..0000000000 --- a/channels/migrations/0025_spamcheckresult.py +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by Django 2.2.13 on 2020-07-24 13:47 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("contenttypes", "0002_remove_content_type_name"), - ("channels", "0024_channel_membership_config"), - ] - - operations = [ - migrations.CreateModel( - name="SpamCheckResult", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("object_id", models.PositiveIntegerField(null=True)), - ("user_ip", models.CharField(blank=True, max_length=256, null=True)), - ("user_agent", models.TextField(blank=True, null=True)), - ("checks", models.IntegerField(default=1)), - ("is_spam", models.BooleanField(default=False)), - ( - "content_type", - models.ForeignKey( - limit_choices_to={"model__in": ("post", "comment")}, - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="contenttypes.ContentType", - ), - ), - ], - options={ - "unique_together": {("content_type", "object_id")}, - "index_together": {("content_type", "object_id")}, - }, - ) - ] diff --git a/channels/migrations/0026_channel_moderator_notifications.py b/channels/migrations/0026_channel_moderator_notifications.py deleted file mode 100644 index df884a28f5..0000000000 --- a/channels/migrations/0026_channel_moderator_notifications.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 2.2.13 on 2020-11-06 20:28 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0025_spamcheckresult")] - - operations = [ - migrations.AddField( - model_name="channel", - name="moderator_notifications", - field=models.BooleanField(default=False), - ) - ] diff --git a/channels/migrations/0027_post_exclude_from_frontpage_emails.py b/channels/migrations/0027_post_exclude_from_frontpage_emails.py deleted file mode 100644 index fd838aaf49..0000000000 --- a/channels/migrations/0027_post_exclude_from_frontpage_emails.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 2.2.20 on 2021-05-13 23:43 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0026_channel_moderator_notifications")] - - operations = [ - migrations.AddField( - model_name="post", - name="exclude_from_frontpage_emails", - field=models.BooleanField(null=True), - ) - ] diff --git a/channels/migrations/0028_blankable_fields.py b/channels/migrations/0028_blankable_fields.py deleted file mode 100644 index 1d4bee3c9f..0000000000 --- a/channels/migrations/0028_blankable_fields.py +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by Django 2.2.27 on 2022-06-09 20:36 - -from django.db import migrations, models -import profiles.utils - - -class Migration(migrations.Migration): - - dependencies = [("channels", "0027_post_exclude_from_frontpage_emails")] - - operations = [ - migrations.AlterField( - model_name="channel", - name="avatar_medium", - field=models.ImageField( - blank=True, - max_length=2083, - null=True, - upload_to=profiles.utils.avatar_uri_medium, - ), - ), - migrations.AlterField( - model_name="channel", - name="avatar_small", - field=models.ImageField( - blank=True, - max_length=2083, - null=True, - upload_to=profiles.utils.avatar_uri_small, - ), - ), - migrations.AlterField( - model_name="channel", - name="banner", - field=models.ImageField( - blank=True, - max_length=2083, - null=True, - upload_to=profiles.utils.banner_uri, - ), - ), - ] diff --git a/channels/migrations/0029_alter_article_content_alter_channel_about_and_more.py b/channels/migrations/0029_alter_article_content_alter_channel_about_and_more.py deleted file mode 100644 index ce60917130..0000000000 --- a/channels/migrations/0029_alter_article_content_alter_channel_about_and_more.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 4.1.9 on 2023-06-08 13:00 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("channels", "0028_blankable_fields"), - ] - - operations = [ - migrations.AlterField( - model_name="article", - name="content", - field=models.JSONField(), - ), - migrations.AlterField( - model_name="channel", - name="about", - field=models.JSONField(blank=True, null=True), - ), - migrations.AlterField( - model_name="channelmembershipconfig", - name="query", - field=models.JSONField(default=dict), - ), - ] diff --git a/channels/migrations/__init__.py b/channels/migrations/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/models.py b/channels/models.py deleted file mode 100644 index 9be651e9b8..0000000000 --- a/channels/models.py +++ /dev/null @@ -1,390 +0,0 @@ -"""Channels models""" -from uuid import uuid4 - -import base36 -from bitfield import BitField -from django.conf import settings -from django.contrib.auth.models import User, Group -from django.contrib.contenttypes.fields import GenericForeignKey -from django.contrib.contenttypes.models import ContentType -from django.db.models import JSONField -from django.db import models - -from widgets.models import WidgetList - -from channels.constants import ( - ROLE_CHOICES, - VALID_EXTENDED_POST_CHOICES, - VALID_CHANNEL_CHOICES, - LINK_TYPE_SELF, - LINK_TYPE_LINK, -) -from channels.utils import ( - AVATAR_MEDIUM_MAX_DIMENSION, - AVATAR_SMALL_MAX_DIMENSION, - reddit_slugify, - render_article_text, -) -from open_discussions.models import TimestampedModel -from open_discussions.utils import markdown_to_plain_text -from profiles.utils import ( - avatar_uri, - avatar_uri_small, - avatar_uri_medium, - banner_uri, - make_thumbnail, - article_image_uri, -) - - -class Base36IntegerField(models.BigIntegerField): - """Handles a Reddit base36 encoded string id which is stored as a base10 integer""" - - def get_prep_value(self, value): - """Converts from base36 to base10 for the DB""" - if value is not None: - return base36.loads(value) - return value - - def from_db_value( - self, value, expression, connection - ): # pylint: disable=unused-argument - """Converts from base10 to base36 for application""" - if value is None: - return value - return base36.dumps(value) - - def to_python(self, value): - """Converts from base10 to base36 for application""" - if not value: - return value - - return base36.dumps(value) - - -class RedditRefreshToken(models.Model): - """ - Tracks the refresh token for a given user - """ - - user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - - token_value = models.CharField(null=True, max_length=255) - - def __str__(self): - return "{}".format(self.token_value) - - -class RedditAccessToken(models.Model): - """ - Tracks the access tokens for a given user - - We generate a new one whenever the latest one expires and then clean up stale ones in a cron - """ - - user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - - token_value = models.CharField(null=True, max_length=255) - token_expires_at = models.DateTimeField(null=True) - - @classmethod - def valid_tokens_for_user(cls, user, threshold_date): - """ - Returns a QuerySet for valid tokens for the user and threshold_date - - Args: - user (User): the user to find tokens for - threshold_date (datetime): the date before which the tokens should still be valid - - Returns: - QuerySet: query set filtered to nonexpired tokens sorted by most recent first - """ - return cls.objects.filter( - user=user, token_expires_at__gt=threshold_date - ).order_by("-token_expires_at") - - def __str__(self): - return "{} expires: {}".format(self.token_value, self.token_expires_at) - - -class Subscription(TimestampedModel): - """ - Tracks user subscriptions to a post or a comment - """ - - user = models.ForeignKey( - settings.AUTH_USER_MODEL, - on_delete=models.CASCADE, - related_name="content_subscriptions", - ) - post_id = Base36IntegerField() - comment_id = Base36IntegerField(null=True) - - def __str__(self): - """Prints the subscription as a str""" - return "{} is subscribed to post_id: {}, comment_id: {}".format( - self.user, self.post_id, self.comment_id - ) - - class Meta: - unique_together = (("user", "post_id", "comment_id"),) - index_together = (("post_id", "comment_id"),) - - -class Channel(TimestampedModel): - """ - Keep track of channels which are stored in reddit - """ - - name = models.CharField(unique=True, max_length=100) - title = models.CharField(max_length=100, null=True) - membership_is_managed = models.BooleanField(default=False) - - avatar = models.ImageField(null=True, max_length=2083, upload_to=avatar_uri) - avatar_small = models.ImageField( - null=True, max_length=2083, upload_to=avatar_uri_small, blank=True - ) - avatar_medium = models.ImageField( - null=True, max_length=2083, upload_to=avatar_uri_medium, blank=True - ) - banner = models.ImageField( - null=True, max_length=2083, upload_to=banner_uri, blank=True - ) - ga_tracking_id = models.CharField(max_length=24, blank=True, null=True) - widget_list = models.ForeignKey(WidgetList, on_delete=models.SET_NULL, null=True) - about = JSONField(blank=True, null=True) - - # Bitfield mutates the list passed to - allowed_post_types = BitField(flags=VALID_EXTENDED_POST_CHOICES, null=True) - channel_type = models.CharField( - max_length=20, choices=VALID_CHANNEL_CHOICES, null=True - ) - moderator_notifications = models.BooleanField(default=False, null=False) - - def save( - self, *args, update_image=False, **kwargs - ): # pylint: disable=arguments-differ - if update_image: - if self.avatar: - small_thumbnail = make_thumbnail( - self.avatar, AVATAR_SMALL_MAX_DIMENSION - ) - medium_thumbnail = make_thumbnail( - self.avatar, AVATAR_MEDIUM_MAX_DIMENSION - ) - - # name doesn't matter here, we use upload_to to produce that - self.avatar_small.save(f"{uuid4().hex}.jpg", small_thumbnail) - self.avatar_medium.save(f"{uuid4().hex}.jpg", medium_thumbnail) - else: - self.avatar_small = None - self.avatar_medium = None - - return super().save(*args, **kwargs) - - @property - def subscribers(self): - """ - Retrieve channel subscribers - - Returns: - iterable of User: users who are channel subscribers - - """ - return User.objects.filter( - is_active=True, - id__in=ChannelSubscription.objects.filter(channel=self) - .order_by("created_on") - .values_list("user", flat=True), - ).iterator() - - def __str__(self): - return f"{self.name}" - - -class ChannelInvitation(TimestampedModel): - """A pending invitation to a channel""" - - channel = models.ForeignKey(Channel, on_delete=models.CASCADE) - inviter = models.ForeignKey( - settings.AUTH_USER_MODEL, - on_delete=models.CASCADE, - related_name="sent_invitations", - ) - user = models.ForeignKey( - settings.AUTH_USER_MODEL, - on_delete=models.CASCADE, - null=True, - related_name="received_invitations", - ) - email = models.EmailField() - redeemed = models.BooleanField(default=False, db_index=True) - - class Meta: - index_together = (("email", "redeemed"),) - unique_together = (("channel", "email"),) - - def __str__(self): - return f"Invitation to {self.channel.title} by {self.inviter.profile.name} for {self.email}" - - -class LinkMeta(TimestampedModel): - """ - The thumbnail embedly provides for a particular URL - """ - - url = models.URLField(unique=True, max_length=2048) - thumbnail = models.URLField(blank=True, null=True, max_length=2048) - - def __str__(self): - return f"{self.url} with thumbnail {self.thumbnail}" - - -class Post(TimestampedModel): - """Data model for posts""" - - channel = models.ForeignKey(Channel, on_delete=models.CASCADE) - author = models.ForeignKey(User, null=True, on_delete=models.CASCADE) - link_meta = models.ForeignKey(LinkMeta, null=True, on_delete=models.CASCADE) - - post_id = Base36IntegerField(unique=True) - post_type = models.CharField( - max_length=10, choices=VALID_EXTENDED_POST_CHOICES, null=True - ) - - title = models.CharField(max_length=300, null=True) - text = models.TextField(null=True) - preview_text = models.TextField(null=True) - url = models.URLField(max_length=2048, null=True) - score = models.BigIntegerField(null=True) - num_comments = models.BigIntegerField(null=True) - edited = models.BooleanField(null=True) - removed = models.BooleanField(null=True) - deleted = models.BooleanField(null=True) - exclude_from_frontpage_emails = models.BooleanField(null=True) - - @property - def plain_text(self): - """Returns a plaintext represention of the post""" - if getattr(self, "article", None) is not None: - return render_article_text(self.article.content) - elif self.post_type == LINK_TYPE_SELF: - return markdown_to_plain_text(self.text) - elif self.post_type == LINK_TYPE_LINK: - return self.preview_text - return None - - @property - def thumbnail_url(self): - """Returns the url to the thumbnail""" - return self.link_meta.thumbnail if self.link_meta is not None else None - - @property - def slug(self): - """Slugifies the post title""" - return reddit_slugify(self.title) - - def __str__(self): - return f"{self.post_id} on channel {self.channel}" - - -class Article(TimestampedModel): - """Data for an article post_type""" - - author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - post = models.OneToOneField(Post, on_delete=models.CASCADE) - cover_image = models.ImageField( - null=True, blank=True, max_length=2083, upload_to=article_image_uri - ) - content = JSONField() - - def __str__(self): - return f"{self.post.id} on channel {self.post.channel} by {self.author.profile.name}" - - -class Comment(TimestampedModel): - """Data model for post comments""" - - post = models.ForeignKey(Post, on_delete=models.CASCADE) - author = models.ForeignKey(User, null=True, on_delete=models.CASCADE) - - comment_id = Base36IntegerField(unique=True) - parent_id = Base36IntegerField(null=True) - - text = models.TextField(null=True) - score = models.BigIntegerField(null=True) - edited = models.BooleanField(null=True) - removed = models.BooleanField(null=True) - deleted = models.BooleanField(null=True) - - def __str__(self): - return f"{self.comment_id} on post {self.post}" - - -class ChannelSubscription(TimestampedModel): - """ - Keep track of channel subscribers - """ - - channel = models.ForeignKey(Channel, on_delete=models.CASCADE) - user = models.ForeignKey(User, on_delete=models.CASCADE) - - class Meta: - unique_together = (("user", "channel"),) - - def __str__(self): - return f"User {self.user.username} subscription for Channel {self.channel.name}" - - -class ChannelGroupRole(TimestampedModel): - """ - Keep track of channel moderators and contributors - """ - - channel = models.ForeignKey(Channel, on_delete=models.CASCADE) - group = models.ForeignKey(Group, on_delete=models.CASCADE) - role = models.CharField(max_length=48, choices=zip(ROLE_CHOICES, ROLE_CHOICES)) - - class Meta: - unique_together = (("channel", "group", "role"),) - index_together = (("channel", "role"),) - - def __str__(self): - return ( - f"Group {self.group.name} role {self.role} for Channel {self.channel.name}" - ) - - -class ChannelMembershipConfig(TimestampedModel): - """Data model for managed channel membership configuration""" - - name = models.CharField(max_length=150) - query = JSONField(default=dict) - channels = models.ManyToManyField( - Channel, related_name="channel_membership_configs" - ) - - def __str__(self): - return self.name - - -class SpamCheckResult(TimestampedModel): - """Data model for spam checks""" - - content_type = models.ForeignKey( - ContentType, - null=True, - limit_choices_to={"model__in": ("post", "comment")}, - on_delete=models.CASCADE, - ) - object_id = models.PositiveIntegerField(null=True) - content_object = GenericForeignKey("content_type", "object_id") - - user_ip = models.CharField(max_length=256, null=True, blank=True) - user_agent = models.TextField(null=True, blank=True) - checks = models.IntegerField(default=1) - is_spam = models.BooleanField(default=False) - - class Meta: - unique_together = (("content_type", "object_id"),) - index_together = (("content_type", "object_id"),) diff --git a/channels/models_test.py b/channels/models_test.py deleted file mode 100644 index d650f8b7a7..0000000000 --- a/channels/models_test.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Tests for channel models""" -import pytest - -from channels.factories.models import ChannelMembershipConfigFactory, ChannelFactory -from open_discussions import features - - -@pytest.mark.django_db -@pytest.mark.parametrize("moira_enabled", [True, False]) -@pytest.mark.parametrize( - "query", - [ - {"email__iendswith": "@.mit.edu"}, - {"moira_lists": ["list1"]}, - {"moira_lists": ["list1", "list2"]}, - ], -) -def test_channel_membership_config_save(mocker, settings, query, moira_enabled): - """Test that update_moira_list_users is called for every moira list in the config""" - settings.FEATURES[features.MOIRA] = moira_enabled - mock_update_moira = mocker.patch("moira_lists.tasks.update_moira_list_users.delay") - channel = ChannelFactory.create(membership_is_managed=True) - config = ChannelMembershipConfigFactory.create() - channel.channel_membership_configs.add(config) - config.query = query - config.save() - if moira_enabled and "moira_lists" in query: - mock_update_moira.assert_called_once_with( - query["moira_lists"], channel_ids=[channel.id] - ) - else: - mock_update_moira.assert_not_called() diff --git a/channels/proxies.py b/channels/proxies.py deleted file mode 100644 index 0fe3e8fc7f..0000000000 --- a/channels/proxies.py +++ /dev/null @@ -1,199 +0,0 @@ -"""Object proxies""" -from django.utils.functional import SimpleLazyObject -from wrapt import ObjectProxy - -from channels.models import Channel, Post - - -class PostProxy(ObjectProxy): - # pylint: disable=protected-access - """ - Proxies properties to a Submission or a Post - - This allows properties to be proxied to the Submission unless otherwise overridden - """ - - def __init__(self, submission, post): - """ - Args: - submission (praw.models.reddit.submission.Submission): a PRAW submission object - post (channels.models.Post): the post associated with the submission - """ - # treat submission as the primary proxy target - super().__init__(submission) - # store the post so @property overrides can reference it - self._self_submission = submission - self._self_post = post - - def __eq__(self, other): - """PostProxy equality delegates to submission and post equality checks""" - # isinstance doesn't work here because ObjectProxy spoofs that - if hasattr(other, "_self_submission") and hasattr(other, "_self_post"): - # check the submission first because post may be lazy - return ( - other._self_submission == self._self_submission - and other._self_post == self._self_post - ) - return False - - def __str__(self): - """String representation""" - return f"PostProxy for submission: {self._self_submission.id}" - - @property - def channel(self): - """Return the post channel""" - return self._self_post.channel - - @property - def link_meta(self): - """Return the LinkMeta for this post""" - return self._self_post.link_meta - - @property - def post_type(self): - """Return the post_type""" - return self._self_post.post_type - - @property - def article(self): - """Return the Article for this post""" - return self._self_post.article if hasattr(self._self_post, "article") else None - - @property - def article_content(self): - """Return the article content for this post""" - return self.article.content if self.article is not None else None - - @property - def preview_text(self): - """Return preview_text for this post""" - return self._self_post.preview_text - - @property - def removed(self): - """Return removed flag for this post""" - return self._self_post.removed - - -def proxy_post(submission): - """ - Helper function to proxy a submission - - Args: - submission (praw.models.Submission): submission to proxy - - Returns: - ProxyPost: proxied post - """ - return PostProxy( - submission, SimpleLazyObject(lambda: Post.objects.get(post_id=submission.id)) - ) - - -def proxy_posts(submissions): - """ - Helper function to proxy submissions and posts. - - Args: - submissions (list of praw.models.Submission): - A list of submissions - - Returns: - list of ProxyPost: list of proxied posts - """ - posts = { - post.post_id: post - for post in Post.objects.filter( - post_id__in=[submission.id for submission in submissions] - ).select_related("article", "link_meta", "channel") - } - return [ - PostProxy(submission, posts[submission.id]) - for submission in submissions - if submission.id in posts - ] - - -class ChannelProxy(ObjectProxy): - """ - Proxies properties to a Subreddit or a Channel - - This allows properties to be proxied to the Subreddit unless otherwise overridden - """ - - def __init__(self, subreddit, channel): - """ - Args: - subreddit (praw.models.reddit.subreddit.Subreddit): a PRAW subreddit object - channel (channels.models.Channel): the channel associated with the subreddit - """ - # treat subreddit as the primary proxy target - super().__init__(subreddit) - # store the channel so @property overrides can reference it - self._self_subreddit = subreddit - self._self_channel = channel - - def __getattr__(self, name): - """ - Avoid proxying __getattr__ but "proxy" to the wrapped object on any non-local fields - """ - if name in ( - "allowed_post_types", - "membership_is_managed", - "avatar", - "avatar_small", - "avatar_medium", - "ga_tracking_id", - "banner", - "widget_list_id", - "about", - ): - return getattr(self._self_channel, name) - else: - return getattr(self.__wrapped__, name) - - @property - def channel(self): - """Read-only access to the channel""" - return self._self_channel - - -def proxy_channel(subreddit): - """ - Helper function to proxy a submission - - Args: - subreddit (praw.models.Subreddit): subreddit to proxy - - Returns: - ChannelProxy: proxied channel - """ - return ChannelProxy( - subreddit, - SimpleLazyObject(lambda: Channel.objects.get(name=subreddit.display_name)), - ) - - -def proxy_channels(subreddits): - """ - Helper function to proxy submissions and posts. - - Args: - subreddits (list of praw.models.Subreddit): - A list of subreddits - - Returns: - list of ChannelProxy: list of proxied channels - """ - channels = { - channel.name: channel - for channel in Channel.objects.filter( - name__in=[subreddit.display_name for subreddit in subreddits] - ) - } - return [ - ChannelProxy(subreddit, channels[subreddit.display_name]) - for subreddit in subreddits - if subreddit.display_name in channels - ] diff --git a/channels/serializers/__init__.py b/channels/serializers/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/serializers/base.py b/channels/serializers/base.py deleted file mode 100644 index c5db9df9b2..0000000000 --- a/channels/serializers/base.py +++ /dev/null @@ -1,45 +0,0 @@ -"""Base serializers""" -from django.contrib.auth import get_user_model - -from rest_framework import serializers - -from profiles.models import Profile - -User = get_user_model() - - -class RedditObjectSerializer(serializers.Serializer): - """Serializer class for reddit objects (posts, comments)""" - - def _get_user(self, instance): - """ - Look up user in the context from the post author - - Args: - instance (praw.models.Submission): - The post to look up the user for - """ - if instance.author is None: - return None - if "users" in self.context: - return self.context["users"].get(instance.author.name) - else: - return ( - User.objects.filter(username=instance.author.name) - .select_related("profile") - .first() - ) - - def _get_profile(self, instance): - """Return a user profile if it exists, else None - Args: - instance (praw.models.Submission): - The post to look up the user for - - Returns: - profiles.models.Profile: the user profile if it exists - """ - try: - return self._get_user(instance).profile - except (AttributeError, Profile.DoesNotExist): - return None diff --git a/channels/serializers/channels.py b/channels/serializers/channels.py deleted file mode 100644 index f63740a690..0000000000 --- a/channels/serializers/channels.py +++ /dev/null @@ -1,241 +0,0 @@ -""" -Serializers for channel REST APIs -""" -from rest_framework import serializers -from rest_framework.exceptions import ValidationError - -from channels.constants import VALID_CHANNEL_TYPES, VALID_LINK_TYPES -from channels.models import Channel -from open_discussions.utils import filter_dict_with_renamed_keys -from open_discussions.serializers import WriteableSerializerMethodField - - -class ChannelAppearanceMixin(serializers.Serializer): - """Serializer mixin for channel appearance""" - - avatar = WriteableSerializerMethodField() - avatar_small = serializers.SerializerMethodField() - avatar_medium = serializers.SerializerMethodField() - banner = WriteableSerializerMethodField() - - def get_avatar(self, channel) -> str: - """Get the avatar image URL""" - return channel.avatar.url if channel.avatar else None - - def get_avatar_small(self, channel) -> str: - """Get the avatar image small URL""" - return channel.avatar_small.url if channel.avatar_small else None - - def get_avatar_medium(self, channel) -> str: - """Get the avatar image medium URL""" - return channel.avatar_medium.url if channel.avatar_medium else None - - def get_banner(self, channel) -> str: - """Get the banner image URL""" - return channel.banner.url if channel.banner else None - - def validate_avatar(self, value): - """Empty validation function, but this is required for WriteableSerializerMethodField""" - if not hasattr(value, "name"): - raise ValidationError("Expected avatar to be a file") - return {"avatar": value} - - def validate_banner(self, value): - """Empty validation function, but this is required for WriteableSerializerMethodField""" - if not hasattr(value, "name"): - raise ValidationError("Expected banner to be a file") - return {"banner": value} - - -class ChannelSerializer(ChannelAppearanceMixin, serializers.Serializer): - """Serializer for channels""" - - title = serializers.CharField() - name = serializers.CharField(source="display_name") - description = serializers.CharField(required=False, allow_blank=True) - public_description = serializers.CharField( - required=False, allow_blank=True, max_length=80 - ) - channel_type = serializers.ChoiceField( - source="subreddit_type", choices=VALID_CHANNEL_TYPES - ) - link_type = serializers.ChoiceField( - required=False, - allow_blank=True, - source="submission_type", - choices=VALID_LINK_TYPES, - ) - allowed_post_types = WriteableSerializerMethodField() - user_is_contributor = serializers.SerializerMethodField() - user_is_moderator = serializers.SerializerMethodField() - user_is_subscriber = serializers.SerializerMethodField() - widget_list_id = serializers.IntegerField( - required=False, allow_null=True, read_only=True - ) - membership_is_managed = serializers.BooleanField(required=False) - ga_tracking_id = WriteableSerializerMethodField(allow_null=True) - about = serializers.JSONField(allow_null=True, default=None) - moderator_notifications = WriteableSerializerMethodField() - - def get_user_is_contributor(self, channel) -> bool: - """ - Get is_contributor from reddit object. - For some reason reddit returns None instead of False so an explicit conversion is done here. - """ - return bool(channel.user_is_contributor) - - def get_user_is_moderator(self, channel) -> bool: - """ - Get is_moderator from reddit object. - For some reason reddit returns None instead of False so an explicit conversion is done here. - """ - return bool(channel.user_is_moderator) - - def get_user_is_subscriber(self, channel) -> bool: - """ - Get user_is_subscriber from reddit object. - For some reason reddit returns None instead of False so an explicit conversion is done here. - """ - return bool(channel.user_is_subscriber) - - def get_moderator_notifications(self, channel): - """Get moderator notifications""" - return ( - channel._self_channel.moderator_notifications # pylint: disable=protected-access - ) - - def get_ga_tracking_id(self, channel) -> str: - """Get google analytics tracking id""" - return channel.ga_tracking_id - - def validate_moderator_notifications(self, value): - """Empty validation function, but this is required for WriteableSerializerMethodField""" - if not isinstance(value, bool): - raise ValidationError("Expected moderator_notifications be a boolean") - return {"moderator_notifications": value} - - def validate_ga_tracking_id(self, value): - """Empty validation function, but this is required for WriteableSerializerMethodField""" - if not (value is None or isinstance(value, str)): - raise ValidationError("Expected ga_tracking_id to be a string") - return {"ga_tracking_id": value} - - def get_allowed_post_types(self, channel) -> list[str]: - """Returns a dictionary of allowed post types""" - from channels.api import get_allowed_post_types_from_link_type - - if channel.allowed_post_types: - return [ - post_type - for post_type, enabled in channel.allowed_post_types.items() - if enabled - ] - - return get_allowed_post_types_from_link_type(channel.submission_type) - - def validate_allowed_post_types(self, value): - """Validate the allowed post types""" - if not value: - return {} - - if not isinstance(value, list) and not all( - [isinstance(item, str) for item in value] - ): - raise ValidationError( - "Expected allowed_post_types to be a list of enabled types" - ) - - allowed_keys = Channel.allowed_post_types.keys() - - for allowed_type in value: - if allowed_type not in allowed_keys: - raise ValidationError( - f"Post type {allowed_type} not supported for allowed_post_types" - ) - - return {"allowed_post_types": value} - - def _get_channel(self, name): - """Get channel""" - try: - return self.context["channels"][name] - except KeyError: - # This can happen if the channel is newly created - return Channel.objects.get(name=name) - - def create(self, validated_data): - from channels.api import get_admin_api - - client = get_admin_api() - # This is to reduce number of cassettes which need replacing - validated_data["description"] = validated_data.get("description", "") - validated_data["public_description"] = validated_data.get( - "public_description", "" - ) - - # Set default value for managed to true since this is how micromasters will create channels. - validated_data["membership_is_managed"] = validated_data.get( - "membership_is_managed", True - ) - - lookup = { - "display_name": "name", - "title": "title", - "subreddit_type": "channel_type", - "description": "description", - "public_description": "public_description", - "submission_type": "link_type", - "membership_is_managed": "membership_is_managed", - } - kwargs = filter_dict_with_renamed_keys(validated_data, lookup, optional=True) - - channel = client.create_channel(**kwargs) - client.add_moderator( - self.context["channel_api"].user.username, channel.display_name - ) - return channel - - def update(self, instance, validated_data): - api = self.context["channel_api"] - name = instance.display_name - lookup = { - "title": "title", - "subreddit_type": "channel_type", - "submission_type": "link_type", - "description": "description", - "public_description": "public_description", - "membership_is_managed": "membership_is_managed", - "allowed_post_types": "allowed_post_types", - } - kwargs = filter_dict_with_renamed_keys(validated_data, lookup, optional=True) - - channel = api.update_channel(name=name, **kwargs) - - channel_obj = channel._self_channel # pylint: disable=protected-access - - if "moderator_notifications" in validated_data: - channel_obj.moderator_notifications = validated_data.get( - "moderator_notifications" - ) - channel_obj.save() - - if "ga_tracking_id" in validated_data: - channel_obj.ga_tracking_id = validated_data.get("ga_tracking_id") - channel_obj.save() - - avatar = validated_data.get("avatar") - if avatar: - channel_obj.avatar.save(f"channel_avatar_{name}.jpg", avatar, save=False) - channel_obj.save(update_fields=["avatar"], update_image=True) - - banner = validated_data.get("banner") - if banner: - channel_obj.banner.save(f"channel_banner_{name}.jpg", banner, save=False) - channel_obj.save(update_fields=["banner"], update_image=True) - - if "about" in validated_data: - about = validated_data.get("about") - channel_obj.about = about - channel_obj.save() - - return channel diff --git a/channels/serializers/channels_test.py b/channels/serializers/channels_test.py deleted file mode 100644 index 947ba5d4f4..0000000000 --- a/channels/serializers/channels_test.py +++ /dev/null @@ -1,227 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from channels.api import get_allowed_post_types_from_link_type -from channels.constants import LINK_TYPE_LINK, LINK_TYPE_SELF, LINK_TYPE_ANY -from channels.serializers.channels import ChannelSerializer -from channels.factories.models import ChannelFactory - - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize("has_avatar", [True, False]) -@pytest.mark.parametrize("has_banner", [True, False]) -@pytest.mark.parametrize("has_about", [True, False]) -@pytest.mark.parametrize("ga_tracking_id", [None, "abc123"]) -@pytest.mark.parametrize("membership_is_managed", [True, False]) -@pytest.mark.parametrize("allowed_post_types", [{}, {"self": True, "link": False}]) -@pytest.mark.parametrize("link_type", [LINK_TYPE_ANY, LINK_TYPE_LINK, LINK_TYPE_SELF]) -@pytest.mark.parametrize("moderator_notifications", [True, False]) -def test_serialize_channel( - user, - has_avatar, - has_banner, - has_about, - ga_tracking_id, - membership_is_managed, - allowed_post_types, - link_type, - moderator_notifications, -): # pylint: disable=too-many-arguments - """ - Test serializing a channel - """ - channel = Mock( - display_name="name", - title="title", - subreddit_type="public", - description="description", - public_description="public_description", - submission_type=link_type, - membership_is_managed=membership_is_managed, - allowed_post_types=allowed_post_types, - banner=Mock() if has_banner else None, - avatar=Mock() if has_avatar else None, - avatar_small=Mock() if has_avatar else None, - avatar_medium=Mock() if has_avatar else None, - widget_list_id=123, - about=Mock() if has_about else None, - ga_tracking_id=ga_tracking_id, - ) - - channel._self_channel.moderator_notifications = ( - moderator_notifications # pylint: disable=protected-access - ) - - request = Mock(user=user) - - assert ChannelSerializer(channel, context={"request": request}).data == { - "name": "name", - "title": "title", - "channel_type": "public", - "link_type": link_type, - "description": "description", - "public_description": "public_description", - "user_is_moderator": True, - "user_is_contributor": True, - "user_is_subscriber": True, - "membership_is_managed": membership_is_managed, - "avatar": channel.avatar.url if has_avatar else None, - "avatar_small": channel.avatar_small.url if has_avatar else None, - "avatar_medium": channel.avatar_medium.url if has_avatar else None, - "banner": channel.banner.url if has_banner else None, - "ga_tracking_id": ga_tracking_id, - "allowed_post_types": [ - key for key, enabled in allowed_post_types.items() if enabled - ] - if allowed_post_types - else get_allowed_post_types_from_link_type(link_type), - "widget_list_id": channel.widget_list_id, - "about": channel.about, - "moderator_notifications": moderator_notifications, - } - - -@pytest.mark.parametrize("membership_is_managed", [True, False, None]) -def test_create_channel(staff_user, user, membership_is_managed, mocker, settings): - """ - Test creating a channel - """ - settings.INDEXING_API_USERNAME = staff_user.username - api_mock = mocker.patch("channels.api.Api") - context_api_mock = api_mock(user) - indexer_api_mock = api_mock(staff_user) - validated_data = { - "display_name": "name", - "title": "title", - "subreddit_type": "public", - "submission_type": "self", - "description": "description", - "public_description": "public_description", - } - if membership_is_managed is not None: - validated_data["membership_is_managed"] = membership_is_managed - expected_membership = membership_is_managed is not False - request = Mock(user=user) - channel = ChannelSerializer( - context={"channel_api": context_api_mock, "request": request} - ).create(validated_data) - - indexer_api_mock.create_channel.assert_called_once_with( - name=validated_data["display_name"], - title=validated_data["title"], - channel_type=validated_data["subreddit_type"], - description=validated_data["description"], - public_description=validated_data["public_description"], - link_type=validated_data["submission_type"], - membership_is_managed=expected_membership, - ) - indexer_api_mock.add_moderator.assert_called_once_with( - context_api_mock.user.username, channel.display_name - ) - assert channel == indexer_api_mock.create_channel.return_value - - -@pytest.mark.parametrize( - "validated_data, expected_kwawrgs", - [ - [{}, {}], - [ - { - "title": "title", - "subreddit_type": "public", - "description": "description", - "public_description": "public_description", - "submission_type": "text", - }, - { - "title": "title", - "channel_type": "public", - "description": "description", - "public_description": "public_description", - "link_type": "text", - }, - ], - [ - {"allowed_post_types": ["self", "link", "article"]}, - {"allowed_post_types": ["self", "link", "article"]}, - ], - ], -) -def test_update_channel(user, validated_data, expected_kwawrgs): - """ - Test updating a channel - """ - display_name = "subreddit" - ChannelFactory.create(name=display_name) - instance = Mock(display_name=display_name) - request = Mock(user=user) - api_mock = Mock() - channel = ChannelSerializer( - context={"channel_api": api_mock, "request": request} - ).update(instance, validated_data) - api_mock.update_channel.assert_called_once_with( - name=display_name, **expected_kwawrgs - ) - assert channel == api_mock.update_channel.return_value - - -@pytest.mark.parametrize("about", [None, [{"foo": "bar"}]]) -def test_update_channel_about(user, about): - """ - Test updating the channel about field - """ - channel = ChannelFactory.create(about=None) - instance = Mock(display_name=channel.name) - request = Mock(user=user) - api_mock = Mock() - api_mock.update_channel.return_value._self_channel = ( # pylint: disable=protected-access - channel - ) - ChannelSerializer(context={"channel_api": api_mock, "request": request}).update( - instance, {"about": about} - ) - channel.refresh_from_db() - assert channel.about == about - - -@pytest.mark.parametrize("moderator_notifications", [True, False]) -def test_update_channel_moderator_notifications(user, moderator_notifications): - """ - Test updating the channel moderator_notifications field - """ - channel = ChannelFactory.create(about=None) - instance = Mock(display_name=channel.name) - request = Mock(user=user) - api_mock = Mock() - api_mock.update_channel.return_value._self_channel = ( # pylint: disable=protected-access - channel - ) - ChannelSerializer(context={"channel_api": api_mock, "request": request}).update( - instance, {"moderator_notifications": moderator_notifications} - ) - channel.refresh_from_db() - assert channel.moderator_notifications == moderator_notifications - - -@pytest.mark.parametrize("ga_tracking_id", ["test", "", None]) -def test_update_channel_moderator_notifications_tracking(user, ga_tracking_id): - """ - Test updating the channel moderator_notifications field - """ - channel = ChannelFactory.create(about=None) - instance = Mock(display_name=channel.name) - request = Mock(user=user) - api_mock = Mock() - api_mock.update_channel.return_value._self_channel = ( # pylint: disable=protected-access - channel - ) - ChannelSerializer(context={"channel_api": api_mock, "request": request}).update( - instance, {"ga_tracking_id": ga_tracking_id} - ) - channel.refresh_from_db() - assert channel.ga_tracking_id == ga_tracking_id diff --git a/channels/serializers/comments.py b/channels/serializers/comments.py deleted file mode 100644 index ebb104b544..0000000000 --- a/channels/serializers/comments.py +++ /dev/null @@ -1,291 +0,0 @@ -"""Serializers for commment REST APIs""" -from datetime import datetime, timezone - -from django.contrib.auth import get_user_model -from praw.models import Comment, MoreComments -from praw.models.reddit.submission import Submission -from rest_framework import serializers -from rest_framework.exceptions import ValidationError - -from channels import task_helpers -from channels.constants import DELETED_COMMENT_OR_POST_TEXT -from channels.utils import get_kind_mapping, get_kind_and_id, get_reddit_slug -from channels.models import Subscription -from channels.serializers.base import RedditObjectSerializer -from channels.serializers.utils import parse_bool -from open_discussions.serializers import WriteableSerializerMethodField -from profiles.utils import image_uri - -User = get_user_model() - - -class BaseCommentSerializer(RedditObjectSerializer): - """ - Basic serializer class for reddit comments. Only includes serialization functionality - (no deserialization or validation), and does not fetch/serialize Subscription data - """ - - id = serializers.CharField(read_only=True) - parent_id = serializers.SerializerMethodField() - post_id = serializers.SerializerMethodField() - comment_id = serializers.CharField( - write_only=True, allow_blank=True, required=False - ) - text = serializers.CharField(source="body") - author_id = serializers.SerializerMethodField() - score = serializers.IntegerField(read_only=True) - upvoted = WriteableSerializerMethodField() - removed = WriteableSerializerMethodField() - ignore_reports = serializers.BooleanField(required=False, write_only=True) - downvoted = WriteableSerializerMethodField() - created = serializers.SerializerMethodField() - profile_image = serializers.SerializerMethodField() - author_name = serializers.SerializerMethodField() - author_headline = serializers.SerializerMethodField() - edited = serializers.SerializerMethodField() - comment_type = serializers.SerializerMethodField() - num_reports = serializers.IntegerField(read_only=True) - deleted = serializers.SerializerMethodField() - - def get_post_id(self, instance): - """The post id for this comment""" - return instance.submission.id - - def get_parent_id(self, instance): - """The parent id for this comment""" - parent = instance.parent() - - if isinstance(parent, Submission): - return None - else: - return parent.id - - def get_author_id(self, instance): - """Get the author username or else [deleted]""" - user = self._get_user(instance) - if not user: - return "[deleted]" - return user.username - - def get_upvoted(self, instance): - """Is a comment upvoted?""" - return instance.likes is True - - def get_profile_image(self, instance): - """Find the Profile for the comment author""" - return image_uri(self._get_profile(instance)) - - def get_author_name(self, instance): - """get the author name""" - # this is a similar setup to the get_profile_image thingy above - user = self._get_user(instance) - - if user and user.profile.name: - return user.profile.name - return "[deleted]" - - def get_author_headline(self, instance): - """get the author headline""" - user = self._get_user(instance) - - if user and user.profile: - return user.profile.headline - return None - - def get_downvoted(self, instance): - """Is a comment downvoted?""" - return instance.likes is False - - def get_created(self, instance): - """The ISO-8601 formatted datetime for the creation time""" - return datetime.fromtimestamp(instance.created, tz=timezone.utc).isoformat() - - def get_edited(self, instance): - """Return a Boolean signifying if the comment has been edited or not""" - return instance.edited if instance.edited is False else True - - def get_comment_type(self, instance): # pylint: disable=unused-argument - """Let the frontend know which type this is""" - return "comment" - - def get_removed(self, instance): - """Returns True if the comment was removed""" - return instance.banned_by is not None - - def get_deleted(self, instance): - """Returns True if the comment was deleted""" - return instance.body == DELETED_COMMENT_OR_POST_TEXT # only way to tell - - def to_representation(self, instance): - data = super().to_representation(instance) - if self.context.get("include_permalink_data", False): - return { - **data, - "post_slug": get_reddit_slug(instance.submission.permalink), - "channel_name": instance.submission.subreddit.display_name, - } - return data - - -class CommentSerializer(BaseCommentSerializer): - """ - Full serializer class for reddit comments. Includes deserialization and validation functionality - and can fetch/serialize Subscription information. - """ - - subscribed = WriteableSerializerMethodField() - - @property - def _current_user(self): - """Get the current user""" - return self.context["current_user"] - - def get_subscribed(self, instance): - """Returns True if user is subscribed to the comment""" - if self.context.get("omit_subscriptions", False): - return None - if "comment_subscriptions" not in self.context: - # this code is run if a comment was just created - return Subscription.objects.filter( - user=self._current_user, - post_id=instance.submission.id, - comment_id=instance.id, - ).exists() - return instance.id in self.context.get("comment_subscriptions", []) - - def validate_upvoted(self, value): - """Validate that upvoted is a bool""" - return {"upvoted": parse_bool(value, "upvoted")} - - def validate_downvoted(self, value): - """Validate that downvoted is a bool""" - return {"downvoted": parse_bool(value, "downvoted")} - - def validate_subscribed(self, value): - """Validate that subscribed is a bool""" - return {"subscribed": parse_bool(value, "subscribed")} - - def validate_removed(self, value): - """Validate that removed is a bool""" - return {"removed": parse_bool(value, "removed")} - - def validate(self, attrs): - """Validate that the the combination of fields makes sense""" - if attrs.get("upvoted") and attrs.get("downvoted"): - raise ValidationError("upvoted and downvoted cannot both be true") - return attrs - - def create(self, validated_data): - api = self.context["channel_api"] - post_id = self.context["view"].kwargs["post_id"] - - kwargs = {} - if validated_data.get("comment_id"): - kwargs["comment_id"] = validated_data["comment_id"] - else: - kwargs["post_id"] = post_id - - comment = api.create_comment(text=validated_data["body"], **kwargs) - - api.add_comment_subscription(post_id, comment.id) - - changed = api.apply_comment_vote(comment, validated_data) - - from notifications.tasks import notify_subscribed_users - - notify_subscribed_users.delay( - post_id, validated_data.get("comment_id", None), comment.id - ) - - if not api.is_moderator(comment.subreddit.display_name, comment.author.name): - task_helpers.check_comment_for_spam(self.context["request"], comment.id) - - if changed: - return api.get_comment(comment.id) - else: - return comment - - def update(self, instance, validated_data): - if validated_data.get("comment_id"): - raise ValidationError("comment_id must be provided via URL") - - api = self.context["channel_api"] - if "body" in validated_data: - text = validated_data["body"] - api.update_comment(comment_id=instance.id, text=text) - - if not api.is_moderator( - instance.subreddit.display_name, instance.author.name - ): - task_helpers.check_comment_for_spam( - self.context["request"], instance.id - ) - - if "removed" in validated_data: - if validated_data["removed"] is True: - api.remove_comment(comment_id=instance.id) - else: - api.approve_comment(comment_id=instance.id) - - if "ignore_reports" in validated_data: - ignore_reports = validated_data["ignore_reports"] - if ignore_reports is True: - api.approve_comment(comment_id=instance.id) - api.ignore_comment_reports(instance.id) - - if "subscribed" in validated_data: - post_id = instance.submission.id - if validated_data["subscribed"] is True: - api.add_comment_subscription(post_id, instance.id) - elif validated_data["subscribed"] is False: - api.remove_comment_subscription(post_id, instance.id) - - api.apply_comment_vote(instance, validated_data) - - return api.get_comment(comment_id=instance.id) - - -class MoreCommentsSerializer(serializers.Serializer): - """ - Serializer for MoreComments objects - """ - - parent_id = serializers.SerializerMethodField() - post_id = serializers.SerializerMethodField() - children = serializers.SerializerMethodField() - comment_type = serializers.SerializerMethodField() - - def get_parent_id(self, instance): - """Returns the comment id for the parent comment, or None if the parent is a post""" - kind, _id = get_kind_and_id(instance.parent_id) - if kind == get_kind_mapping()["comment"]: - return _id - return None - - def get_post_id(self, instance): - """Returns the post id the comment belongs to""" - return instance.submission.id - - def get_children(self, instance): - """A list of comment ids for child comments that can be loaded""" - return instance.children - - def get_comment_type(self, instance): # pylint: disable=unused-argument - """Let the frontend know which type this is""" - return "more_comments" - - -class GenericCommentSerializer(serializers.Serializer): - """ - Hack to serialize different types with only one entrypoint - """ - - def to_representation(self, instance): - """ - Overrides the class method to add an extra field - """ - if isinstance(instance, MoreComments): - return MoreCommentsSerializer(instance, context=self.context).data - elif isinstance(instance, Comment): - return CommentSerializer(instance, context=self.context).data - raise ValueError("Unknown type {} in the comments list".format(type(instance))) diff --git a/channels/serializers/comments_test.py b/channels/serializers/comments_test.py deleted file mode 100644 index 93c2f4eb0f..0000000000 --- a/channels/serializers/comments_test.py +++ /dev/null @@ -1,65 +0,0 @@ -""" -Tests for serializers for comment REST APIS -""" -from unittest.mock import Mock - -import pytest -from rest_framework.exceptions import ValidationError - -from channels.serializers.comments import BaseCommentSerializer, CommentSerializer - - -def test_comment_update_with_comment_id(): - """Cannot pass comment_id to a comment, this is provided in the URL""" - with pytest.raises(ValidationError) as ex: - CommentSerializer().update(Mock(), {"comment_id": "something"}) - assert ex.value.args[0] == "comment_id must be provided via URL" - - -def test_comment_validate_upvoted(): - """upvoted must be a bool""" - with pytest.raises(ValidationError) as ex: - CommentSerializer().validate_upvoted("not a bool") - assert ex.value.args[0] == "upvoted must be a bool" - - -def test_comment_validate_downvoted(): - """downvoted must be a bool""" - with pytest.raises(ValidationError) as ex: - CommentSerializer().validate_downvoted("not a bool") - assert ex.value.args[0] == "downvoted must be a bool" - - -def test_comment_only_one_downvote_or_upvote(): - """only one of downvoted or upvoted can be true at the same time""" - with pytest.raises(ValidationError) as ex: - CommentSerializer().validate({"upvoted": True, "downvoted": True}) - assert ex.value.args[0] == "upvoted and downvoted cannot both be true" - - -def test_comment_validate_removed(): - """removed must be a bool""" - with pytest.raises(ValidationError) as ex: - CommentSerializer().validate_removed("not a bool") - assert ex.value.args[0] == "removed must be a bool" - - -def test_comment_including_permalink_data(mocker, reddit_comment_obj, user): - """ - Tests that including the permalink flag in BaseCommentSerializer context produces the correct - values for composing a comment permalink on the front end - """ - mock_slug_value = "slug" - patched_slug_helper = mocker.patch( - "channels.serializers.comments.get_reddit_slug", return_value=mock_slug_value - ) - data = BaseCommentSerializer( - reddit_comment_obj, - context={ - "include_permalink_data": True, - "users": {reddit_comment_obj.author.name: user}, - }, - ).data - assert patched_slug_helper.call_count == 1 - assert data["post_slug"] == mock_slug_value - assert data["channel_name"] == reddit_comment_obj.submission.subreddit.display_name diff --git a/channels/serializers/contributors.py b/channels/serializers/contributors.py deleted file mode 100644 index 4937b9ef27..0000000000 --- a/channels/serializers/contributors.py +++ /dev/null @@ -1,63 +0,0 @@ -"""Serializers for contributor REST APIs""" -from django.contrib.auth import get_user_model -from rest_framework import serializers - -from channels.serializers.validators import validate_email, validate_username -from open_discussions.serializers import WriteableSerializerMethodField -from profiles.models import Profile - -User = get_user_model() - - -class ContributorSerializer(serializers.Serializer): - """Serializer for contributors. Should be accessible by moderators only""" - - contributor_name = WriteableSerializerMethodField() - email = WriteableSerializerMethodField() - full_name = serializers.SerializerMethodField() - - def validate_contributor_name(self, value): - """Validate contributor name""" - return {"contributor_name": validate_username(value)} - - def get_contributor_name(self, instance): - """Returns the name for the contributor""" - return instance.name - - def validate_email(self, value): - """Validate email""" - return {"email": validate_email(value)} - - def get_email(self, instance): - """Get the email from the associated user""" - return ( - User.objects.filter(username=instance.name) - .values_list("email", flat=True) - .first() - ) - - def get_full_name(self, instance): - """Get the full name of the associated user""" - return ( - Profile.objects.filter(user__username=instance.name) - .values_list("name", flat=True) - .first() - ) - - def create(self, validated_data): - api = self.context["channel_api"] - channel_name = self.context["view"].kwargs["channel_name"] - contributor_name = validated_data.get("contributor_name") - email = validated_data.get("email") - - if email and contributor_name: - raise ValueError("Only one of contributor_name, email should be specified") - - if contributor_name: - username = contributor_name - elif email: - username = User.objects.get(email__iexact=email).username - else: - raise ValueError("Missing contributor_name or email") - - return api.add_contributor(username, channel_name) diff --git a/channels/serializers/contributors_test.py b/channels/serializers/contributors_test.py deleted file mode 100644 index c2a152f7f6..0000000000 --- a/channels/serializers/contributors_test.py +++ /dev/null @@ -1,156 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from praw.models.reddit.redditor import Redditor - -from channels.serializers.contributors import ContributorSerializer -from open_discussions.factories import UserFactory - - -pytestmark = pytest.mark.django_db - - -def test_contributor(): - """Serialize of a redditor-like object""" - redditor = Mock(spec=Redditor) - # the `name` attribute cannot be configured during the mock object creation - redditor.name = "fooo_username" - user = UserFactory.create(username=redditor.name) - assert ContributorSerializer(redditor).data == { - "contributor_name": "fooo_username", - "full_name": user.profile.name, - "email": user.email, - } - - -def test_contributor_validate_name_no_string(): - """validate the input in case the value is not a string""" - serializer = ContributorSerializer(data={"contributor_name": 123}) - assert serializer.is_valid() is False - assert serializer.errors["contributor_name"][0] == "username must be a string" - - -def test_contributor_validate_name_no_valid_user(): - """validate the input in case the user does not exists in the DB""" - serializer = ContributorSerializer(data={"contributor_name": "foo_user"}) - assert serializer.is_valid() is False - assert serializer.errors["contributor_name"][0] == "username is not a valid user" - - -def test_contributor_validate_name(): - """validate the input""" - user = UserFactory.create() - serializer = ContributorSerializer(data={"contributor_name": user.username}) - serializer.is_valid() - assert "contributor_name" not in serializer.errors - - -def test_contributor_validate_email_no_string(): - """validate the input in case the value is not a string""" - serializer = ContributorSerializer(data={"email": 123}) - assert serializer.is_valid() is False - assert serializer.errors["email"][0] == "email must be a string" - - -def test_contributor_validate_email_no_valid_user(): - """validate the input in case the user does not exists in the DB""" - serializer = ContributorSerializer(data={"email": "foo_user"}) - assert serializer.is_valid() is False - assert serializer.errors["email"][0] == "email does not exist" - - -def test_contributor_validate_email(): - """validate the input""" - user = UserFactory.create() - serializer = ContributorSerializer(data={"email": user.email}) - serializer.is_valid() - assert "email" not in serializer.errors - - -def test_contributor_create_username(): - """Adds a contributor by username""" - user = UserFactory.create() - contributor_user = UserFactory.create() - contributor_redditor = Mock(spec=Redditor) - contributor_redditor.name = contributor_user.username - api_mock = Mock(add_contributor=Mock(return_value=contributor_redditor)) - contributor = ContributorSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create({"contributor_name": contributor_user.username}) - assert contributor is contributor_redditor - api_mock.add_contributor.assert_called_once_with( - contributor_user.username, "foo_channel" - ) - - -def test_contributor_create_email(): - """Adds a contributor by email address""" - user = UserFactory.create() - contributor_user = UserFactory.create() - contributor_redditor = Mock(spec=Redditor) - contributor_redditor.name = contributor_user.username - api_mock = Mock(add_contributor=Mock(return_value=contributor_redditor)) - # Make sure that we're testing case insensitivity of email - assert contributor_user.email != contributor_user.email.upper() - contributor = ContributorSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create({"email": contributor_user.email.upper()}) - assert contributor is contributor_redditor - api_mock.add_contributor.assert_called_once_with( - contributor_user.username, "foo_channel" - ) - - -def test_contributor_create_both(): - """The user should only be able to specify an email address or a username""" - user = UserFactory.create() - contributor_user = UserFactory.create() - contributor_redditor = Mock(spec=Redditor) - contributor_redditor.name = contributor_user.username - api_mock = Mock(add_contributor=Mock(return_value=contributor_redditor)) - - with pytest.raises(ValueError) as ex: - ContributorSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create( - { - "contributor_name": contributor_user.username, - "email": contributor_user.email, - } - ) - assert ex.value.args[0] == "Only one of contributor_name, email should be specified" - - -def test_contributor_create_neither(): - """The user must specify an email address or a username""" - user = UserFactory.create() - contributor_user = UserFactory.create() - contributor_redditor = Mock(spec=Redditor) - contributor_redditor.name = contributor_user.username - api_mock = Mock(add_contributor=Mock(return_value=contributor_redditor)) - - with pytest.raises(ValueError) as ex: - ContributorSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create({}) - - assert ex.value.args[0] == "Missing contributor_name or email" diff --git a/channels/serializers/invites.py b/channels/serializers/invites.py deleted file mode 100644 index 2944fed1d3..0000000000 --- a/channels/serializers/invites.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Channel invitation serializers""" -from django.db import transaction - -from rest_framework import serializers - -from channels.models import ChannelInvitation -from channels import tasks - - -class ChannelInvitationSerializer(serializers.ModelSerializer): - """Serializer for channel invitations""" - - def create(self, validated_data): - with transaction.atomic(): - invite, _ = ChannelInvitation.objects.get_or_create( - email=validated_data["email"], - channel=self.context["channel"], - inviter=self.context["inviter"], - ) - - tasks.send_invitation_email.delay(invite.id) - - return invite - - class Meta: - model = ChannelInvitation - fields = ("id", "email", "created_on", "updated_on") - read_only_fields = ("id", "created_on", "updated_on") diff --git a/channels/serializers/invites_test.py b/channels/serializers/invites_test.py deleted file mode 100644 index b02f9a02f3..0000000000 --- a/channels/serializers/invites_test.py +++ /dev/null @@ -1,40 +0,0 @@ -"""Tests for ChannelInvitationSerializer""" -import pytest - -from channels.factories.models import ChannelFactory -from channels.models import ChannelInvitation -from channels.serializers.invites import ChannelInvitationSerializer - - -def test_invite_create_email(user, mocker): - """Invites a user by email""" - mock_tasks = mocker.patch("channels.serializers.invites.tasks") - channel = ChannelFactory.create() - email = "test@example.com" - result = ChannelInvitationSerializer( - context={"channel": channel, "inviter": user} - ).create({"email": email}) - - invite = ChannelInvitation.objects.get(channel=channel, email=email) - - mock_tasks.send_invitation_email.delay.assert_called_once_with(invite.id) - - assert result == invite - assert result.email == email - assert result.inviter == user - assert result.channel == channel - - -def test_invite_create_email_error(user, mocker): - """Rolls back invite record if the celert task fails to queue""" - mock_tasks = mocker.patch("channels.serializers.invites.tasks") - mock_tasks.send_invitation_email.delay.side_effect = Exception() - channel = ChannelFactory.create() - email = "test@example.com" - - with pytest.raises(Exception): - ChannelInvitationSerializer( - context={"channel": channel, "inviter": user} - ).create({"email": email}) - - assert not ChannelInvitation.objects.filter(channel=channel, email=email).exists() diff --git a/channels/serializers/moderators.py b/channels/serializers/moderators.py deleted file mode 100644 index fb3fa4fb97..0000000000 --- a/channels/serializers/moderators.py +++ /dev/null @@ -1,84 +0,0 @@ -"""Serializers for moderator REST APIs""" -from django.contrib.auth import get_user_model -from rest_framework import serializers - -from channels.serializers.validators import validate_email, validate_username -from open_discussions.serializers import WriteableSerializerMethodField -from profiles.models import Profile - -User = get_user_model() - - -class ModeratorPublicSerializer(serializers.Serializer): - """Serializer for moderators, viewable by end users""" - - moderator_name = serializers.SerializerMethodField() - - def get_moderator_name(self, instance): - """Returns the name for the moderator""" - return instance.name - - -class ModeratorPrivateSerializer(serializers.Serializer): - """Serializer for moderators, viewable by other moderators""" - - moderator_name = WriteableSerializerMethodField() - email = WriteableSerializerMethodField() - full_name = serializers.SerializerMethodField() - can_remove = serializers.SerializerMethodField() - - def validate_moderator_name(self, value): - """Validate moderator name""" - return {"moderator_name": validate_username(value)} - - def get_moderator_name(self, instance): - """Returns the name for the moderator""" - return instance.name - - def validate_email(self, value): - """Validate email""" - return {"email": validate_email(value)} - - def get_email(self, instance): - """Get the email from the associated user""" - return ( - User.objects.filter(username=instance.name) - .values_list("email", flat=True) - .first() - ) - - def get_full_name(self, instance): - """Get the full name of the associated user""" - return ( - Profile.objects.filter(user__username=instance.name) - .values_list("name", flat=True) - .first() - ) - - def get_can_remove(self, instance): - """Figure out whether the logged in user can remove this moderator""" - if self.context["mod_date"] is None: - return False - return int(instance.date) >= int(self.context["mod_date"]) - - def create(self, validated_data): - api = self.context["channel_api"] - channel_name = self.context["view"].kwargs["channel_name"] - - moderator_name = validated_data.get("moderator_name") - email = validated_data.get("email") - - if email and moderator_name: - raise ValueError("Only one of moderator_name, email should be specified") - - if moderator_name: - username = moderator_name - elif email: - username = User.objects.get(email__iexact=email).username - else: - raise ValueError("Missing moderator_name or email") - - api.add_moderator(username, channel_name) - return api._list_moderators( # pylint: disable=protected-access - channel_name=channel_name, moderator_name=username - )[0] diff --git a/channels/serializers/moderators_test.py b/channels/serializers/moderators_test.py deleted file mode 100644 index a8cb79ba31..0000000000 --- a/channels/serializers/moderators_test.py +++ /dev/null @@ -1,185 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from praw.models.reddit.redditor import Redditor - -from channels.serializers.moderators import ( - ModeratorPublicSerializer, - ModeratorPrivateSerializer, -) -from open_discussions.factories import UserFactory - - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize("is_public", [True, False]) -def test_moderator(is_public): - """Serialize of a redditor-like object""" - serializer_cls = ( - ModeratorPublicSerializer if is_public else ModeratorPrivateSerializer - ) - redditor = Mock(spec=Redditor) - # the `name` attribute cannot be configured during the mock object creation - redditor.name = "fooo_username" - user = UserFactory.create(username=redditor.name) - assert ( - serializer_cls(redditor).data == {"moderator_name": "fooo_username"} - if is_public - else { - "moderator_name": "fooo_username", - "full_name": user.profile.name, - "email": user.email, - } - ) - - -def test_moderator_validate_name_no_string(): - """validate the input in case the value is not a string""" - serializer = ModeratorPrivateSerializer(data={"moderator_name": 123}) - assert serializer.is_valid() is False - assert serializer.errors["moderator_name"][0] == "username must be a string" - - -def test_moderator_validate_name_no_valid_user(): - """validate the input in case the user does not exists in the DB""" - serializer = ModeratorPrivateSerializer(data={"moderator_name": "foo_user"}) - assert serializer.is_valid() is False - assert serializer.errors["moderator_name"][0] == "username is not a valid user" - - -def test_moderator_validate_name(): - """validate the input""" - user = UserFactory.create() - serializer = ModeratorPrivateSerializer(data={"moderator_name": user.username}) - serializer.is_valid() - assert "moderator_name" not in serializer.errors - - -def test_moderator_validate_email_no_string(): - """validate the input in case the value is not a string""" - serializer = ModeratorPrivateSerializer(data={"email": 123}) - assert serializer.is_valid() is False - assert serializer.errors["email"][0] == "email must be a string" - - -def test_moderator_validate_email_no_valid_user(): - """validate the input in case the user does not exists in the DB""" - serializer = ModeratorPrivateSerializer(data={"email": "foo_user"}) - assert serializer.is_valid() is False - assert serializer.errors["email"][0] == "email does not exist" - - -def test_moderator_validate_email(): - """validate the input""" - user = UserFactory.create() - serializer = ModeratorPrivateSerializer(data={"email": user.email}) - serializer.is_valid() - assert "email" not in serializer.errors - - -def test_moderator_create_username(): - """Adds a moderator by username""" - user = UserFactory.create() - moderator_user = UserFactory.create() - moderator_redditor = Mock(spec=Redditor) - moderator_redditor.name = moderator_user.username - add_moderator_mock = Mock(return_value=None) - list_moderators_mock = Mock(return_value=[moderator_redditor]) - api_mock = Mock( - add_moderator=add_moderator_mock, _list_moderators=list_moderators_mock - ) - channel_name = "foo_channel" - moderator = ModeratorPrivateSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": channel_name}), - } - ).create({"moderator_name": moderator_user.username}) - assert moderator is moderator_redditor - api_mock.add_moderator.assert_called_once_with( - moderator_user.username, channel_name - ) - list_moderators_mock.assert_called_once_with( - channel_name=channel_name, moderator_name=moderator_user.username - ) - - -def test_moderator_create_email(): - """Adds a moderator by email address""" - user = UserFactory.create() - moderator_user = UserFactory.create() - moderator_redditor = Mock(spec=Redditor) - moderator_redditor.name = moderator_user.username - add_moderator_mock = Mock(return_value=None) - list_moderators_mock = Mock(return_value=[moderator_redditor]) - api_mock = Mock( - add_moderator=add_moderator_mock, _list_moderators=list_moderators_mock - ) - channel_name = "foo_channel" - # Make sure that we're testing case insensitivity of email - assert moderator_user.email != moderator_user.email.upper() - moderator = ModeratorPrivateSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": channel_name}), - } - ).create({"email": moderator_user.email.upper()}) - assert moderator is moderator_redditor - - add_moderator_mock.assert_called_once_with(moderator_user.username, channel_name) - list_moderators_mock.assert_called_once_with( - channel_name=channel_name, moderator_name=moderator_user.username - ) - - -def test_moderator_create_both(): - """The user should only be able to specify an email address or a username""" - user = UserFactory.create() - moderator_user = UserFactory.create() - moderator_redditor = Mock(spec=Redditor) - moderator_redditor.name = moderator_user.username - api_mock = Mock(add_moderator=Mock(return_value=moderator_redditor)) - # Make sure that we're testing case insensitivity of email - assert moderator_user.email != moderator_user.email.upper() - - with pytest.raises(ValueError) as ex: - ModeratorPrivateSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create( - { - "email": moderator_user.email.upper(), - "moderator_name": moderator_user.username, - } - ) - assert ex.value.args[0] == "Only one of moderator_name, email should be specified" - - -def test_moderator_create_neither(): - """The user must specify an email address or a username""" - user = UserFactory.create() - moderator_user = UserFactory.create() - moderator_redditor = Mock(spec=Redditor) - moderator_redditor.name = moderator_user.username - api_mock = Mock(add_moderator=Mock(return_value=moderator_redditor)) - # Make sure that we're testing case insensitivity of email - assert moderator_user.email != moderator_user.email.upper() - - with pytest.raises(ValueError) as ex: - ModeratorPrivateSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create({}) - assert ex.value.args[0] == "Missing moderator_name or email" diff --git a/channels/serializers/posts.py b/channels/serializers/posts.py deleted file mode 100644 index ff865921b8..0000000000 --- a/channels/serializers/posts.py +++ /dev/null @@ -1,297 +0,0 @@ -""" -Serializers for post REST APIs -""" -from datetime import datetime, timezone -from urllib.parse import urlparse, urljoin - -from django.contrib.auth import get_user_model -from rest_framework import serializers -from rest_framework.exceptions import ValidationError, NotFound - -from channels.api import get_post_type -from channels.constants import DELETED_COMMENT_OR_POST_TEXT -from channels.utils import get_reddit_slug, render_article_text -from channels.models import Channel, Subscription -from channels.serializers.base import RedditObjectSerializer -from channels.serializers.utils import parse_bool -from open_discussions.settings import SITE_BASE_URL -from open_discussions.serializers import WriteableSerializerMethodField -from open_discussions.utils import markdown_to_plain_text -from profiles.utils import image_uri - -User = get_user_model() - - -class BasePostSerializer(RedditObjectSerializer): - """ - Basic serializer class for PostProxy objects. Only includes serialization functionality - (no deserialization or validation), and does not fetch/serialize Subscription data - """ - - url = WriteableSerializerMethodField(allow_null=True) - url_domain = serializers.SerializerMethodField() - thumbnail = WriteableSerializerMethodField(allow_null=True) - text = WriteableSerializerMethodField(allow_null=True) - article_content = serializers.JSONField(allow_null=True, default=None) - plain_text = serializers.SerializerMethodField() - title = serializers.CharField() - post_type = serializers.CharField(read_only=True) - slug = serializers.SerializerMethodField() - upvoted = WriteableSerializerMethodField() - removed = WriteableSerializerMethodField() - ignore_reports = serializers.BooleanField(required=False, write_only=True) - stickied = serializers.BooleanField(required=False) - score = serializers.IntegerField(source="ups", read_only=True) - author_id = serializers.CharField(read_only=True, source="author") - id = serializers.CharField(read_only=True) - created = serializers.SerializerMethodField() - num_comments = serializers.IntegerField(read_only=True) - channel_name = serializers.SerializerMethodField() - channel_title = serializers.SerializerMethodField() - channel_type = serializers.SerializerMethodField() - profile_image = serializers.SerializerMethodField() - author_name = serializers.SerializerMethodField() - author_headline = serializers.SerializerMethodField() - edited = serializers.SerializerMethodField() - num_reports = serializers.IntegerField(read_only=True) - deleted = serializers.SerializerMethodField() - - def get_url(self, instance): - """Returns a url or null depending on if it's a self post""" - return instance.url if not instance.is_self else None - - def get_url_domain(self, instance): - """Returns the url's domain or None""" - return urlparse(instance.url).hostname if not instance.is_self else None - - def get_thumbnail(self, instance): - """Returns a thumbnail url or null""" - return instance.link_meta.thumbnail if instance.link_meta is not None else None - - def get_slug(self, instance): - """Returns the post slug""" - return get_reddit_slug(instance.permalink) - - def get_author_name(self, instance): - """get the authors name""" - profile = self._get_profile(instance) - if profile and profile.name: - return profile.name - return "[deleted]" - - def get_author_headline(self, instance): - """get the author's headline""" - profile = self._get_profile(instance) - if profile: - return profile.headline - return None - - def get_profile_image(self, instance): - """Find the profile image for the post author""" - return image_uri(self._get_profile(instance)) - - def get_text(self, instance): - """Returns text or null depending on if it's a self post""" - return instance.selftext if instance.is_self else None - - def get_upvoted(self, instance): - """Did the user upvote this?""" - return instance.likes is True - - def get_created(self, instance): - """The ISO-8601 formatted datetime for the creation time""" - return datetime.fromtimestamp(instance.created, tz=timezone.utc).isoformat() - - def get_channel_name(self, instance): - """The channel which contains the post""" - return instance.channel.name or instance.subreddit.display_name - - def get_channel_title(self, instance): - """The title of the channel""" - return instance.channel.title or instance.subreddit.title - - def get_channel_type(self, instance): - """The type of the channel""" - return instance.channel.channel_type or instance.subreddit.subreddit_type - - def get_edited(self, instance): - """Return a Boolean signifying if the post has been edited or not""" - return instance.edited if instance.edited is False else True - - def get_removed(self, instance): - """Returns True if the post was removed""" - return instance.banned_by is not None - - def get_deleted(self, instance): - """Returns True if the post was deleted""" - return instance.selftext == DELETED_COMMENT_OR_POST_TEXT # only way to tell - - def get_plain_text(self, instance): - """Return plain text content""" - if instance.article is not None: - return render_article_text(instance.article.content) - elif instance.is_self: - return markdown_to_plain_text(instance.selftext) - else: - return instance.preview_text - - -class PostSerializer(BasePostSerializer): - """ - Full serializer class for reddit posts. Includes deserialization and validation functionality - and can fetch/serialize Subscription information. - """ - - cover_image = WriteableSerializerMethodField(allow_null=True) - subscribed = WriteableSerializerMethodField() - - @property - def _current_user(self): - """Get the current user""" - return self.context["current_user"] - - def get_cover_image(self, instance): - """Get the cover image URL""" - if instance.article and instance.article.cover_image: - return urljoin(SITE_BASE_URL, instance.article.cover_image.url) - return None - - def get_subscribed(self, instance): - """Returns True if user is subscrisbed to the post""" - if "post_subscriptions" not in self.context: - # this code is run if a post was just created - return Subscription.objects.filter( - user=self._current_user, post_id=instance.id, comment_id__isnull=True - ).exists() - return instance.id in self.context["post_subscriptions"] - - def validate_upvoted(self, value): - """Validate that upvoted is a bool""" - return {"upvoted": parse_bool(value, "upvoted")} - - def validate_removed(self, value): - """Validate that removed is a bool""" - return {"removed": parse_bool(value, "removed")} - - def validate_text(self, value): - """Validate that text is a string or null""" - if value is not None and not isinstance(value, str): - raise ValidationError("text must be a string") - return {"text": value} - - def validate_url(self, value): - """Validate that URL is a string or null""" - if value is not None and not isinstance(value, str): - raise ValidationError("url must be a string") - return {"url": value} - - def validate_subscribed(self, value): - """Validate that subscribed is a bool""" - return {"subscribed": parse_bool(value, "subscribed")} - - def validate_cover_image(self, value): - """Validation that cover_image is a file, url or None""" - if ( - value is not None - and not hasattr(value, "name") - and not urlparse(value).scheme - ): - raise ValidationError("Expected cover image to be a file or url") - return {"cover_image": value} - - def create(self, validated_data): - """Create a post""" - from channels import task_helpers - from notifications.tasks import notify_moderators - - title = validated_data["title"] - text = validated_data.get("text", None) - url = validated_data.get("url", None) - article_content = validated_data.get("article_content", None) - cover_image = validated_data.get("cover_image", None) - - # Validation occurs here rather than validate(), because we only want to do this when we create posts, - # not when we update them - try: - get_post_type(text=text, url=url, article_content=article_content) - except ValueError as exc: - raise ValidationError(exc.args[0]) from exc - - api = self.context["channel_api"] - channel_name = self.context["view"].kwargs["channel_name"] - try: - post = api.create_post( - channel_name, - title=title, - text=text, - url=url, - article_content=article_content, - cover_image=cover_image, - ) - except Channel.DoesNotExist as exc: - raise NotFound("Channel doesn't exist") from exc - - api.add_post_subscription(post.id) - - changed = api.apply_post_vote(post, validated_data) - - if changed or cover_image: - post = api.get_post(post_id=post.id) - - if not api.is_moderator(post.subreddit.display_name, post.author.name): - task_helpers.check_post_for_spam(self.context["request"], post.id) - else: - notify_moderators.delay(post.id, channel_name) - - return post - - def update(self, instance, validated_data): # pylint: disable=too-many-branches - """Update the post""" - from channels import task_helpers - - post_id = self.context["view"].kwargs["post_id"] - - if "url" in validated_data: - raise ValidationError("Cannot edit url for a post") - - api = self.context["channel_api"] - - if "removed" in validated_data: - removed = validated_data["removed"] - if removed is True: - api.remove_post(post_id) - elif removed is False: - api.approve_post(post_id) - - if "ignore_reports" in validated_data: - ignore_reports = validated_data["ignore_reports"] - if ignore_reports is True: - api.approve_post(post_id) - api.ignore_post_reports(post_id) - - update_kwargs = {} - for attr in ("text", "article_content", "cover_image"): - if attr in validated_data: - update_kwargs[attr] = validated_data[attr] - - if update_kwargs: - instance = api.update_post(post_id=post_id, **update_kwargs) - - if not api.is_moderator( - instance.subreddit.display_name, instance.author.name - ): - task_helpers.check_post_for_spam(self.context["request"], post_id) - - if "stickied" in validated_data: - sticky = validated_data["stickied"] - api.pin_post(post_id, sticky) - - if "subscribed" in validated_data: - if validated_data["subscribed"] is True: - api.add_post_subscription(post_id) - elif validated_data["subscribed"] is False: - api.remove_post_subscription(post_id) - - api.apply_post_vote(instance, validated_data) - - return api.get_post(post_id=post_id) diff --git a/channels/serializers/posts_test.py b/channels/serializers/posts_test.py deleted file mode 100644 index 7fae5cf7e3..0000000000 --- a/channels/serializers/posts_test.py +++ /dev/null @@ -1,59 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from rest_framework.exceptions import ValidationError - -from channels.serializers.posts import PostSerializer - - -pytestmark = pytest.mark.django_db - - -def test_post_validate_upvoted(): - """upvoted must be a bool""" - with pytest.raises(ValidationError) as ex: - PostSerializer().validate_upvoted("not a bool") - assert ex.value.args[0] == "upvoted must be a bool" - - -def test_post_validate_text(): - """text must be a string""" - with pytest.raises(ValidationError) as ex: - PostSerializer().validate_text(["not a string"]) - assert ex.value.args[0] == "text must be a string" - - -def test_post_validate_url(): - """url must be a string""" - with pytest.raises(ValidationError) as ex: - PostSerializer().validate_url(["not a string"]) - assert ex.value.args[0] == "url must be a string" - - -def test_post_both_text_and_url(): - """We can't create a post with both text and url specified""" - with pytest.raises(ValidationError) as ex: - PostSerializer().create({"title": "title", "text": "text", "url": "url"}) - assert ( - ex.value.args[0] - == "Not more than one of text, url, or article_content can be provided" - ) - - -def test_post_edit_url(): - """Cannot update the URL for a post""" - with pytest.raises(ValidationError) as ex: - PostSerializer( - context={"request": Mock(), "view": Mock(kwargs={"post_id": "post"})} - ).update(Mock(), {"url": "url"}) - assert ex.value.args[0] == "Cannot edit url for a post" - - -def test_post_validate_removed(): - """removed must be a bool""" - with pytest.raises(ValidationError) as ex: - PostSerializer().validate_removed("not a bool") - assert ex.value.args[0] == "removed must be a bool" diff --git a/channels/serializers/reports.py b/channels/serializers/reports.py deleted file mode 100644 index 3725cb3086..0000000000 --- a/channels/serializers/reports.py +++ /dev/null @@ -1,83 +0,0 @@ -""" -Serializers for report REST APIs -""" - -from praw.models import Comment -from praw.models.reddit.submission import Submission -from rest_framework import serializers -from rest_framework.exceptions import ValidationError - -from channels.proxies import proxy_post -from channels.serializers.comments import CommentSerializer -from channels.serializers.posts import PostSerializer - - -class ReportSerializer(serializers.Serializer): - """Serializer for reporting posts and comments""" - - post_id = serializers.CharField(required=False) - comment_id = serializers.CharField(required=False) - reason = serializers.CharField(max_length=100) - - def validate(self, attrs): - """Validate data""" - if "post_id" not in attrs and "comment_id" not in attrs: - raise ValidationError( - "You must provide one of either 'post_id' or 'comment_id'" - ) - elif "post_id" in attrs and "comment_id" in attrs: - raise ValidationError( - "You must provide only one of either 'post_id' or 'comment_id', not both" - ) - - return attrs - - def create(self, validated_data): - """Create a new report""" - api = self.context["channel_api"] - post_id = validated_data.get("post_id", None) - comment_id = validated_data.get("comment_id", None) - reason = validated_data["reason"] - result = {"reason": reason} - if post_id: - api.report_post(post_id, reason) - result["post_id"] = post_id - else: - api.report_comment(comment_id, reason) - result["comment_id"] = comment_id - return result - - -class ReportedContentSerializer(serializers.Serializer): - """ - Serializer for reported content - """ - - comment = serializers.SerializerMethodField() - post = serializers.SerializerMethodField() - reasons = serializers.SerializerMethodField() - - def get_comment(self, instance): - """Returns the comment if this report was for one""" - if isinstance(instance, Comment): - return CommentSerializer(instance, context=self.context).data - - return None - - def get_post(self, instance): - """Returns the post if this report was for one""" - if isinstance(instance, Submission): - return PostSerializer(proxy_post(instance), context=self.context).data - - return None - - def get_reasons(self, instance): - """ - Returns the reasons that have been reported so far - - Returns: - list of str: list of reasons a post/comment has been reported for - """ - return sorted( - {report[0] for report in instance.user_reports + instance.mod_reports} - ) diff --git a/channels/serializers/reports_test.py b/channels/serializers/reports_test.py deleted file mode 100644 index e26d6f65c2..0000000000 --- a/channels/serializers/reports_test.py +++ /dev/null @@ -1,74 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from rest_framework.exceptions import ValidationError - -from channels.serializers.reports import ReportSerializer, ReportedContentSerializer - - -pytestmark = pytest.mark.django_db - - -def test_report_validate_no_ids(): - """validate either post_id or comment_id needs to be specified""" - with pytest.raises(ValidationError) as ex: - ReportSerializer().validate({}) - assert ( - ex.value.args[0] == "You must provide one of either 'post_id' or 'comment_id'" - ) - - -def test_report_validate_both_ids(): - """validate either post_id or comment_id needs to be specified""" - with pytest.raises(ValidationError) as ex: - ReportSerializer().validate({"comment_id": "1", "post_id": "2"}) - assert ( - ex.value.args[0] - == "You must provide only one of either 'post_id' or 'comment_id', not both" - ) - - -def test_report_validate_one_id(): - """validate passes if only comment_id or post_id is specified""" - serializer = ReportSerializer() - serializer.validate({"post_id": "2"}) - serializer.validate({"comment_id": "1"}) - - -def test_report_comment_create(): - """Adds a comment report""" - payload = {"comment_id": "abc", "reason": "reason"} - api_mock = Mock() - assert ( - ReportSerializer( - context={"channel_api": api_mock, "request": Mock(), "view": Mock()} - ).create(payload) - == payload - ) - api_mock.report_comment.assert_called_once_with("abc", "reason") - - -def test_report_post_create(): - """Adds a post report""" - payload = {"post_id": "abc", "reason": "reason"} - api_mock = Mock() - assert ( - ReportSerializer( - context={"channel_api": api_mock, "request": Mock(), "view": Mock()} - ).create(payload) - == payload - ) - api_mock.report_post.assert_called_once_with("abc", "reason") - - -def test_reported_comment(): - """Serialize of a reported content object""" - reported_content = Mock() - reported_content.user_reports = [["spam", 1]] - reported_content.mod_reports = [["spam", "jane"], ["junk", "jow"]] - assert ReportedContentSerializer().get_reasons(reported_content) == sorted( - ["spam", "junk"] - ) diff --git a/channels/serializers/subscribers.py b/channels/serializers/subscribers.py deleted file mode 100644 index 7201f4536c..0000000000 --- a/channels/serializers/subscribers.py +++ /dev/null @@ -1,39 +0,0 @@ -""" -Serializers for channel REST APIs -""" - -from django.contrib.auth import get_user_model -from rest_framework import serializers -from rest_framework.exceptions import ValidationError - -from channels.models import ChannelSubscription -from open_discussions.serializers import WriteableSerializerMethodField - -User = get_user_model() - - -class SubscriberSerializer(serializers.Serializer): - """Serializer for subscriber""" - - subscriber_name = WriteableSerializerMethodField() - - def get_subscriber_name(self, instance): - """Returns the name for the subscriber""" - return instance.username - - def validate_subscriber_name(self, value): - """Validates the subscriber name""" - if not isinstance(value, str): - raise ValidationError("subscriber name must be a string") - if not User.objects.filter(username=value).exists(): - raise ValidationError("subscriber name is not a valid user") - return {"subscriber_name": value} - - def create(self, validated_data): - api = self.context["channel_api"] - channel_name = self.context["view"].kwargs["channel_name"] - username = validated_data["subscriber_name"] - api.add_subscriber(username, channel_name) - return ChannelSubscription.objects.get( - channel__name=channel_name, user__username=username - ).user diff --git a/channels/serializers/subscribers_test.py b/channels/serializers/subscribers_test.py deleted file mode 100644 index a2954f8648..0000000000 --- a/channels/serializers/subscribers_test.py +++ /dev/null @@ -1,71 +0,0 @@ -""" -Tests for serializers for channel REST APIS -""" -from unittest.mock import Mock - -import pytest -from rest_framework.exceptions import ValidationError - -from channels.api import sync_channel_subscription_model -from channels.factories.models import ChannelFactory -from channels.serializers.subscribers import SubscriberSerializer -from open_discussions.factories import UserFactory - - -pytestmark = pytest.mark.django_db - - -def test_subscriber(): - """Serialize of a redditor-like object""" - redditor_name = "fooo_username" - redditor_user = UserFactory.create(username=redditor_name) - assert SubscriberSerializer(redditor_user).data == { - "subscriber_name": redditor_name - } - - -def test_subscriber_validate_name_no_string(): - """validate the input in case the value is not a string""" - with pytest.raises(ValidationError) as ex: - SubscriberSerializer().validate_subscriber_name(None) - assert ex.value.args[0] == "subscriber name must be a string" - - -def test_subscriber_validate_name_no_valid_user(): - """validate the input in case the user does not exists in the DB""" - with pytest.raises(ValidationError) as ex: - SubscriberSerializer().validate_subscriber_name("foo_user") - assert ex.value.args[0] == "subscriber name is not a valid user" - - -def test_subscriber_validate_name(): - """validate the input""" - user = UserFactory.create() - assert SubscriberSerializer().validate_subscriber_name(user.username) == { - "subscriber_name": user.username - } - - -def test_subscriber_create(): - """Adds a subscriber""" - user = UserFactory.create() - ChannelFactory.create(name="foo_channel") - subscriber_user = UserFactory.create() - api_mock = Mock( - add_subscriber=Mock( - side_effect=[ - sync_channel_subscription_model("foo_channel", subscriber_user) - ] - ) - ) - subscriber = SubscriberSerializer( - context={ - "channel_api": api_mock, - "request": Mock(user=user), - "view": Mock(kwargs={"channel_name": "foo_channel"}), - } - ).create({"subscriber_name": subscriber_user.username}) - assert subscriber.id == subscriber_user.id - api_mock.add_subscriber.assert_called_once_with( - subscriber_user.username, "foo_channel" - ) diff --git a/channels/serializers/utils.py b/channels/serializers/utils.py deleted file mode 100644 index 8f760fc5f7..0000000000 --- a/channels/serializers/utils.py +++ /dev/null @@ -1,11 +0,0 @@ -"""Serializer utils""" -from rest_framework import serializers - - -def parse_bool(value, field_name): - """Helper method to parse boolean values""" - if value in serializers.BooleanField.TRUE_VALUES: - return True - if value in serializers.BooleanField.FALSE_VALUES: - return False - raise serializers.ValidationError("{} must be a bool".format(field_name)) diff --git a/channels/serializers/validators.py b/channels/serializers/validators.py deleted file mode 100644 index 115c27eae9..0000000000 --- a/channels/serializers/validators.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Serializer utils""" -from django.contrib.auth import get_user_model - -from rest_framework.serializers import ValidationError - - -User = get_user_model() - - -def validate_username(value): - """ - Helper function to validate the username - """ - if not isinstance(value, str): - raise ValidationError("username must be a string") - if not User.objects.filter(username=value).exists(): - raise ValidationError("username is not a valid user") - return value - - -def validate_email(value): - """ - Helper function to validate email - """ - if not isinstance(value, str): - raise ValidationError("email must be a string") - if not User.objects.filter(email__iexact=value).exists(): - raise ValidationError("email does not exist") - return value diff --git a/channels/serializers/validators_test.py b/channels/serializers/validators_test.py deleted file mode 100644 index 194e2e64d3..0000000000 --- a/channels/serializers/validators_test.py +++ /dev/null @@ -1,35 +0,0 @@ -"""Tests for validators""" -import pytest -from rest_framework.serializers import ValidationError - -from channels.serializers.validators import validate_email, validate_username -from open_discussions.factories import UserFactory - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize( - "email,fails", - [(123, True), ("notexists@example.com", True), ("exists@example.com", False)], -) -def test_validate_email(email, fails): - """Tests behavior of validate_email""" - UserFactory.create(email="exists@example.com") - if fails: - with pytest.raises(ValidationError): - validate_email(email) - else: - assert validate_email(email) == email - - -@pytest.mark.parametrize( - "username,fails", [(123, True), ("notexists", True), ("exists", False)] -) -def test_validate_username(username, fails): - """Tests behavior of validate_username""" - UserFactory.create(username="exists") - if fails: - with pytest.raises(ValidationError): - validate_username(username) - else: - assert validate_username(username) == username diff --git a/channels/signals.py b/channels/signals.py deleted file mode 100644 index 9d9af999ec..0000000000 --- a/channels/signals.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Signals for channels""" -from django.db.models.signals import post_save -from django.dispatch import receiver - -from channels.models import ChannelMembershipConfig -from moira_lists.tasks import update_moira_list_users -from open_discussions import features - - -@receiver( - post_save, - sender=ChannelMembershipConfig, - dispatch_uid="channelmembershipconfig_post_save", -) -def handle_create_course_run_certificate( - sender, instance, created, **kwargs -): # pylint: disable=unused-argument - """ - Update moira lists when a ChannelMembershipConfig model is saved. - """ - if "moira_lists" in instance.query and features.is_enabled(features.MOIRA): - update_moira_list_users.delay( - instance.query.get("moira_lists", []), - channel_ids=[ - channel_id - for channel_id in instance.channels.values_list("id", flat=True) - ], - ) diff --git a/channels/spam.py b/channels/spam.py deleted file mode 100644 index a6f43d61a6..0000000000 --- a/channels/spam.py +++ /dev/null @@ -1,169 +0,0 @@ -"""Check for spam""" -import logging -import re -from types import SimpleNamespace - -import akismet -from django.conf import settings -from django.utils.functional import SimpleLazyObject -from ipware import get_client_ip - -from channels.models import SpamCheckResult -from open_discussions import features - -log = logging.getLogger() - - -def save_spam_result(*, user_ip, user_agent, object_type, object_id, is_spam): - """ - Create or update a SpamCheck object with Akismet result - - Args: - user_ip(str): user's ip address - user_agent(str): user's browser agent - object_type(ContentType): the type of object (post, comment) to check - object_id(int): The id of the object - is_spam(bool): if the object was flagged as spam - """ - result, created = SpamCheckResult.objects.get_or_create( - content_type=object_type, - object_id=object_id, - defaults={ - "checks": 1, - "user_ip": user_ip, - "user_agent": user_agent, - "is_spam": is_spam, - }, - ) - if not created: - result.user_ip = user_ip - result.user_agent = user_agent - result.checks = result.checks + 1 - result.is_spam = is_spam - result.save() - - -def extract_spam_check_headers(request): - """Extract and validate the headers""" - user_ip, _ = get_client_ip(request) - user_agent = request.META.get("HTTP_USER_AGENT", "") - - return SimpleNamespace(user_ip=user_ip, user_agent=user_agent) - - -def exempt_from_spamcheck(email): - """ - Determine if a user should be exempt from a spam check based on email - - Args: - email(str): The email of the user - - Returns: - bool: True if exempt else False - """ - pattern = "|".join([email for email in settings.SPAM_EXEMPT_EMAILS]) - return ( - features.is_enabled(features.SPAM_EXEMPTIONS) - and re.search(r"({})$".format(pattern), email) is not None - ) - - -def create_akismet_client(): - """Initialize the akismet client""" - if not all([settings.AKISMET_API_KEY, settings.AKISMET_BLOG_URL]): - log.info( - "One or more of AKISMET_API_KEY and AKISMET_BLOG_URL is not configured" - ) - return None - - try: - return akismet.Akismet( - key=settings.AKISMET_API_KEY, blog_url=settings.AKISMET_BLOG_URL - ) - except akismet.AkismetError: - log.exception("Akismet is not configured correctly") - except: # pylint: disable=bare-except - log.exception("Error initializing Akismet client") - - return None - - -class SpamChecker: - """Spam checking for posts and comments""" - - def __init__(self): - self._client = SimpleLazyObject(create_akismet_client) - - def _can_spam_check(self): - """Returns True if the spam checker is properly configured and can operate""" - return hasattr(self._client, "comment_check") - - def is_post_spam(self, *, user_ip, user_agent, post): - """ - Detect if a post is spam - - Args: - user_ip(str): user's ip address - user_agent(str): user's browser agent - post(channels.models.Post): the post to check - - Returns: - bool: True if the post is spam - """ - if not self._can_spam_check(): - # if we can't verify it, assume it's not spam - return False - - if not user_ip or not user_agent: - log.info("Couldn't determine user agent or ip, assuming to be spam") - return True - - try: - log.debug("Spam checking post content") - return self._client.comment_check( - user_ip=user_ip, - user_agent=user_agent, - comment_content=post.plain_text, - comment_type="forum-post", - comment_author=post.author.profile.name, - comment_author_email=post.author.email, - is_test=settings.AKISMET_IS_TESTING, - ) - except: # pylint: disable=bare-except - log.exception("Error trying to spam check w/ Akismet") - return False - - def is_comment_spam(self, *, user_ip, user_agent, comment): - """ - Detect if a comment is spam - - Args: - user_ip(str): user's ip address - user_agent(str): user's browser agent - comment(channels.models.Comment): the comment to check - - Returns: - bool: True if the comment is spam - """ - if not self._can_spam_check(): - # if we can't verify it, assume it's not spam - return False - - if not user_ip or not user_agent: - log.info("Couldn't determine user agent or ip, assuming to be spam") - return True - - try: - log.debug("Spam checking comment content") - return self._client.comment_check( - user_ip=user_ip, - user_agent=user_agent, - comment_content=comment.text, - comment_type="reply", - comment_author=comment.author.profile.name, - comment_author_email=comment.author.email, - is_test=settings.AKISMET_IS_TESTING, - ) - except: # pylint: disable=bare-except - log.exception("Error trying to spam check w/ Akismet") - return False diff --git a/channels/spam_test.py b/channels/spam_test.py deleted file mode 100644 index 9b0a009298..0000000000 --- a/channels/spam_test.py +++ /dev/null @@ -1,246 +0,0 @@ -"""Spam verification tests""" -from types import SimpleNamespace - -from akismet import AkismetError -import pytest -from django.contrib.contenttypes.models import ContentType - -from channels.constants import POST_TYPE, COMMENT_TYPE -from channels.factories.models import PostFactory, CommentFactory -from channels.models import SpamCheckResult -from channels.spam import ( - SpamChecker, - extract_spam_check_headers, - save_spam_result, - exempt_from_spamcheck, -) - -# pylint: disable=redefined-outer-name -from open_discussions import features - - -@pytest.fixture(autouse=True) -def default_settings(settings): - """Default settings for tests""" - settings.AKISMET_API_KEY = "test-key" - settings.AKISMET_BLOG_URL = "http://mit.edu" - # just in case we somehow execute it if a test fails - settings.AKISMET_IS_TESTING = True - - -@pytest.fixture() -def user_request_args(): - """User request args extracted from headers""" - return SimpleNamespace(user_agent="UserAgent", user_ip="127.0.0.1") - - -@pytest.fixture() -def mock_akismet(mocker): # pylint: disable=unused-argument - """Fixture for a valid request and checker""" - return mocker.patch("channels.spam.akismet.Akismet", autospec=True) - - -@pytest.fixture -def post_checker( - user, user_request_args, mock_akismet -): # pylint: disable=unused-argument - """Fixture for post check""" - post = PostFactory.create(author=user) - - def _check(**kwargs): - resolved_kwargs = {**vars(user_request_args), "post": post, **kwargs} - - checker = SpamChecker() - - return checker.is_post_spam(**resolved_kwargs) - - return SimpleNamespace(post=post, check=_check) - - -@pytest.fixture -def comment_checker( - user, user_request_args, mock_akismet -): # pylint: disable=unused-argument - """Fixture for post check""" - comment = CommentFactory.create(author=user) - - def _check(**kwargs): - resolved_kwargs = {**vars(user_request_args), "comment": comment, **kwargs} - - checker = SpamChecker() - - return checker.is_comment_spam(**resolved_kwargs) - - return SimpleNamespace(comment=comment, check=_check) - - -@pytest.mark.parametrize( - "headers, expected", - [ - [ - dict(HTTP_X_FORWARDED_FOR="127.0.0.7"), - SimpleNamespace(user_agent="", user_ip="127.0.0.7"), - ], - [ - dict(HTTP_USER_AGENT="user-agent", HTTP_X_FORWARDED_FOR="127.0.0.7"), - SimpleNamespace(user_agent="user-agent", user_ip="127.0.0.7"), - ], - ], -) -def test_extract_spam_check_headers(rf, headers, expected): - """Test that extract_spam_check_headers extracts user agent and ip from request headers""" - request = rf.post("/api", **headers) - - assert extract_spam_check_headers(request) == expected - - -@pytest.mark.parametrize( - "checker", - [pytest.lazy_fixture("post_checker"), pytest.lazy_fixture("comment_checker")], -) -def test_not_configured(settings, mock_akismet, checker): - """Verify that Akismet doesn't mark anything as spam if it's not configured""" - settings.AKISMET_API_KEY = None - settings.AKISMET_BLOG_URL = None - - assert checker.check() is False - - mock_akismet.return_value.comment_check.assert_not_called() - - -@pytest.mark.parametrize("side_effect", [AkismetError(), Exception()]) -@pytest.mark.parametrize( - "checker", - [pytest.lazy_fixture("post_checker"), pytest.lazy_fixture("comment_checker")], -) -def test_client_init_exception(mocker, mock_akismet, side_effect, checker): - """Validation should pass if we can't initialize""" - mock_log = mocker.patch("channels.spam.log") - - mock_akismet.side_effect = side_effect - - assert checker.check() is False - - mock_log.exception.assert_called_once() - mock_akismet.return_value.comment_check.assert_not_called() - - -@pytest.mark.parametrize( - "checker", - [pytest.lazy_fixture("post_checker"), pytest.lazy_fixture("comment_checker")], -) -def test_check_raises_exception(mocker, mock_akismet, checker): - """Verify that if the request to check fails, we log a message but allow it through""" - mock_log = mocker.patch("channels.spam.log") - mock_akismet.return_value.comment_check.side_effect = Exception() - - assert checker.check() is False - - mock_log.exception.assert_called_once_with("Error trying to spam check w/ Akismet") - - -@pytest.mark.parametrize( - "checker", - [pytest.lazy_fixture("post_checker"), pytest.lazy_fixture("comment_checker")], -) -@pytest.mark.parametrize( - "extra_kwargs", - [ - pytest.param(dict(user_agent="", user_ip=""), id="no_headers"), - pytest.param(dict(user_ip=""), id="no_ip"), - pytest.param(dict(user_agent=""), id="no_useragent"), - ], -) -def test_invalid_headers(mocker, mock_akismet, checker, extra_kwargs): - """Verify that is_comment_spam returns false for requests with no IP or UA""" - mock_log = mocker.patch("channels.spam.log") - - assert checker.check(**extra_kwargs) is True - - mock_log.info.assert_called_once_with( - "Couldn't determine user agent or ip, assuming to be spam" - ) - mock_akismet.return_value.comment_check.assert_not_called() - - -def test_is_comment_spam(mock_akismet, comment_checker, user_request_args, user): - """Verify is_comment_spam calls the Akismet API correctly""" - assert ( - comment_checker.check() == mock_akismet.return_value.comment_check.return_value - ) - - mock_akismet.return_value.comment_check.assert_called_once_with( - user_agent=user_request_args.user_agent, - user_ip=user_request_args.user_ip, - comment_content=comment_checker.comment.text, - comment_type="reply", - comment_author=user.profile.name, - comment_author_email=user.email, - is_test=True, - ) - - -def test_is_text_post_spam(mock_akismet, post_checker, user_request_args, user): - """Verify is_post_spam calls the Akismet API correctly for a post""" - assert post_checker.check() == mock_akismet.return_value.comment_check.return_value - - mock_akismet.return_value.comment_check.assert_called_once_with( - user_agent=user_request_args.user_agent, - user_ip=user_request_args.user_ip, - comment_content=post_checker.post.plain_text, - comment_type="forum-post", - comment_author=user.profile.name, - comment_author_email=user.email, - is_test=True, - ) - - -@pytest.mark.django_db -@pytest.mark.parametrize("model", [POST_TYPE, COMMENT_TYPE]) -@pytest.mark.parametrize("is_spam", [True, False]) -@pytest.mark.parametrize("ip_address", ["10.1.1.18", "fake", None, ""]) -def test_save_spam_result(*, model, is_spam, ip_address): - """Test that a SpamCheckResult object is created with correct values""" - user_ip = ip_address - user_agent = "Fake" - object_type = ContentType.objects.get(model=model) - kwargs = { - "user_ip": user_ip, - "user_agent": user_agent, - "object_type": object_type, - "object_id": 1, - "is_spam": is_spam, - } - save_spam_result(**kwargs) - result = SpamCheckResult.objects.get(content_type=object_type, object_id=1) - assert result.is_spam is is_spam - assert result.checks == 1 - assert result.user_ip == ip_address - kwargs["is_spam"] = not is_spam - save_spam_result(**kwargs) - result = SpamCheckResult.objects.get(content_type=object_type, object_id=1) - assert result.is_spam is not is_spam - assert result.checks == 2 - - -@pytest.mark.parametrize("feature_enabled", [True, False]) -@pytest.mark.parametrize( - "email,is_exempt", - [ - ["joe@mit.edu", True], - ["jane@csail.mit.edu", True], - ["tester@summit.edu", False], - ["tester@mit.edu.com", False], - ["tester@foobar.edu", True], - ["tester@specialcase.com", True], - ], -) -def test_exempt_from_spamcheck(settings, email, is_exempt, feature_enabled): - """Test that emails are correctly determined to be exempt or not from span checks""" - settings.FEATURES[features.SPAM_EXEMPTIONS] = feature_enabled - settings.SPAM_EXEMPT_EMAILS = [ - "[@\\.]mit\\.edu", - "@foobar\\.edu", - "tester@specialcase\\.com", - ] - assert exempt_from_spamcheck(email) is (feature_enabled and is_exempt) diff --git a/channels/task_helpers.py b/channels/task_helpers.py deleted file mode 100644 index ef9c0b3985..0000000000 --- a/channels/task_helpers.py +++ /dev/null @@ -1,69 +0,0 @@ -"""Channel tasks helpers""" -from django.conf import settings - -from channels.spam import extract_spam_check_headers, exempt_from_spamcheck -from open_discussions.features import HOT_POST_REPAIR, if_feature_enabled - - -@if_feature_enabled(HOT_POST_REPAIR) -def maybe_repair_post_in_host_listing(post_obj): - """ - Runs a task to maybe repair a post if it's missing from the hot listing - - Args: - post_obj (channels.proxies.PostProxy): A proxied post/submission - """ - from channels import tasks - - post = post_obj._self_post # pylint: disable=protected-access - - tasks.maybe_repair_post_in_host_listing.apply_async( - args=[post.channel.name, post.post_id], - countdown=settings.MITOPEN_HOT_POST_REPAIR_DELAY, - ) - - -def check_post_for_spam(request, post_id): - """ - Run a task to determine if the post is spam - - Args: - request(): the request to create or update the post - post_id(str): the base36 post id - """ - from channels import tasks - - if exempt_from_spamcheck(request.user.email): - return - - headers = extract_spam_check_headers(request) - tasks.check_post_for_spam.apply_async( - kwargs=dict( - user_ip=headers.user_ip, user_agent=headers.user_agent, post_id=post_id - ), - countdown=15, - ) - - -def check_comment_for_spam(request, comment_id): - """ - Run a task to determine if the post is spam - - Args: - request(): the request to create or update the post - comment_id(str): the base36 comment id - """ - from channels import tasks - - if exempt_from_spamcheck(request.user.email): - return - - headers = extract_spam_check_headers(request) - tasks.check_comment_for_spam.apply_async( - kwargs=dict( - user_ip=headers.user_ip, - user_agent=headers.user_agent, - comment_id=comment_id, - ), - countdown=15, - ) diff --git a/channels/task_helpers_test.py b/channels/task_helpers_test.py deleted file mode 100644 index e22f2f2b1a..0000000000 --- a/channels/task_helpers_test.py +++ /dev/null @@ -1,90 +0,0 @@ -"""Tests for task helpers""" -import pytest - -from channels import task_helpers -from open_discussions.features import HOT_POST_REPAIR - - -@pytest.mark.parametrize("delay", [200, 100]) -def test_maybe_repair_post_in_host_listing(mocker, settings, delay): - """Test that maybe_repair_post_in_host_listing triggers the task correctly""" - post = mocker.Mock() - self_post = post._self_post # pylint: disable=protected-access - patched_maybe_repair_post_in_host_listing = mocker.patch( - "channels.tasks.maybe_repair_post_in_host_listing" - ) - - settings.MITOPEN_HOT_POST_REPAIR_DELAY = delay - settings.FEATURES[HOT_POST_REPAIR] = True - - task_helpers.maybe_repair_post_in_host_listing(post) - - patched_maybe_repair_post_in_host_listing.apply_async.assert_called_once_with( - args=[self_post.channel.name, self_post.post_id], countdown=delay - ) - - -@pytest.mark.parametrize("is_exempt", [True, False]) -def test_check_post_for_spam(mocker, rf, is_exempt, user): - """Test that check_post_for_spam calls the task""" - mock_exempt_check = mocker.patch( - "channels.task_helpers.exempt_from_spamcheck", return_value=is_exempt - ) - mock_extract_spam_check_headers = mocker.patch( - "channels.task_helpers.extract_spam_check_headers" - ) - mock_headers = mock_extract_spam_check_headers.return_value - mock_task = mocker.patch("channels.tasks.check_post_for_spam") - mock_request = rf.post("/api") - mock_request.user = user - - task_helpers.check_post_for_spam(mock_request, "post-id") - - mock_exempt_check.assert_called_once_with(user.email) - - if not is_exempt: - mock_extract_spam_check_headers.assert_called_once_with(mock_request) - mock_task.apply_async.assert_called_once_with( - kwargs=dict( - user_agent=mock_headers.user_agent, - user_ip=mock_headers.user_ip, - post_id="post-id", - ), - countdown=15, - ) - else: - mock_extract_spam_check_headers.assert_not_called() - mock_task.apply_async.assert_not_called() - - -@pytest.mark.parametrize("is_exempt", [True, False]) -def test_check_comment_for_spam(mocker, rf, user, is_exempt): - """Test that check_comment_for_spam calls the task""" - mock_exempt_check = mocker.patch( - "channels.task_helpers.exempt_from_spamcheck", return_value=is_exempt - ) - mock_extract_spam_check_headers = mocker.patch( - "channels.task_helpers.extract_spam_check_headers" - ) - mock_headers = mock_extract_spam_check_headers.return_value - mock_task = mocker.patch("channels.tasks.check_comment_for_spam") - mock_request = rf.post("/api") - mock_request.user = user - - task_helpers.check_comment_for_spam(mock_request, "comment-id") - - mock_exempt_check.assert_called_once_with(user.email) - - if not is_exempt: - mock_extract_spam_check_headers.assert_called_once_with(mock_request) - mock_task.apply_async.assert_called_once_with( - kwargs=dict( - user_agent=mock_headers.user_agent, - user_ip=mock_headers.user_ip, - comment_id="comment-id", - ), - countdown=15, - ) - else: - mock_extract_spam_check_headers.assert_not_called() - mock_task.apply_async.assert_not_called() diff --git a/channels/tasks.py b/channels/tasks.py deleted file mode 100644 index 5d8be59180..0000000000 --- a/channels/tasks.py +++ /dev/null @@ -1,627 +0,0 @@ -"""Channels tasks""" -from itertools import islice -import logging -import traceback -from urllib.parse import urljoin - -import base36 -import celery -from django.conf import settings -from django.contrib.auth import get_user_model -from django.contrib.auth.models import Group -from django.contrib.contenttypes.models import ContentType -from django.shortcuts import reverse -from prawcore.exceptions import ResponseException - -from channels import api, backpopulate_api, membership_api -from channels.api import ( - Api, - sync_channel_subscription_model, - add_user_role, - get_admin_api, - get_allowed_post_types_from_link_type, - allowed_post_types_bitmask, -) -from channels.spam import create_akismet_client -from channels.constants import ROLE_MODERATORS, ROLE_CONTRIBUTORS -from channels.models import ( - Channel, - Post, - ChannelGroupRole, - ChannelInvitation, - Comment, - SpamCheckResult, -) -from channels.spam import SpamChecker, save_spam_result -from channels.utils import SORT_NEW_LISTING_PARAMS, SORT_HOT_LISTING_PARAMS -from authentication.models import BlockedEmailRegex -from mail import api as mail_api -from open_discussions.celery import app -from open_discussions.utils import chunks -from search.exceptions import PopulateUserRolesException, RetryException -from search import search_index_helpers -from notifications.tasks import notify_moderators - -User = get_user_model() -log = logging.getLogger() - -SPAM_CHECKER = SpamChecker() - - -@app.task() -def evict_expired_access_tokens(): - """Evicts expired access tokens""" - api.evict_expired_access_tokens() - - -@app.task(bind=True) -def subscribe_all_users_to_channels(self, *, channel_names): - """ - Subscribes all users to a set of channels - - Args: - channel_names (list of str): the names of the channels to subscribe to - """ - chunk_size = settings.MITOPEN_DEFAULT_CHANNEL_BACKPOPULATE_BATCH_SIZE - query = ( - User.objects.exclude(username=settings.INDEXING_API_USERNAME) - .order_by("username") - .values_list("username", flat=True) - .iterator() - ) - - results = celery.group( - [ - subscribe_user_range_to_channels.si( - channel_names=channel_names, usernames=usernames - ) - for usernames in chunks(query, chunk_size=chunk_size) - ] - ) - - raise self.replace(results) - - -@app.task -def subscribe_user_range_to_channels(*, channel_names, usernames): - """ - Subscribes a range of user ids to a set of channels - - Args: - channel_names (list of str): the names of the channels to subscribe to - usernames (list of str): list of user usernames - """ - admin_api = get_admin_api() - # walk the usernames and add them as subscribers - for username in usernames: - for channel_name in channel_names: - try: - admin_api.add_subscriber(username, channel_name) - except Exception: # pylint: disable=broad-except - log.exception( - "Failed to subscribe username '%s' to channel '%s'", - username, - channel_name, - ) - - -@app.task(autoretry_for=(RetryException,), retry_backoff=True, rate_limit="600/m") -def populate_user_subscriptions(user_ids): - """ - Populate channel user roles for a list of user ids - - Args: - user_ids(list of int): List of user ids - """ - for user in User.objects.filter(id__in=user_ids).iterator(): - client = Api(user) - channels = client.list_channels() - for channel in channels: - sync_channel_subscription_model(channel.display_name, user=user) - - -@app.task(autoretry_for=(RetryException,), retry_backoff=True, rate_limit="600/m") -def populate_user_roles(channel_ids): - """ - Populate channel user roles for a list of channel ids - - Args: - channel_ids(list of int): List of channel ids - """ - client = get_admin_api() - for channel in Channel.objects.filter(id__in=channel_ids): - try: - role = ROLE_MODERATORS - ChannelGroupRole.objects.get_or_create( - channel=channel, - role=role, - group=Group.objects.get_or_create(name=f"{channel.name}_{role}")[0], - ) - for moderator in client.list_moderators(channel.name): - user = User.objects.filter(username=moderator.name).first() - if user: - add_user_role(channel, ROLE_MODERATORS, user) - role = ROLE_CONTRIBUTORS - ChannelGroupRole.objects.get_or_create( - channel=channel, - role=role, - group=Group.objects.get_or_create(name=f"{channel.name}_{role}")[0], - ) - for contributor in client.list_contributors(channel.name): - user = User.objects.filter(username=contributor.name).first() - if user: - add_user_role(channel, ROLE_CONTRIBUTORS, user) - except ResponseException: - # This could mean the indexing user cannot access a channel, which is a bug. - # We need to raise a different exception here because celery doesn't handle PRAW exceptions correctly. - raise PopulateUserRolesException( - f"ResponseException received for channel {channel}: {traceback.format_exc()}" - ) - - -@app.task(bind=True) -def populate_subscriptions_and_roles(self): - """Populate channel roles and subscriptions for all users and channels""" - results = celery.group( - [ - populate_user_subscriptions.si(ids) - for ids in chunks( - User.objects.exclude(username=settings.INDEXING_API_USERNAME) - .exclude(profile__isnull=True) - .order_by("id") - .values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - + [ - populate_user_roles.si(ids) - for ids in chunks( - Channel.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - ) - raise self.replace(results) - - -@app.task -def populate_post_and_comment_fields_batch(ids): - """ - Populates Post.post_type for a range of posts - - Args: - ids (list of int): list of post ids - """ - client = get_admin_api() - - for post in Post.objects.filter(id__in=ids).iterator(): - submission = client.get_submission(post.post_id) - - backpopulate_api.backpopulate_post(post=post, submission=submission) - backpopulate_api.backpopulate_comments(post=post, submission=submission) - - -@app.task(bind=True) -def populate_post_and_comment_fields(self): - """ - Populates Post fields - """ - results = celery.group( - [ - populate_post_and_comment_fields_batch.si(ids) - for ids in chunks( - Post.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - ) - raise self.replace(results) - - -@app.task -def populate_channel_fields_batch(channel_ids): - """ - Populates Channel fields from reddit for a list of channel ids - - Args: - channel_ids (list of int): list channel post ids - """ - client = get_admin_api() - - for channel in Channel.objects.filter(id__in=channel_ids).iterator(): - if all( - getattr(channel, field) - for field in ["allowed_post_types", "title", "channel_type"] - ): - continue - - subreddit = client.get_subreddit(channel.name) - - if not channel.allowed_post_types: - channel.allowed_post_types = allowed_post_types_bitmask( - get_allowed_post_types_from_link_type(subreddit.submission_type) - ) - - if not channel.title: - channel.title = subreddit.title - - if not channel.channel_type: - channel.channel_type = subreddit.subreddit_type - - channel.save() - - -@app.task(bind=True) -def populate_channel_fields(self): - """ - Populates Channel fields from reddit for all channels - """ - results = celery.group( - [ - populate_channel_fields_batch.si(ids) - for ids in chunks( - Channel.objects.values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - ) - raise self.replace(results) - - -@app.task() -def populate_posts_and_comments(post_ids): - """ - Backpopulates a list of post ids - - Args: - post_ids (list of int): list of reddit post ids in integer form - - Returns: - dict: aggregated result data for this batch - """ - admin_api = get_admin_api() - - # brute force this because /api/info does not return all submissions for an unknown reason - submissions = [] - for post_id in post_ids: - try: - submission = admin_api.get_submission(base36.dumps(post_id)) - # force a fetch so any loading errors get caught now - submission._fetch() # pylint: disable=protected-access - submissions.append(submission) - except: # pylint: disable=bare-except - log.warning("Could not find submission '%s'", post_id) - - channels_by_name = Channel.objects.in_bulk( - [submission.subreddit.display_name for submission in submissions], - field_name="name", - ) - post_count = 0 - comment_count = 0 - failures = [] - - for submission in submissions: - channel_name = submission.subreddit.display_name - - # skip posts that don't have a matching channel, we don't want to auto-create these - if channel_name not in channels_by_name: - log.warning( - "Unknown channel name %s, not populating post %s", - channel_name, - submission.id, - ) - failures.append( - { - "thing_type": "post", - "thing_id": submission.id, - "reason": "unknown channel '{}'".format(channel_name), - } - ) - continue - - post, _ = Post.objects.get_or_create( - post_id=submission.id, - defaults={"channel": channels_by_name.get(channel_name)}, - ) - - backpopulate_api.backpopulate_post(post=post, submission=submission) - post_count += 1 - - comment_count += backpopulate_api.backpopulate_comments( - post=post, submission=submission - ) - return {"posts": post_count, "comments": comment_count, "failures": failures} - - -@app.task() -def populate_posts_and_comments_merge_results(results): - """ - Merges results of backpopulate_posts_and_comments - - Args: - results (iterable of dict): iterable of batch task results - - Returns: - dict: merged result data for all batches - """ - post_count = 0 - comment_count = 0 - failures = [] - - for result in results: - post_count += result["posts"] - comment_count += result["comments"] - failures.extend(result["failures"]) - - return {"posts": post_count, "comments": comment_count, "failures": failures} - - -@app.task(bind=True) -def populate_all_posts_and_comments(self): - """ - Backpopulate all posts and comments - """ - reddit_api = get_admin_api().reddit - - # fetch and base36 decode the latest post id - newest_post_id = base36.loads(next(reddit_api.front.new()).id) - - # create a celery chord by batching a backpopulate and merging results - results = ( - celery.group( - populate_posts_and_comments.si(post_ids) - for post_ids in chunks( - range(newest_post_id + 1), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ) - | populate_posts_and_comments_merge_results.s() - ) - - raise self.replace(results) - - -@app.task -def send_invitation_email(channel_invitation_id): - """ - Sends a channel invitation - - Args: - channel_invitation_id (int): the id of the ChannelInvitation - """ - invite = ChannelInvitation.objects.get(id=channel_invitation_id) - - signup_url = urljoin(settings.SITE_BASE_URL, reverse("signup")) - - mail_api.send_messages( - list( - mail_api.messages_for_recipients( - [ - ( - invite.email, - mail_api.context_for_user( - extra_context={"invite": invite, "signup_url": signup_url} - ), - ) - ], - "invite", - ) - ) - ) - - -@app.task -def maybe_repair_post_in_host_listing(channel_name, reddit_post_id): - """ - Repair a post on the condition that it's in the new post listing but not in the hot listing - - Args: - channel_name(str): the channel name to search for the post in - reddit_post_id(str): the reddit post id to check - """ - admin_api = get_admin_api() - - limit = settings.MITOPEN_HOT_POST_REPAIR_LIMIT - - def _find_missing_submission(): - """Find the missing submission""" - new_posts = admin_api.list_posts(channel_name, SORT_NEW_LISTING_PARAMS) - new_posts_by_id = {post.id: post for post in islice(new_posts, limit)} - new_posts_ids = set(new_posts_by_id.keys()) - - hot_posts = admin_api.list_posts(channel_name, SORT_HOT_LISTING_PARAMS) - hot_posts_ids = {post.id for post in islice(hot_posts, limit)} - - missing_post_ids = new_posts_ids - hot_posts_ids - - if reddit_post_id in missing_post_ids and reddit_post_id in new_posts_ids: - return new_posts_by_id[reddit_post_id] - return None - - # check to see if this submission existing in hot listing - submission = _find_missing_submission() - - if submission is None: - return - - submission.upvote() - submission.clear_vote() - - # check again and if it's missing still, just report an error so we can investigate - if _find_missing_submission() is not None: - log.error( - "Failed to repair submission %s missing from hot posts in channel %s", - reddit_post_id, - channel_name, - ) - else: - log.info( - "Successfully repaired submission %s missing from hot posts in channel %s", - reddit_post_id, - channel_name, - ) - - -@app.task(acks_late=True) -def update_memberships_for_managed_channels(*, channel_ids=None, user_ids=None): - """Cron task to update managed channel memberships""" - membership_api.update_memberships_for_managed_channels( - channel_ids=channel_ids, user_ids=user_ids - ) - - -@app.task(acks_late=True) -def check_post_for_spam(*, user_ip, user_agent, post_id): - """ - Check posts for spam and remove them accordingly - - Args: - user_ip (str): user's ip address for the request that created the post - user_agent (str): useragent for the request that created the post - post_id (str): reddit base36 post id - """ - admin_api = get_admin_api() - - post = Post.objects.get(post_id=post_id) - - is_spam = SPAM_CHECKER.is_post_spam( - user_ip=user_ip, user_agent=user_agent, post=post - ) - save_spam_result( - user_ip=user_ip, - user_agent=user_agent, - object_type=ContentType.objects.get_for_model(Post), - object_id=post.id, - is_spam=is_spam, - ) - - if is_spam: - admin_api.remove_post(post.post_id) - else: - notify_moderators.delay(post.post_id, post.channel.name) - - -@app.task(acks_late=True) -def check_comment_for_spam(*, user_ip, user_agent, comment_id): - """ - Check comments for spam and remove them accordingly - - Args: - user_ip (str): user's ip address for the request that created the comment - user_agent (str): useragent for the request that created the comment - comment_id (str): reddit base36 comment id - """ - admin_api = get_admin_api() - - comment = Comment.objects.get(comment_id=comment_id) - - is_spam = SPAM_CHECKER.is_comment_spam( - user_ip=user_ip, user_agent=user_agent, comment=comment - ) - save_spam_result( - user_ip=user_ip, - user_agent=user_agent, - object_type=ContentType.objects.get_for_model(Comment), - object_id=comment.id, - is_spam=is_spam, - ) - if is_spam: - admin_api.remove_comment(comment.comment_id) - - -@app.task -def update_spam(*, spam, comment_ids, post_ids, retire_users, skip_akismet): - """ - Updates the spam check result for comments and posts - - Args: - spam (bool): Mark as spam if true and ham if false - comment_ids( list of int): list of comment ids in integer form - post_ids( list of int): list of post ids in integer for - retire_users(bool): retire comment/post authors if true - skip_akismet(bool): do not submit reclassification to akismet if true - - """ - comment_content_type = ContentType.objects.get_for_model(Comment) - post_content_type = ContentType.objects.get_for_model(Post) - admin_api = get_admin_api() - - akismet_client = create_akismet_client() - - for comment in Comment.objects.filter(id__in=comment_ids).iterator(): - result, _ = SpamCheckResult.objects.get_or_create( - content_type=comment_content_type, object_id=comment.id - ) - - if spam: - result.is_spam = True - result.save() - - admin_api.remove_comment(comment.comment_id) - submit_func = akismet_client.submit_spam - - else: - result.is_spam = False - result.save() - - admin_api.approve_comment(comment.comment_id) - submit_func = akismet_client.submit_ham - - if not skip_akismet: - submit_func( - user_agent=result.user_agent, - user_ip=result.user_ip, - comment_content=comment.text, - comment_type="reply", - comment_author=comment.author.profile.name, - comment_author_email=comment.author.email, - ) - - if spam and retire_users: - retire_user(comment.author) - - for post in Post.objects.filter(id__in=post_ids).iterator(): - result, _ = SpamCheckResult.objects.get_or_create( - content_type=post_content_type, object_id=post.id - ) - - if spam: - result.is_spam = True - result.save() - - admin_api.remove_post(post.post_id) - submit_func = akismet_client.submit_spam - - else: - result.is_spam = False - result.save() - - admin_api.approve_post(post.post_id) - submit_func = akismet_client.submit_ham - - if not skip_akismet: - submit_func( - user_agent=result.user_agent, - user_ip=result.user_ip, - comment_content=post.plain_text, - comment_type="forum-post", - comment_author=post.author.profile.name, - comment_author_email=post.author.email, - ) - - if spam and retire_users: - retire_user(post.author) - - -def retire_user(user): - """Retire a user""" - if user.email: - BlockedEmailRegex.objects.create(match=user.email) - user.email = "" - user.is_active = False - user.set_unusable_password() - user.save() - user.social_auth.all().delete() - user.received_invitations.all().delete() - search_index_helpers.deindex_profile(user) - user.content_subscriptions.all().delete() diff --git a/channels/tasks_test.py b/channels/tasks_test.py deleted file mode 100644 index 5e4f36e3e4..0000000000 --- a/channels/tasks_test.py +++ /dev/null @@ -1,661 +0,0 @@ -"""Tasks tests""" -from urllib.parse import urljoin - -import base36 -import pytest -from django.contrib.auth import get_user_model -from django.contrib.contenttypes.models import ContentType -from django.shortcuts import reverse -from praw.models import Redditor -from prawcore.exceptions import ResponseException - -from channels import tasks -from channels import api -from channels.constants import ( - CHANNEL_TYPE_PUBLIC, - ROLE_MODERATORS, - ROLE_CONTRIBUTORS, - LINK_TYPE_ANY, - COMMENT_TYPE, - POST_TYPE, -) -from channels.factories.models import ( - ChannelFactory, - PostFactory, - CommentFactory, - ChannelInvitationFactory, - SpamCheckResultFactory, -) -from channels.models import ChannelSubscription, Channel, Post, Comment, SpamCheckResult -from open_discussions.factories import UserFactory -from search.exceptions import PopulateUserRolesException -from authentication.models import BlockedEmailRegex - -pytestmark = [pytest.mark.django_db, pytest.mark.usefixtures("indexing_user")] - -# pylint:disable=redefined-outer-name - -User = get_user_model() - - -@pytest.fixture -def channels_and_users(): - """Channels and users for testing""" - return ( - [ChannelFactory.create(name=channel_name) for channel_name in ["a", "b", "c"]], - UserFactory.create_batch(4), - ) - - -def test_evict_expired_access_tokens(): - """Test that the task evicts expired tokens""" - from channels.factories.models import RedditAccessTokenFactory - from channels.models import RedditAccessToken - - future = RedditAccessTokenFactory.create() - expired = RedditAccessTokenFactory.create(expired=True) - - tasks.evict_expired_access_tokens.delay() - - assert RedditAccessToken.objects.count() == 1 - assert RedditAccessToken.objects.filter(id=future.id).exists() - assert not RedditAccessToken.objects.filter(id=expired.id).exists() - - -def test_subscribe_all_users_to_channels(settings, mocker, mocked_celery): - """Test that the main task batches out smaller tasks correctly""" - settings.MITOPEN_DEFAULT_CHANNEL_BACKPOPULATE_BATCH_SIZE = 2 - users = sorted(UserFactory.create_batch(4), key=lambda user: user.username) - channel_names = ["nochannel_1", "nochannel_2"] - - mock_subscribe_user_range_to_channels = mocker.patch( - "channels.tasks.subscribe_user_range_to_channels" - ) - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.subscribe_all_users_to_channels.delay(channel_names=channel_names) - - assert mocked_celery.group.call_count == 1 - list(mocked_celery.group.call_args[0][0]) - - mock_subscribe_user_range_to_channels.si.assert_any_call( - usernames=[users[0].username, users[1].username], channel_names=channel_names - ) - mock_subscribe_user_range_to_channels.si.assert_any_call( - usernames=[users[2].username, users[3].username], channel_names=channel_names - ) - - -def test_subscribe_user_range_to_channels(mocker): - """Test that the main task batches out smaller tasks correctly""" - mock_add_subscriber = mocker.patch("channels.api.Api.add_subscriber") - mocker.patch("channels.api._get_client", autospec=True) - usernames = [user.username for user in UserFactory.create_batch(5)] - channel_names = ["nochannel_1", "nochannel_2"] - - tasks.subscribe_user_range_to_channels.delay( - usernames=usernames, channel_names=channel_names - ) - - assert mock_add_subscriber.call_count == (len(usernames) * len(channel_names)) - - for username in usernames: - for channel_name in channel_names: - mock_add_subscriber.assert_any_call(username, channel_name) - - -def test_populate_subscriptions_and_roles( - mocker, mocked_celery, settings, channels_and_users -): - """ - populate_subscriptions_and_roles should call sub-tasks with correct ids - """ - channels, users = channels_and_users - users = sorted(users, key=lambda user: user.id) - channels = sorted(channels, key=lambda channel: channel.id) - settings.OPENSEARCH_INDEXING_CHUNK_SIZE = 2 - mock_populate_user_subscriptions = mocker.patch( - "channels.tasks.populate_user_subscriptions" - ) - mock_populate_user_roles = mocker.patch("channels.tasks.populate_user_roles") - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.populate_subscriptions_and_roles.delay() - - assert mocked_celery.group.call_count == 1 - list(mocked_celery.group.call_args[0][0]) - mock_populate_user_subscriptions.si.assert_any_call([users[0].id, users[1].id]) - mock_populate_user_subscriptions.si.assert_any_call([users[2].id, users[3].id]) - mock_populate_user_roles.si.assert_any_call([channels[0].id, channels[1].id]) - mock_populate_user_roles.si.assert_any_call([channels[2].id]) - assert mocked_celery.replace.call_count == 1 - - -@pytest.mark.parametrize("is_subscriber", [True, False]) -def test_populate_user_subscriptions(mocker, is_subscriber, channels_and_users): - """populate_user_subscriptions should create ChannelSubscription objects""" - channels, users = channels_and_users - client_mock = mocker.patch("channels.tasks.Api", autospec=True) - client_mock.return_value.list_channels.return_value = [ - mocker.Mock(display_name=channel.name) for channel in channels if is_subscriber - ] - tasks.populate_user_subscriptions.delay([user.id for user in users]) - for user in users: - for channel in channels: - assert ( - ChannelSubscription.objects.filter(user=user, channel=channel).exists() - is is_subscriber - ) - - -@pytest.mark.parametrize("is_moderator", [True, False]) -@pytest.mark.parametrize("is_contributor", [True, False]) -def test_populate_user_roles(mocker, is_contributor, is_moderator, channels_and_users): - """populate_user_roles should create ChannelGroupRole objects""" - channels, users = channels_and_users - client_mock = mocker.patch("channels.api.Api", autospec=True) - redditors = [] - for user in users: - redditor = mocker.Mock(spec=Redditor) - redditor.name = user.username - redditors.append(redditor) - - client_mock.return_value.list_moderators.return_value = [ - redditor for redditor in redditors if is_moderator - ] - client_mock.return_value.list_contributors.return_value = [ - redditor for redditor in redditors if is_contributor - ] - tasks.populate_user_roles.delay([channel.id for channel in channels]) - for user in users: - for channel in channels: - assert ( - api.get_role_model(channel, ROLE_MODERATORS).group in user.groups.all() - ) is is_moderator - assert ( - api.get_role_model(channel, ROLE_CONTRIBUTORS).group - in user.groups.all() - ) is is_contributor - - -@pytest.mark.parametrize("is_error_moderator", [True, False]) -def test_populate_user_roles_error(mocker, is_error_moderator, channels_and_users): - """populate_user_roles should raise a PopulateUserRolesException if there is a ResponseException error""" - channels, users = channels_and_users - client_mock = mocker.patch("channels.api.Api", autospec=True) - redditors = [] - for user in users: - redditor = mocker.Mock(spec=Redditor) - redditor.name = user.username - redditors.append(redditor) - - client_mock.return_value.list_moderators.return_value = [] - client_mock.return_value.list_contributors.return_value = [] - - if is_error_moderator: - client_mock.return_value.list_moderators.side_effect = ResponseException( - mocker.Mock() - ) - else: - client_mock.return_value.list_contributors.side_effect = ResponseException( - mocker.Mock() - ) - - with pytest.raises(PopulateUserRolesException): - tasks.populate_user_roles.delay([channel.id for channel in channels]) - - -def test_populate_post_and_comment_fields(mocker, mocked_celery, settings): - """ - populate_post_and_comment_fields should call sub-tasks with correct ids - """ - posts = PostFactory.create_batch(4) - settings.OPENSEARCH_INDEXING_CHUNK_SIZE = 2 - mock_populate_post_and_comment_fields_batch = mocker.patch( - "channels.tasks.populate_post_and_comment_fields_batch" - ) - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.populate_post_and_comment_fields.delay() - - assert mocked_celery.group.call_count == 1 - list(mocked_celery.group.call_args[0][0]) - mock_populate_post_and_comment_fields_batch.si.assert_any_call( - [posts[0].id, posts[1].id] - ) - mock_populate_post_and_comment_fields_batch.si.assert_any_call( - [posts[2].id, posts[3].id] - ) - assert mocked_celery.replace.call_count == 1 - - -def test_populate_post_and_comment_fields_batch(mocker): - """ - populate_post_and_comment_fields_batch should call backpopulate APIs for each post - """ - posts = PostFactory.create_batch(10, unpopulated=True) - mock_api = mocker.patch("channels.api.Api", autospec=True) - mock_backpopulate_api = mocker.patch("channels.tasks.backpopulate_api") - - tasks.populate_post_and_comment_fields_batch.delay([post.id for post in posts]) - - assert mock_api.return_value.get_submission.call_count == len(posts) - assert mock_backpopulate_api.backpopulate_post.call_count == len(posts) - assert mock_backpopulate_api.backpopulate_comments.call_count == len(posts) - for post in posts: - mock_api.return_value.get_submission.assert_any_call(post.post_id) - mock_backpopulate_api.backpopulate_post.assert_any_call( - post=post, submission=mock_api.return_value.get_submission.return_value - ) - mock_backpopulate_api.backpopulate_comments.assert_any_call( - post=post, submission=mock_api.return_value.get_submission.return_value - ) - - -def test_populate_channel_fields_batch(mocker): - """ - populate_channel_fields should set fields from reddit - """ - channels = ChannelFactory.create_batch(2) - mock_api = mocker.patch("channels.api.Api", autospec=True) - mock_subreddit = mock_api.return_value.get_subreddit.return_value - mock_subreddit.submission_type = LINK_TYPE_ANY - mock_subreddit.title = "A channel title" - mock_subreddit.subreddit_type = CHANNEL_TYPE_PUBLIC - - updated_channel = channels[0] - updated_channel.allowed_post_types = 0 - updated_channel.title = None - updated_channel.channel_type = None - updated_channel.save() - - tasks.populate_channel_fields_batch.delay([channel.id for channel in channels]) - - updated_channel.refresh_from_db() - - mock_api.return_value.get_subreddit.assert_called_once_with(updated_channel.name) - - assert int(updated_channel.allowed_post_types) == int( - Channel.allowed_post_types.self | Channel.allowed_post_types.link - ) - assert updated_channel.channel_type == CHANNEL_TYPE_PUBLIC - assert updated_channel.title == "A channel title" - - -def test_populate_posts_and_comments(mocker): - """ - populate_posts_and_comments should call the backpopulate API for each post - """ - - post_ids = [1, 2, 3] - - ChannelFactory.create(name="exists") - - submission_mock = mocker.Mock(id="1", subreddit=mocker.Mock(display_name="exists")) - - mock_submissions = [ - submission_mock, - mocker.Mock(id="2", subreddit=mocker.Mock(display_name="missing")), - ] - - mock_api = mocker.patch("channels.api.Api", autospec=True) - mock_api.return_value.get_submission.side_effect = mock_submissions - - mock_backpopulate_api = mocker.patch("channels.tasks.backpopulate_api") - mock_backpopulate_api.backpopulate_comments.return_value = 15 - - result = tasks.populate_posts_and_comments.delay(post_ids).get() - - assert mock_api.return_value.get_submission.call_count == len(post_ids) - for post_id in post_ids: - mock_api.return_value.get_submission.assert_any_call(base36.dumps(post_id)) - - assert Post.objects.filter(post_id="1").exists() - - post = Post.objects.get(post_id="1") - - mock_backpopulate_api.backpopulate_post.assert_called_once_with( - post=post, submission=submission_mock - ) - mock_backpopulate_api.backpopulate_comments.assert_called_once_with( - post=post, submission=submission_mock - ) - - for mock in mock_submissions: - mock._fetch.assert_called_once_with() # pylint: disable=protected-access - - assert result == { - "posts": 1, - "comments": 15, - "failures": [ - { - "thing_type": "post", - "thing_id": "2", - "reason": "unknown channel 'missing'", - } - ], - } - - -def test_populate_posts_and_comments_merge_results(): - """ - populate_posts_and_comments_merge_results should aggregate result from other tasks - """ - result = tasks.populate_posts_and_comments_merge_results.delay( - [ - {"posts": 3, "comments": 5, "failures": [1, 2, 3]}, - {"posts": 6, "comments": 9, "failures": [3, 4, 5]}, - ] - ).get() - - assert result == {"posts": 9, "comments": 14, "failures": [1, 2, 3, 3, 4, 5]} - - -def test_populate_all_posts_and_comments(mocker, settings, mocked_celery): - """ - populate_all_posts_and_comments should create batched subtasks to populate the Posts and Comments - """ - mock_api = mocker.patch("channels.api.Api", autospec=True) - mock_api.return_value.reddit.front.new.return_value = iter( - [mocker.Mock(id=base36.dumps(23))] - ) - - mock_populate_posts_and_comments = mocker.patch( - "channels.tasks.populate_posts_and_comments" - ) - mock_populate_posts_and_comments_merge_results = mocker.patch( - "channels.tasks.populate_posts_and_comments_merge_results" - ) - - # ensure group consumers the generator passed to it so the other assertions work - mocked_celery.group.side_effect = list - - settings.OPENSEARCH_INDEXING_CHUNK_SIZE = 10 - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.populate_all_posts_and_comments.delay() - - assert mocked_celery.group.call_count == 1 - assert mock_populate_posts_and_comments.si.call_count == 3 - mock_populate_posts_and_comments.si.assert_any_call(list(range(0, 10))) - mock_populate_posts_and_comments.si.assert_any_call(list(range(10, 20))) - mock_populate_posts_and_comments.si.assert_any_call(list(range(20, 24))) - mock_populate_posts_and_comments_merge_results.s.assert_called_once_with() - assert mocked_celery.replace.call_count == 1 - - -def test_send_invitation_email(mocker, settings): - """Tests that send_invitation_email sends an email""" - invite = ChannelInvitationFactory.create() - mock_mail_api = mocker.patch("channels.tasks.mail_api") - mock_mail_api.messages_for_recipients.return_value = [1] - tasks.send_invitation_email.delay(invite.id) - - mock_mail_api.context_for_user.assert_called_once_with( - extra_context={ - "invite": invite, - "signup_url": urljoin(settings.SITE_BASE_URL, reverse("signup")), - } - ) - mock_mail_api.messages_for_recipients.assert_called_once_with( - [(invite.email, mock_mail_api.context_for_user.return_value)], "invite" - ) - mock_mail_api.send_messages.assert_called_once_with( - mock_mail_api.messages_for_recipients.return_value - ) - - -@pytest.mark.parametrize("is_in_new_posts", [True, False]) -@pytest.mark.parametrize("is_missing", [True, False]) -@pytest.mark.parametrize("will_fail_repair", [True, False]) -def test_maybe_repair_post_in_host_listing( - mocker, settings, is_in_new_posts, is_missing, will_fail_repair -): - """Tests that maybe_repair_post_in_host_listing correctly repairs if the post is missing""" - - get_admin_api_mock = mocker.patch("channels.tasks.get_admin_api") - log_mock = mocker.patch("channels.tasks.log") - will_attempt_repair = is_in_new_posts and is_missing - - channel_name = "channel" - post_id = base36.dumps(23) - - missing_post = mocker.Mock(id=post_id) - posts = list(mocker.Mock(id=str(x)) for x in range(5)) - - admin_api_mock = get_admin_api_mock.return_value - admin_api_mock.list_posts.side_effect = [ - ([missing_post] if is_in_new_posts else []) + posts, - ([] if is_missing else [missing_post]) + posts, - ([missing_post] if is_in_new_posts else []) + posts, - ([] if will_fail_repair else [missing_post]) + posts, - ] - - settings.MITOPEN_HOT_POST_REPAIR_LIMIT = 4 - - tasks.maybe_repair_post_in_host_listing.delay(channel_name, post_id) - - get_admin_api_mock.assert_called_once_with() - - assert admin_api_mock.list_posts.call_count == (4 if will_attempt_repair else 2) - - if will_attempt_repair: - missing_post.upvote.assert_called_once_with() - missing_post.clear_vote.assert_called_once_with() - else: - missing_post.upvote.assert_not_called() - missing_post.clear_vote.assert_not_called() - - if will_attempt_repair: - if will_fail_repair: - log_mock.error.assert_called_once_with( - "Failed to repair submission %s missing from hot posts in channel %s", - post_id, - channel_name, - ) - else: - log_mock.info.assert_called_once_with( - "Successfully repaired submission %s missing from hot posts in channel %s", - post_id, - channel_name, - ) - - -def test_update_memberships_for_managed_channels(mocker): - """Test that update_memberships_for_managed_channels task calls the matching API""" - mock_update_memberships_for_managed_channels_api = mocker.patch( - "channels.membership_api.update_memberships_for_managed_channels", autospec=True - ) - - tasks.update_memberships_for_managed_channels.delay( - channel_ids=[1, 2, 3], user_ids=[4, 5, 6] - ) - - mock_update_memberships_for_managed_channels_api.assert_called_once_with( - channel_ids=[1, 2, 3], user_ids=[4, 5, 6] - ) - - -@pytest.mark.parametrize("is_spam", [True, False]) -def test_check_comment_for_spam(mocker, is_spam): - """Verify that check_comment_for_spam removes a comment if it is spam""" - mock_api = mocker.patch("channels.tasks.get_admin_api").return_value - mock_spam_checker = mocker.patch("channels.tasks.SPAM_CHECKER") - mock_spam_checker.is_comment_spam.return_value = is_spam - comment = CommentFactory.create() - - tasks.check_comment_for_spam.delay( - user_agent="user-agent", user_ip="user-ip", comment_id=comment.comment_id - ) - - mock_spam_checker.is_comment_spam.assert_called_once_with( - user_agent="user-agent", user_ip="user-ip", comment=comment - ) - - if is_spam: - mock_api.remove_comment.assert_called_once_with(comment.comment_id) - else: - mock_api.remove_comment.assert_not_called() - - assert ( - SpamCheckResult.objects.filter( - content_type=ContentType.objects.get(model=COMMENT_TYPE), - object_id=comment.id, - is_spam=is_spam, - ).count() - == 1 - ) - - -@pytest.mark.parametrize("is_spam", [True, False]) -def test_check_post_for_spam(mocker, is_spam): - """Verify that check_post_for_spam removes a post if it is spam""" - mock_api = mocker.patch("channels.tasks.get_admin_api").return_value - mock_spam_checker = mocker.patch("channels.tasks.SPAM_CHECKER") - mock_spam_checker.is_post_spam.return_value = is_spam - mock_moderator_notification = mocker.patch("channels.tasks.notify_moderators.delay") - - post = PostFactory.create() - - tasks.check_post_for_spam.delay( - user_agent="user-agent", user_ip="user-ip", post_id=post.post_id - ) - - mock_spam_checker.is_post_spam.assert_called_once_with( - user_agent="user-agent", user_ip="user-ip", post=post - ) - - if is_spam: - mock_api.remove_post.assert_called_once_with(post.post_id) - mock_moderator_notification.assert_not_called() - else: - mock_api.remove_post.assert_not_called() - mock_moderator_notification.assert_called_once_with( - post.post_id, post.channel.name - ) - - assert ( - SpamCheckResult.objects.filter( - content_type=ContentType.objects.get(model=POST_TYPE), - object_id=post.id, - is_spam=is_spam, - ).count() - == 1 - ) - - -@pytest.mark.parametrize("spam", [True, False]) -@pytest.mark.parametrize("retire_users", [True, False]) -@pytest.mark.parametrize("skip_akismet", [True, False]) -@pytest.mark.parametrize("existing_spam_check_result", [True, False]) -def test_update_spam( - mocker, spam, retire_users, skip_akismet, existing_spam_check_result -): - """Test the update_spam task""" - # pylint: disable=too-many-locals - comment = CommentFactory.create() - post = PostFactory.create() - - if existing_spam_check_result: - comment_spam_check_result = SpamCheckResultFactory.create( - content_object=comment, is_spam=(not spam) - ) - post_spam_check_result = SpamCheckResultFactory.create( - content_object=post, is_spam=(not spam) - ) - - post_author_email = post.author.email - comment_author_email = comment.author.email - - mock_admin_api = mocker.patch("channels.tasks.get_admin_api").return_value - mock_askimet_client = mocker.patch( - "channels.tasks.create_akismet_client" - ).return_value - mocker.patch("search.search_index_helpers.deindex_profile", autospec=True) - tasks.update_spam.delay( - spam=spam, - comment_ids=[comment.id], - post_ids=[post.id], - retire_users=retire_users, - skip_akismet=skip_akismet, - ) - - if existing_spam_check_result: - comment_spam_check_result.refresh_from_db() - post_spam_check_result.refresh_from_db() - else: - comment_content_type = ContentType.objects.get_for_model(Comment) - post_content_type = ContentType.objects.get_for_model(Post) - - comment_spam_check_result = SpamCheckResult.objects.get( - content_type=comment_content_type, object_id=comment.id - ) - - post_spam_check_result = SpamCheckResult.objects.get( - content_type=post_content_type, object_id=post.id - ) - - assert comment_spam_check_result.is_spam == spam - assert post_spam_check_result.is_spam == spam - - if spam: - mock_admin_api.remove_post.assert_called_once_with(post.post_id) - mock_admin_api.remove_comment.assert_called_once_with(comment.comment_id) - - if not skip_akismet: - mock_askimet_client.submit_spam.assert_any_call( - user_agent=comment_spam_check_result.user_agent, - user_ip=comment_spam_check_result.user_ip, - comment_content=comment.text, - comment_type="reply", - comment_author=comment.author.profile.name, - comment_author_email=comment.author.email, - ) - - mock_askimet_client.submit_spam.assert_any_call( - user_agent=post_spam_check_result.user_agent, - user_ip=post_spam_check_result.user_ip, - comment_content=post.plain_text, - comment_type="forum-post", - comment_author=post.author.profile.name, - comment_author_email=post.author.email, - ) - - if retire_users: - blocked_email_regexes = BlockedEmailRegex.objects.all().values_list( - "match", flat=True - ) - assert post_author_email in blocked_email_regexes - assert comment_author_email in blocked_email_regexes - - comment.refresh_from_db() - post.refresh_from_db() - - assert comment.author.email == "" - assert post.author.email == "" - - assert not comment.author.is_active - assert not post.author.is_active - - else: - mock_admin_api.approve_post.assert_called_once_with(post.post_id) - mock_admin_api.approve_comment.assert_called_once_with(comment.comment_id) - - if not skip_akismet: - mock_askimet_client.submit_ham.assert_any_call( - user_agent=comment_spam_check_result.user_agent, - user_ip=comment_spam_check_result.user_ip, - comment_content=comment.text, - comment_type="reply", - comment_author=comment.author.profile.name, - comment_author_email=comment.author.email, - ) - - mock_askimet_client.submit_ham.assert_any_call( - user_agent=post_spam_check_result.user_agent, - user_ip=post_spam_check_result.user_ip, - comment_content=post.plain_text, - comment_type="forum-post", - comment_author=post.author.profile.name, - comment_author_email=post.author.email, - ) diff --git a/channels/test_constants.py b/channels/test_constants.py deleted file mode 100644 index b520ad86f0..0000000000 --- a/channels/test_constants.py +++ /dev/null @@ -1,1019 +0,0 @@ -"""Constants for tests""" -from profiles.utils import DEFAULT_PROFILE_IMAGE - -# pylint:disable=too-many-lines - -LIST_MORE_COMMENTS_RESPONSE = [ - { - "id": "1", - "parent_id": None, - "post_id": "1", - "text": "a", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:50:32+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "2", - "parent_id": None, - "post_id": "1", - "text": "b", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:50:55+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "3", - "parent_id": None, - "post_id": "1", - "text": "c", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:50:58+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "4", - "parent_id": None, - "post_id": "1", - "text": "d", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:00+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "5", - "parent_id": None, - "post_id": "1", - "text": "e", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:02+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "l", - "parent_id": None, - "post_id": "1", - "text": "1", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:31:08+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "p", - "parent_id": None, - "post_id": "1", - "text": "reply_to_post 2", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-23T18:11:31+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8x", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 1", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:37+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8y", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 2", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:41+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8z", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 3", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:44+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e90", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 4", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:47+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e91", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 5", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:50+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e92", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 6", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:29:54+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e93", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 6", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:30:15+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e94", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 7", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:30:19+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e95", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 8", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:30:22+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e96", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 9", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:30:25+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e97", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 10", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:30:28+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e99", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 11", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:31:03+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9b", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 12", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:32:38+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9c", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 13", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:32:43+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9d", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 14", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:32:46+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9f", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 15", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:29+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9g", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 16", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:32+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9h", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 21", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:40+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9i", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 22", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:44+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9j", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 23", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:48+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9k", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 24", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:35:51+00:00", - "edited": False, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "parent_id": None, - "post_id": "1", - "children": ["e9l", "e9m", "e9n", "e9q"], - "comment_type": "more_comments", - }, - { - "id": "m", - "parent_id": "1", - "post_id": "1", - "text": "m", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:47:22+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "6", - "parent_id": "5", - "post_id": "1", - "text": "e2", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:07+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "7", - "parent_id": "5", - "post_id": "1", - "text": "e3", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:11+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "8", - "parent_id": "5", - "post_id": "1", - "text": "e1", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:15+00:00", - "profile_image": DEFAULT_PROFILE_IMAGE, - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "n", - "parent_id": "m", - "post_id": "1", - "text": "oasd", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-23T17:45:14+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "9", - "parent_id": "6", - "post_id": "1", - "text": "e2a", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:24+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "c", - "parent_id": "6", - "post_id": "1", - "text": "e2b", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:06+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "o", - "parent_id": "n", - "post_id": "1", - "text": "k;lkl;", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-23T17:45:25+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "a", - "parent_id": "9", - "post_id": "1", - "text": "e2b", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T18:51:29+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "b", - "parent_id": "9", - "post_id": "1", - "text": "e2b", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:00:58+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "f", - "parent_id": "9", - "post_id": "1", - "text": "e2a1", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:29+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "g", - "parent_id": "9", - "post_id": "1", - "text": "e2a2", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:34+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "h", - "parent_id": "9", - "post_id": "1", - "text": "e2a3", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:38+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "i", - "parent_id": "9", - "post_id": "1", - "text": "e2a4", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:42+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "d", - "parent_id": "a", - "post_id": "1", - "text": "ignore this one", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:14+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e", - "parent_id": "b", - "post_id": "1", - "text": "ignore this one", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:01:19+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "j", - "parent_id": "d", - "post_id": "1", - "text": "test", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:29:11+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "k", - "parent_id": "d", - "post_id": "1", - "text": "test2", - "author_id": "[deleted]", - "score": 1, - "upvoted": False, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-10-19T19:30:45+00:00", - "edited": False, - "profile_image": DEFAULT_PROFILE_IMAGE, - "author_name": "[deleted]", - "author_headline": None, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8s", - "parent_id": "k", - "post_id": "1", - "text": "deep comment test a", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:15:29+00:00", - "edited": True, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8t", - "parent_id": "e8s", - "post_id": "1", - "text": "deep comment test b", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:15:32+00:00", - "edited": True, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8u", - "parent_id": "e8t", - "post_id": "1", - "text": "deep comment test c", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:15:35+00:00", - "edited": True, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e8v", - "parent_id": "e8u", - "post_id": "1", - "text": "deep comment test d", - "author_id": "george", - "score": 1, - "upvoted": True, - "downvoted": False, - "deleted": False, - "removed": False, - "subscribed": False, - "created": "2017-11-09T16:15:38+00:00", - "edited": True, - "profile_image": "/deserunt/consequatur.jpg", - "author_name": "Brooke Robles", - "author_headline": "Brooke's headline", - "comment_type": "comment", - "num_reports": None, - }, - { - "parent_id": "e8v", - "post_id": "1", - "children": [], - "comment_type": "more_comments", - }, -] diff --git a/channels/test_utils.py b/channels/test_utils.py deleted file mode 100644 index f873b4b6f5..0000000000 --- a/channels/test_utils.py +++ /dev/null @@ -1,36 +0,0 @@ -"""utils for dealing with channel tests""" -from functools import partialmethod -import contextlib -import warnings -import requests - - -@contextlib.contextmanager -def no_ssl_verification(): - """totally disable SSL verification, useful for Betamax tests""" - old_request = requests.Session.request - try: - requests.Session.request = partialmethod(old_request, verify=False) - - warnings.filterwarnings("ignore", "Unverified HTTPS request") - - yield - finally: - warnings.resetwarnings() - - requests.Session.request = old_request - - -def assert_properties_eq(obj, expected): - """ - Asserts that properties on an object are equal to the expected values - - Args: - obj(object): the object to assert properties on - expected(dict): key/value mapping of expected properties - """ - for key, value in expected.items(): - if any(value is const_val for const_val in (None, True, False)): - assert getattr(obj, key) is value - else: - assert getattr(obj, key) == value diff --git a/channels/urls.py b/channels/urls.py deleted file mode 100644 index 5267bc7805..0000000000 --- a/channels/urls.py +++ /dev/null @@ -1,96 +0,0 @@ -"""URL configurations for channels""" -from django.urls import re_path, include -from rest_framework.routers import DefaultRouter - -from channels.views import ( - channels, - comments, - contributors, - frontpage, - invites, - moderators, - posts, - reports, - subscribers, -) - -router = DefaultRouter() -router.register( - r"invites", invites.ChannelInvitationViewSet, basename="channel_invitation_api" -) - -urlpatterns = [ - re_path( - r"^api/v0/channels/$", channels.ChannelListView.as_view(), name="channel-list" - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/$", - channels.ChannelDetailView.as_view(), - name="channel-detail", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/posts/$", - posts.PostListView.as_view(), - name="post-list", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/contributors/$", - contributors.ContributorListView.as_view(), - name="contributor-list", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/contributors/(?P[A-Za-z0-9_]+)/$", - contributors.ContributorDetailView.as_view(), - name="contributor-detail", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/moderators/$", - moderators.ModeratorListView.as_view(), - name="moderator-list", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/moderators/(?P[A-Za-z0-9_]+)/$", - moderators.ModeratorDetailView.as_view(), - name="moderator-detail", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/subscribers/$", - subscribers.SubscriberListView.as_view(), - name="subscriber-list", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/subscribers/(?P[A-Za-z0-9_]+)/$", - subscribers.SubscriberDetailView.as_view(), - name="subscriber-detail", - ), - re_path( - r"^api/v0/channels/(?P[A-Za-z0-9_]+)/reports/$", - reports.ChannelReportListView.as_view(), - name="channel-reports", - ), - re_path(r"^api/v0/channels/(?P[A-Za-z0-9_]+)/", include(router.urls)), - re_path( - r"api/v0/posts/(?P[A-Za-z0-9_]+)/$", - posts.PostDetailView.as_view(), - name="post-detail", - ), - re_path( - r"api/v0/posts/(?P[A-Za-z0-9_]+)/comments/$", - comments.CommentListView.as_view(), - name="comment-list", - ), - re_path( - r"api/v0/comments/(?P[A-Za-z0-9_]+)/$", - comments.CommentDetailView.as_view(), - name="comment-detail", - ), - re_path( - r"api/v0/morecomments/$", - comments.MoreCommentsView.as_view(), - name="morecomments-detail", - ), - re_path(r"api/v0/frontpage/$", frontpage.FrontPageView.as_view(), name="frontpage"), - re_path( - r"api/v0/reports/$", reports.ReportContentView.as_view(), name="report-content" - ), -] diff --git a/channels/urls_test.py b/channels/urls_test.py deleted file mode 100644 index dfb651c44f..0000000000 --- a/channels/urls_test.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Test to assert URLs""" -from django.urls import reverse - - -def test_urls(): - """Assert URLs which match to views""" - assert reverse("channel-list") == "/api/v0/channels/" - assert ( - reverse("channel-detail", kwargs={"channel_name": "a_channel"}) - == "/api/v0/channels/a_channel/" - ) - assert ( - reverse("post-list", kwargs={"channel_name": "a_channel"}) - == "/api/v0/channels/a_channel/posts/" - ) - assert reverse("post-detail", kwargs={"post_id": "6"}) == "/api/v0/posts/6/" - assert ( - reverse("comment-list", kwargs={"post_id": "6"}) == "/api/v0/posts/6/comments/" - ) - assert ( - reverse("comment-detail", kwargs={"comment_id": "2b"}) == "/api/v0/comments/2b/" - ) - assert reverse("frontpage") == "/api/v0/frontpage/" diff --git a/channels/utils.py b/channels/utils.py deleted file mode 100644 index 6c74b44267..0000000000 --- a/channels/utils.py +++ /dev/null @@ -1,363 +0,0 @@ -"""Utils for channels""" -from collections import namedtuple -from contextlib import contextmanager - -from django.conf import settings -from django.contrib.auth import get_user_model -from django.db import transaction -from django.utils.functional import SimpleLazyObject -from django.utils.text import slugify -from praw.config import Config -from praw.exceptions import APIException -from praw.models import Comment -from prawcore.exceptions import Forbidden, NotFound as PrawNotFound, Redirect -from rest_framework.exceptions import NotAuthenticated, NotFound, PermissionDenied - -from channels.constants import POSTS_SORT_HOT, POSTS_SORT_NEW -from channels.exceptions import ConflictException, GoneException -from embedly.api import get_embedly_summary, THUMBNAIL_URL - -AVATAR_SMALL_MAX_DIMENSION = 22 -AVATAR_MEDIUM_MAX_DIMENSION = 90 - -ImageSize = namedtuple("ImageSize", ["x", "y"]) - -User = get_user_model() - -ListingParams = namedtuple("ListingParams", ["before", "after", "count", "sort"]) - -SORT_HOT_LISTING_PARAMS = ListingParams(None, None, 0, POSTS_SORT_HOT) -SORT_NEW_LISTING_PARAMS = ListingParams(None, None, 0, POSTS_SORT_NEW) -DEFAULT_LISTING_PARAMS = SORT_HOT_LISTING_PARAMS - - -def get_listing_params(request): - """ - Extracts listing params from a request - - Args: - request: API request object - - Returns: - (ListingParams): pagination params - """ - before = request.query_params.get("before", None) - after = request.query_params.get("after", None) - count = int(request.query_params.get("count", 0)) - sort = request.query_params.get("sort", POSTS_SORT_HOT) - return ListingParams(before, after, count, sort) - - -def get_pagination_and_reddit_obj_list(reddit_obj_listing, listing_params): - """ - Creates pagination data - - Args: - reddit_obj_listing (praw.models.listing.generator.ListingGenerator): - listing generator for reddit objects (posts, comments, etc.) - listing_params (ListingParams): listing params for this page - - Returns: - (dict, list of reddit objects [e.g.: praw.models.Submission]): pagination and reddit object list - """ - before, _, count, _ = listing_params - pagination = {"sort": listing_params.sort} - - # call _next_batch() so it pulls data - # pylint: disable=protected-access - try: - reddit_obj_listing._next_batch() - except StopIteration: - # empty page - return pagination, [] - - # pylint: disable=protected-access - listing = reddit_obj_listing._listing - - per_page = settings.MITOPEN_CHANNEL_POST_LIMIT - count = count or 0 - - if before: - # we're paging forwards and need to offset the count to what it should be relative to the page before this - count = count - per_page - 1 - - if listing.before is not None: - pagination["before"] = listing.before - pagination["before_count"] = count + 1 - - if listing.after is not None: - pagination["after"] = listing.after - pagination["after_count"] = count + per_page - - # NOTE: list(posts) can return duplicates, so we use the internal listing instead - return (pagination, list(listing)) - - -@contextmanager -def translate_praw_exceptions(user): - """ - Convert PRAW exceptions to DRF exceptions. - - Args: - user (User): The request user - """ - try: - yield - except Forbidden as exc: - if user.is_anonymous: - raise NotAuthenticated() from exc - raise PermissionDenied() from exc - except PrawNotFound as exc: - raise NotFound() from exc - except Redirect as exc: - # This assumes all redirects are due to missing subreddits, - # but I haven't seen any other causes for redirects - raise NotFound() from exc - except APIException as exc: - if exc.error_type in ("SUBREDDIT_NOTALLOWED", "NOT_AUTHOR"): - raise PermissionDenied() from exc - elif exc.error_type == "SUBREDDIT_NOEXIST": - raise NotFound() from exc - elif exc.error_type == "SUBREDDIT_EXISTS": - raise ConflictException() from exc - elif exc.error_type == "DELETED_COMMENT": - raise GoneException() from exc - raise - - -def lookup_users_for_posts(posts): - """ - Helper function to look up user for each instance and attach it to instance.user - - Args: - posts (list of praw.models.Submission): - A list of submissions - - Return: - dict: A map of usernames to the corresponding User object - """ - users = User.objects.filter( - username__in=[post.author.name for post in posts if post.author] - ).select_related("profile") - return {user.username: user for user in users} - - -def _lookup_subscriptions_for_posts(posts, user): - """ - Helper function to look up the user's subscriptions among a set of posts - - Args: - posts (list of praw.models.Submission): - A list of posts - user (User): - The user to find post subscriptions for - - Return: - list of str: list of base36 ids of posts the user is subscribed to - """ - from channels.models import Subscription - - if not posts or user.is_anonymous: - return [] - - return Subscription.objects.filter( - user=user, post_id__in=[post.id for post in posts], comment_id__isnull=True - ).values_list("post_id", flat=True) - - -def lookup_subscriptions_for_posts(posts, user): - """ - Helper function to look up the user's subscriptions among a set of posts - - Args: - posts (list of praw.models.Submission): - A list of posts - user (User): - The user to find post subscriptions for - - Return: - list of str: list of base36 ids of posts the user is subscribed to - """ - return SimpleLazyObject(lambda: _lookup_subscriptions_for_posts(posts, user)) - - -def _lookup_subscriptions_for_comments(comments, user): - """ - Helper function to look up the user's subscriptions among a set of comments - - Args: - comments (list of praw.models.Comment): - A list of comments - user (User): - The user to find comments for - - Return: - list of int: list of integer ids of comments the user is subscribed to - """ - from channels.models import Subscription - - if not comments or user.is_anonymous: - return [] - - post_id = comments[0]._extract_submission_id() # pylint: disable=protected-access - - comment_ids = [comment.id for comment in comments if isinstance(comment, Comment)] - - return Subscription.objects.filter( - user=user, post_id=post_id, comment_id__in=comment_ids - ).values_list("comment_id", flat=True) - - -def lookup_subscriptions_for_comments(comments, user): - """ - Helper function to look up the user's subscriptions among a set of comments - - Args: - comments (list of praw.models.Comment): - A list of comments - user (User): - The user to find comments for - - Return: - list of int: list of integer ids of comments the user is subscribed to - """ - return SimpleLazyObject(lambda: _lookup_subscriptions_for_comments(comments, user)) - - -def get_kind_mapping(): - """ - Get a mapping of kinds - - Returns: - dict: A map of the kind name to the kind prefix (ie t1) - """ - return Config("DEFAULT").kinds - - -def get_reddit_slug(permalink): - """ - Get the reddit slug from a submission permalink, with '_' replaced by '-' - - Args: - permalink (str): reddit submission permalink - - Returns: - str: the reddit slug for a submission - """ - return list(filter(None, permalink.split("/")))[-1].replace("_", "-") - - -@transaction.atomic -def get_or_create_link_meta(url): - """ - Gets (and if necessary creates) a LinkMeta object for a URL - - Args: - url(str): The URL of an external link - - Returns: - channels.models.LinkMeta: the LinkMeta object for the URL - - """ - from channels.models import LinkMeta - - link_meta = LinkMeta.objects.filter(url=url).first() - if link_meta is None and settings.EMBEDLY_KEY: - response = get_embedly_summary(url).json() - if THUMBNAIL_URL in response: - link_meta, _ = LinkMeta.objects.get_or_create( - url=url, defaults={"thumbnail": response[THUMBNAIL_URL]} - ) - return link_meta - - -def get_kind_and_id(thing_id): - """ - Args: - thing_id (str): a reddit thing id in the form t#_#+ - - Returns: - (str, str): a tuple of kind and id - """ - return thing_id.split("_", 1) - - -def num_items_not_none(items): - """ - Returns the count of items in the list that are not None - - Args: - items (iterable): iterable of items to check for is not None - - Returns: - int: count of items not None - """ - - return len(list(filter(lambda val: val is not None, items))) - - -def _render_article_nodes(node): - """ - Render article nodes into pieces of text - - Args: - node (list or dict): A node in the article content - - Yields: - str: A string containing text from the article nodes - """ - if isinstance(node, list): - for item in node: - yield from _render_article_nodes(item) - elif isinstance(node, dict): - should_have_spaces = node.get("name") in ("p", "li", "td", "figcaption") - if should_have_spaces: - yield " " - if "text" in node: - yield node["text"] - if "children" in node: - yield from _render_article_nodes(node["children"]) - if should_have_spaces: - yield " " - - -def render_article_text(content): - """ - Render article text based on the article content data structure - - Args: - content (list or dict): The article content - - Returns: - str: A string containing the text from the text nodes of the article - """ - return "".join(_render_article_nodes(content)) - - -def reddit_slugify(text, max_length=50): - """ - Slugifies a piece of text in the same manner reddit would - - Args: - text(str): text string to slugify - max_length(int): optional length limit to output - - Returns: - str: slugified and possibly truncated text - """ - text = slugify(text).replace("-", "_").lower() - - while len(text) > max_length: - # enforce max length on word boundaries - # see https://docs.python.org/3/library/stdtypes.html#str.rpartition - before, _, after = text.rpartition("_") - if before: - text = before - else: - # there's potential the first word is longer than the limit - # so break out of the loop explicitly - text = after - break - - # hard truncation to max_length if it was just one long word - return text[:max_length] or "_" diff --git a/channels/utils_test.py b/channels/utils_test.py deleted file mode 100644 index 8b54c8bdc7..0000000000 --- a/channels/utils_test.py +++ /dev/null @@ -1,239 +0,0 @@ -"""Tests for utils""" -# pylint: disable=protected-access -from unittest.mock import Mock - -import pytest -from praw.exceptions import APIException -from prawcore.exceptions import Forbidden, NotFound as PrawNotFound, Redirect -from rest_framework.exceptions import NotAuthenticated, NotFound, PermissionDenied - -from channels.constants import POSTS_SORT_HOT, VALID_POST_SORT_TYPES -from channels.exceptions import ConflictException, GoneException -from channels.utils import ( - ListingParams, - DEFAULT_LISTING_PARAMS, - get_listing_params, - get_pagination_and_reddit_obj_list, - translate_praw_exceptions, - get_reddit_slug, - get_kind_and_id, - num_items_not_none, - render_article_text, -) - - -def test_get_listing_params_none(mocker): - """Test that get_listing_params returns no params if there are none""" - request = mocker.Mock() - request.query_params = {} - assert get_listing_params(request) == DEFAULT_LISTING_PARAMS - - -def test_get_listing_params_after(mocker): - """Test that get_listing_params extracts after params correctly""" - request = mocker.Mock() - request.query_params = {"after": "abc", "count": "5"} - assert get_listing_params(request) == ListingParams(None, "abc", 5, POSTS_SORT_HOT) - - -def test_get_listing_params_before(mocker): - """Test that get_listing_params extracts before params correctly""" - request = mocker.Mock() - request.query_params = {"before": "abc", "count": "5"} - assert get_listing_params(request) == ListingParams("abc", None, 5, POSTS_SORT_HOT) - - -@pytest.mark.parametrize("sort", VALID_POST_SORT_TYPES) -def test_get_listing_params_sort(mocker, sort): - """Test that get_listing_params extracts before params correctly""" - request = mocker.Mock() - request.query_params = {"sort": sort} - assert get_listing_params(request) == ListingParams(None, None, 0, sort) - - -def test_get_pagination_and_posts_empty_page(mocker): - """Test that we get an empty pagination and posts if there is no data""" - posts = mocker.Mock() - # pylint: disable=protected-access - posts._next_batch.side_effect = StopIteration() - assert get_pagination_and_reddit_obj_list(posts, DEFAULT_LISTING_PARAMS) == ( - {"sort": POSTS_SORT_HOT}, - [], - ) - - -def test_get_pagination_and_posts_small_page(mocker): - """Test that we get an empty pagination and if there are less posts than page length""" - posts = mocker.Mock() - items = range(10) - listing = mocker.MagicMock() - listing.__iter__.return_value = items - listing.after = None - listing.before = None - posts._listing = listing - assert get_pagination_and_reddit_obj_list(posts, DEFAULT_LISTING_PARAMS) == ( - {"sort": POSTS_SORT_HOT}, - list(items), - ) - posts._next_batch.assert_called_once_with() - - -def test_get_pagination_and_posts_before_first_page(mocker): - """Test that we get an pagination with before to the first page""" - posts = mocker.Mock() - items = range(10) - listing = mocker.MagicMock() - listing.__iter__.return_value = items - listing.after = "def" - listing.before = None - posts._listing = listing - assert get_pagination_and_reddit_obj_list( - posts, ListingParams("xyz", None, 26, POSTS_SORT_HOT) - ) == ({"after": "def", "after_count": 25, "sort": POSTS_SORT_HOT}, list(items)) - posts._next_batch.assert_called_once_with() - - -def test_get_pagination_and_posts_before_second_page(mocker): - """Test that we get an pagination with before that's the second page""" - posts = mocker.Mock() - items = range(10) - listing = mocker.MagicMock() - listing.__iter__.return_value = items - listing.after = "def" - listing.before = "abc" - posts._listing = listing - assert get_pagination_and_reddit_obj_list( - posts, ListingParams("xyz", None, 51, POSTS_SORT_HOT) - ) == ( - { - "before": "abc", - "before_count": 26, - "after": "def", - "after_count": 50, - "sort": POSTS_SORT_HOT, - }, - list(items), - ) - posts._next_batch.assert_called_once_with() - - -def test_get_pagination_and_posts_after(mocker): - """Test that we get an pagination with after""" - posts = mocker.Mock() - items = range(10) - listing = mocker.MagicMock() - listing.__iter__.return_value = items - listing.after = "def" - listing.before = None - posts._listing = listing - assert get_pagination_and_reddit_obj_list( - posts, ListingParams(None, None, 25, POSTS_SORT_HOT) - ) == ({"after": "def", "after_count": 50, "sort": POSTS_SORT_HOT}, list(items)) - posts._next_batch.assert_called_once_with() - - -def test_get_pagination_and_posts_before_and_after(mocker): - """Test that we get an pagination with before and after""" - posts = mocker.Mock() - items = range(10) - listing = mocker.MagicMock() - listing.__iter__.return_value = items - listing.after = "def" - listing.before = "abc" - posts._listing = listing - assert get_pagination_and_reddit_obj_list( - posts, ListingParams(None, None, 25, POSTS_SORT_HOT) - ) == ( - { - "before": "abc", - "before_count": 26, - "after": "def", - "after_count": 50, - "sort": POSTS_SORT_HOT, - }, - list(items), - ) - posts._next_batch.assert_called_once_with() - - -@pytest.mark.parametrize( - "raised_exception,is_anonymous,expected_exception", - [ - [None, False, None], - [Forbidden(Mock(status_code=403)), True, NotAuthenticated], - [Forbidden(Mock(status_code=403)), False, PermissionDenied], - [PrawNotFound(Mock()), False, NotFound], - [Redirect(Mock(headers={"location": "http://example.com"})), False, NotFound], - [APIException("SUBREDDIT_NOTALLOWED", "msg", "field"), False, PermissionDenied], - [APIException("NOT_AUTHOR", "msg", "field"), False, PermissionDenied], - [APIException("SUBREDDIT_NOEXIST", "msg", "field"), False, NotFound], - [APIException("SUBREDDIT_EXISTS", "msg", "field"), False, ConflictException], - [APIException("DELETED_COMMENT", "msg", "field"), False, GoneException], - [KeyError(), False, KeyError], - ], -) -def test_translate_praw_exceptions(raised_exception, is_anonymous, expected_exception): - """Test that exceptions are translated correctly""" - user = Mock(is_anonymous=is_anonymous) - - if expected_exception is None: - with translate_praw_exceptions(user): - if raised_exception is not None: - raise raised_exception - - else: - with pytest.raises(expected_exception): - with translate_praw_exceptions(user): - if raised_exception is not None: - raise raised_exception - - -@pytest.mark.parametrize( - "permalink,slug", - [ - ["/r/1511374327_magnam/comments/ea/text_post/", "text-post"], - ["/r/1511371168_mollitia/comments/e6/url_post", "url-post"], - ], -) -def test_get_reddit_slug(permalink, slug): - """Test that the correct slug is retrieved from a permalink""" - assert get_reddit_slug(permalink) == slug - - -def test_kind_and_id(): - """Test that get_kind_and_id correctly splits the string""" - assert get_kind_and_id("t3_anbj_gu") == ["t3", "anbj_gu"] - - -def test_num_items_not_none(): - """Test that num_items_not_none returns expected results""" - assert num_items_not_none([]) == 0 - assert num_items_not_none([None, None]) == 0 - - assert num_items_not_none([1]) == 1 - assert num_items_not_none([None, 1]) == 1 - assert num_items_not_none([1, None]) == 1 - - assert num_items_not_none([0, 1, "", "abc", False, True, None]) == 6 - - -@pytest.mark.parametrize( - "input_node,output_text", - [ - [{"text": " some text "}, " some text "], - [[{"text": "first part "}, {"text": "second part"}], "first part second part"], - [ - { - "name": "p", - "children": [{"text": "child text he"}, {"text": "re some more text."}], - }, - " child text here some more text. ", - ], - [{"name": "li", "text": "item in a bullet point"}, " item in a bullet point "], - [{"name": "td", "text": "item in a cell"}, " item in a cell "], - [{"name": "figcaption", "text": "item in a caption"}, " item in a caption "], - ], -) -def test_render_article_text(input_node, output_text): - """render_article_text should extract the text from any arbitrary article node tree""" - assert render_article_text(input_node) == output_text diff --git a/channels/views/__init__.py b/channels/views/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/channels/views/channels.py b/channels/views/channels.py deleted file mode 100644 index c770def717..0000000000 --- a/channels/views/channels.py +++ /dev/null @@ -1,109 +0,0 @@ -"""Views for REST APIs for channels""" -from django.shortcuts import get_object_or_404 -from rest_framework.generics import ListCreateAPIView, RetrieveUpdateAPIView -from rest_framework.response import Response -from rest_framework.exceptions import PermissionDenied -from rest_framework import status - -from channels.api import Api -from channels.models import Channel -from channels.serializers.channels import ChannelSerializer -from channels.utils import translate_praw_exceptions -from open_discussions.permissions import ( - AnonymousAccessReadonlyPermission, - IsStaffOrReadonlyPermission, - IsStaffModeratorOrReadonlyPermission, -) - - -class ChannelListView(ListCreateAPIView): - """ - View for listing and creating channels - """ - - permission_classes = ( - AnonymousAccessReadonlyPermission, - IsStaffOrReadonlyPermission, - ) - serializer_class = ChannelSerializer - - def get_serializer_context(self): - """Context for the request and view""" - channels = {channel.name: channel for channel in Channel.objects.all()} - - return { - "channel_api": self.request.channel_api, - "channels": channels, - "view": self, - } - - def get_queryset(self): - """Get generator for channels list""" - api = Api(user=self.request.user) - return api.list_channels() - - def list(self, request, *args, **kwargs): - """Return the channels list in alphabetical order""" - queryset = self.get_queryset() - serializer = ChannelSerializer(queryset, many=True) - return Response( - sorted(serializer.data, key=lambda channel: channel["title"].lower()) - ) - - def post(self, request, *args, **kwargs): - with translate_praw_exceptions(request.user): - return super().post(request, *args, **kwargs) - - -class ChannelDetailView(RetrieveUpdateAPIView): - """ - View for getting information about or updating a specific channel - """ - - permission_classes = ( - AnonymousAccessReadonlyPermission, - IsStaffModeratorOrReadonlyPermission, - ) - serializer_class = ChannelSerializer - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "channels": { - self.kwargs["channel_name"]: get_object_or_404( - Channel, name=self.kwargs["channel_name"] - ) - }, - "view": self, - } - - def get_object(self): - """Get channel referenced by API""" - return self.request.channel_api.get_channel(self.kwargs["channel_name"]) - - def get(self, request, *args, **kwargs): - # we don't want to let this through to Reddit, because it blows up :/ - if len(kwargs["channel_name"]) == 1: - return Response({}, status=status.HTTP_404_NOT_FOUND) - - with translate_praw_exceptions(request.user): - return super().get(request, *args, **kwargs) - - def patch(self, request, *args, **kwargs): - # Deny permission if the user is not a superuser and is attempting to update the channel title. - if not self.request.user.is_superuser and "title" in self.request.data: - raise PermissionDenied() - with translate_praw_exceptions(request.user): - return super().patch(request, *args, **kwargs) - - def put(self, request, *args, **kwargs): - # Deny permission if the user is not a superuser and is attempting to update the channel title. - channel = self.get_object() - if ( - not self.request.user.is_superuser - and self.request.data.get("title") != channel.title - ): - raise PermissionDenied() - with translate_praw_exceptions(request.user): - return super().put(request, *args, **kwargs) diff --git a/channels/views/channels_test.py b/channels/views/channels_test.py deleted file mode 100644 index 97b80c4ab9..0000000000 --- a/channels/views/channels_test.py +++ /dev/null @@ -1,412 +0,0 @@ -"""Tests for views for REST APIs for channels""" -# pylint: disable=unused-argument,too-many-arguments -import os.path - -import pytest -from django.urls import reverse -from rest_framework import status - -from channels.constants import LINK_TYPE_ANY -from channels.factories.reddit import STRATEGY_BUILD -from channels.models import Channel -from channels.views.test_utils import default_channel_response_data -from open_discussions.constants import ( - NOT_AUTHENTICATED_ERROR_TYPE, - PERMISSION_DENIED_ERROR_TYPE, -) - -pytestmark = [pytest.mark.betamax, pytest.mark.usefixtures("mock_channel_exists")] - - -def test_list_channels(user_client, private_channel_and_contributor, request): - """ - List channels the user is subscribed to - """ - channel, _ = private_channel_and_contributor - url = reverse("channel-list") - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [default_channel_response_data(channel)] - - -def test_list_channels_ordered(user_client, subscribed_channels, request): - """ - Channels should be in alphabetical order by title - """ - url = reverse("channel-list") - channel_list = user_client.get(url).json() - for i in range(len(subscribed_channels) - 1): - assert channel_list[i]["title"].lower() < channel_list[i + 1]["title"].lower() - - -def test_list_channels_anonymous(client): - """ - List anonymous channels - """ - url = reverse("channel-list") - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [] - - -@pytest.mark.parametrize("managed", [True, False, None]) -def test_create_channel( - index_user, staff_client, staff_user, reddit_factories, managed, settings -): - """ - Create a channel and assert the response - """ - settings.INDEXING_API_USERNAME = index_user.username - url = reverse("channel-list") - channel = reddit_factories.channel( - "private", user=staff_user, strategy=STRATEGY_BUILD - ) - payload = { - "channel_type": channel.channel_type, - "name": channel.name, - "title": channel.title, - "description": channel.description, - "public_description": channel.public_description, - "link_type": channel.link_type, - } - if managed is not None: - payload["membership_is_managed"] = managed - resp = staff_client.post(url, data=payload) - expected = { - **default_channel_response_data(channel), - "user_is_moderator": True, - "membership_is_managed": managed is not False, - } - assert resp.json() == expected - assert resp.status_code == status.HTTP_201_CREATED - - -def test_create_channel_no_descriptions( - index_user, staff_client, staff_user, reddit_factories, settings -): - """ - Create a channel and assert the response for no descriptions - """ - settings.INDEXING_API_USERNAME = index_user.username - url = reverse("channel-list") - channel = reddit_factories.channel( - "private", user=staff_user, strategy=STRATEGY_BUILD - ) - payload = { - "channel_type": channel.channel_type, - "link_type": "any", - "name": channel.name, - "title": channel.title, - } - resp = staff_client.post(url, data=payload) - expected = { - **default_channel_response_data(channel), - **payload, - "description": "", - "public_description": "", - "user_is_moderator": True, - "membership_is_managed": True, - } - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == expected - - -def test_create_channel_already_exists( - index_user, staff_client, private_channel, settings -): - """ - Create a channel which already exists - """ - settings.INDEXING_API_USERNAME = index_user.username - url = reverse("channel-list") - payload = { - "channel_type": "private", - "name": private_channel.name, - "title": "Channel title", - "description": "a description of the channel", - "public_description": "public", - "link_type": private_channel.link_type, - } - resp = staff_client.post(url, data=payload) - assert resp.status_code == status.HTTP_409_CONFLICT - - -def test_create_channel_nonstaff(user_client): - """ - Try to create a channel with nonstaff auth and assert a failure - """ - url = reverse("channel-list") - payload = { - "channel_type": "private", - "name": "a_channel", - "title": "Channel title", - "description": "a description of the channel", - "public_description": "public", - "link_type": LINK_TYPE_ANY, - } - resp = user_client.post(url, data=payload) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data == { - "error_type": PERMISSION_DENIED_ERROR_TYPE, - "detail": "You do not have permission to perform this action.", - } - - -def test_create_channel_noauth(client): - """ - Try to create a channel with no auth and assert a failure - """ - url = reverse("channel-list") - payload = { - "channel_type": "private", - "name": "a_channel", - "title": "Channel title", - "description": "a description of the channel", - "public_description": "public", - } - resp = client.post(url, data=payload) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_get_channel(user_client, private_channel_and_contributor): - """ - Get a channel - """ - channel, _ = private_channel_and_contributor - url = reverse("channel-detail", kwargs={"channel_name": channel.name}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == default_channel_response_data(channel) - - -def test_get_channel_anonymous(client, public_channel): - """ - An anonymous user should be able to see a public channel - """ - url = reverse("channel-detail", kwargs={"channel_name": public_channel.name}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_channel_response_data(public_channel), - "user_is_contributor": False, - "user_is_subscriber": False, - } - - -def test_get_short_channel(user_client): - """ - test getting a one-character channel name - """ - Channel.objects.create(name="a") - url = reverse("channel-detail", kwargs={"channel_name": "a"}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_get_channel_forbidden(user_client): - """ - If PRAW returns a 403 error we should also return a 403 error - """ - Channel.objects.create(name="xavier2") - url = reverse("channel-detail", kwargs={"channel_name": "xavier2"}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_get_channel_not_found(user_client): - """ - If PRAW returns a 404 error we should also return a 404 error - """ - Channel.objects.create(name="not_a_real_channel_name") - url = reverse("channel-detail", kwargs={"channel_name": "not_a_real_channel_name"}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_get_channel_with_avatar_banner(staff_client, public_channel): - """ - If a channel has an image we should show its URL - """ - channel = Channel.objects.get(name=public_channel.name) - channel.avatar = "avatar" - channel.avatar_small = "avatar_small" - channel.avatar_medium = "avatar_medium" - channel.banner = "banner" - channel.save() - - url = reverse("channel-detail", kwargs={"channel_name": public_channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["avatar"] == "/media/avatar" - assert resp.json()["avatar_small"] == "/media/avatar_small" - assert resp.json()["avatar_medium"] == "/media/avatar_medium" - assert resp.json()["banner"] == "/media/banner" - - -def test_patch_channel(staff_client, private_channel): - """ - Update a channel's settings - """ - url = reverse("channel-detail", kwargs={"channel_name": private_channel.name}) - resp = staff_client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_channel_response_data(private_channel), - "user_is_moderator": True, - "channel_type": "public", - } - assert Channel.objects.count() == 1 - channel_obj = Channel.objects.first() - assert channel_obj.name == private_channel.name - assert channel_obj.membership_is_managed is False - - -def test_patch_channel_moderator( - user_client, staff_api, private_channel_and_contributor -): - """ - Update a channel's settings with a moderator user - """ - private_channel, user = private_channel_and_contributor - url = reverse("channel-detail", kwargs={"channel_name": private_channel.name}) - staff_api.add_moderator(user.username, private_channel.name) - resp = user_client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_channel_response_data(private_channel), - "user_is_moderator": True, - "channel_type": "public", - } - - -@pytest.mark.parametrize("field", ["avatar", "banner"]) -def test_patch_channel_image(staff_client, public_channel, field): - """ - Update a channel's image - """ - url = reverse("channel-detail", kwargs={"channel_name": public_channel.name}) - png_file = os.path.join( - os.path.dirname(__file__), "..", "..", "static", "images", "blank.png" - ) - with open(png_file, "rb") as f: - resp = staff_client.patch(url, {field: f}, format="multipart") - assert resp.status_code == status.HTTP_200_OK - channel = Channel.objects.get(name=public_channel.name) - image = getattr(channel, field) - - assert f"{public_channel.name}/channel_{field}_" in image.name - assert len(image.read()) == os.path.getsize(png_file) - - if field == "avatar": - for size_field in ("avatar_small", "avatar_medium"): - size_image = getattr(channel, size_field) - assert f"_{size_field}" in size_image.name - assert len(size_image.read()) > 0 - - -@pytest.mark.parametrize("field", ["avatar", "banner"]) -def test_patch_channel_validate_image(staff_client, private_channel, field): - """ - It should error if the avatar or banner patch object is not a file - """ - url = reverse("channel-detail", kwargs={"channel_name": private_channel.name}) - resp = staff_client.patch(url, {field: b"test"}, format="json") - assert resp.status_code == status.HTTP_400_BAD_REQUEST - assert resp.json() == { - "error_type": "ValidationError", - field: [f"Expected {field} to be a file"], - } - - -def test_patch_channel_about(staff_client, private_channel): - """ - should let you update the about field - """ - url = reverse("channel-detail", kwargs={"channel_name": private_channel.name}) - about = [{"foo": "bar"}] - resp = staff_client.patch(url, {"about": about}, format="json") - assert resp.status_code == status.HTTP_200_OK - channel = Channel.objects.get(name=private_channel.name) - assert channel.about == about - - -def test_patch_channel_forbidden(staff_client): - """ - Update a channel's settings for a channel the user doesn't have permission to - """ - Channel.objects.create(name="dedp2") - url = reverse("channel-detail", kwargs={"channel_name": "dedp2"}) - resp = staff_client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -@pytest.mark.parametrize("request_method", ["patch", "put"]) -def test_update_title_non_superuser_forbidden( - settings, index_user, staff_client, staff_user, reddit_factories, request_method -): - """ - Create a channel and assert the response for no descriptions - """ - staff_user.is_superuser = False - staff_user.save() - - # NOTE: Creating a channel in this way because I couldn't find a fixture or a - # straightforward way to prepare channel data for a PUT request - settings.INDEXING_API_USERNAME = index_user.username - url = reverse("channel-list") - channel = reddit_factories.channel( - "private", user=staff_user, strategy=STRATEGY_BUILD - ) - payload = { - "channel_type": channel.channel_type, - "link_type": "any", - "name": channel.name, - "title": channel.title, - } - staff_client.post(url, data=payload) - - url = reverse("channel-detail", kwargs={"channel_name": channel.name}) - request_func = getattr(staff_client, request_method) - serialized_channel_unchanged_title = dict(payload) - if request_method == "patch": - del serialized_channel_unchanged_title["title"] - resp = request_func(url, serialized_channel_unchanged_title) - assert resp.status_code == status.HTTP_200_OK - payload["title"] = "{} [updated]".format(payload["title"]) - resp = request_func(url, payload) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_patch_channel_not_found(staff_client): - """ - Update a channel's settings for a missing channel - """ - Channel.objects.create(name="missing") - url = reverse("channel-detail", kwargs={"channel_name": "missing"}) - resp = staff_client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_patch_channel_nonstaff(user_client): - """ - Fail to update a channel's settings if nonstaff user - """ - Channel.objects.create(name="subreddit_for_testing") - url = reverse("channel-detail", kwargs={"channel_name": "subreddit_for_testing"}) - resp = user_client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data == { - "error_type": PERMISSION_DENIED_ERROR_TYPE, - "detail": "You do not have permission to perform this action.", - } - - -def test_patch_channel_noauth(client): - """ - Fail to update a channel's settings if no auth - """ - url = reverse("channel-detail", kwargs={"channel_name": "subreddit_for_testing"}) - resp = client.patch(url, {"channel_type": "public"}, format="json") - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/comments.py b/channels/views/comments.py deleted file mode 100644 index 21f223a147..0000000000 --- a/channels/views/comments.py +++ /dev/null @@ -1,246 +0,0 @@ -"""Views for REST APIs for comments""" - -from django.contrib.auth import get_user_model -from praw.models import MoreComments -from praw.exceptions import PRAWException -from rest_framework import status -from rest_framework.exceptions import ValidationError, NotFound -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import Api -from channels.constants import COMMENTS_SORT_BEST -from channels.serializers.comments import CommentSerializer, GenericCommentSerializer -from channels.utils import translate_praw_exceptions, lookup_subscriptions_for_comments -from channels.models import Comment -from open_discussions.permissions import AnonymousAccessReadonlyPermission - -User = get_user_model() - - -def _populate_authors_for_comments(comments, author_set): - """ - Helper function to look up user for each instance and attach it to instance.user - - Args: - comments (list of praw.models.Comment): - A list of comments - author_set (set): This is modified to populate with the authors found in comments - """ - for comment in comments: - if isinstance(comment, MoreComments): - continue - if comment.author: - author_set.add(comment.author.name) - - _populate_authors_for_comments(comment.replies, author_set) - - -def _lookup_users_for_comments(comments): - """ - Helper function to look up user for each instance and attach it to instance.user - - Args: - comments (list of praw.models.Comment): - A list of comments - - Returns: - dict: A map of username to User - """ - author_set = set() - _populate_authors_for_comments(comments, author_set) - - users = User.objects.filter(username__in=author_set).select_related("profile") - return {user.username: user for user in users} - - -class CommentListView(APIView): - """ - View for listing and creating comments - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Get list for comments and attach User objects to them""" - with translate_praw_exceptions(request.user): - post_id = self.kwargs["post_id"] - api = Api(user=self.request.user) - sort = request.query_params.get("sort", COMMENTS_SORT_BEST) - comments = api.list_comments(post_id, sort).list() - users = _lookup_users_for_comments(comments) - subscriptions = lookup_subscriptions_for_comments( - comments, self.request.user - ) - - serialized_comments_list = GenericCommentSerializer( - comments, - context={ - **self.get_serializer_context(), - "users": users, - "comment_subscriptions": subscriptions, - }, - many=True, - ).data - - return Response(serialized_comments_list) - - def post(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Create a new comment""" - with translate_praw_exceptions(request.user): - serializer = CommentSerializer( - data=request.data, context=self.get_serializer_context() - ) - serializer.is_valid(raise_exception=True) - serializer.save() - return Response(serializer.data, status=status.HTTP_201_CREATED) - - -class MoreCommentsView(APIView): - """ - View for expanding a MoreComments object - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Get list for comments and attach User objects to them""" - with translate_praw_exceptions(request.user): - children = request.query_params.getlist("children") - sort = request.query_params.get("sort", COMMENTS_SORT_BEST) - - # validate the request parameters: each are required - try: - post_id = request.query_params["post_id"] - except KeyError: - raise ValidationError("Missing parameter post_id") - - parent_id = request.query_params.get("parent_id") - - api = Api(user=self.request.user) - comments = api.more_comments(parent_id, post_id, children, sort) - - users = _lookup_users_for_comments(comments) - subscriptions = lookup_subscriptions_for_comments( - comments, self.request.user - ) - - serialized_comments_list = GenericCommentSerializer( - comments, - context={ - **self.get_serializer_context(), - "users": users, - "comment_subscriptions": subscriptions, - }, - many=True, - ).data - - return Response(serialized_comments_list) - - -class CommentDetailView(APIView): - """ - View for updating or destroying comments - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - @property - def api(self): - """Returns a Channel API object""" - return Api(user=self.request.user) - - def get_object(self): - """Get the comment object""" - return self.api.get_comment(self.kwargs["comment_id"]) - - def get(self, request, *args, **kwargs): - """GET a single comment and it's children""" - with translate_praw_exceptions(request.user): - comment = self.get_object() - - # comment.refresh() raises if the comment - # isn't found - try: - comment.refresh() - except PRAWException: - raise NotFound() - - self_comment = Comment.objects.get(comment_id=comment.id) - if self_comment.removed and ( - request.user.is_anonymous - or not ( - self.api.is_moderator( - self_comment.post.channel.name, request.user.username - ) - or request.user.username == comment.author.name - ) - ): - raise NotFound() - - users = _lookup_users_for_comments([comment]) - subscriptions = lookup_subscriptions_for_comments( - [comment], self.request.user - ) - serialized_comment_tree = GenericCommentSerializer( - [comment] + comment.replies.list(), - context={ - **self.get_serializer_context(), - "users": users, - "comment_subscriptions": subscriptions, - }, - many=True, - ).data - return Response(serialized_comment_tree) - - def patch(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Update a comment""" - with translate_praw_exceptions(request.user): - comment = self.get_object() - subscriptions = lookup_subscriptions_for_comments( - [comment], self.request.user - ) - serializer = CommentSerializer( - instance=comment, - data=request.data, - context={ - **self.get_serializer_context(), - "comment_subscriptions": subscriptions, - }, - partial=True, - ) - serializer.is_valid(raise_exception=True) - serializer.save() - return Response(serializer.data) - - def delete(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Delete the comment""" - self.api.delete_comment(self.kwargs["comment_id"]) - return Response(status=status.HTTP_204_NO_CONTENT) diff --git a/channels/views/comments_test.py b/channels/views/comments_test.py deleted file mode 100644 index 40bb24ec4d..0000000000 --- a/channels/views/comments_test.py +++ /dev/null @@ -1,948 +0,0 @@ -"""Tests for views for REST APIs for comments""" -# pylint: disable=unused-argument,redefined-outer-name,too-many-lines -from datetime import datetime -from itertools import product -import time - -import pytest -from django.urls import reverse -from rest_framework import status -from rest_framework.request import Request - -from channels.constants import DELETED_COMMENT_OR_POST_TEXT -from channels.models import Comment -from channels.test_constants import LIST_MORE_COMMENTS_RESPONSE -from channels.test_utils import assert_properties_eq -from channels.views.test_utils import default_comment_response_data -from open_discussions.constants import ( - NOT_AUTHENTICATED_ERROR_TYPE, - PERMISSION_DENIED_ERROR_TYPE, -) -from open_discussions.factories import UserFactory -from open_discussions.test_utils import any_instance_of -from profiles.utils import image_uri, DEFAULT_PROFILE_IMAGE - -pytestmark = pytest.mark.betamax - - -@pytest.fixture(autouse=True) -def mock_spam_check(mocker): - """Mock the check_comment_for_spam task""" - return mocker.patch("channels.task_helpers.check_comment_for_spam") - - -@pytest.fixture(autouse=True) -def mock_notify_subscribed_users(mocker): - """Returns a mocked version of notify_subscribed_users""" - return mocker.patch("notifications.tasks.notify_subscribed_users").delay - - -@pytest.mark.parametrize("missing_user", [True, False]) -def test_list_comments( - cassette_exists, user_client, user, reddit_factories, public_channel, missing_user -): # pylint: disable=too-many-arguments,too-many-locals - """List all comments in the comment tree""" - if missing_user: - user.username = "renamed" - user.save() - profile_image = DEFAULT_PROFILE_IMAGE - name = "[deleted]" - author_id = "[deleted]" - headline = None - else: - profile_image = image_uri(user.profile) - author_id = user.username - headline = user.profile.headline - name = user.profile.name - - post = reddit_factories.text_post( - "a post with comments", user, channel=public_channel - ) - comments = [] - for idx in range(2): - comment = reddit_factories.comment(f"comment-{idx}", user, post_id=post.id) - comments.append((None, comment)) - comments.extend( - [ - ( - comment.id, - reddit_factories.comment( - f"comment-nested-{idx2}", user, comment_id=comment.id - ), - ) - for idx2 in range(3) - ] - ) - - if not cassette_exists: - # if we're writing the cassette, wait for the backend to asynchronously - # finish updating the comment tree so we see everything - time.sleep(10) - - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - json = resp.json() - # the order isn't entirely deterministic when testing, so just assert the number of elements and the presence of all of them - assert len(json) == len(comments) - for parent_id, comment in comments: - assert { - "id": comment.id, - "parent_id": parent_id, - "post_id": post.id, - "text": comment.text, - "author_id": author_id, - "score": 1, - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": comment.created, - "profile_image": profile_image, - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - } in json - - -def test_list_comments_anonymous(client, public_channel, reddit_factories): - """List comments as an anonymous user""" - user = UserFactory.create(username="01CBD756K3RS4Z59TCJ46QCHZJ") - post = reddit_factories.text_post( - "a post with comments", user, channel=public_channel - ) - comment = reddit_factories.comment("comment", user, post_id=post.id) - - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "id": comment.id, - "parent_id": None, - "post_id": post.id, - "text": comment.text, - "author_id": user.username, - "score": 1, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": comment.created, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - } - ] - - -def test_list_comments_none( - user_client, private_channel_and_contributor, reddit_factories -): - """List for no comments on a post""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("one post", user, channel=channel) - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [] - - -def test_list_comments_forbidden( - client, private_channel_and_contributor, reddit_factories -): - """List all comments in the comment tree for a post the user doesn't have access to""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("one post", user, channel=channel) - url = reverse("comment-list", kwargs={"post_id": post.id}) - client.force_login(UserFactory.create()) - resp = client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_list_comments_not_found(user_client): - """List all comments in the comment tree for a post that doesn't exist""" - url = reverse("comment-list", kwargs={"post_id": "missing"}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_list_comments_more(client, logged_in_profile): - """List comments for a post which has more comments""" - logged_in_profile.image_small = "/deserunt/consequatur.jpg" - logged_in_profile.image_small_file = None - logged_in_profile.name = "Brooke Robles" - logged_in_profile.headline = "Brooke's headline" - logged_in_profile.save() - - url = reverse("comment-list", kwargs={"post_id": "1"}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == LIST_MORE_COMMENTS_RESPONSE - - -@pytest.mark.parametrize("is_root_comment", [True, False]) -def test_more_comments(client, logged_in_profile, is_root_comment): - """Retrieve more comments""" - image_url = "/deserunt/consequatur.jpg" - name = "Brooke Robles" - username = "01BWRGE5JQK4E8B0H90K9RM4WF" - headline = "test headline" - UserFactory.create( - username=username, - profile__image_small=image_url, - profile__image_small_file=None, - profile__name=name, - profile__headline=headline, - ) - - post_id = "1" - root_comment, middle_comment, edge_comment = [ - { - "id": "m", - "parent_id": "1", - "post_id": post_id, - "text": "m", - "author_id": username, - "score": 1, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": "2017-10-19T19:47:22+00:00", - "profile_image": image_url, - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "n", - "parent_id": "m", - "post_id": post_id, - "text": "oasd", - "author_id": username, - "score": 1, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": "2017-10-23T17:45:14+00:00", - "profile_image": image_url, - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "o", - "parent_id": "n", - "post_id": post_id, - "text": "k;lkl;", - "author_id": username, - "score": 1, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": "2017-10-23T17:45:25+00:00", - "profile_image": image_url, - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - ] - - url = "{base}?post_id={post_id}{parent_query}".format( - base=reverse("morecomments-detail"), - post_id=post_id, - parent_query="" - if is_root_comment - else "&parent_id={}".format(middle_comment["id"]), - ) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - if is_root_comment: - assert resp.json() == [root_comment, middle_comment, edge_comment] - else: - assert resp.json() == [edge_comment] - - -def test_more_comments_children(client, logged_in_profile): - """Retrieve more comments specifying child elements""" - image_url = "/deserunt/consequatur.jpg" - name = "Brooke Robles" - username = "george" - headline = "a test headline" - - logged_in_profile.image_small = image_url - logged_in_profile.image_file_small = None - logged_in_profile.name = name - logged_in_profile.headline = headline - logged_in_profile.save() - - post_id = "1" - url = "{base}?post_id={post_id}&parent_id=&children=e9l&children=e9m".format( - base=reverse("morecomments-detail"), post_id=post_id - ) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "id": "e9l", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 25", - "author_id": username, - "score": 1, - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": "2017-11-09T16:35:55+00:00", - "profile_image": image_uri(logged_in_profile), - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - { - "id": "e9m", - "parent_id": None, - "post_id": "1", - "text": "shallow comment 26", - "author_id": username, - "score": 1, - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "created": "2017-11-09T16:36:00+00:00", - "profile_image": image_uri(logged_in_profile), - "author_name": name, - "author_headline": headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - }, - ] - - -def test_more_comments_anonymous(client, public_channel, reddit_factories): - """List more comments as an anonymous user""" - user = UserFactory.create(username="01CBDB4ZD2QXBM0ERGB3C5GEA5") - post = reddit_factories.text_post( - "a post with comments", user, channel=public_channel - ) - # 51 to show a morecomments link - comments = [ - reddit_factories.comment("comment{}".format(number), user, post_id=post.id) - for number in range(51) - ] - last_comment = comments[-1] - - url = "{base}?post_id={post_id}&children={comment_id}".format( - base=reverse("morecomments-detail"), post_id=post.id, comment_id=last_comment.id - ) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "author_id": user.username, - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "comment_type": "comment", - "created": last_comment.created, - "deleted": False, - "downvoted": False, - "edited": False, - "id": last_comment.id, - "num_reports": None, - "parent_id": None, - "post_id": post.id, - "profile_image": image_uri(user.profile), - "removed": False, - "score": 1, - "subscribed": False, - "text": last_comment.text, - "upvoted": False, - } - ] - - -@pytest.mark.parametrize( - "missing_post,missing_parent", product([True, False], repeat=2) -) -def test_more_comments_404(client, logged_in_profile, missing_post, missing_parent): - """If the post id or comment id is wrong, we should return a 404""" - post_id = "1" - url = "{base}?post_id={post_id}{parent_query}".format( - base=reverse("morecomments-detail"), - post_id=post_id if not missing_post else "missing_post", - parent_query="" if not missing_parent else "&parent_id=missing_parent", - ) - resp = client.get(url) - expected_status = ( - status.HTTP_404_NOT_FOUND - if missing_post or missing_parent - else status.HTTP_200_OK - ) - assert resp.status_code == expected_status - - -@pytest.mark.parametrize("missing_param", ["post_id"]) -def test_more_comments_missing_param(client, logged_in_profile, missing_param): - """If a parameter is missing a 400 error should be returned""" - params = {"post_id": "post_id", "parent_id": "parent_id"} - del params[missing_param] - - params_string = "&".join( - "{}={}".format(key, value) for key, value in params.items() - ) - - url = "{base}?{params_string}".format( - base=reverse("morecomments-detail"), params_string=params_string - ) - resp = client.get(url) - assert resp.status_code == status.HTTP_400_BAD_REQUEST - - -def test_list_deleted_comments(client, logged_in_profile): - """List comments which are deleted according to reddit""" - user = UserFactory.create(username="admin") - - url = reverse("comment-list", kwargs={"post_id": "p"}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "author_id": "[deleted]", - "comment_type": "comment", - "created": "2017-09-27T16:03:42+00:00", - "downvoted": False, - "parent_id": None, - "post_id": "p", - "profile_image": DEFAULT_PROFILE_IMAGE, - "score": 1, - "text": DELETED_COMMENT_OR_POST_TEXT, - "upvoted": False, - "removed": False, - "deleted": True, - "subscribed": False, - "id": "1s", - "edited": False, - "author_name": "[deleted]", - "author_headline": None, - "num_reports": None, - }, - { - "author_id": user.username, - "created": "2017-09-27T16:03:51+00:00", - "comment_type": "comment", - "downvoted": False, - "id": "1t", - "parent_id": "1s", - "post_id": "p", - "profile_image": image_uri(user.profile), - "score": 1, - "text": "reply to parent which is not deleted", - "upvoted": False, - "removed": False, - "edited": False, - "deleted": False, - "subscribed": False, - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "num_reports": None, - }, - ] - - -def test_get_comment(user_client, private_channel_and_contributor, reddit_factories): - """ - should be able to GET a comment - """ - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("my geat post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "author_id": user.username, - "created": comment.created, - "id": comment.id, - "parent_id": None, - "post_id": post.id, - "score": 1, - "text": comment.text, - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - } - ] - - -def test_get_comment_404( - user_client, private_channel_and_contributor, reddit_factories -): - """ - test that we get a 404 for a missing comment - """ - url = reverse("comment-detail", kwargs={"comment_id": "23432"}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -@pytest.mark.parametrize( - "client_user_type, expected_status", - [ - [None, status.HTTP_404_NOT_FOUND], - ["comment_writer", status.HTTP_200_OK], - ["user", status.HTTP_404_NOT_FOUND], - ["staff_user", status.HTTP_200_OK], - ], -) -def test_get_removed_comment( - client, - user, - staff_user, - public_channel, - reddit_factories, - staff_api, - client_user_type, - expected_status, -): # pylint: disable=too-many-arguments - """Get for a removed comment should 404 unless the user is a moderator""" - comment_user = reddit_factories.user("comment user") - - post = reddit_factories.text_post("my geat post", user, channel=public_channel) - comment = reddit_factories.comment("comment", comment_user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - - staff_api.remove_comment(comment.id) - - if client_user_type == "comment_writer": - client.force_login(comment_user) - elif client_user_type == "user": - client.force_login(user) - elif client_user_type == "staff_user": - client.force_login(staff_user) - - resp = client.get(url) - - assert resp.status_code == expected_status - - -def test_get_comment_anonymous(client, public_channel, reddit_factories): - """Get a comment as an anonymous user""" - user = UserFactory.create(username="01CBDBP5F8XRQ1T5GATHDWA99Z") - post = reddit_factories.text_post( - "a post with a comment", user, channel=public_channel - ) - comment = reddit_factories.comment("comment", user, post_id=post.id) - - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [default_comment_response_data(post, comment, user)] - - -@pytest.mark.parametrize( - "extra_params,extra_expected,score", - [ - ({}, {}, 1), - ({"upvoted": False}, {"upvoted": False}, 0), - ({"downvoted": True}, {"upvoted": False, "downvoted": True}, -1), - ], -) -def test_create_comment( - user_client, - reddit_factories, - private_channel_and_contributor, - mock_notify_subscribed_users, - mock_spam_check, - extra_params, - extra_expected, - score, -): # pylint: disable=too-many-arguments - """Create a comment""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("a post", user, channel=channel) - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.post(url, data={"text": "reply_to_post 2", **extra_params}) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "author_id": user.username, - "created": any_instance_of(str), - "id": any_instance_of(str), - "parent_id": None, - "post_id": post.id, - "score": 1, - "text": "reply_to_post 2", - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": True, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - **extra_expected, - } - - assert_properties_eq( - Comment.objects.get(comment_id=resp.json()["id"]), - { - "author": user, - "text": "reply_to_post 2", - "score": score, - "removed": False, - "deleted": False, - "edited": False, - "created_on": any_instance_of(datetime), - }, - ) - - mock_notify_subscribed_users.assert_called_once_with( - post.id, None, resp.json()["id"] - ) - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - -def test_create_comment_moderator( - user_client, - reddit_factories, - private_channel_and_contributor, - mock_notify_subscribed_users, - mock_spam_check, - staff_api, -): # pylint: disable=too-many-arguments - """Create a comment as a moderator""" - channel, user = private_channel_and_contributor - staff_api.add_moderator(user.username, channel.name) - post = reddit_factories.text_post("a post", user, channel=channel) - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.post(url, data={"text": "reply_to_post 2"}) - assert resp.status_code == status.HTTP_201_CREATED - - mock_spam_check.assert_not_called() - - -def test_create_comment_forbidden(user_client): - """Create a comment for a post the user doesn't have access to""" - post_id = "adc" - url = reverse("comment-list", kwargs={"post_id": post_id}) - resp = user_client.post(url, data={"text": "reply_to_post 2"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_create_comment_anonymous(client): - """Anonymous users can't create comments""" - url = reverse("comment-list", kwargs={"post_id": "doesntmatter"}) - resp = client.post(url, data={"text": "reply_to_post 2"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_create_comment_not_found(user_client): - """Create a comment for a post that doesn't exist""" - post_id = "missing" - url = reverse("comment-list", kwargs={"post_id": post_id}) - resp = user_client.post(url, data={"text": "reply_to_post 2"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_create_comment_reply_to_comment( - user_client, - reddit_factories, - private_channel_and_contributor, - mock_notify_subscribed_users, - mock_spam_check, -): - """Create a comment that's a reply to another comment""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("a post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.post( - url, data={"text": "reply_to_comment 3", "comment_id": comment.id} - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "author_id": user.username, - "created": any_instance_of(str), - "id": any_instance_of(str), - "parent_id": comment.id, - "post_id": post.id, - "score": 1, - "text": "reply_to_comment 3", - "upvoted": True, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": True, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": None, - } - mock_notify_subscribed_users.assert_called_once_with( - post.id, comment.id, resp.json()["id"] - ) - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - -def test_create_comment_reply_to_deleted_comment( - user_client, private_channel_and_contributor, reddit_factories, contributor_api -): - """Create a comment that's a reply to a deleted comment""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - contributor_api.delete_comment(comment.id) - - url = reverse("comment-list", kwargs={"post_id": post.id}) - resp = user_client.post( - url, data={"text": "reply_to_comment 3", "comment_id": comment.id} - ) - assert resp.status_code == status.HTTP_410_GONE - assert resp.json() == {"detail": "Resource is gone.", "error_type": "GoneException"} - - -def test_update_comment_text( - user_client, private_channel_and_contributor, reddit_factories, mock_spam_check -): - """Update a comment's text""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("my geat post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - - updated_text = "updated text" - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = user_client.patch(url, type="json", data={"text": updated_text}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["text"] == updated_text - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - -def test_update_comment_text_moderator( - user_client, - private_channel_and_contributor, - reddit_factories, - mock_spam_check, - staff_api, -): - """Update a comment's text as a moderator""" - channel, user = private_channel_and_contributor - staff_api.add_moderator(user.username, channel.name) - post = reddit_factories.text_post("my geat post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - - updated_text = "updated text" - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = user_client.patch(url, type="json", data={"text": updated_text}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["text"] == updated_text - mock_spam_check.assert_not_called() - - -# Reddit returns the same result for updating a missing comment -# as it does for updating a comment the user doesn't own. -def test_update_comment_forbidden(user_client): - """Update a comment's text for a comment the user doesn't own""" - url = reverse("comment-detail", kwargs={"comment_id": "e8h"}) - resp = user_client.patch(url, type="json", data={"text": "updated text"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_update_comment_anonymous(client): - """Anonymous users can't update comments""" - url = reverse("comment-detail", kwargs={"comment_id": "doesntmatter"}) - resp = client.patch(url, type="json", data={"text": "missing"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_update_comment_upvote(user_client): - """Update a comment to upvote it""" - comment_id = "l" - url = reverse("comment-detail", kwargs={"comment_id": comment_id}) - resp = user_client.patch(url, type="json", data={"upvoted": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["upvoted"] is True - - -def test_update_comment_downvote(user_client): - """Update a comment to downvote it""" - comment_id = "l" - url = reverse("comment-detail", kwargs={"comment_id": comment_id}) - resp = user_client.patch(url, type="json", data={"downvoted": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["downvoted"] is True - - -def test_update_comment_clear_upvote(user_client): - """Update a comment to clear its upvote""" - url = reverse("comment-detail", kwargs={"comment_id": "6"}) - resp = user_client.patch(url, type="json", data={"upvoted": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["upvoted"] is False - - -def test_update_comment_clear_downvote(user_client): - """Update a comment to clear its downvote""" - comment_id = "l" - url = reverse("comment-detail", kwargs={"comment_id": comment_id}) - resp = user_client.patch(url, type="json", data={"downvoted": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["downvoted"] is False - - -def test_update_comment_remove( - staff_client, private_channel_and_contributor, reddit_factories, staff_api -): - """Update a comment to remove it as a moderator""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = staff_client.patch(url, type="json", data={"removed": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["removed"] is True - - -def test_update_comment_approve( - staff_client, private_channel_and_contributor, reddit_factories, staff_api -): - """Update a comment to approve it as a moderator""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - staff_api.remove_comment(comment.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = staff_client.patch(url, type="json", data={"removed": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["removed"] is False - - -def test_update_comment_ignore_reports( - staff_client, private_channel_and_contributor, reddit_factories -): - """Update a comment to ignore reports as a moderator""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = staff_client.patch(url, type="json", data={"ignore_reports": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "author_id": user.username, - "created": comment.created, - "id": comment.id, - "parent_id": None, - "post_id": post.id, - "score": 1, - "text": comment.text, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": 0, - } - - -def test_update_comment_ignore_reports_forbidden( - user_client, private_channel_and_contributor, reddit_factories -): - """Test updating a comment to ignore reports with a nonstaff user""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = user_client.patch(url, type="json", data={"ignore_reports": True}) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data == { - "error_type": PERMISSION_DENIED_ERROR_TYPE, - "detail": "You do not have permission to perform this action.", - } - - -# Reddit doesn't indicate if a comment deletion failed so we don't have tests that -def test_delete_comment(user_client): - """Delete a comment""" - url = reverse("comment-detail", kwargs={"comment_id": "6"}) - resp = user_client.delete(url) - assert resp.status_code == status.HTTP_204_NO_CONTENT - - -def test_delete_comment_anonymous(client): - """Anonymous users can't delete comments""" - url = reverse("comment-detail", kwargs={"comment_id": "doesntmatter"}) - resp = client.delete(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_update_comment_subscribe( - staff_client, private_channel_and_contributor, reddit_factories -): - """Update a comment to subscribe to it""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = staff_client.patch(url, type="json", data={"subscribed": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["subscribed"] is True - - -def test_update_comment_unsubscribe( - staff_client, staff_api, private_channel_and_contributor, reddit_factories -): - """Update a comment to unsubscribe from it""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - staff_api.add_comment_subscription(post.id, comment.id) - url = reverse("comment-detail", kwargs={"comment_id": comment.id}) - resp = staff_client.patch(url, type="json", data={"subscribed": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["subscribed"] is False diff --git a/channels/views/contributors.py b/channels/views/contributors.py deleted file mode 100644 index a9dce301f4..0000000000 --- a/channels/views/contributors.py +++ /dev/null @@ -1,59 +0,0 @@ -"""Views for REST APIs for contributors""" - -from django.conf import settings -from rest_framework import status -from rest_framework.generics import ListCreateAPIView -from rest_framework.permissions import IsAuthenticated -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import get_admin_api -from channels.serializers.contributors import ContributorSerializer -from open_discussions.permissions import ContributorPermissions - - -class ContributorListView(ListCreateAPIView): - """ - View to list and add contributors in channels - """ - - permission_classes = (IsAuthenticated, ContributorPermissions) - serializer_class = ContributorSerializer - - def get_serializer_context(self): - """Context for the request and view""" - return {"channel_api": self.request.channel_api, "view": self} - - def get_queryset(self): - """Get generator for contributors in channel""" - return ( - contributor - for contributor in self.request.channel_api.list_contributors( - self.kwargs["channel_name"] - ) - if contributor.name != settings.INDEXING_API_USERNAME - ) - - -class ContributorDetailView(APIView): - """ - View to retrieve and remove contributors in channels - """ - - permission_classes = (IsAuthenticated, ContributorPermissions) - - def get_serializer_context(self): - """Context for the request and view""" - return {"channel_api": self.request.channel_api, "view": self} - - def delete(self, request, *args, **kwargs): # pylint: disable=unused-argument - """ - Removes a contributor from a channel - """ - # Using the admin API since reddit doesn't let non-mod users remove themselves as contributors - admin_api = get_admin_api() - channel_name = self.kwargs["channel_name"] - contributor_name = self.kwargs["contributor_name"] - - admin_api.remove_contributor(contributor_name, channel_name) - return Response(status=status.HTTP_204_NO_CONTENT) diff --git a/channels/views/contributors_test.py b/channels/views/contributors_test.py deleted file mode 100644 index 41baad3f04..0000000000 --- a/channels/views/contributors_test.py +++ /dev/null @@ -1,124 +0,0 @@ -"""Tests for views for REST APIs for contributors""" -# pylint: disable=unused-argument, redefined-outer-name -import pytest -from django.urls import reverse -from rest_framework import status - -from open_discussions.constants import NOT_AUTHENTICATED_ERROR_TYPE - -pytestmark = [pytest.mark.betamax, pytest.mark.usefixtures("mock_channel_exists")] - - -@pytest.fixture() -def mock_admin_api(mocker, staff_api): - """Mocked get_admin_api method""" - return mocker.patch( - "channels.views.contributors.get_admin_api", return_value=staff_api - ) - - -def test_list_contributors( - staff_client, private_channel_and_contributor, staff_user, settings -): - """ - List contributors in a channel - """ - settings.INDEXING_API_USERNAME = staff_user.username - channel, user = private_channel_and_contributor - url = reverse("contributor-list", kwargs={"channel_name": channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - # staff user is filtered out - assert resp.json() == [ - { - "contributor_name": user.username, - "full_name": user.profile.name, - "email": user.email, - } - ] - - -def test_list_contributors_anonymous(client): - """Anonymous users can't list contributors in a channel""" - # Well, maybe we could allow it but there's no point since this list is only meaningful for private channels. - url = reverse("contributor-list", kwargs={"channel_name": "some_channel"}) - resp = client.get(url) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -@pytest.mark.parametrize("attempts", [1, 2]) -def test_add_contributor(staff_client, user, private_channel, attempts): - """ - Adds a contributor to a channel - """ - url = reverse("contributor-list", kwargs={"channel_name": private_channel.name}) - for _ in range(attempts): - resp = staff_client.post( - url, data={"contributor_name": user.username}, format="json" - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "contributor_name": user.username, - "full_name": user.profile.name, - "email": user.email, - } - - -def test_add_contributor_email(client, public_channel, staff_api, reddit_factories): - """ - Adds a contributor to a channel by email - """ - moderator = reddit_factories.user("mod_user1", is_staff=True) - new_contributor = reddit_factories.user("new_mod_user") - staff_api.add_moderator(moderator.username, public_channel.name) - client.force_login(moderator) - - url = reverse("contributor-list", kwargs={"channel_name": public_channel.name}) - resp = client.post(url, data={"email": new_contributor.email}, format="json") - - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "contributor_name": new_contributor.username, - "email": new_contributor.email, - "full_name": new_contributor.profile.name, - } - - -def test_add_contributor_anonymous(client): - """ - Anonymous users can't add contributors to a channel - """ - url = reverse("contributor-list", kwargs={"channel_name": "admin_channel"}) - resp = client.post(url, data={"contributor_name": "some_username"}, format="json") - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -@pytest.mark.parametrize("attempts", [1, 2]) -def test_remove_contributor( - staff_client, mock_admin_api, private_channel_and_contributor, attempts -): - """ - Removes a contributor from a channel - """ - channel, contributor = private_channel_and_contributor - url = reverse( - "contributor-detail", - kwargs={"channel_name": channel.name, "contributor_name": contributor.username}, - ) - for i in range(attempts): - resp = staff_client.delete(url) - assert mock_admin_api.call_count == i + 1 - assert resp.status_code == status.HTTP_204_NO_CONTENT - - -def test_remove_contributor_anonymous(client): - """Anonymous users can't remove contributors""" - url = reverse( - "contributor-detail", - kwargs={"channel_name": "a_channel", "contributor_name": "a_contributor"}, - ) - resp = client.delete(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/frontpage.py b/channels/views/frontpage.py deleted file mode 100644 index cda7626d20..0000000000 --- a/channels/views/frontpage.py +++ /dev/null @@ -1,59 +0,0 @@ -"""Views for REST API for frontpage""" -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import Api -from channels.proxies import proxy_posts -from channels.serializers.posts import PostSerializer -from channels.utils import ( - get_pagination_and_reddit_obj_list, - get_listing_params, - lookup_users_for_posts, - lookup_subscriptions_for_posts, -) -from open_discussions.permissions import AnonymousAccessReadonlyPermission - - -class FrontPageView(APIView): - """ - View for listing posts for frontpage - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Get front page posts""" - listing_params = get_listing_params(self.request) - api = Api(user=self.request.user) - paginated_posts = api.front_page(listing_params) - pagination, posts = get_pagination_and_reddit_obj_list( - paginated_posts, listing_params - ) - users = lookup_users_for_posts(posts) - posts = proxy_posts( - [post for post in posts if post.author and post.author.name in users] - ) - subscriptions = lookup_subscriptions_for_posts(posts, self.request.user) - - return Response( - { - "posts": PostSerializer( - posts, - context={ - **self.get_serializer_context(), - "users": users, - "post_subscriptions": subscriptions, - }, - many=True, - ).data, - "pagination": pagination, - } - ) diff --git a/channels/views/frontpage_test.py b/channels/views/frontpage_test.py deleted file mode 100644 index c1dc785003..0000000000 --- a/channels/views/frontpage_test.py +++ /dev/null @@ -1,120 +0,0 @@ -"""Tests for views for REST APIs for frontpage""" -# pylint: disable=unused-argument -import pytest -from django.urls import reverse -from rest_framework import status - -from channels.constants import POSTS_SORT_HOT, VALID_POST_SORT_TYPES -from channels.views.test_utils import ( - default_post_response_data, - raise_error_on_submission_fetch, - raise_error_on_subreddit_fetch, -) - -pytestmark = pytest.mark.betamax - - -def test_frontpage_empty(client, logged_in_profile): - """test that frontpage is empty with no subscriptions""" - url = reverse("frontpage") - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {"posts": [], "pagination": {"sort": POSTS_SORT_HOT}} - - -@pytest.mark.parametrize("missing_user", [True, False]) -def test_frontpage( - mocker, user_client, private_channel_and_contributor, reddit_factories, missing_user -): - """View the front page""" - channel, user = private_channel_and_contributor - first_post = reddit_factories.text_post("my post", user, channel=channel) - second_post = reddit_factories.text_post("my 2nd post", user, channel=channel) - third_post = reddit_factories.text_post("my 3rd post", user, channel=channel) - fourth_post = reddit_factories.text_post("my 4th post", user, channel=channel) - - url = reverse("frontpage") - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "posts": [ - default_post_response_data(channel, post, user) - for post in [fourth_post, third_post, second_post, first_post] - ], - "pagination": {"sort": POSTS_SORT_HOT}, - } - - -@pytest.mark.parametrize("sort", VALID_POST_SORT_TYPES) -def test_frontpage_sorted( - mocker, user_client, private_channel_and_contributor, reddit_factories, sort -): - """View the front page with sorted options""" - # note: these sort types are difficult to reproduce unique sort orders in the span of a test, - # so we're just checking that the APIs don't error - channel, user = private_channel_and_contributor - first_post = reddit_factories.text_post("my post", user, channel=channel) - second_post = reddit_factories.text_post("my 2nd post", user, channel=channel) - third_post = reddit_factories.text_post("my 3rd post", user, channel=channel) - fourth_post = reddit_factories.text_post("my 4th post", user, channel=channel) - - url = reverse("frontpage") - - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, {"sort": sort}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "posts": [ - default_post_response_data(channel, post, user) - for post in [fourth_post, third_post, second_post, first_post] - ], - "pagination": {"sort": sort}, - } - - -@pytest.mark.parametrize( - "params,expected", - [ - ({}, {"after": "t3_3", "after_count": 5}), - ( - {"after": "t3_3", "count": "5"}, - {"after": "t3_7", "after_count": 10, "before": "t3_e", "before_count": 6}, - ), - ( - {"after": "t3_a", "count": "3"}, - {"after": "t3_b", "after_count": 8, "before": "t3_9", "before_count": 4}, - ), - ({"before": "t3_e", "count": "6"}, {"after": "t3_3", "after_count": 5}), - ], -) -def test_frontpage_pagination( - mocker, client, logged_in_profile, settings, params, expected -): # pylint: disable=too-many-arguments - """Test that post pagination works""" - settings.MITOPEN_CHANNEL_POST_LIMIT = 5 - url = reverse("frontpage") - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = client.get(url, params) - expected["sort"] = POSTS_SORT_HOT - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == expected - - -def test_frontpage_anonymous(mocker, client, public_channel): - """Anonymous users should be able to see the front page""" - url = reverse("frontpage") - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == {"sort": POSTS_SORT_HOT} - # Since the front page is shared between all channels it's hard to assert reproduceable results - assert isinstance(resp.json()["posts"], list) is True diff --git a/channels/views/invites.py b/channels/views/invites.py deleted file mode 100644 index 9f1adc6528..0000000000 --- a/channels/views/invites.py +++ /dev/null @@ -1,26 +0,0 @@ -"""Channel invitations views""" -from rest_framework import viewsets - -from channels.models import Channel, ChannelInvitation -from channels.serializers.invites import ChannelInvitationSerializer -from open_discussions.permissions import IsStaffOrModeratorPermission - - -class ChannelInvitationViewSet(viewsets.ModelViewSet): - """Viewset for channel invitations""" - - serializer_class = ChannelInvitationSerializer - permission_classes = (IsStaffOrModeratorPermission,) - - def get_queryset(self): - """Get the quertset for the view""" - return ChannelInvitation.objects.filter( - channel__name=self.kwargs["channel_name"] - ).order_by("-created_on") - - def get_serializer_context(self): - """Returns the context for the serializer""" - return { - "channel": Channel.objects.get(name=self.kwargs["channel_name"]), - "inviter": self.request.user, - } diff --git a/channels/views/invites_test.py b/channels/views/invites_test.py deleted file mode 100644 index 7fa3d71f76..0000000000 --- a/channels/views/invites_test.py +++ /dev/null @@ -1,176 +0,0 @@ -"""Test for invite API""" -from operator import attrgetter - -from rest_framework import status -from django.urls import reverse -import pytest - -from channels.factories.models import ChannelFactory, ChannelInvitationFactory -from channels.models import ChannelInvitation -from open_discussions.test_utils import drf_datetime - - -@pytest.fixture -def as_non_moderator(mocker): - """Enforces that the requesting users is treated as a non-moderator""" - mock_api = mocker.patch("open_discussions.middleware.channel_api.Api").return_value - mock_api.is_moderator.return_value = False - - -@pytest.fixture -def as_moderator(mocker): - """Enforces that the requesting users is treated as a moderator""" - mock_api = mocker.patch("open_discussions.middleware.channel_api.Api").return_value - mock_api.is_moderator.return_value = True - - -@pytest.mark.usefixtures("as_moderator") -def test_list_invites(staff_client): - """Test that the invite list returns all the invites for the channel""" - channel = ChannelFactory.create() - invites = ChannelInvitationFactory.create_batch(5, channel=channel) - ChannelInvitationFactory.create_batch(5) # these should not show up - - url = reverse("channel_invitation_api-list", kwargs={"channel_name": channel.name}) - - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "id": invite.id, - "email": invite.email, - "created_on": drf_datetime(invite.created_on), - "updated_on": drf_datetime(invite.updated_on), - } - for invite in sorted(invites, key=attrgetter("created_on"), reverse=True) - ] - - -@pytest.mark.usefixtures("as_non_moderator") -@pytest.mark.parametrize("is_logged_in", [False, True]) -def test_list_invites_noauth(client, user, is_logged_in): - """Test that the invite list returns all the invites for the channel""" - channel = ChannelFactory.create() - - url = reverse("channel_invitation_api-list", kwargs={"channel_name": channel.name}) - - if is_logged_in: - client.force_login(user) - - resp = client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -@pytest.mark.usefixtures("as_moderator") -def test_create_invite(staff_client, mocker): - """Test that the invite list creates an invite for the channel""" - channel = ChannelFactory.create() - mocker.patch("channels.serializers.invites.tasks") - email = "text@example.com" - url = reverse("channel_invitation_api-list", kwargs={"channel_name": channel.name}) - - resp = staff_client.post(url, data={"email": email}, format="json") - invite = ChannelInvitation.objects.first() - - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "id": invite.id, - "email": invite.email, - "created_on": drf_datetime(invite.created_on), - "updated_on": drf_datetime(invite.updated_on), - } - - -@pytest.mark.usefixtures("as_non_moderator") -@pytest.mark.parametrize("is_logged_in", [False, True]) -def test_create_invite_noauth(client, user, mocker, is_logged_in): - """Test that the invite list creates an invite for the channel""" - channel = ChannelFactory.create() - mock_tasks = mocker.patch("channels.serializers.invites.tasks") - email = "text@example.com" - url = reverse("channel_invitation_api-list", kwargs={"channel_name": channel.name}) - - if is_logged_in: - client.force_login(user) - - resp = client.post(url, data={"email": email}, format="json") - - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert ChannelInvitation.objects.count() == 0 - mock_tasks.send_invitation_email.delay.assert_not_called() - - -@pytest.mark.usefixtures("as_moderator") -def test_get_invite(staff_client): - """Test that the invite api returns a single invite""" - invite = ChannelInvitationFactory.create() - - url = reverse( - "channel_invitation_api-detail", - kwargs={"channel_name": invite.channel.name, "pk": invite.id}, - ) - - resp = staff_client.get(url) - - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "id": invite.id, - "email": invite.email, - "created_on": drf_datetime(invite.created_on), - "updated_on": drf_datetime(invite.updated_on), - } - - -@pytest.mark.usefixtures("as_non_moderator") -@pytest.mark.parametrize("is_logged_in", [False, True]) -def test_get_invite_noauth(client, user, is_logged_in): - """Verify that the delete API ignores requests from non-moderator or anonymous users""" - invite = ChannelInvitationFactory.create() - - url = reverse( - "channel_invitation_api-detail", - kwargs={"channel_name": invite.channel.name, "pk": invite.id}, - ) - - if is_logged_in: - client.force_login(user) - - resp = client.get(url) - - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -@pytest.mark.usefixtures("as_moderator") -def test_delete_invite(staff_client): - """Test that the invite list deletes an invite""" - invite = ChannelInvitationFactory.create() - - url = reverse( - "channel_invitation_api-detail", - kwargs={"channel_name": invite.channel.name, "pk": invite.id}, - ) - - resp = staff_client.delete(url) - - assert resp.status_code == status.HTTP_204_NO_CONTENT - assert not ChannelInvitation.objects.filter(id=invite.id).exists() - - -@pytest.mark.usefixtures("as_non_moderator") -@pytest.mark.parametrize("is_logged_in", [False, True]) -def test_delete_invite_noauth(client, user, is_logged_in): - """Verify that the delete API ignores requests from non-moderator or anonymous users""" - invite = ChannelInvitationFactory.create() - - url = reverse( - "channel_invitation_api-detail", - kwargs={"channel_name": invite.channel.name, "pk": invite.id}, - ) - - if is_logged_in: - client.force_login(user) - - resp = client.delete(url) - - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert ChannelInvitation.objects.filter(id=invite.id).exists() diff --git a/channels/views/moderators.py b/channels/views/moderators.py deleted file mode 100644 index 4a2ece0e69..0000000000 --- a/channels/views/moderators.py +++ /dev/null @@ -1,86 +0,0 @@ -"""Views for REST APIs for moderators""" -from django.conf import settings -from rest_framework import status -from rest_framework.generics import ListCreateAPIView -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import Api -from channels.serializers.moderators import ( - ModeratorPrivateSerializer, - ModeratorPublicSerializer, -) -from channels.utils import translate_praw_exceptions -from open_discussions.permissions import ( - AnonymousAccessReadonlyPermission, - ModeratorPermissions, - is_moderator, - is_admin_user, -) - - -class ModeratorListView(ListCreateAPIView): - """ - View for listing and adding moderators - """ - - permission_classes = (AnonymousAccessReadonlyPermission, ModeratorPermissions) - - def get_serializer_class(self): - """ - Pick private serializer if user is moderator of this channel, else use public one - """ - return ( - ModeratorPrivateSerializer - if (is_admin_user(self.request) or is_moderator(self.request, self)) - else ModeratorPublicSerializer - ) - - def get_serializer_context(self): - """Context for the request and view""" - channel_api = self.request.channel_api - channel_name = self.kwargs["channel_name"] - mods = list( - channel_api._list_moderators( # pylint: disable=protected-access - channel_name=channel_name, moderator_name=channel_api.user.username - ) - ) - if mods: - user_mod_date = mods[0].date - else: - user_mod_date = None - - return {"channel_api": channel_api, "view": self, "mod_date": user_mod_date} - - def get_queryset(self): - """Get a list of moderators for channel""" - api = self.request.channel_api - channel_name = self.kwargs["channel_name"] - return sorted( - ( - moderator - for moderator in api.list_moderators(channel_name) - if moderator.name != settings.INDEXING_API_USERNAME - ), - key=lambda moderator: 0 if moderator.name == api.user.username else 1, - ) - - -class ModeratorDetailView(APIView): - """ - View to retrieve and remove moderators - """ - - permission_classes = (AnonymousAccessReadonlyPermission, ModeratorPermissions) - - def delete(self, request, *args, **kwargs): # pylint: disable=unused-argument - """ - Removes a moderator from a channel - """ - api = Api(user=request.user) - channel_name = self.kwargs["channel_name"] - moderator_name = self.kwargs["moderator_name"] - - with translate_praw_exceptions(request.user): - api.remove_moderator(moderator_name, channel_name) - return Response(status=status.HTTP_204_NO_CONTENT) diff --git a/channels/views/moderators_test.py b/channels/views/moderators_test.py deleted file mode 100644 index e6b9dbcdee..0000000000 --- a/channels/views/moderators_test.py +++ /dev/null @@ -1,227 +0,0 @@ -"""Tests for views for REST APIs for moderators""" -# pylint: disable=unused-argument -import pytest -from django.urls import reverse -from rest_framework import status - -from open_discussions.constants import NOT_AUTHENTICATED_ERROR_TYPE - -pytestmark = [pytest.mark.betamax, pytest.mark.usefixtures("mock_channel_exists")] - - -def test_list_moderators( # pylint: disable=too-many-arguments - user_client, - private_channel_and_contributor, - reddit_factories, - staff_user, - staff_api, - settings, -): - """ - List moderators in a channel as a logged in contributor - """ - settings.INDEXING_API_USERNAME = staff_user.username - channel, _ = private_channel_and_contributor - new_mod = reddit_factories.user("new_mod") - staff_api.add_moderator(new_mod.username, channel.name) - url = reverse("moderator-list", kwargs={"channel_name": channel.name}) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - # Staff user is filtered out - assert resp.json() == [{"moderator_name": new_mod.username}] - - -def test_list_moderators_staff( # pylint: disable=too-many-arguments - staff_client, private_channel, staff_user, staff_api, reddit_factories -): - """ - List moderators in a channel as a staff user - """ - mod_user = reddit_factories.user("user2") - staff_api.add_moderator(mod_user.username, private_channel.name) - staff_api.remove_moderator(staff_user.username, private_channel.name) - url = reverse("moderator-list", kwargs={"channel_name": private_channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "moderator_name": mod_user.username, - "full_name": mod_user.profile.name, - "email": mod_user.email, - "can_remove": False, - } - ] - - -def test_list_moderators_moderator( - client, private_channel, staff_user, staff_api, reddit_factories -): - """ - List moderators in a channel as a logged in moderator of that channel - """ - url = reverse("moderator-list", kwargs={"channel_name": private_channel.name}) - mod_user = reddit_factories.user("user2") - staff_api.add_moderator(mod_user.username, private_channel.name) - client.force_login(mod_user) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "moderator_name": mod_user.username, - "full_name": mod_user.profile.name, - "email": mod_user.email, - "can_remove": True, - }, - { - "moderator_name": staff_user.username, - "full_name": staff_user.profile.name, - "email": staff_user.email, - "can_remove": False, - }, - ] - - -def test_list_moderators_many_moderator( - client, private_channel, staff_user, staff_api, reddit_factories -): - """ - List moderators in a channel as a logged in moderator of that channel - """ - url = reverse("moderator-list", kwargs={"channel_name": private_channel.name}) - - mod_users = [] - for i in range(10): - mod_user = reddit_factories.user(f"user{i}") - staff_api.add_moderator(mod_user.username, private_channel.name) - mod_users.append(mod_user) - logged_in_user_index = 9 - client.force_login(mod_users[logged_in_user_index]) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "moderator_name": mod_users[9].username, - "full_name": mod_users[9].profile.name, - "email": mod_users[9].email, - "can_remove": True, - }, - { - "moderator_name": staff_user.username, - "full_name": staff_user.profile.name, - "email": staff_user.email, - "can_remove": False, - }, - *[ - { - "moderator_name": mod_user.username, - "full_name": mod_user.profile.name, - "email": mod_user.email, - "can_remove": i >= logged_in_user_index, - } - for i, mod_user in enumerate(mod_users[:9]) - ], - ] - - -def test_list_moderators_anonymous(client, public_channel, staff_user): - """Anonymous users should see the moderator list""" - url = reverse("moderator-list", kwargs={"channel_name": public_channel.name}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [{"moderator_name": staff_user.username}] - - -def test_add_moderator(staff_client, public_channel, reddit_factories): - """ - Adds a moderator to a channel - """ - moderator = reddit_factories.user("new_mod_user") - url = reverse("moderator-list", kwargs={"channel_name": public_channel.name}) - resp = staff_client.post( - url, data={"moderator_name": moderator.username}, format="json" - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "moderator_name": moderator.username, - "email": moderator.email, - "full_name": moderator.profile.name, - "can_remove": True, - } - - -def test_add_moderator_email(staff_client, public_channel, reddit_factories): - """ - Adds a moderator to a channel by email - """ - new_mod_user = reddit_factories.user("new_mod_user") - - url = reverse("moderator-list", kwargs={"channel_name": public_channel.name}) - resp = staff_client.post(url, data={"email": new_mod_user.email}, format="json") - - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "moderator_name": new_mod_user.username, - "email": new_mod_user.email, - "full_name": new_mod_user.profile.name, - "can_remove": True, - } - - -def test_add_moderator_again(staff_client, public_channel, staff_api, reddit_factories): - """ - If a user is already a moderator we should return 201 without making any changes - """ - moderator = reddit_factories.user("already_mod") - staff_api.add_moderator(moderator.username, public_channel.name) - url = reverse("moderator-list", kwargs={"channel_name": public_channel.name}) - resp = staff_client.post( - url, data={"moderator_name": moderator.username}, format="json" - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "moderator_name": moderator.username, - "email": moderator.email, - "full_name": moderator.profile.name, - "can_remove": True, - } - - -def test_add_moderator_anonymous(client): - """Anonymous users can't add moderators""" - url = reverse("moderator-list", kwargs={"channel_name": "a_channel"}) - resp = client.post(url, data={"moderator_name": "some_moderator"}, format="json") - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -@pytest.mark.parametrize("attempts", [1, 2]) -def test_remove_moderator( - staff_client, reddit_factories, private_channel, staff_api, attempts -): - """ - Removes a moderator from a channel - """ - user = reddit_factories.user("user1") - staff_api.add_moderator(user.username, private_channel.name) - url = reverse( - "moderator-detail", - kwargs={"channel_name": private_channel.name, "moderator_name": user.username}, - ) - for attempt_idx in range(attempts): - resp = staff_client.delete(url) - assert resp.status_code == ( - status.HTTP_204_NO_CONTENT - if attempt_idx == 0 - else status.HTTP_403_FORBIDDEN - ) - - -def test_remove_moderator_anonymous(client): - """Anonymous users can't add moderators""" - url = reverse( - "moderator-detail", - kwargs={"channel_name": "a_channel", "moderator_name": "doesnt_matter"}, - ) - resp = client.delete(url, data={"moderator_name": "some_moderator"}, format="json") - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/posts.py b/channels/views/posts.py deleted file mode 100644 index d15c9300df..0000000000 --- a/channels/views/posts.py +++ /dev/null @@ -1,147 +0,0 @@ -"""Views for REST APIs for posts""" - -from rest_framework import status -from rest_framework.exceptions import NotFound -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import Api -from channels.proxies import proxy_posts -from channels.serializers.posts import PostSerializer -from channels.utils import ( - get_pagination_and_reddit_obj_list, - get_listing_params, - lookup_users_for_posts, - lookup_subscriptions_for_posts, - translate_praw_exceptions, -) -from open_discussions.permissions import AnonymousAccessReadonlyPermission - - -class PostListView(APIView): - """ - View for listing and creating posts - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): - """Get list for posts and attach User objects to them""" - with translate_praw_exceptions(request.user): - listing_params = get_listing_params(self.request) - api = Api(user=request.user) - paginated_posts = api.list_posts( - self.kwargs["channel_name"], listing_params - ) - pagination, posts = get_pagination_and_reddit_obj_list( - paginated_posts, listing_params - ) - users = lookup_users_for_posts(posts) - posts = proxy_posts( - [post for post in posts if post.author and post.author.name in users] - ) - subscriptions = lookup_subscriptions_for_posts(posts, request.user) - - return Response( - { - "posts": PostSerializer( - posts, - many=True, - context={ - **self.get_serializer_context(), - "users": users, - "post_subscriptions": subscriptions, - }, - ).data, - "pagination": pagination, - } - ) - - def post(self, request, *args, **kwargs): - """Create a new post""" - with translate_praw_exceptions(request.user): - serializer = PostSerializer( - data=request.data, context=self.get_serializer_context() - ) - serializer.is_valid(raise_exception=True) - serializer.save() - return Response(serializer.data, status=status.HTTP_201_CREATED) - - -class PostDetailView(APIView): - """ - View for retrieving, updating or destroying posts - """ - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - @property - def api(self): - """Returns a Channel API object""" - return Api(user=self.request.user) - - def get_object(self): - """Get post""" - return self.api.get_post(self.kwargs["post_id"]) - - def get(self, request, *args, **kwargs): - """Get post""" - with translate_praw_exceptions(request.user): - post = self.get_object() - if post.removed and ( - request.user.is_anonymous - or not (self.api.is_moderator(post.channel.name, request.user.username)) - ): - raise NotFound() - - users = lookup_users_for_posts([post]) - if not post.author or post.author.name not in users: - raise NotFound() - subscriptions = lookup_subscriptions_for_posts([post], request.user) - return Response( - PostSerializer( - instance=post, - context={ - **self.get_serializer_context(), - "users": users, - "post_subscriptions": subscriptions, - }, - ).data - ) - - def delete(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Delete a post""" - self.api.delete_post(self.kwargs["post_id"]) - return Response(status=status.HTTP_204_NO_CONTENT) - - def patch(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Update a post""" - with translate_praw_exceptions(request.user): - post = self.get_object() - serializer = PostSerializer( - instance=post, - data=request.data, - context=self.get_serializer_context(), - partial=True, - ) - serializer.is_valid(raise_exception=True) - serializer.save() - return Response(serializer.data) diff --git a/channels/views/posts_test.py b/channels/views/posts_test.py deleted file mode 100644 index e0e1f9256b..0000000000 --- a/channels/views/posts_test.py +++ /dev/null @@ -1,988 +0,0 @@ -"""Tests for views for REST APIs for posts""" -# pylint: disable=unused-argument,too-many-lines,redefined-outer-name -import json -import os -from types import SimpleNamespace -import pytest -from django.urls import reverse -from rest_framework import status -from rest_framework.request import Request - -from profiles.utils import image_uri -from channels.factories.models import LinkMetaFactory, PostFactory -from channels.constants import ( - EXTENDED_POST_TYPE_ARTICLE, - VALID_POST_SORT_TYPES, - POSTS_SORT_HOT, - LINK_TYPE_LINK, - LINK_TYPE_SELF, -) -from channels.models import Subscription, LinkMeta, Article -from channels.views.test_utils import ( - default_post_response_data, - raise_error_on_submission_fetch, - raise_error_on_subreddit_fetch, -) -from open_discussions.constants import ( - NOT_AUTHENTICATED_ERROR_TYPE, - PERMISSION_DENIED_ERROR_TYPE, - DJANGO_PERMISSION_ERROR_TYPES, -) -from open_discussions.factories import UserFactory -from open_discussions.test_utils import any_instance_of - -pytestmark = pytest.mark.betamax - - -@pytest.fixture(autouse=True) -def mock_spam_check(mocker): - """Mock the check_comment_for_spam task""" - return mocker.patch("channels.task_helpers.check_post_for_spam") - - -def test_create_url_post_existing_meta( - user_client, private_channel_and_contributor, mocker, settings -): - """ - Create a new url post - """ - settings.EMBEDLY_KEY = "FAKE" - channel, user = private_channel_and_contributor - link_url = "http://micromasters.mit.edu/🐨" - thumbnail = "http://fake/thumb.jpg" - embedly_stub = mocker.patch("channels.utils.get_embedly_summary") - LinkMetaFactory.create(url=link_url, thumbnail=thumbnail) - url = reverse("post-list", kwargs={"channel_name": channel.name}) - resp = user_client.post(url, {"title": "url title 🐨", "url": link_url}) - embedly_stub.assert_not_called() - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "title": "url title 🐨", - "post_type": LINK_TYPE_LINK, - "url": link_url, - "url_domain": "micromasters.mit.edu", - "cover_image": None, - "thumbnail": thumbnail, - "text": None, - "article_content": None, - "plain_text": None, - "author_id": user.username, - "created": any_instance_of(str), - "upvoted": True, - "id": any_instance_of(str), - "slug": "url-title", - "num_comments": 0, - "removed": False, - "deleted": False, - "subscribed": True, - "score": 1, - "channel_name": channel.name, - "channel_title": channel.title, - "channel_type": channel.channel_type, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "stickied": False, - "num_reports": None, - } - - -def test_post_create_post_new_meta( - user_client, private_channel_and_contributor, mocker, settings -): - """Tests that a new LinkMeta object is created for the URL if none exists""" - settings.EMBEDLY_KEY = "FAKE" - channel, _ = private_channel_and_contributor - link_url = "http://fake" - thumbnail = "http://fake/thumbnail.jpg" - embed_return_value = mocker.Mock() - embed_return_value.configure_mock( - **{"json.return_value": {"some": "json", "thumbnail_url": thumbnail}} - ) - embedly_stub = mocker.patch( - "channels.utils.get_embedly_summary", return_value=embed_return_value - ) - url = reverse("post-list", kwargs={"channel_name": channel.name}) - user_client.post(url, {"title": "url title 🐨", "url": link_url}) - embedly_stub.assert_called_with(link_url) - assert LinkMeta.objects.filter(url=link_url).first() is not None - - -def test_post_create_post_no_thumbnail( - user_client, private_channel_and_contributor, mocker, settings -): - """Tests that no LinkMeta object is created if embedly does not return a thumbnail""" - settings.EMBEDLY_KEY = "FAKE" - channel, _ = private_channel_and_contributor - link_url = "http://fake" - embed_return_value = mocker.Mock() - embed_return_value.configure_mock(**{"json.return_value": {"some": "json"}}) - embedly_stub = mocker.patch( - "channels.utils.get_embedly_summary", return_value=embed_return_value - ) - url = reverse("post-list", kwargs={"channel_name": channel.name}) - user_client.post(url, {"title": "url title 🐨", "url": link_url}) - embedly_stub.assert_called_once_with(link_url) - assert LinkMeta.objects.filter(url=url).first() is None - - -def test_create_text_post( - user_client, private_channel_and_contributor, mock_spam_check -): - """ - Create a new text post - """ - channel, user = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - resp = user_client.post( - url, {"title": "parameterized testing", "text": "tests are great"} - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "title": "parameterized testing", - "text": "tests are great", - "article_content": None, - "plain_text": "tests are great", - "url": None, - "url_domain": None, - "cover_image": None, - "thumbnail": None, - "author_id": user.username, - "created": any_instance_of(str), - "upvoted": True, - "removed": False, - "deleted": False, - "subscribed": True, - "id": any_instance_of(str), - "slug": "parameterized-testing", - "num_comments": 0, - "score": 1, - "channel_name": channel.name, - "channel_title": channel.title, - "channel_type": channel.channel_type, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "stickied": False, - "num_reports": None, - "post_type": LINK_TYPE_SELF, - } - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - -def test_create_article_post( - user_client, private_channel_and_contributor, mock_spam_check -): - """ - Create a new article post - """ - channel, user = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - article_text = "some text" - article_content = [{"key": "value", "nested": {"number": 4}, "text": article_text}] - resp = user_client.post( - url, {"title": "parameterized testing", "article_content": article_content} - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "title": "parameterized testing", - "text": "", - "article_content": article_content, - "plain_text": article_text, - "url": None, - "url_domain": None, - "cover_image": None, - "thumbnail": None, - "author_id": user.username, - "created": any_instance_of(str), - "upvoted": True, - "removed": False, - "deleted": False, - "subscribed": True, - "id": any_instance_of(str), - "slug": "parameterized-testing", - "num_comments": 0, - "score": 1, - "channel_name": channel.name, - "channel_title": channel.title, - "channel_type": "private", - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "stickied": False, - "num_reports": None, - "post_type": EXTENDED_POST_TYPE_ARTICLE, - } - article = Article.objects.filter(post__post_id=resp.json()["id"]) - assert article.exists() - assert article.first().content == article_content - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - -def test_create_and_update_post_moderator( - user_client, private_channel_and_contributor, mock_spam_check, staff_api -): - """ - Create and update a post as a moderator - """ - channel, user = private_channel_and_contributor - staff_api.add_moderator(user.username, channel.name) - - url = reverse("post-list", kwargs={"channel_name": channel.name}) - resp = user_client.post( - url, {"title": "parameterized testing", "text": "tests are great"} - ) - assert resp.status_code == status.HTTP_201_CREATED - - url = reverse("post-detail", kwargs={"post_id": resp.json()["id"]}) - resp = user_client.patch(url, {"date": {"text": "updated"}}) - assert resp.status_code == status.HTTP_200_OK - - mock_spam_check.assert_not_called() - - -def test_create_article_post_with_cover(user_client, private_channel_and_contributor): - """ - Create a new article post with a cover image - """ - channel, _ = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - article_content = [{"key": "value", "nested": {"number": 4}}] - png_file = os.path.join( - os.path.dirname(__file__), "..", "..", "static", "images", "avatar_default.png" - ) - with open(png_file, "rb") as f: - resp = user_client.post( - url, - { - "title": "parameterized testing", - "article_content": json.dumps(article_content), - "cover_image": f, - }, - format="multipart", - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json()["article_content"] == article_content - article = Article.objects.get(post__post_id=resp.json()["id"]) - assert resp.json()["cover_image"].endswith(article.cover_image.url) - assert len(article.cover_image.read()) == os.path.getsize(png_file) - - -def test_patch_article_validate_cover_image( - user_client, private_channel_and_contributor -): - """ - It should error if the cover image is not a file - """ - channel, _ = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - article_content = [{"key": "value", "nested": {"number": 4}}] - resp = user_client.post( - url, - { - "title": "parameterized testing", - "article_content": json.dumps(article_content), - "cover_image": b"test", - }, - format="multipart", - ) - assert resp.status_code == status.HTTP_400_BAD_REQUEST - assert resp.json() == { - "error_type": "ValidationError", - "cover_image": ["Expected cover image to be a file or url"], - } - - -def test_create_text_post_blank(user_client, private_channel_and_contributor): - """ - Create a new text post with no text - """ - channel, _ = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - resp = user_client.post(url, {"title": "blank post"}) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json()["text"] == "" - - -def test_create_post_forbidden(user_client, private_channel): - """ - Create a new text post for a channel the user doesn't have permission to - """ - url = reverse("post-list", kwargs={"channel_name": private_channel.name}) - resp = user_client.post( - url, {"title": "parameterized testing", "text": "tests are great"} - ) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_create_post_not_found(client, logged_in_profile): - """ - Create a new text post for a channel that doesn't exist - """ - url = reverse("post-list", kwargs={"channel_name": "doesnt_exist"}) - resp = client.post( - url, {"title": "parameterized testing", "text": "tests are great"} - ) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_create_post_anonymous(client): - """ - Anonymous users can't create posts - """ - url = reverse("post-list", kwargs={"channel_name": "doesnt_matter"}) - resp = client.post( - url, {"title": "parameterized testing", "text": "tests are great"} - ) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -@pytest.mark.parametrize("missing_user", [True, False]) -def test_get_deleted_post( - staff_client, missing_user, private_channel_and_contributor, reddit_factories -): - """Get an existing post for a deleted user""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("deleted", user, channel=channel) - - if missing_user: - user.username = "renamed" - user.save() - - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = staff_client.get(url) - if missing_user: - assert resp.status_code == status.HTTP_404_NOT_FOUND - else: - assert resp.status_code == status.HTTP_200_OK - - -@pytest.mark.parametrize( - "client_user, expected_status", - [ - [None, status.HTTP_404_NOT_FOUND], - [pytest.lazy_fixture("user"), status.HTTP_404_NOT_FOUND], - [pytest.lazy_fixture("staff_user"), status.HTTP_200_OK], - ], -) -def test_get_removed_post( - client, - user, - public_channel, - reddit_factories, - staff_api, - client_user, - expected_status, -): # pylint: disable=too-many-arguments - """Get an existing post for a removed post""" - post = reddit_factories.text_post("removed", user, channel=public_channel) - - staff_api.remove_post(post.id) - - if client_user is not None: - client.force_login(client_user) - - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = client.get(url) - - assert resp.status_code == expected_status - - -# pylint: disable=too-many-arguments -@pytest.mark.parametrize("missing_image", [True, False]) -def test_get_post( - user_client, private_channel_and_contributor, reddit_factories, missing_image -): - """Get an existing post with no image""" - channel, user = private_channel_and_contributor - - if missing_image: - user.profile.image_small = None - else: - user.profile.image_small = "/just/a/great/image.png.jpg.gif" - user.profile.save() - - post = reddit_factories.text_post("my geat post", user, channel=channel) - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = user_client.get(url) - - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == default_post_response_data(channel, post, user) - - -def test_get_post_no_profile( - user_client, private_channel_and_contributor, reddit_factories -): - """Get an existing post for a user with no profile""" - channel, user = private_channel_and_contributor - user.profile.delete() - - post = reddit_factories.text_post("my geat post", user, channel=channel) - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = user_client.get(url) - - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_post_response_data(channel, post, user), - "author_name": "[deleted]", - "author_headline": None, - "profile_image": image_uri(None), - } - - -def test_get_post_forbidden(client, logged_in_profile): - """Get a post the user doesn't have permission to""" - post_id = "adc" - PostFactory.create(post_id=post_id) - url = reverse("post-detail", kwargs={"post_id": post_id}) - resp = client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_get_post_not_found(client, logged_in_profile): - """Get a post the user doesn't have permission to""" - post_id = "missing" - PostFactory.create(post_id=post_id) - url = reverse("post-detail", kwargs={"post_id": post_id}) - resp = client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_get_post_stickied( - user_client, private_channel_and_contributor, reddit_factories, staff_api -): - """test that stickied posts come back that way""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("just a post", user, channel=channel) - staff_api.pin_post(post.id, True) - url = reverse("post-detail", kwargs={"post_id": post.id}) - get_resp = user_client.get(url) - assert get_resp.status_code == status.HTTP_200_OK - assert get_resp.json() == { - **default_post_response_data(channel, post, user), - "stickied": True, - } - - -def test_get_post_anonymous(client, public_channel, reddit_factories): - """Anonymous users can see posts for a public channel, if the feature flag is set""" - user = UserFactory.create(username="01CBFJMB9PD3JP17KAX3E5JQ46") - post = reddit_factories.link_post("link_post", user=user, channel=public_channel) - - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_post_response_data(public_channel, post, user), - "upvoted": False, - } - - -@pytest.mark.parametrize("missing_user", [True, False]) -def test_list_posts( - mocker, user_client, missing_user, private_channel_and_contributor, reddit_factories -): - """List posts in a channel""" - channel, user = private_channel_and_contributor - posts = list( - reversed( - [ - reddit_factories.link_post("link_post", user=user, channel=channel), - reddit_factories.text_post("text_post", user=user, channel=channel), - ] - ) - ) - - if missing_user: - user.username = "renamed" - user.save() - - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - - if missing_user: - # all posts should be filtered out - assert resp.json() == {"posts": [], "pagination": {"sort": POSTS_SORT_HOT}} - else: - assert resp.json() == { - "posts": [ - default_post_response_data(channel, post, user) for post in posts - ], - "pagination": {"sort": POSTS_SORT_HOT}, - } - - -def test_list_posts_none(mocker, user_client, private_channel_and_contributor): - """List posts in a channel""" - channel, _ = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {"posts": [], "pagination": {"sort": POSTS_SORT_HOT}} - - -@pytest.mark.parametrize("sort", VALID_POST_SORT_TYPES) -def test_list_posts_sorted( - mocker, user_client, private_channel_and_contributor, reddit_factories, sort -): - """View the channel listing with sorted options""" - # note: these sort types are difficult to reproduce unique sort orders in the span of a test, - # so we're just checking that the APIs don't error - channel, user = private_channel_and_contributor - first_post = reddit_factories.text_post("my post", user, channel=channel) - second_post = reddit_factories.text_post("my 2nd post", user, channel=channel) - third_post = reddit_factories.text_post("my 3rd post", user, channel=channel) - fourth_post = reddit_factories.text_post("my 4th post", user, channel=channel) - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, {"sort": sort}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "posts": [ - default_post_response_data(channel, post, user) - for post in [fourth_post, third_post, second_post, first_post] - ], - "pagination": {"sort": sort}, - } - - -def test_list_posts_stickied( - mocker, user_client, private_channel_and_contributor, reddit_factories, staff_api -): - """test that the stickied post is first""" - channel, user = private_channel_and_contributor - posts = [ - reddit_factories.text_post("great post!{}".format(i), user, channel=channel) - for i in range(4) - ] - post = posts[2] - staff_api.pin_post(post.id, True) - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["posts"][0] == { - **default_post_response_data(channel, post, user), - "stickied": True, - } - - -def test_list_posts_forbidden(client, logged_in_profile): - """List posts in a channel the user doesn't have access to""" - url = reverse("post-list", kwargs={"channel_name": "my_channel2"}) - resp = client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_list_posts_not_found(client, logged_in_profile): - """List posts in a channel the user doesn't have access to""" - url = reverse("post-list", kwargs={"channel_name": "missing"}) - resp = client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_list_posts_pagination_first_page_no_params( - mocker, user_client, settings, private_channel_and_contributor, reddit_factories -): - """Test that post pagination works for the first page if no params""" - settings.MITOPEN_CHANNEL_POST_LIMIT = 5 - channel, user = private_channel_and_contributor - posts = list( - reversed( - [ - reddit_factories.text_post(idx, user=user, channel=channel) - for idx in range(15) - ] - ) - ) - params = {} - expected = { - "after": "t3_{}".format(posts[4].id), - "after_count": 5, - "sort": POSTS_SORT_HOT, - } - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, params) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == expected - - -def test_list_posts_pagination_first_page_with_params( - mocker, user_client, settings, private_channel_and_contributor, reddit_factories -): - """Test that post pagination works for the first page with params""" - settings.MITOPEN_CHANNEL_POST_LIMIT = 5 - channel, user = private_channel_and_contributor - posts = list( - reversed( - [ - reddit_factories.text_post(idx, user=user, channel=channel) - for idx in range(15) - ] - ) - ) - params = {"before": "t3_{}".format(posts[5].id), "count": 6} - expected = { - "after": "t3_{}".format(posts[4].id), - "after_count": 5, - "sort": POSTS_SORT_HOT, - } - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, params) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == expected - - -def test_list_posts_pagination_non_first_page( - mocker, user_client, settings, private_channel_and_contributor, reddit_factories -): - """Test that post pagination works for a page that's not the first one""" - settings.MITOPEN_CHANNEL_POST_LIMIT = 5 - channel, user = private_channel_and_contributor - posts = list( - reversed( - [ - reddit_factories.text_post(idx, user=user, channel=channel) - for idx in range(15) - ] - ) - ) - params = {"after": "t3_{}".format(posts[4].id), "count": 5} - expected = { - "before": "t3_{}".format(posts[5].id), - "before_count": 6, - "after": "t3_{}".format(posts[9].id), - "after_count": 10, - "sort": POSTS_SORT_HOT, - } - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, params) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == expected - - -def test_list_posts_pagination_non_offset_page( - mocker, user_client, settings, private_channel_and_contributor, reddit_factories -): - """Test that post pagination works for a page that doesn't align to the number of results""" - settings.MITOPEN_CHANNEL_POST_LIMIT = 5 - channel, user = private_channel_and_contributor - posts = list( - reversed( - [ - reddit_factories.text_post(idx, user=user, channel=channel) - for idx in range(15) - ] - ) - ) - params = {"after": "t3_{}".format(posts[5].id), "count": 5} - expected = { - "before": "t3_{}".format(posts[6].id), - "before_count": 6, - "after": "t3_{}".format(posts[10].id), - "after_count": 10, - "sort": POSTS_SORT_HOT, - } - url = reverse("post-list", kwargs={"channel_name": channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = user_client.get(url, params) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["pagination"] == expected - - -def test_list_posts_anonymous(mocker, client, public_channel, reddit_factories): - """Anonymous users can see posts for a public channel, if the feature flag is set""" - user = UserFactory.create(username="01CBFJMB9PD3JP17KAX3E5JQ46") - post = reddit_factories.link_post("link_post", user=user, channel=public_channel) - - url = reverse("post-list", kwargs={"channel_name": public_channel.name}) - with raise_error_on_submission_fetch(mocker), raise_error_on_subreddit_fetch( - mocker - ): - resp = client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - "pagination": {"sort": "hot"}, - "posts": [ - {**default_post_response_data(public_channel, post, user), "upvoted": False} - ], - } - - -def test_create_post_without_upvote(user_client, private_channel_and_contributor): - """Test creating a post without an upvote in the body""" - channel, user = private_channel_and_contributor - url = reverse("post-list", kwargs={"channel_name": channel.name}) - resp = user_client.post(url, {"title": "x", "text": "y", "upvoted": False}) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == { - "title": "x", - "text": "y", - "article_content": None, - "plain_text": "y", - "url": None, - "url_domain": None, - "cover_image": None, - "thumbnail": None, - "author_id": user.username, - "created": "2020-07-28T22:15:27+00:00", - "upvoted": False, - "removed": False, - "deleted": False, - "subscribed": True, - "id": "10", - "slug": "x", - "num_comments": 0, - "score": 1, - "channel_name": channel.name, - "channel_title": channel.title, - "channel_type": channel.channel_type, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "stickied": False, - "num_reports": None, - "post_type": LINK_TYPE_SELF, - } - - -def test_update_article_post( - user_client, reddit_factories, private_channel_and_contributor -): - """Test that we can update the content of an article post""" - article_content = [{"data": "updated"}] - channel, user = private_channel_and_contributor - post = reddit_factories.article_post("post", user=user, channel=channel) - url = reverse("post-detail", kwargs={"post_id": post.id}) - resp = user_client.patch(url, {"article_content": article_content}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == { - **default_post_response_data(channel, post, user), - "article_content": article_content, - } - - -def test_update_article_cover( - user_client, reddit_factories, private_channel_and_contributor -): - """ - It should upload a cover image for an existing article - """ - channel, user = private_channel_and_contributor - post = reddit_factories.article_post("post", user=user, channel=channel) - url = reverse("post-detail", kwargs={"post_id": post.id}) - png_file = os.path.join( - os.path.dirname(__file__), - "..", - "..", - "static", - "images", - "mit-logo-micromasters.jpg", - ) - with open(png_file, "rb") as f: - resp = user_client.patch(url, {"cover_image": f}, format="multipart") - assert resp.status_code == status.HTTP_200_OK - article = Article.objects.get(post__post_id=resp.json()["id"]) - assert len(article.cover_image.read()) == os.path.getsize(png_file) - - # Now update the article again, with the same cover (sent as URL) - image_url = "http://localhost/{}".format(article.cover_image.url) - resp = user_client.patch( - url, {"cover_image": image_url, "article_content": "foo"}, format="json" - ) - assert resp.status_code == status.HTTP_200_OK - article = Article.objects.get(post__post_id=resp.json()["id"]) - assert image_url.endswith(article.cover_image.url) - - # Remove the image - resp = user_client.patch(url, {"article_content": "foo"}, format="json") - assert resp.status_code == status.HTTP_200_OK - article = Article.objects.get(post__post_id=resp.json()["id"]) - assert article.cover_image.name == "" - - -class PostDetailTests: - """Tests for the post-detail endpoint""" - - def scenario(self, private_channel_and_contributor, reddit_factories, staff_user): - """Fixture that sets up a common scenario for post-detail tests""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("just a post", user, channel=channel) - url = reverse("post-detail", kwargs={"post_id": post.id}) - default_response = default_post_response_data(channel, post, user) - default_staff_response = default_post_response_data(channel, post, staff_user) - return SimpleNamespace( - channel=channel, - user=user, - staff_user=staff_user, - post=post, - url=url, - default_response=default_response, - default_staff_response=default_staff_response, - ) - - @pytest.mark.parametrize( - "request_data,exp_response_data", - [ - ({"text": "overwrite"}, {"text": "overwrite"}), - ({"upvoted": False}, {"upvoted": False}), - ({"upvoted": True}, {"upvoted": True}), - ], - ) - def test_update_post( - self, user_client, scenario, request_data, exp_response_data, mock_spam_check - ): - """ - Test that non-staff users are allowed to make certain requests to update a post, and that - the response from the API matches our expectations - """ - resp = user_client.patch(scenario.url, format="json", data=request_data) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {**scenario.default_response, **exp_response_data} - mock_spam_check.assert_called_with(any_instance_of(Request), resp.json()["id"]) - - @pytest.mark.parametrize( - "request_data,exp_response_data", - [ - ({"ignore_reports": True}, {}), - ({"removed": True}, {"removed": True}), - ({"stickied": True}, {"stickied": True}), - ], - ) - def test_update_post_staff_only( - self, staff_client, scenario, request_data, exp_response_data - ): - """ - Test that staff users are allowed to make certain requests to update a post, and that - the response from the API matches our expectations - """ - resp = staff_client.patch(scenario.url, format="json", data=request_data) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {**scenario.default_staff_response, **exp_response_data} - - @pytest.mark.parametrize( - "request_data", - [{"ignore_reports": True}, {"removed": True}, {"stickied": True}], - ) - def test_update_post_non_staff_error(self, user_client, scenario, request_data): - """ - Test that non-staff users attempting to make staff-only updates to a post will result in a - permission error - """ - resp = user_client.patch(scenario.url, format="json", data=request_data) - assert resp.status_code in DJANGO_PERMISSION_ERROR_TYPES - assert resp.data == { - "error_type": PERMISSION_DENIED_ERROR_TYPE, - "detail": "You do not have permission to perform this action.", - } - - def test_update_post_unsticky(self, staff_client, staff_api, scenario): - """Test updating just the stickied boolean on a post""" - staff_api.pin_post(scenario.post.id, True) - resp = staff_client.patch(scenario.url, format="json", data={"stickied": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json()["stickied"] is False - - def test_update_post_clear_removed(self, staff_client, staff_api, scenario): - """Test updating a post to re-approve it""" - staff_api.remove_post(scenario.post.id) - resp = staff_client.patch(scenario.url, format="json", data={"removed": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {**scenario.default_staff_response, "removed": False} - - def test_update_post_forbidden(self, staff_client, scenario): - """Test updating a post the user isn't the owner of""" - resp = staff_client.patch( - scenario.url, format="json", data={"text": "overwrite"} - ) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - def test_update_post_not_found(self, user_client): - """Test updating a post that doesn't exist""" - url = reverse("post-detail", kwargs={"post_id": "missing"}) - resp = user_client.patch(url, format="json", data={"text": "overwrite"}) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - # Reddit doesn't indicate if a post deletion failed so we don't have tests for that - def test_delete_post(self, user_client, scenario): - """Delete a post in a channel""" - resp = user_client.delete(scenario.url) - assert resp.status_code == status.HTTP_204_NO_CONTENT - - @pytest.mark.parametrize( - "has_post_subscription,has_comment_subscription,expected_before,expected_after", - [ - (True, False, 1, 1), - (True, True, 2, 2), - (False, True, 1, 2), - (False, False, 0, 1), - ], - ) - def test_subscribe_post( - self, - staff_client, - staff_api, - scenario, - reddit_factories, - has_post_subscription, - has_comment_subscription, - expected_before, - expected_after, - ): # pylint: disable=too-many-arguments - """Test subscribing to a post""" - comment = reddit_factories.comment( - "just a comment", scenario.user, post_id=scenario.post.id - ) - if has_post_subscription: - staff_api.add_post_subscription(scenario.post.id) - if has_comment_subscription: - staff_api.add_comment_subscription(scenario.post.id, comment.id) - assert Subscription.objects.count() == expected_before - resp = staff_client.patch(scenario.url, {"subscribed": True}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {**scenario.default_response, "subscribed": True} - assert Subscription.objects.count() == expected_after - - def test_unsubscribe_post(self, user_client, contributor_api, scenario): - """Test unsubscribing to a post""" - contributor_api.add_post_subscription(scenario.post.id) - resp = user_client.patch(scenario.url, {"subscribed": False}) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {**scenario.default_response, "subscribed": False} - - -def test_post_anonymous(client): - """Anonymous users can't update or delete posts""" - url = reverse("post-detail", kwargs={"post_id": "doesntmatter"}) - update_resp = client.patch(url, format="json", data={"text": "overwrite"}) - delete_resp = client.delete(url) - for resp in [update_resp, delete_resp]: - assert resp.status_code in DJANGO_PERMISSION_ERROR_TYPES - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/reports.py b/channels/views/reports.py deleted file mode 100644 index 95b215abea..0000000000 --- a/channels/views/reports.py +++ /dev/null @@ -1,66 +0,0 @@ -"""Views for REST APIs for reporting posts and comments""" - -from rest_framework import status -from rest_framework.permissions import IsAuthenticated -from rest_framework.response import Response -from rest_framework.views import APIView - -from open_discussions.permissions import IsStaffOrModeratorPermission -from channels.api import Api -from channels.serializers.reports import ReportSerializer, ReportedContentSerializer -from channels.utils import translate_praw_exceptions - - -class ReportContentView(APIView): - """ - View to report a comment or post - """ - - permission_classes = (IsAuthenticated,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def post(self, request, *args, **kwargs): # pylint: disable=unused-argument - """Create a report""" - with translate_praw_exceptions(request.user): - serializer = ReportSerializer( - data=request.data, context=self.get_serializer_context() - ) - serializer.is_valid(raise_exception=True) - serializer.save() - return Response(serializer.data, status=status.HTTP_201_CREATED) - - -class ChannelReportListView(APIView): - """ - Moderator view for reported comments and posts in a channels - """ - - permission_classes = (IsAuthenticated, IsStaffOrModeratorPermission) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): # pylint: disable=unused-argument - """List of reports""" - with translate_praw_exceptions(request.user): - api = Api(user=request.user) - reports = api.list_reports(self.kwargs["channel_name"]) - serializer = ReportedContentSerializer( - reports, many=True, context=self.get_serializer_context() - ) - - return Response(serializer.data) diff --git a/channels/views/reports_test.py b/channels/views/reports_test.py deleted file mode 100644 index dd00ede3ca..0000000000 --- a/channels/views/reports_test.py +++ /dev/null @@ -1,142 +0,0 @@ -"""Tests for views for REST APIs for reports""" -import pytest -from django.urls import reverse -from rest_framework import status - -from channels.api import Api -from channels.views.test_utils import default_post_response_data -from open_discussions.constants import ( - NOT_AUTHENTICATED_ERROR_TYPE, - PERMISSION_DENIED_ERROR_TYPE, -) -from open_discussions.factories import UserFactory -from profiles.utils import image_uri - -pytestmark = [pytest.mark.betamax, pytest.mark.usefixtures("mock_channel_exists")] - - -def test_report_post(user_client, private_channel_and_contributor, reddit_factories): - """Report a post""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - url = reverse("report-content") - payload = {"post_id": post.id, "reason": "spam"} - resp = user_client.post(url, data=payload) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == payload - - -def test_report_comment(user_client, private_channel_and_contributor, reddit_factories): - """Report a post""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("report-content") - payload = {"comment_id": comment.id, "reason": "spam"} - resp = user_client.post(url, data=payload) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == payload - - -def test_report_anonymous(client, public_channel, reddit_factories): - """Anonymous users can't report posts or comments""" - user = UserFactory.create() - post = reddit_factories.text_post("post", user, channel=public_channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - url = reverse("report-content") - - # Post - resp = client.post(url, data={"post_id": post.id, "reason": "spam"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - # Comment - resp = client.post(url, data={"comment_id": comment.id, "reason": "spam"}) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_list_reports( - staff_client, private_channel_and_contributor, reddit_factories, staff_api -): - """List reported content""" - channel, user = private_channel_and_contributor - post = reddit_factories.text_post("post", user, channel=channel) - comment = reddit_factories.comment("comment", user, post_id=post.id) - # report both with a regular user - api = Api(user) - api.report_comment(comment.id, "spam") - api.report_post(post.id, "bad") - # report both with a moderator user - staff_api.report_comment(comment.id, "spam") - staff_api.report_post(post.id, "junk") - url = reverse("channel-reports", kwargs={"channel_name": channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [ - { - "post": None, - "comment": { - "author_id": user.username, - "created": comment.created, - "id": comment.id, - "parent_id": None, - "post_id": post.id, - "score": 1, - "text": comment.text, - "upvoted": False, - "downvoted": False, - "removed": False, - "deleted": False, - "subscribed": False, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "comment_type": "comment", - "num_reports": 2, - }, - "reasons": ["spam"], - }, - { - "post": { - **default_post_response_data(channel, post, user), - "num_comments": 1, - "num_reports": 2, - "upvoted": False, - }, - "comment": None, - "reasons": ["bad", "junk"], - }, - ] - - -def test_list_reports_empty(staff_client, private_channel): - """List reported content when there is none""" - url = reverse("channel-reports", kwargs={"channel_name": private_channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == [] - - -def test_patch_channel_nonstaff(user_client, private_channel): - """ - Fail to list a channels reported content if nonstaff user - """ - url = reverse("channel-reports", kwargs={"channel_name": private_channel.name}) - resp = user_client.get(url) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data == { - "error_type": PERMISSION_DENIED_ERROR_TYPE, - "detail": "You do not have permission to perform this action.", - } - - -def test_patch_channel_noauth(client, private_channel): - """ - Fail to list a channels reported content if no auth - """ - url = reverse("channel-reports", kwargs={"channel_name": private_channel.name}) - resp = client.get(url) - assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/subscribers.py b/channels/views/subscribers.py deleted file mode 100644 index 60746d7715..0000000000 --- a/channels/views/subscribers.py +++ /dev/null @@ -1,75 +0,0 @@ -"""Views for REST APIs for channels""" -from django.conf import settings -from rest_framework import status -from rest_framework.exceptions import NotFound -from rest_framework.generics import ListCreateAPIView -from rest_framework.permissions import IsAuthenticated -from rest_framework.response import Response -from rest_framework.views import APIView - -from channels.api import Api -from channels.models import Channel, ChannelSubscription -from channels.serializers.subscribers import SubscriberSerializer -from open_discussions.permissions import IsOwnSubscriptionOrAdminPermission - - -class SubscriberListView(ListCreateAPIView): - """ - View to add subscribers in channels - """ - - permission_classes = (IsAuthenticated, IsOwnSubscriptionOrAdminPermission) - serializer_class = SubscriberSerializer - - def get_serializer_context(self): - """Context for the request and view""" - return {"channel_api": self.request.channel_api, "view": self} - - def get_queryset(self): - """Get generator for subscribers in channel""" - return ( - subscriber - for subscriber in list( - Channel.objects.get(name=self.kwargs["channel_name"]).subscribers - ) - if subscriber.username != settings.INDEXING_API_USERNAME - ) - - -class SubscriberDetailView(APIView): - """ - View to retrieve and remove subscribers in channels - """ - - permission_classes = (IsAuthenticated, IsOwnSubscriptionOrAdminPermission) - - def get_serializer_context(self): - """Context for the request and view""" - return {"channel_api": self.request.channel_api, "view": self} - - def get(self, request, *args, **kwargs): - """Get subscriber for the channel""" - subscriber_name = self.kwargs["subscriber_name"] - channel_name = self.kwargs["channel_name"] - subscription = ChannelSubscription.objects.filter( - channel__name=channel_name, user__username=subscriber_name - ).first() - - if not subscription: - raise NotFound( - "User {} is not a subscriber of {}".format( - subscriber_name, channel_name - ) - ) - return Response(SubscriberSerializer(subscription.user).data) - - def delete(self, request, *args, **kwargs): # pylint: disable=unused-argument - """ - Removes a subscriber from a channel - """ - api = Api(user=request.user) - channel_name = self.kwargs["channel_name"] - subscriber_name = self.kwargs["subscriber_name"] - - api.remove_subscriber(subscriber_name, channel_name) - return Response(status=status.HTTP_204_NO_CONTENT) diff --git a/channels/views/subscribers_test.py b/channels/views/subscribers_test.py deleted file mode 100644 index 1d85abc996..0000000000 --- a/channels/views/subscribers_test.py +++ /dev/null @@ -1,138 +0,0 @@ -"""Tests for views for REST APIs for channels""" -# pylint: disable=unused-argument -import pytest -from django.urls import reverse -from rest_framework import status - -from open_discussions.constants import NOT_AUTHENTICATED_ERROR_TYPE -from open_discussions.factories import UserFactory - -pytestmark = [pytest.mark.betamax, pytest.mark.usefixtures("mock_channel_exists")] - - -def test_list_subscribers(staff_client, staff_api, public_channel): - """ - The correct list of subscriber usernames is returned. - """ - users = UserFactory.create_batch(2) - for user in users: - staff_api.add_subscriber(user.username, public_channel.name) - url = reverse("subscriber-list", kwargs={"channel_name": public_channel.name}) - resp = staff_client.get(url) - assert resp.status_code == status.HTTP_200_OK - for user in users: - assert {"subscriber_name": user.username} in resp.json() - - -@pytest.mark.parametrize("attempts", [1, 2]) -def test_add_subscriber(staff_client, user, public_channel, attempts): - """ - Adds a subscriber to a channel as a staff user - """ - url = reverse("subscriber-list", kwargs={"channel_name": public_channel.name}) - for _ in range(attempts): - resp = staff_client.post( - url, data={"subscriber_name": user.username}, format="json" - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == {"subscriber_name": user.username} - - -def test_add_subscriber_mod(client, public_channel, staff_api, reddit_factories): - """ - Adds a subscriber to a channel as a moderator - """ - moderator = reddit_factories.user("new_mod_user") - new_subscriber = reddit_factories.user("new_sub_user") - staff_api.add_moderator(moderator.username, public_channel.name) - client.force_login(moderator) - url = reverse("subscriber-list", kwargs={"channel_name": public_channel.name}) - resp = client.post( - url, data={"subscriber_name": new_subscriber.username}, format="json" - ) - assert resp.status_code == status.HTTP_201_CREATED - assert resp.json() == {"subscriber_name": new_subscriber.username} - - -def test_add_subscriber_forbidden(staff_client, private_channel, user): - """ - If a user gets a 403 from praw we should return a 403 status - """ - url = reverse("subscriber-list", kwargs={"channel_name": private_channel.name}) - resp = staff_client.post( - url, data={"subscriber_name": user.username}, format="json" - ) - assert resp.status_code == status.HTTP_403_FORBIDDEN - - -def test_add_subscriber_anonymous(client, user, public_channel): - """ - Anonymous users can't add subscribers - """ - url = reverse("subscriber-list", kwargs={"channel_name": public_channel.name}) - resp = client.post(url, data={"subscriber_name": user.username}, format="json") - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -def test_detail_subscriber(user_client, private_channel_and_contributor): - """ - Detail of a subscriber in a channel - """ - channel, contributor = private_channel_and_contributor - url = reverse( - "subscriber-detail", - kwargs={"channel_name": channel.name, "subscriber_name": contributor.username}, - ) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_200_OK - assert resp.json() == {"subscriber_name": contributor.username} - - -def test_detail_subscriber_missing(user_client, private_channel, user): - """ - A missing subscriber should generate a 404 - """ - url = reverse( - "subscriber-detail", - kwargs={"channel_name": private_channel.name, "subscriber_name": user.username}, - ) - resp = user_client.get(url) - assert resp.status_code == status.HTTP_404_NOT_FOUND - - -def test_detail_subscriber_anonymous(client, user, public_channel): - """Anonymous users can't see subscriber information""" - url = reverse( - "subscriber-detail", - kwargs={"channel_name": public_channel.name, "subscriber_name": user.username}, - ) - resp = client.get(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE - - -@pytest.mark.parametrize("attempts", [1, 2]) -def test_remove_subscriber(staff_client, staff_api, user, public_channel, attempts): - """ - Removes a subscriber from a channel - """ - staff_api.add_subscriber(user.username, public_channel.name) - url = reverse( - "subscriber-detail", - kwargs={"channel_name": public_channel.name, "subscriber_name": user.username}, - ) - for _ in range(attempts): - resp = staff_client.delete(url) - assert resp.status_code == status.HTTP_204_NO_CONTENT - - -def test_remove_subscriber_anonymous(client, user, public_channel): - """Anonymous users can't remove subscribers""" - url = reverse( - "subscriber-detail", - kwargs={"channel_name": public_channel.name, "subscriber_name": user.username}, - ) - resp = client.delete(url) - assert resp.status_code == status.HTTP_403_FORBIDDEN - assert resp.data["error_type"] == NOT_AUTHENTICATED_ERROR_TYPE diff --git a/channels/views/test_utils.py b/channels/views/test_utils.py deleted file mode 100644 index 1311764d63..0000000000 --- a/channels/views/test_utils.py +++ /dev/null @@ -1,146 +0,0 @@ -"""Utilities for tests""" -from urllib.parse import urlparse - -from channels.models import Article, Channel, Post -from channels.utils import get_reddit_slug, render_article_text -from profiles.utils import image_uri -from open_discussions.utils import markdown_to_plain_text - - -def default_channel_response_data(channel): - """ - Helper function. Returns a dict containing some of the data that we expect from the API given - a channel. - """ - channel_record = Channel.objects.get(name=channel.name) - return { - "title": channel.title, - "name": channel.name, - "description": channel.description, - "public_description": channel.public_description, - "channel_type": channel.channel_type, - "user_is_contributor": True, - "user_is_subscriber": True, - "user_is_moderator": False, - "link_type": channel.link_type, - "membership_is_managed": False, - "avatar": None, - "avatar_small": None, - "avatar_medium": None, - "banner": None, - "ga_tracking_id": None, - "allowed_post_types": [ - post_type - for post_type, enabled in channel_record.allowed_post_types - if enabled - ], - "widget_list_id": channel_record.widget_list_id, - "about": None, - "moderator_notifications": False, - } - - -def default_post_response_data(channel, post, user): - """ - Helper function. Returns a dict containing some of the data that we expect from the API given - a channel, post, and user. - """ - # For some reason, the default values are different for staff and non-staff users - if user.is_staff: - user_dependent_defaults = {"upvoted": False, "num_reports": 0} - else: - user_dependent_defaults = {"upvoted": True, "num_reports": None} - - post_obj = Post.objects.get(post_id=post.id) - article = Article.objects.filter(post=post_obj).first() - - text = post.text - - if not text and not post.url: - text = "" - - if article: - plain_text = render_article_text(article.content) - elif text: - plain_text = markdown_to_plain_text(text) - else: - plain_text = None - - return { - "url": post.url, - "url_domain": urlparse(post.url).hostname if post.url else None, - "cover_image": None, - "thumbnail": None, - "text": text, - "article_content": article.content if article is not None else None, - "plain_text": plain_text, - "post_type": post_obj.post_type, - "title": post.title, - "removed": False, - "deleted": False, - "subscribed": False, - "score": 1, - "author_id": user.username, - "id": post.id, - "slug": get_reddit_slug(post.permalink), - "created": post.created, - "num_comments": 0, - "channel_name": channel.name, - "channel_title": channel.title, - "channel_type": channel.channel_type, - "profile_image": image_uri(user.profile), - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "edited": False, - "stickied": False, - **user_dependent_defaults, - } - - -def default_comment_response_data(post, comment, user): - """ - Helper function. Returns a dict containing some of the data that we expect from the API given - a post, comment, and user. - """ - # For some reason, the default values are different for staff and non-staff users - if user.is_staff: - user_dependent_defaults = {"num_reports": 0} - else: - user_dependent_defaults = {"num_reports": None} - - return { - "author_id": user.username, - "author_name": user.profile.name, - "author_headline": user.profile.headline, - "comment_type": "comment", - "created": comment.created, - "deleted": False, - "downvoted": False, - "edited": False, - "id": comment.id, - "parent_id": None, - "post_id": post.id, - "profile_image": image_uri(user.profile), - "removed": False, - "score": 1, - "subscribed": False, - "upvoted": False, - "text": comment.text, - **user_dependent_defaults, - } - - -def raise_error_on_submission_fetch(mocker): - """Raise an error if Submission._fetch() is called""" - return mocker.patch( - "praw.models.reddit.submission.Submission._fetch", - side_effect=Exception("_fetch() should not be called"), - ) - - -def raise_error_on_subreddit_fetch(mocker): - """Raise an error if Subreddit._fetch() is called""" - return mocker.patch( - "praw.models.reddit.subreddit.Subreddit._fetch", - side_effect=Exception("_fetch() should not be called"), - ) diff --git a/channels/views_test.py b/channels/views_test.py deleted file mode 100644 index a40eed8363..0000000000 --- a/channels/views_test.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Tests for REST API views""" -# pylint: disable=unused-argument -import pytest - -from django.urls import reverse -from praw.exceptions import APIException - -pytestmark = pytest.mark.betamax - - -def test_api_exception(client, logged_in_profile, mocker): - """Make sure APIExceptions which aren't recognized become 500 errors""" - exception = APIException("bizarre", "A bizarre exception", "bizarre_field") - mocker.patch( - "channels.serializers.comments.CommentSerializer.update", side_effect=exception - ) - url = reverse("comment-detail", kwargs={"comment_id": "e8h"}) - with pytest.raises(APIException) as ex: - client.patch(url, type="json", data={"text": "updated text"}) - assert ex.value == exception diff --git a/channels_fields/factories.py b/channels_fields/factories.py index ffc3752c3d..659cc40f79 100644 --- a/channels_fields/factories.py +++ b/channels_fields/factories.py @@ -1,7 +1,6 @@ """Factories for channels_fields""" import factory -from channels.factories.utils import channel_name from channels_fields.api import create_field_groups_and_roles from channels_fields.models import FieldChannel, FieldList, Subfield from course_catalog.constants import PrivacyLevel @@ -11,7 +10,7 @@ class FieldChannelFactory(factory.DjangoModelFactory): """Factory for a channels_fields.models.FieldChannel object""" - name = factory.LazyAttributeSequence(channel_name) + name = factory.fuzzy.FuzzyText(length=21) title = factory.Faker("text", max_nb_chars=50) public_description = factory.Faker("text", max_nb_chars=50) diff --git a/channels_fields/serializers.py b/channels_fields/serializers.py index 6f22aed7a2..e061e0b6ca 100644 --- a/channels_fields/serializers.py +++ b/channels_fields/serializers.py @@ -9,15 +9,12 @@ from rest_framework.exceptions import ValidationError from drf_spectacular.utils import extend_schema_field -from channels.serializers.channels import ChannelAppearanceMixin -from channels.serializers.validators import validate_email, validate_username from channels_fields.api import add_user_role, is_moderator from channels_fields.constants import FIELD_ROLE_MODERATORS from channels_fields.models import FieldChannel, FieldList, Subfield from course_catalog.constants import PrivacyLevel from course_catalog.models import UserList from course_catalog.serializers import UserListSerializer -from open_discussions.serializers import WriteableSerializerMethodField from profiles.models import Profile User = get_user_model() @@ -25,6 +22,64 @@ log = logging.getLogger(__name__) +class WriteableSerializerMethodField(serializers.SerializerMethodField): + """ + A SerializerMethodField which has been marked as not read_only so that submitted data passed validation. + """ + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.read_only = False + + def to_internal_value(self, data): + return data + + +class ChannelAppearanceMixin(serializers.Serializer): + """Serializer mixin for channel appearance""" + + avatar = WriteableSerializerMethodField() + avatar_small = serializers.SerializerMethodField() + avatar_medium = serializers.SerializerMethodField() + banner = WriteableSerializerMethodField() + is_moderator = serializers.SerializerMethodField() + + def get_is_moderator(self, instance) -> bool: + """Return true if user is a moderator for the channel""" + request = self.context.get("request") + if request and is_moderator(request.user, instance.name): + return True + return False + + def get_avatar(self, channel) -> str: + """Get the avatar image URL""" + return channel.avatar.url if channel.avatar else None + + def get_avatar_small(self, channel) -> str: + """Get the avatar image small URL""" + return channel.avatar_small.url if channel.avatar_small else None + + def get_avatar_medium(self, channel) -> str: + """Get the avatar image medium URL""" + return channel.avatar_medium.url if channel.avatar_medium else None + + def get_banner(self, channel) -> str: + """Get the banner image URL""" + return channel.banner.url if channel.banner else None + + def validate_avatar(self, value): + """Empty validation function, but this is required for WriteableSerializerMethodField""" + if not hasattr(value, "name"): + raise ValidationError("Expected avatar to be a file") + return {"avatar": value} + + def validate_banner(self, value): + """Empty validation function, but this is required for WriteableSerializerMethodField""" + if not hasattr(value, "name"): + raise ValidationError("Expected banner to be a file") + return {"banner": value} + + class SubfieldSerializer(serializers.ModelSerializer): """Serializer for Subfields""" @@ -47,14 +102,6 @@ class FieldChannelSerializer(ChannelAppearanceMixin, serializers.ModelSerializer lists = serializers.SerializerMethodField() featured_list = UserListSerializer(many=False, read_only=True) subfields = SubfieldSerializer(many=True, read_only=True) - is_moderator = serializers.SerializerMethodField() - - def get_is_moderator(self, instance) -> bool: - """Return true if user is a moderator for the channel""" - request = self.context.get("request") - if request and is_moderator(request.user, instance.name): - return True - return False @extend_schema_field(UserListSerializer(many=True)) def get_lists(self, instance): @@ -295,11 +342,19 @@ def get_full_name(self, instance) -> str: def validate_moderator_name(self, value): """Validate moderator name""" - return {"moderator_name": validate_username(value)} + if not isinstance(value, str): + raise ValidationError("username must be a string") + if not User.objects.filter(username=value).exists(): + raise ValidationError("username is not a valid user") + return {"moderator_name": value} def validate_email(self, value): """Validate email""" - return {"email": validate_email(value)} + if not isinstance(value, str): + raise ValidationError("email must be a string") + if not User.objects.filter(email__iexact=value).exists(): + raise ValidationError("email does not exist") + return {"email": value} def create(self, validated_data): field_name = self.context["view"].kwargs["field_name"] diff --git a/channels_fields/signals.py b/channels_fields/signals.py index bc29a11c8a..b82a6e896c 100644 --- a/channels_fields/signals.py +++ b/channels_fields/signals.py @@ -2,14 +2,15 @@ from django.db.models.signals import post_save from django.dispatch import receiver from guardian.shortcuts import assign_perm - -from channels.constants import WIDGET_LIST_CHANGE_PERM from channels_fields.api import create_field_groups_and_roles from channels_fields.constants import FIELD_ROLE_MODERATORS from channels_fields.models import FieldChannel from widgets.models import WidgetList +WIDGET_LIST_CHANGE_PERM = "widgets.change_widgetlist" + + @receiver( post_save, sender=FieldChannel, diff --git a/conftest.py b/conftest.py index f34181ec32..0301ab43f7 100644 --- a/conftest.py +++ b/conftest.py @@ -3,10 +3,8 @@ import pytest from fixtures.aws import * -from fixtures.betamax import * from fixtures.common import * from fixtures.opensearch import * -from fixtures.reddit import * from fixtures.users import * from open_discussions.exceptions import DoNotUseRequestException @@ -14,11 +12,7 @@ @pytest.fixture(autouse=True) def prevent_requests(mocker, request): """Patch requests to error on request by default""" - if ( - "betamax" in request.keywords - or "use_betamax" in request.fixturenames - or "mocked_responses" in request.fixturenames - ): + if "mocked_responses" in request.fixturenames: return mocker.patch( "requests.sessions.Session.request", diff --git a/course_catalog/serializers.py b/course_catalog/serializers.py index e0747a434a..e039bf6d2e 100644 --- a/course_catalog/serializers.py +++ b/course_catalog/serializers.py @@ -38,7 +38,6 @@ UserListItem, Video, ) -from moira_lists.moira_api import is_public_list_editor from open_discussions.serializers import WriteableSerializerMethodField from open_discussions.settings import DRF_NESTED_PARENT_LOOKUP_PREFIX from search.search_index_helpers import ( @@ -715,9 +714,8 @@ def validate_privacy_level(self, privacy_level): """ request = self.context.get("request") if request and hasattr(request, "user") and isinstance(request.user, User): - if ( - privacy_level == PrivacyLevel.public.value - and not is_public_list_editor(request.user) + if privacy_level == PrivacyLevel.public.value and not ( + request.user.is_superuser or request.user.is_staff ): raise ValidationError("Invalid permissions for public lists") return privacy_level diff --git a/course_catalog/views_userlist_test.py b/course_catalog/views_userlist_test.py index 3b9ce37570..cba3a04ef1 100644 --- a/course_catalog/views_userlist_test.py +++ b/course_catalog/views_userlist_test.py @@ -12,7 +12,6 @@ UserListItemFactory, ) from course_catalog.models import UserList -from moira_lists.factories import MoiraListFactory from open_discussions.factories import UserFactory # pylint:disable=redefined-outer-name, use-maxsplit-arg @@ -94,7 +93,6 @@ def test_user_list_endpoint_get_all_public_lists(user_client): @pytest.mark.parametrize("is_public", [True, False]) @pytest.mark.parametrize("is_staff", [True, False]) @pytest.mark.parametrize("is_super", [True, False]) -@pytest.mark.parametrize("on_moira", [True, False]) @pytest.mark.parametrize("is_anonymous", [True, False]) def test_user_list_endpoint_create( # pylint: disable=too-many-arguments client, @@ -103,15 +101,9 @@ def test_user_list_endpoint_create( # pylint: disable=too-many-arguments is_public, is_staff, is_super, - on_moira, - settings, ): """Test userlist endpoint for creating a UserList""" - staff_lists = ["test-list1", "test-list2"] - settings.STAFF_MOIRA_LISTS = staff_lists user = UserFactory.create(is_staff=is_staff, is_superuser=is_super) - if on_moira: - user.moira_lists.set([MoiraListFactory(name=staff_lists[0])]) if not is_anonymous: client.force_login(user) @@ -123,7 +115,7 @@ def test_user_list_endpoint_create( # pylint: disable=too-many-arguments "list_type": UserListType.LEARNING_PATH.value, } - has_permission = is_staff or is_super or on_moira or not is_public + has_permission = is_staff or is_super or not is_public resp = client.post(reverse("userlists-list"), data=data, format="json") assert resp.status_code == (403 if is_anonymous else 201 if has_permission else 400) if resp.status_code == 201: diff --git a/discussions/factories.py b/discussions/factories.py index df2067b5ef..91c30cece8 100644 --- a/discussions/factories.py +++ b/discussions/factories.py @@ -3,7 +3,6 @@ from factory.django import DjangoModelFactory from factory.fuzzy import FuzzyChoice -from channels.factories.utils import channel_name from discussions import api from discussions.constants import ChannelTypes from discussions.models import Channel @@ -12,7 +11,7 @@ class ChannelFactory(DjangoModelFactory): """Factory for a channels.models.Channel object""" - name = factory.LazyAttributeSequence(channel_name) + name = factory.fuzzy.FuzzyText(length=21) title = factory.Faker("text", max_nb_chars=50) channel_type = FuzzyChoice(ChannelTypes.values()) about = factory.List( diff --git a/discussions/models.py b/discussions/models.py index 1145449a2c..781c8aae3e 100644 --- a/discussions/models.py +++ b/discussions/models.py @@ -6,14 +6,16 @@ from django.db import models from imagekit.models import ImageSpecField, ProcessedImageField from imagekit.processors import ResizeToFit - -from channels.utils import AVATAR_MEDIUM_MAX_DIMENSION, AVATAR_SMALL_MAX_DIMENSION from discussions.constants import ChannelTypes, PostTypes from open_discussions.models import NoDefaultTimestampedModel, TimestampedModelQuerySet from profiles.utils import avatar_uri, banner_uri from widgets.models import WidgetList +AVATAR_SMALL_MAX_DIMENSION = 22 +AVATAR_MEDIUM_MAX_DIMENSION = 90 + + class ChannelQuerySet(TimestampedModelQuerySet): """Custom queryset for user""" diff --git a/docker-compose-notebook.yml b/docker-compose-notebook.yml index d407e6906a..92d21e7652 100644 --- a/docker-compose-notebook.yml +++ b/docker-compose-notebook.yml @@ -8,10 +8,6 @@ x-environment: DATABASE_URL: postgres://postgres@db:5432/postgres MITOPEN_SECURE_SSL_REDIRECT: 'False' MITOPEN_DB_DISABLE_SSL: 'True' - MITOPEN_REDDIT_URL: https://reddit.local - MITOPEN_REDDIT_VALIDATE_SSL: 'False' - MITOPEN_REDDIT_CLIENT_ID: od_client_id - MITOPEN_REDDIT_SECRET: od_client_secret MITOPEN_FEATURES_DEFAULT: 'True' OPENSEARCH_URL: elastic:9200 CELERY_TASK_ALWAYS_EAGER: 'False' diff --git a/docker-compose.yml b/docker-compose.yml index fc8e81b16e..d6eec8bb05 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,10 +8,6 @@ x-environment: DATABASE_URL: postgres://postgres:postgres@db:5432/postgres MITOPEN_SECURE_SSL_REDIRECT: 'False' MITOPEN_DB_DISABLE_SSL: 'True' - MITOPEN_REDDIT_URL: https://reddit.local - MITOPEN_REDDIT_VALIDATE_SSL: 'False' - MITOPEN_REDDIT_CLIENT_ID: od_client_id - MITOPEN_REDDIT_SECRET: od_client_secret MITOPEN_FEATURES_DEFAULT: 'True' OPENSEARCH_URL: opensearch-node-mitopen:9200 CELERY_TASK_ALWAYS_EAGER: 'False' @@ -21,11 +17,6 @@ x-environment: TIKA_SERVER_ENDPOINT: ${TIKA_SERVER_ENDPOINT:-http://tika:9998/} TIKA_CLIENT_ONLY: 'True' - AKISMET_IS_TESTING: 'True' -x-extra-hosts: - &default-extra-hosts - # see reddit.local in /etc/hosts - - "reddit.local:192.168.56.111" services: db: @@ -88,7 +79,6 @@ services: - opensearch-node-mitopen - redis - watch - extra_hosts: *default-extra-hosts watch: image: node:16.20.1 @@ -116,14 +106,12 @@ services: command: > /bin/bash -c ' sleep 3; - celery -A open_discussions.celery:app worker -Q spam,digest_emails,default -B -l ${MITOPEN_LOG_LEVEL:-INFO} & - celery -A open_discussions.celery:app worker -Q spam,digest_emails,edx_content,default -l ${MITOPEN_LOG_LEVEL:-INFO}' + celery -A open_discussions.celery:app worker -Q default -B -l ${MITOPEN_LOG_LEVEL:-INFO} & + celery -A open_discussions.celery:app worker -Q edx_content,default -l ${MITOPEN_LOG_LEVEL:-INFO}' links: - db - opensearch-node-mitopen - redis - extra_hosts: *default-extra-hosts - tika: image: apache/tika:1.28 ports: diff --git a/docs/architecture/email_notification.md b/docs/architecture/email_notification.md deleted file mode 100644 index 5da83a8ca5..0000000000 --- a/docs/architecture/email_notification.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -parent: Architecture ---- -## Email Notifications - -### Summary - -- Be able to send frontpage email notifications on a daily or weekly basis - - Frequency is user-configurable - - If we don't have any new content since the last send, defer until next interval - - -- Be able to notify users on specific events, controlled by a subscription to the entity - - Examples: - - Comment replies to posts - - Comment replies to other comments - - Capability to notify at the following frequencies: - - Near term we want to support: - - Never - - Immediate - - Long term we may want to support: - - Daily (digest/aggregation of new events) - - Weekly (digest/aggregation of new events) - - -### Architecture - -#### State Machine - -Email Notifications proceed through the following state machine: - -- `PENDING` - notification is ready to send -- `SENDING` - notification is in the process of being sent (rendered and delivered to ESP) -- `CANCELED` - notification was canceled -- `SENT` - notification was delivered to ESP\* - -**\* NOTE:** to ensure we don't send an email multiple times we follow a `At Most Once` sending strategy where we mark the record as sent first, then attempt to send the email. This can cause some emails to be dropped if the ESP errors. - -#### Frontpage Emails: - - - Tasks are triggered on a daily and weekly basis. Each of these tasks triggers the following task flow: - - For all users with notifications enabled, fan out a set of batch tasks to determine if the user has posts in their feed since the last notification. - - These tasks are idempotent and will be retried if there's any failure - - If the user has posts in their feed, create a `PENDING` `EmailNotification` record for that user - -#### Comment Notifications - - - When a comment occurs, fire a celery task to check subscriptions - - Walk all subscriptions to that the posts and/or a comment (if the new comment was a reply to another comment) and for each one create a pending `EmailNotification` record - - If their `NotificationSettings` record for that type has `frequency_type` of `never`, then we don't create this record. This has the effect of muting subscriptions temporarily without necessitating the removal of the subscriptions or effecting a massive catch-up of notifications if they turn it back on - - -#### Notification Email Sending - -For both notification types, an asynchronous task set to run every minute via `crontab` will trigger another set of batch tasks in the following manner: - - Marks the notifications as being in the `SENDING` state, trigers batch tasks for these to send the email - - Takes a lock on the `EmailNotification` record - - Continues if and only if the record is still pending - - Re-checks that there is still data to send for this record (race condition coverage) - - Marks the `EmailNotification` as sent - - Sends the email to the ESP - - -#### Configuration - -We have a number of configuration options available to control our sending: - -| Environment Variable | Description | Examples | -|---|---| -| `MITOPEN_NOTIFICATION_ATTEMPT_RATE_LIMIT` | The per-worker rate limit at which to generate pending `EmailNotification` frontpage records | `100/s`, `2/h`, etc
[See Celery Docs](https://docs.celeryproject.org/en/latest/reference/celery.app.task.html#celery.app.task.Task.rate_limit)| -| `MITOPEN_NOTIFICATION_ATTEMPT_CHUNK_SIZE` | The size of each attempt batch |`100`, `150`, etc| -| `MITOPEN_NOTIFICATION_SEND_CHUNK_SIZE` | The size of each sending batch |`100`, `150`, etc| diff --git a/docs/architecture/spam_mitigation.md b/docs/architecture/spam_mitigation.md deleted file mode 100644 index 54b46a82fe..0000000000 --- a/docs/architecture/spam_mitigation.md +++ /dev/null @@ -1,89 +0,0 @@ ---- -parent: Architecture ---- - -# Spam Mitigation -{: .no_toc } - -## Table of Contents -{: .no_toc .text-delta } - -- Table of Contents -{:toc} - - -### Summary - -We have a number of channels that are public and allowing non-MIT users to post content is a feature we want to continue to offer. This comes with the problem of bad actors trying to post spam content on our site. Spammers are typically trying to link into their own sites and they often link back to ours as well. - -To combat this, we should approach this with a [defense in depth](https://en.wikipedia.org/wiki/Defense_in_depth_(computing)) strategy, depending on no single component to stop everything. - -### Application-wide - - -#### Blocking IP addresses - -This strategy makes it easier to block spammers based on where their requests are originating. Configuration is represented by the data model `authentication.models.BlockedIPRange`, which you'd typically configure in `django-admin`. This supports the blocking of ranges of IPs, a situation we can encounter if a spammer is coming in over a proxy server hosted on a cloud service. Cloud services enable the spammer to get a new IP if they burn the one they're currently using, which means a lot of jumping around for us trying to block them. Instead, we would block on a range once we identify the cloud provider, which typically retain a block of IP addresses for their services. - -We use [`django-ipware`](https://github.com/un33k/django-ipware) to determine the IP address of the incoming request, this library handles a lot of the networking and request-level nuances around determining what header the IP address is pulled from. It's also highly configurable should our needs/deployment situation change. - -We allow read-only access for blocked IP and block any mutable requests (e.g. `POST`, `PUT`, etc). - - -### Preventing spammer account creation - -We've taken some steps to mitigate the spammer's ability to create accounts. - -#### Blocking email domains - -This mostly has bearing to spammers trying to sign up with emails under a personal domain, as we can't categorically block a domain like `@gmail.com`. Configuration is represented by the data model `authentication.models.BlockedEmailRegex`, which you'd typically configure in `django-admin`. - - -### Preventing spam from being posted - -#### Private or protected channels - -Private and protected channels have the protection that only contributors can create posts. In protected channels anyone can comment though as the posts are otherwise public. This is a quick way to lock down a channel if the current mitigation measures for that channel aren't adequate. - - -#### Akismet spam checking - -When a user creates or updates a comment or a post the first line of defense is checking the contents against Akismet, the spam checking service largely used by Wordpress. This allows us to avoid having to write our own service to classify spam and lean on the knowledge Akismet has around what spam looks like. - -Akismet results are a binary `True` / `False` on whether the content was spam. This opaqueness is a feature of the service so that spammers aren't able to work around it. - -Akismet spam results are stored in the `channels.models.SpamCheckResult` model. - -##### False Positives - -Akismet can be a double-edged sword, it will occasionally misclassify a post or comment as spam. Since Akismet is a black box (and should be), we should focus our efforts on how to make handling false positives as user-friendly as possible. - - -###### Excluding moderators from spam checking - -We've [implemented a fix](https://github.com/mitodl/open-discussions/pull/3079) to exclude channel moderators from spam checks. At this time moderators are the most active content posters and they are almost always MIT staff, so we don't expect spam from these users and avoiding the chance of false positives makes things easier all around. - -###### Excluding MIT users from spam checking - -We [implemented a fix](https://github.com/mitodl/open-discussions/pull/3096) to exclude MIT users (by default users with a `@mit.edu` email address) from being spam checked due to the trust factor with this group of users not to post spam. This can be enabled by the feature flag `FEATURE_SPAM_EXEMPTIONS` and is configurable by the environment variable `SPAM_EMAIL_EXEMPTIONS`. - - -#### User reports - -We also gather user reports of offending content to cover those posts that slip through the spam checks. These posts show up in a monderator-only UI that gives them the ability to review the post/comment and remove it if necessary. - - -### Reducing spam value - -We're also taken steps to mitigating spam value. The primary one of which was to no longer allow removed posts to be viewed. Previously these posts were available if you had a direct link to them, which for spammers meant that their content was still hosted on our site. We've since adjusted these pages to return a server 404 for anonymous and non-moderator users (to continue to support moderators being able to re-approve the post if desired). It also helps mitigates content from showing up on search engine results, which means spammers don't get any search engine ranking boosts either. - -### Future plans - -- Report miscategorizations to Akismet, this should help Akismet learn about what content we consider spam or not -- Moderator UI to be able to see posts that were classified as spam so they have an opportunity to be more proactive in approving them. -- Per-channel disabling of spam checks - - In practice, channel owners would really only want to turn this on if the channel is private and there's a level of trust with the contributors -- Giving moderators the ability to either flag an account as a spammer or disable the account altogether - - This is a fair amount of power to give away, so having the account flagged for review might be a good middle ground -- Users who frequently post spam get their accounts disabled - - This runs the risks of false-positives causing someone who isn't a bad actor having their account disabled diff --git a/docs/configuration.md b/docs/configuration.md deleted file mode 100644 index cd2f313567..0000000000 --- a/docs/configuration.md +++ /dev/null @@ -1,12 +0,0 @@ -Configuration ---- - -Required settings are defined in [app.json](../blob/master/app.json). This project requires a functional Reddit backend running from the source code at [mitodl/reddit](https://github.com/mitodl/reddit). - -There are a few nuances of how this configuration works with other projects - -|Setting|Notes| -|---|---| -|`MITOPEN_COOKIE_NAME`|This value should be unique per environment and agree across all integrating applications in that environment. If neither of those criteria are met, `open-discussions` will not find the correct cookie and treat the user as unauthenticated.| -|`MITOPEN_JWT_SECRET`|This value should be unique per environment and agree across all integrating applications in that environment. If these values don't match, `open-discussions` will reject JWT tokens from those applications and treat the user as unauthenticated.| -|`MITOPEN_REDDIT_VALIDATE_SSL`|This should only be set to `False` for local environments as it means communications with the Reddit backend are insecure.| diff --git a/docs/operations.md b/docs/operations.md deleted file mode 100644 index fa5381ce12..0000000000 --- a/docs/operations.md +++ /dev/null @@ -1,12 +0,0 @@ -Operations ---- - -## Common Operations - -#### Resetting Data - - If you clear data on the Reddit backend: - - You must also clear all `django.contrib.auth.models.User` and `profiles.models.Profile` records on `open-discussions`. - - You must also clear all integrating applications of any data that references objects in `open-discussions` or the Reddit backend: - - **MicroMasters:** - - Delete all `discussions.models.DiscussionUser` records - - Delete all `discussions.models.Channel` records diff --git a/docs/reddit-migration/considerations/index.md b/docs/reddit-migration/considerations/index.md deleted file mode 100644 index b3dc91dc98..0000000000 --- a/docs/reddit-migration/considerations/index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: default -parent: Reddit Migration -title: Considerations -nav_order: 2 -has_children: true ---- diff --git a/docs/reddit-migration/considerations/reddit-ids.md b/docs/reddit-migration/considerations/reddit-ids.md deleted file mode 100644 index 12973cf906..0000000000 --- a/docs/reddit-migration/considerations/reddit-ids.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -layout: default -parent: Considerations -grand_parent: Reddit Migration -nav_order: 1 ---- -### Reddit Ids - -Ids have to get handled carefully because we're moving the source of truth of these from Reddit to postgres, but it is a gradual switchover that will be paced out over several releases so we can't just put the site offline while we do this. - -Reddit ids are base36 encoded integers, so we can decode those to a value that can go into a integer column. In fact we are already doing this with the `Base36IntegerField` column type so we already have the decoded values. - -### Migration Plan - -- Reddit will be the source of truth of id values up until we deploy the code that switches the source of truth to postgres -- We need a version of `Base36IntegerField` that subclasses `BigAutoField` instead (might as well switch to a `BIGINT` while we're in here) and use that for `id` -on models. That allows transparent usage of base-36 and base-10 integers. -- Under the hood, `BigAutoField` is a `BIGSERIAL` in postgres, which is syntactic sugar for creating a column with a sequence as the default value. It doesn't _require_ that inserted columns use that default, so we can define this as such from the beginning. -- When we deploy the code changes that generate the ids in postgres from the sequence, we need to advance that sequence since it will still be set to `1` as the next value. We should include a healthy margin between the current highest id and the new sequence value. - - This should be decided when the code is written to accommodate current application traffic - - See https://www.postgresql.org/docs/9.1/sql-altersequence.html diff --git a/docs/reddit-migration/considerations/sorting.md b/docs/reddit-migration/considerations/sorting.md deleted file mode 100644 index 8729d6c430..0000000000 --- a/docs/reddit-migration/considerations/sorting.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -layout: default -parent: Considerations -grand_parent: Reddit Migration -nav_order: 1 ---- -### Sorting - -There are several areas where reddit sorts objects coming back from their APIs in a way that isn't necessarily trivial via standard django ORM methods. This list is meant to be comprehensive so we know the problem space: - -- `Hot` (named "Active" in our UI) - - A logarithmic sort, where as an item ages, it requires an order of magnitude more `upvotes - downvotes` to be sorted above a newer item, the interval for the order of magnitude increase is 12.5 hours - - Implementation: https://github.com/mitodl/reddit/blob/stable/r2/r2/lib/db/_sorts.pyx#L47 -- `Confidence` (named "Best" in our UI) - - Items are sorted with a [weighted algorithm](https://www.evanmiller.org/how-not-to-sort-by-average-rating.html) - - See the corresponding code in the reddit source: - - https://github.com/mitodl/reddit/blob/stable/r2/r2/lib/db/_sorts.pyx#L70 - - https://github.com/mitodl/reddit/blob/stable/install/setup_postgres.sh#L42 -- `New` - posts are sorted in reverse chronological order -- `old` - posts are sorted in chronological order - - -#### Posts - -Posts are sorted in two places: channels and the frontpage. These both support seemingly similar sorts but the implementations actually differ. - -##### Posts in Channels - -Post sorting in channels is the more straightforward version of post sorting, there are 3 kinds we use: `Hot`, `New`, `Top` - -##### Posts in Frontpage - - - `Hot` - posts are sorted using a normalized version of the hot algorithm. This is done to ensure that content from less active channels isn't overshadowed by content from more popular channels. - - See the corresponding code in the reddit source: - - https://github.com/mitodl/reddit/blob/stable/r2/r2/lib/normalized_hot.py#L38-L79 - - `New` and `Top` - same method as channels - - #### Comments - - Comments only have a few sorting options we're currently using: `New`, `Old`, and `Confidence` diff --git a/docs/reddit-migration/index.md b/docs/reddit-migration/index.md deleted file mode 100644 index 329fc1b69e..0000000000 --- a/docs/reddit-migration/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -layout: default -title: Reddit Migration -nav_order: 12 -has_children: true ---- -# Reddit Migration - -## Major Considerations - -- [Reddit Ids](considerations/reddit-ids.md) -- [Sorting](considerations/sorting.md) - -## Strategy - -We should tackle the migration in the following order: - -- [Establish a New Schema](strategy/schema.md) - this needs to be in place before we can start any of the data migration work -- [Migrate Reads and Writes](strategy/reads-and-writes.md) - some of the work in here can be broken into subtasks and/or parallelized -- [Cleanup](strategy/cleanup.md) - not urgent, but should be done in a reasonable timeframe diff --git a/docs/reddit-migration/strategy/cleanup.md b/docs/reddit-migration/strategy/cleanup.md deleted file mode 100644 index dd7101c6df..0000000000 --- a/docs/reddit-migration/strategy/cleanup.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: default -parent: Strategy -grand_parent: Reddit Migration -nav_order: 3 ---- -# Cleanup - -These steps are not urgent, but should be done in areasonable timeframe. - -### Drop old db tables / data models - -- Remove the old data models in the `channels` app -- Ensure the related tables/indexes are dropped - - -### Decommission reddit - -At this point the reddit backend itself can be decommissioned. - - -### Cleanup documentation and configurations - -We should remove anything non-functional related to the reddit integration: - -- Documentation, readme, etc -- Configuration: - - `mitodl/saltops` - - Heroku - - Docker environments diff --git a/docs/reddit-migration/strategy/index.md b/docs/reddit-migration/strategy/index.md deleted file mode 100644 index 9f68364bf9..0000000000 --- a/docs/reddit-migration/strategy/index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: default -parent: Reddit Migration -title: Strategy -nav_order: 2 -has_children: true ---- diff --git a/docs/reddit-migration/strategy/reads-and-writes.md b/docs/reddit-migration/strategy/reads-and-writes.md deleted file mode 100644 index ef121b24ba..0000000000 --- a/docs/reddit-migration/strategy/reads-and-writes.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -layout: default -parent: Strategy -grand_parent: Reddit Migration -nav_order: 2 ---- -# Migrate Reads and Writes - -We need to gracefully migrate our APIs over to the new schema. We want to avoid or at the very least minimize any sort of downtime. - -In general, migrating reads and writes can happen in a siloed manner, in order of highest to lowest level in the relationship hierarchies: - -- Channels -- Posts -- Comments -- etc... - -### Add writes to the new tables - -This should be fairly straightforward, we should add another write to where we are currently writing (calling APIs) to reddit. Most/all of these should be in `channels/api.py` and we should include the writes in any of the existing atomic transactions in that file. There are some cases where we haven't added transactions because they provide no benefit. Those tend to be when we're creating a piece of data (post or comment) and the source of truth is reddit. In those cases a transaction rollback is of no value because we can't rollback a reddit api call. - -### Backpopulate historical data into new tables - -This can be done with backpopulate commands and celery tasks. We've done this plenty of times so it shouldn't be too difficult. - -### Verify new data - -We want some kind of verification of the new data vs the old data. Probably a command that runs through all of the data and verifies records exist and are accurate. - -### Move reads to the new tables - -- Move APIs, celery tasks, and any other reads to the new data models. After this step there should be no references in application code to the old models. -- Migrate any BI queries to the new tables - - If we silo our changes on object type, this might have to wait until everything is moved over - -### Backup reddit data - -It can't hurt and is probably prudent to take a backup of our reddit data prior to cutting off writes. - -### Remove writes from the old schema - -This means removing writes to the models defined in the `channels` app and the writes to reddit itself. After this step we should see no traffic to reddit and no further writes to the tables. This can be tested by temporarily stopping the reddit API instances and verifying there are no errors when exercising the app. diff --git a/docs/reddit-migration/strategy/schema.md b/docs/reddit-migration/strategy/schema.md deleted file mode 100644 index 1707e3b014..0000000000 --- a/docs/reddit-migration/strategy/schema.md +++ /dev/null @@ -1,217 +0,0 @@ ---- -layout: default -parent: Strategy -grand_parent: Reddit Migration -nav_order: 1 ---- -# Establish a New Schema - -We want to establish a new schema so that we have a clean slate to work with and because there will be some incompatible changes with the current schema. An example of this is the `Post.post_id` column is a reference to the reddit id, but in the future needs to be the primary key of the row (see [Reddit Ids](reddit-ids.md)). We can't do that in-place with the current table. -### Channels - -Channels should have the fields carried over with the following adjustments: - - - `channel_id` -> `id` - -### Posts - -Posts should have the fields carried over with the following adjustments: - - - `post_id` -> `id` - - `reports_ignored = BooleanField(default=False)` - - Flag to indicate whether we're ignoring subsequent reports of the post - - See "Moderation" for more details - - `text` / `preview_text` / `plain_text` - - We currently have several representations of textual post content, the 3 fields/properties listed above: - - `text` is the markdown text for text posts - - `preview_text` is precomputed plain text representation of link posts, sourced from and Embedly API request for that link - `plain_text` is a `@property`, not a db column, but its logic is as follows: - - If the post is an article, render the article to plain text - - If the post is a text post, render the markdown to plain text - - Otherwise use `preview_text` - - See also: https://github.com/mitodl/open-discussions/blob/9a96f09ab4c8c617da3ba8842adb9c419c5d321d/docs/rfcs/0002-indexing-embedly-link-preview.md#4-related-but-separate-issue-getting-rid-of-either-the-plain_text-or-text-field-in-es-documents - - We should to normalize `preview_text` / `plain_text` down to a single stored field so we're not recomputing it every time a read occurs. - - We still need to keep the `text` field and the `article` relation - - -### Comments - -Comments should have the fields carried over with the following adjustments: - - - `channel_id` -> `id` - - `reports_ignored = BooleanField(default=False)` - - Flag to indicate whether we're ignoring subsequent reports of the comment - - See "Moderation" for more details - -#### Comment Tree - -Prior art: - - - SQL Antipatterns ("Naive Trees"):http://www.r-5.org/files/books/computers/languages/sql/style/Bill_Karwin-SQL_Antipatterns-EN.pdf - - Models for Hierarchical Data: https://www.slideshare.net/billkarwin/models-for-hierarchical-data - - Django treebeard: https://django-treebeard.readthedocs.io/en/latest/ - -Reddit stores comment trees in Cassandra, which is overkill for our current use cases. That said, we need to be able to migrate the comments in such a manner that we achieve the following: - -- Maintain current API result structures - - Specifically, we need to support some form of reddit's "more comments" pagination. This **does not** need to partition the comments exactly as reddit would, the interface just needs to be compatible with how the frontend traverses it. -- Support currently used sorting methods (best, old, new) -- Support rendering an arbitrary subtree of the comments for the comment detail view - -From the Prior Art listed above, Materialized Paths are probably our best bet and we're already familiar to some degree with them because they're what `wagtail` uses under the hood for page hierarchies. - -The big thing here is that in order to support the sorts we need one table/model for *each type of sort*. That precludes using a single table for everything but it simplifies reads because we can pick our sorting data model and then `prefetch_related` on the `Comment` table so that code can work generically over similarly structured tables. This approach means these sorting hierarchy tables end up being a sorted lookup table for extracting a portion of the comment tree. - -An example of what the data model would look like (working branch [here](https://github.com/mitodl/open-discussions/tree/nl/reddit_schema_migration)): - -```python -from django.db import models -from treebeard.mp_tree import MP_Node - -class Post(models.Model): - pass - - -class Comment(models.Model): - post = models.ForeignKey(Post, on_delete=models.CASCADE) - - -class CommentTreeNode(MP_Node): - # specialize the alphabet for postgres - # see: https://django-treebeard.readthedocs.io/en/latest/mp_tree.html#treebeard.mp_tree.MP_Node.alphabet - alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" - - # a post can have many comments, but a reverse lookup into this tree isn't pragmatic - post = models.ForeignKey( - Post, on_delete=models.CASCADE, related_name="+" - ) - - class Meta: - abstract = True - - -class NewCommentTreeNode(CommentTreeNode): - comment = models.OneToOneField( - Comment, - on_delete=models.CASCADE, - unique=True, - null=True, - related_name="new_comment_node", - ) - - created = models.DateTimeField() - - node_order_by = ["-created"] - - -class OldCommentTreeNode(CommentTreeNode): - comment = models.OneToOneField( - Comment, - on_delete=models.CASCADE, - unique=True, - null=True, - related_name="old_comment_node", - ) - - created = models.DateTimeField() - - node_order_by = ["created"] - - -class BestCommentTreeNode(CommentTreeNode): - comment = models.OneToOneField( - Comment, - on_delete=models.CASCADE, - unique=True, - null=True, - related_name="best_comment_node", - ) - - score = models.IntegerField() - - node_order_by = ["-score"] -``` - -When a sorted column changes, it requires a move of the node. For the Old/New sorts those will never change. For the Best sort, it will change whenever a vote is made or updated. Fortunately, Materialized Paths are pretty efficient at this. An example with the above data models is: - -```python -from django.db import transaction - -post = Post.objects.create() -comment1 = Comment.objects.create(post=post) -comment2 = Comment.objects.create(post=post) -comment3 = Comment.objects.create(post=post) - -@transaction.atomic -def rescore(node, new_score): - node.score = score - node.save() - node.move(node) - -# comment trees start with a root node w/ `comment=None` -# this would get created when the post is created -root = BestCommentTreeNode.add_root(post=post, score=0) -# top level comment -c1n = root.add_child(comment=comment1, score=1) -# replies to comment1 -c2n = c1n.add_child(comment=comment1, score=4) -c3n = c1n.add_child(comment=comment1, score=5) - -# c3n should list above c2n -print(root.dump_bulk()) - -rescore(c2n, 8) -# c2n is now sorted above c3n and has the updated score -print(root.dump_bulk()) -``` - -This results 4 queries, two `SELECT ... LIMIT 1` and two `UPDATE ...` queries: - -```sql -UPDATE "discussions_bestcommenttreenode" SET "path" = '000100010002', "depth" = 3, "numchild" = 0, "post_id" = 2, "comment_id" = 3, "score" = 8 WHERE "discussions_bestcommenttreenode"."id" = 5; -SELECT "discussions_bestcommenttreenode"."id", "discussions_bestcommenttreenode"."path", "discussions_bestcommenttreenode"."depth", "discussions_bestcommenttreenode"."numchild", "discussions_bestcommenttreenode"."post_id", "discussions_bestcommenttreenode"."comment_id", "discussions_bestcommenttreenode"."score" FROM "discussions_bestcommenttreenode" WHERE ("discussions_bestcommenttreenode"."depth" = 3 AND "discussions_bestcommenttreenode"."path" BETWEEN '000100010000' AND '00010001zzzz' AND "discussions_bestcommenttreenode"."score" > 8) ORDER BY "discussions_bestcommenttreenode"."path" ASC LIMIT 1; -SELECT "discussions_bestcommenttreenode"."id", "discussions_bestcommenttreenode"."path", "discussions_bestcommenttreenode"."depth", "discussions_bestcommenttreenode"."numchild", "discussions_bestcommenttreenode"."post_id", "discussions_bestcommenttreenode"."comment_id", "discussions_bestcommenttreenode"."score" FROM "discussions_bestcommenttreenode" WHERE ("discussions_bestcommenttreenode"."depth" = 3 AND "discussions_bestcommenttreenode"."path" BETWEEN '000100010000' AND '00010001zzzz') ORDER BY "discussions_bestcommenttreenode"."path" DESC LIMIT 1; -UPDATE "discussions_bestcommenttreenode" SET path='000100010005'||SUBSTR(path, 13) WHERE path LIKE '000100010002%'; -``` - -### Votes - -We should have a table for `PostVote` and `CommentVote`, these should have the following columns: - -- `comment = ForeignKey(Comment)` / `post = ForeignKey(Post)` - item that was voted on -- `voter = ForeignKey(User)` - the user who made the vote -- `direction = SmallIntegerField()` - we store either a `1` or `-1` to indicate which direction the user voted. In practice, `PostVote` will always have a `direction == 1`, but it's useful to carve this out now in case that changes at a later date. It's also useful to be able to run a `SUM()` over that column. - -Votes are probably the trickiest moving piece in this reddit migration because it's impractical to get the data directly from the reddit backend for a backpopulate. This probably means we're going to need either some kind of ETL process. This is only a 1-time event, so an approach as basic as an export/import of a CSV would be adequate. - - -### Reported Content - -We need a data model for reported content (e.g. report post/comment to a moderator). - -We need to support the following functionality: - -- User can submit a report for a given post or comment - - One record per post or comment is sufficient and likely desired since the moderator is only going to act on a post or comment once - additional records would superfluous. - - We don't need to store the reason the user enters for the report -- Moderators can act on the report, the available actions are: - - Approve: report is marked as resolved, post/comment remains visible - - Ignore: report is marked as resolved, post/comment remains visible, subsequent reports are suppressed - - Remove: report is marked as resolved, post/comment is removed and no longer visible, subsequent reports are suppressed - -We don't need much data here, the following is sufficient: - -- `GenericForeignKey` to `Post` / `Comment` - - we should only create a new report if there is either no existing report or if an existing report is not resolved - - We can accomplish this with a partial unique index combined with a `get_or_create` with `resolved_on=None`: - ```python - constraints = [UniqueConstraint( - fields=["content_type", "content_id"], - condition=Q(resolved_on=None) - )] - ``` -- `resolved_on = DateTimeField(null=True)` - - when a report is resolved, this is set the the current datetime, nullable datetimes have useful properties that we might want to take advantage of down the road - - Additionally, if the action is to remove the item, that side effect occurs at this time as well -- `resolved_by = ForeignKey(User)` - probably useful to know who resolved it -- No need to pull in historial reports from reddit diff --git a/docs/rfcs/0002-indexing-embedly-link-preview.md b/docs/rfcs/0002-indexing-embedly-link-preview.md deleted file mode 100644 index 1a43b2eeef..0000000000 --- a/docs/rfcs/0002-indexing-embedly-link-preview.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -layout: default -parent: RFCs -nav_order: 2 ---- -# 0002: Indexing Link Previews -{: .no_toc } - -## Table of Contents -{: .no_toc .text-delta } - -- Table of Contents -{:toc} - -### Abstract - -Read the description of [#1811](https://github.com/mitodl/open-discussions/issues/1811) for a description of the problem we're solving here. This RFC is to address some decisions about how we go about indexing content from Embedly responses and the index structure in general. -The goal of this RFC is to call attention to some of the finer points of implementation. - -### Architecture - -#### Using a more descriptive Embedly API endpoint - -Here's a direct comparison between two Embedly endpoints using the same URL: - -- ['oembed' endpoint](https://embed.ly/docs/explore/oembed?url=https%3A%2F%2Fwww.theatlantic.com%2Fscience%2Farchive%2F2019%2F02%2Fhow-to-stop-mosquito-bites%2F582190%2F) -- ['extract' endpoint](https://embed.ly/docs/explore/extract?url=https://www.theatlantic.com/science/archive/2019/02/how-to-stop-mosquito-bites/582190/) - -`extract` potentially gives us much more text content to index in the `content` field than `oembed` does in the `description` field (this isn't [always true](https://embed.ly/docs/explore/extract?url=https%3A%2F%2Fwww.mit.edu) though). - -*Proposal*: Use the `extract` endpoint instead of `oembed`; if `content` exists, strip the HTML and save that as the link preview text since it's more complete/descriptive; if `content` doesn't exist, use the `description` value. - -*Drawbacks*: Larger responses both from Embedly and from our own API (since ES documents for link posts will be larger), but that's very unlikely to have any significant impact on performance. Text/article posts are already liable to have a similar amount of raw content. - -#### Including additional content in the text that we index for a link - -Here's a partial document from an embedly response: - -```json -{ - "content": "

NPY acts by sticking to receptor proteins, and the pharmaceutical industry ...", - "title": "A New Way to Keep Mosquitoes From Biting", - "provider_name": "The Atlantic", - ... -} -``` - -The `title` and `provider_name` are potentially significant in terms of the search-ability and relatability of these document (example: if I search "Atlantic", it makes some sense to include this link post from the publication called "The Atlantic" in the results). - -*Proposal*: Prepend `provider_name` and `title` to the text that we index for link posts, and separate the values by dashes (et al). Using the example above, the text that we index would look like this: `"The Atlantic - A New Way to Keep Mosquitoes From Biting - NPY acts by sticking to receptor proteins, and ..."` - -#### Using the existing `text` model field for storing link preview text - -*Proposal*: Save the preview text for a link post in the `channels.models.Post.text` field (we wouldn't attempt to save text for the corresponding reddit object) - -*Potential Issues*: There might still be some application logic on the back- _or_ front-end that considers a post with non-blank `text` value to be a self/text post. This would break that logic. - -#### (Related, but separate issue) Getting rid of either the `plain_text` or `text` field in ES documents - -After reviewing this a bit, it became clear that we don't seem to be using the ES documents' `text` field. We only care about the plain text content of these posts (stored in the `plain_text` field). - -*Proposal*: (a) Get rid of the `text` field in ES documents, or (b) get rid of `plain_text`, and instead store only plain text content in the `text` field. - -*Drawbacks*: For (a) there may still be some application logic that makes use of that value. For (b) it could be jarring to have two properties with the same name on the model object and its corresponding ES document with different values. - -If this makes sense, this change would be made in a separate issue (i.e.: not as part of #1811) diff --git a/embedly/api.py b/embedly/api.py index 6159a4cf28..a5513eba15 100644 --- a/embedly/api.py +++ b/embedly/api.py @@ -3,8 +3,6 @@ from django.conf import settings -THUMBNAIL_URL = "thumbnail_url" - def get_embedly_summary(url): """issue a request to embed.ly's oembed API endpoint""" diff --git a/embedly/views.py b/embedly/views.py index 3efed24b78..32b98cf13c 100644 --- a/embedly/views.py +++ b/embedly/views.py @@ -6,8 +6,7 @@ from django.conf import settings -from channels.models import LinkMeta -from embedly.api import get_embedly_summary, THUMBNAIL_URL +from embedly.api import get_embedly_summary from open_discussions.permissions import AnonymousAccessReadonlyPermission @@ -18,10 +17,6 @@ def embedly_view(request, **kwargs): # pylint: disable=unused-argument if settings.EMBEDLY_KEY: url = unquote(unquote(kwargs["url"])) response = get_embedly_summary(url).json() - if THUMBNAIL_URL in response: - LinkMeta.objects.update_or_create( - url=url, defaults={"thumbnail": response[THUMBNAIL_URL]} - ) return Response(response) else: return Response({}, status=status.HTTP_503_SERVICE_UNAVAILABLE) diff --git a/embedly/views_test.py b/embedly/views_test.py index 2429d2d710..58063316c2 100644 --- a/embedly/views_test.py +++ b/embedly/views_test.py @@ -1,11 +1,8 @@ """tests for the embedly views""" -from urllib.parse import unquote from django.urls import reverse from rest_framework import status -from channels.models import LinkMeta - def test_get_embedly(client, user, mocker, settings): """test the happy path""" @@ -25,22 +22,6 @@ def test_get_embedly(client, user, mocker, settings): get_stub.assert_called_once_with("https://en.wikipedia.org/wiki/Giant_panda/") assert resp.json() == {"some": "json", "thumbnail_url": external_thumb} assert resp.status_code == status.HTTP_200_OK - linkmeta = LinkMeta.objects.filter(url=unquote(unquote(external_url))).first() - assert linkmeta is not None - assert linkmeta.thumbnail == external_thumb - - -def test_get_embedly_no_thumbnail(client, user, mocker, settings): - """test the happy path""" - settings.EMBEDLY_KEY = "a great key" - client.force_login(user) - external_url = "https%253A%252F%252Fen.wikipedia.org%252Fwiki%252FWoolly_mammoth/" - embedly_url = reverse("embedly-detail", kwargs={"url": external_url}) - embed_return_value = mocker.Mock() - embed_return_value.configure_mock(**{"json.return_value": {"some": "json"}}) - mocker.patch("embedly.views.get_embedly_summary", return_value=embed_return_value) - client.get(embedly_url) - assert LinkMeta.objects.filter(url=external_url).first() is None def test_get_embedly_no_key(client, user, settings): diff --git a/factory_data/channels.views.channels_test.test_create_channel[False].json b/factory_data/channels.views.channels_test.test_create_channel[False].json deleted file mode 100644 index 8426035099..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel[False].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "private", - "description": "Libero iste voluptate exercitationem perferendis est rerum doloremque quae. Ipsum quisquam eos corrupti ut nostrum natus.\nSuscipit nobis natus eaque hic. Reprehenderit aut alias ducimus eaque nisi tempora. Aliquid modi inventore nostrum velit totam explicabo aliquam. Beatae quia molestias eaque rem illo.\nMagnam velit voluptates voluptatum accusantium dicta velit nam. Quas sequi occaecati repellendus nihil occaecati. Impedit eum veniam iure. Cumque inventore aperiam maiores expedita voluptates.", - "name": "1541016783_cumque", - "public_description": "Numquam consequatur necessitatibus deserunt accusamus.", - "title": "Velit nisi aperiam omnis nam." - } - }, - "users": { - "index_user": { - "username": "01CV5W3WDVH2SEKV9ZBH3XG6HY" - }, - "staff_user": { - "username": "01CV5W3ZPNQ5JKE3DCC7G9HV5K" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel[None].json b/factory_data/channels.views.channels_test.test_create_channel[None].json deleted file mode 100644 index ee5cec2a9c..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel[None].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "restricted", - "description": "Voluptatum eum consectetur eligendi officiis blanditiis. Asperiores ad cumque recusandae voluptates veniam rerum quidem dignissimos.\nHic quos quasi excepturi hic quis. Ab quasi deleniti officia fuga at voluptas. Consequuntur aspernatur ex ex dicta aspernatur.\nAccusantium perspiciatis adipisci sit aliquid aperiam dolores natus. Ratione magnam similique dignissimos repellat nostrum iure quos. Soluta totam fugit repellendus deserunt totam maiores.", - "name": "1541016794_similique", - "public_description": "Rem maiores pariatur quos impedit voluptatem dolore sapiente.", - "title": "Commodi commodi libero tempore ipsa quasi." - } - }, - "users": { - "index_user": { - "username": "01CV5W46DZ7CXZWC5SKQCCBGGG" - }, - "staff_user": { - "username": "01CV5W49NYSY91XC7STPWDQYZV" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel[True].json b/factory_data/channels.views.channels_test.test_create_channel[True].json deleted file mode 100644 index 4109e4c49f..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel[True].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "public", - "description": "Reprehenderit ab reiciendis voluptate iste perferendis quisquam cum aliquid. Iste quod accusamus nobis libero voluptas dignissimos ad. Voluptatum incidunt quia consequatur saepe repudiandae nam quasi.\nMagni dicta accusantium facilis animi sequi reprehenderit molestias. Facilis pariatur sequi necessitatibus sequi animi dolorem nobis.\nIpsa necessitatibus id quia voluptates. Aliquid quam velit maxime reprehenderit alias consectetur. Suscipit eius earum accusamus.", - "name": "1541016773_veritatis", - "public_description": "Iusto voluptatum iusto quasi exercitationem quod laudantium nam architecto.", - "title": "Consequatur architecto impedit voluptas dolor." - } - }, - "users": { - "index_user": { - "username": "01CV5W3JAKEP311W5H1NSDMKVS" - }, - "staff_user": { - "username": "01CV5W3NM11R7F67H52TSSERK6" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel_already_exists.json b/factory_data/channels.views.channels_test.test_create_channel_already_exists.json deleted file mode 100644 index a5ab84d422..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel_already_exists.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quibusdam iusto ex earum veritatis mollitia. Atque necessitatibus rem exercitationem eum. Sint similique non amet optio molestias accusamus. Fugiat sit ducimus corporis atque enim ut tempore.\nExplicabo soluta totam nesciunt iste. Dolores in odit numquam quibusdam. Similique commodi natus eum vel non perspiciatis.\nEsse ex vitae illum harum. Facere porro alias cupiditate earum totam. Aut aliquid sequi qui dolor.", - "name": "1540328290_ex", - "public_description": "Quo possimus ipsa necessitatibus id possimus neque maxime praesentium.", - "title": "Iure nam ratione porro magni." - } - }, - "users": { - "index_user": { - "username": "01CTHBGTMM2JJMT9DJAMHVAZCY" - }, - "staff_user": { - "username": "01CTHBGQA8YGE871Z0K07X8H8B" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel_no_descriptions.json b/factory_data/channels.views.channels_test.test_create_channel_no_descriptions.json deleted file mode 100644 index 94b3d10a22..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel_no_descriptions.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "restricted", - "description": "Corporis eum voluptas aut officia necessitatibus aperiam. Dolorum soluta aspernatur quia corporis quo corporis voluptates ut. Velit totam vel neque iusto ipsam quia distinctio dolorum. Nihil illum rerum repudiandae dolore.\nOccaecati id sed nemo magni id facilis nostrum ullam. Consequuntur fugit reprehenderit veritatis sequi cum error. Doloremque nobis impedit officia repellendus voluptatibus accusantium. Veniam doloremque ducimus sed quos veritatis iure.", - "name": "1540328279_aspernatur", - "public_description": "Eveniet error quidem iusto nam fugit iste.", - "title": "Sint minus molestiae excepturi." - } - }, - "users": { - "index_user": { - "username": "01CTHBGCR9TXXTRYR81WT2JW50" - }, - "staff_user": { - "username": "01CTHBGG2956SW15MPV94ASHQN" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel_noauth.json b/factory_data/channels.views.channels_test.test_create_channel_noauth.json deleted file mode 100644 index 4852785580..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel_noauth.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "index_user": { - "username": "01CTHBH7X0J7RDHCVR0PP94ZBX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_create_channel_nonstaff.json b/factory_data/channels.views.channels_test.test_create_channel_nonstaff.json deleted file mode 100644 index 813d1b5eb7..0000000000 --- a/factory_data/channels.views.channels_test.test_create_channel_nonstaff.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01CTHBH4FT6Y564RDAA2B3XJ64" - }, - "index_user": { - "username": "01CTHBH1562G5HDYARQYZS12WB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_get_channel.json b/factory_data/channels.views.channels_test.test_get_channel.json deleted file mode 100644 index 6cfe8a3c96..0000000000 --- a/factory_data/channels.views.channels_test.test_get_channel.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Ipsam doloremque soluta error magnam laboriosam maxime assumenda labore. Veritatis officiis odio accusamus officiis quia praesentium. Dignissimos eos et non ea quis facilis.\nDolorum sit aperiam pariatur natus ipsa saepe suscipit. Vero asperiores aspernatur omnis ipsa facilis eveniet dolor. Dolor dolor aperiam recusandae facilis consequuntur veritatis.", - "name": "1535132865_sapiente", - "public_description": "Rerum error alias dolor ipsum quae. Error alias velit debitis tenetur. Illo nulla eaque cum.", - "title": "Officiis aliquam at rem nemo iste." - } - }, - "users": { - "contributor": { - "username": "01CNPGRY4KYS3C8R5VSVXC7QQV" - }, - "staff_user": { - "username": "01CNPGS1DD0XHWA51NY7ZMP7J3" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_get_channel_anonymous.json b/factory_data/channels.views.channels_test.test_get_channel_anonymous.json deleted file mode 100644 index a76cdd679d..0000000000 --- a/factory_data/channels.views.channels_test.test_get_channel_anonymous.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Unde quas suscipit harum. Laudantium ipsum eligendi id inventore nemo distinctio. Saepe at quibusdam beatae nostrum sed. Eveniet atque ex saepe nemo inventore consectetur. Quibusdam nisi laboriosam totam occaecati.\nMolestiae odio voluptas perspiciatis nobis cumque. Voluptatem veritatis provident dignissimos repellendus non assumenda non. Repellat temporibus assumenda laboriosam excepturi quos quasi. Qui rerum ea odit.", - "name": "1535132871_vel", - "public_description": "Assumenda odit quo laudantium. Officia sequi quae nobis. In natus illo sit quae.", - "title": "Id reprehenderit repudiandae sit similique." - } - }, - "users": { - "staff_user": { - "username": "01CNPGS7YBVSHD6QZ8A5XVGNNA" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_get_channel_with_avatar_banner.json b/factory_data/channels.views.channels_test.test_get_channel_with_avatar_banner.json deleted file mode 100644 index ace199f76d..0000000000 --- a/factory_data/channels.views.channels_test.test_get_channel_with_avatar_banner.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Veniam ipsam nemo architecto consectetur. Aliquam accusantium laboriosam laudantium quos a tempore. Optio nesciunt beatae sint deserunt ad maxime dolor.\nLibero facere accusamus illo ab. Saepe velit atque sit dolores harum. Atque reiciendis laborum occaecati atque ad modi totam.\nConsectetur id possimus rem natus enim. Unde possimus quia doloribus.\nUt natus laboriosam eos tenetur. Laudantium hic natus libero. Magni neque asperiores earum eaque dicta iste aliquid.", - "name": "1535132885_quos", - "public_description": "Quasi sequi nemo fugiat facere nostrum. Similique repudiandae omnis dolor illum.", - "title": "Magni quo quas ipsam quam." - } - }, - "users": { - "staff_user": { - "username": "01CNPGSMV2AER0PYN4Z16EYSC4" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_get_short_channel.json b/factory_data/channels.views.channels_test.test_get_short_channel.json deleted file mode 100644 index 26790d4f64..0000000000 --- a/factory_data/channels.views.channels_test.test_get_short_channel.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01C3DNR1Z20EVR3AWNKMCY3N25" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_list_channels.json b/factory_data/channels.views.channels_test.test_list_channels.json deleted file mode 100644 index fccaeb4658..0000000000 --- a/factory_data/channels.views.channels_test.test_list_channels.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quisquam sit cumque veritatis impedit. Error cumque vero dolorem et eos. Hic doloremque earum odio ullam tempora blanditiis dicta. Quo maiores natus quaerat autem amet aperiam ipsa.\nSimilique facere id suscipit. Cum doloribus facere incidunt illo corporis vel nostrum. Itaque quas distinctio molestiae dolore facilis magnam nostrum. Dolores culpa voluptatibus vel repellendus repudiandae odit eaque.", - "name": "1535132847_eos", - "public_description": "Voluptatibus quis incidunt fugiat mollitia sed voluptates. At totam ducimus cum ducimus.", - "title": "Tempora sunt nulla quod doloribus maiores." - } - }, - "users": { - "contributor": { - "username": "01CNPGRCDJBW2TKTXKY4AKJ7KZ" - }, - "staff_user": { - "username": "01CNPGRFP61WSWW6FHQRC3TQKK" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_list_channels_ordered.json b/factory_data/channels.views.channels_test.test_list_channels_ordered.json deleted file mode 100644 index 4138b51ace..0000000000 --- a/factory_data/channels.views.channels_test.test_list_channels_ordered.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "channels": { - "private_channel_0": { - "channel_type": "private", - "description": "Rem iure exercitationem minus. Ab quasi quo tenetur nihil. Atque veritatis quis autem enim recusandae.\nSimilique odio repellat et. Asperiores magni laboriosam debitis maiores. Quae harum repudiandae amet.\nExpedita quos magni ipsa quas doloribus illum in. Ipsum esse praesentium odit deleniti quas. Saepe voluptas ea ipsa accusantium. Quisquam ex eveniet quaerat explicabo vitae voluptates assumenda. Deserunt laborum eius iusto officiis iste.", - "name": "1538426476_rerum", - "public_description": "Tempore aut corrupti et esse. Suscipit vitae ipsa similique numquam dolores.", - "title": "Dolores aliquid accusamus voluptatum." - }, - "private_channel_1": { - "channel_type": "private", - "description": "Vel excepturi quae deserunt libero omnis quae explicabo. Animi praesentium omnis maxime. Aliquam possimus minima incidunt ut. Iste ducimus soluta incidunt ullam.\nQuidem officiis velit sint quae iste aperiam. Rerum aliquam placeat nulla incidunt incidunt ea repellendus. Deleniti repellat corrupti voluptatibus nisi maxime non ea. Perspiciatis voluptatum exercitationem culpa dicta fuga.\nPorro ipsam placeat velit. Eos magni distinctio minima eaque repellendus nesciunt consequatur.", - "name": "1538426480_velit", - "public_description": "Fugit tempora repudiandae optio atque blanditiis inventore. Eius quis iste nam laudantium odit.", - "title": "Voluptatibus magni accusantium earum consequatur." - }, - "private_channel_2": { - "channel_type": "private", - "description": "Ut saepe necessitatibus illum id. Tenetur culpa velit maxime ullam vel repellendus minima. Incidunt ut dolorum libero vero rem quasi. Pariatur expedita maxime blanditiis laborum pariatur aspernatur facere.\nIusto reprehenderit corporis nobis doloremque atque quisquam. Praesentium ut mollitia aperiam voluptatibus doloremque explicabo qui. Neque expedita consequatur quas esse ad.", - "name": "1538426483_non", - "public_description": "Unde ea reprehenderit qui aspernatur aliquid. Atque officia laboriosam iste minima.", - "title": "Nobis laborum omnis explicabo recusandae." - }, - "private_channel_3": { - "channel_type": "private", - "description": "Deleniti voluptatem sapiente recusandae hic nemo. Cum dolorum dolore laboriosam. Architecto tempore quibusdam nam dolor quae nemo exercitationem expedita.\nDistinctio ipsa repellat tempora esse. A odit at consectetur. Deleniti blanditiis similique fuga ducimus quisquam mollitia ducimus. Quam necessitatibus sequi accusamus vitae nulla ad recusandae.", - "name": "1538426486_quibusdam", - "public_description": "Et eveniet itaque sunt voluptates necessitatibus. Eius eligendi sit earum magni dicta.", - "title": "Porro ipsum voluptas iure aliquam." - }, - "private_channel_4": { - "channel_type": "private", - "description": "Commodi maxime soluta quas similique. Eos minus reiciendis eum asperiores doloremque laborum eligendi.\nIllo dolorem quae temporibus ipsum. Id libero voluptas ipsum. Natus debitis exercitationem eaque modi sequi quo.\nAnimi doloremque velit temporibus. Quos ducimus et iure provident voluptatibus cumque ut. Non cumque commodi distinctio animi possimus.", - "name": "1538426490_illum", - "public_description": "Similique sed fuga adipisci fugit quo voluptate. Sapiente harum totam ullam iste animi voluptatem.", - "title": "Reprehenderit provident eaque inventore." - } - }, - "users": { - "contributor": { - "username": "01CRRNSZMCDFTNY9WP1A874HKQ" - }, - "staff_user": { - "username": "01CRRNT2WT4F7SYXZQZ6TH5RZN" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel.json b/factory_data/channels.views.channels_test.test_patch_channel.json deleted file mode 100644 index 7b77241564..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Consectetur libero ipsum provident voluptas nostrum alias aut. Sed odio voluptas deleniti minus laboriosam illo. Blanditiis voluptates mollitia aliquam expedita aliquam impedit. Veniam error magni repellendus saepe asperiores pariatur maiores. Magnam fugiat modi harum neque.\nIste maxime rem tempora qui esse officiis dolor. Explicabo pariatur quia fugiat saepe reiciendis necessitatibus exercitationem. Laborum modi praesentium odit vero sapiente. Non at possimus rem maiores soluta ipsa modi.", - "name": "1535132891_eius", - "public_description": "Suscipit nisi veritatis officia. Doloremque eligendi repellendus doloremque maiores.", - "title": "Ab molestiae illum culpa animi." - } - }, - "users": { - "staff_user": { - "username": "01CNPGSV7BRSJYNGFVKS43HFDZ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_about.json b/factory_data/channels.views.channels_test.test_patch_channel_about.json deleted file mode 100644 index 7a614bacd9..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_about.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Deleniti autem ab ad repudiandae. Molestiae et odio reprehenderit quia. Nesciunt perferendis dolorum fugit dignissimos enim maiores.\nQuos tenetur dolores pariatur repellat nemo id facere. Debitis officiis voluptates mollitia voluptate. Asperiores quaerat in facilis explicabo numquam.\nAsperiores cumque beatae voluptate et quibusdam. Minima vero aperiam error officia saepe. Facilis sunt soluta dolores neque iusto consequatur. Recusandae accusamus qui reiciendis at perferendis quisquam.", - "name": "1548878437_21_eligend", - "public_description": "Laudantium dolor veritatis deserunt.", - "title": "Itaque temporibus consequatur vero iste." - } - }, - "users": { - "staff_user": { - "username": "01D2G5JKY6KBAB8FVKSQQW5D2A" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_forbidden.json b/factory_data/channels.views.channels_test.test_patch_channel_forbidden.json deleted file mode 100644 index ae13fc0f72..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_forbidden.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKSZQWB81GW6W36W5FB7W" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_image[avatar].json b/factory_data/channels.views.channels_test.test_patch_channel_image[avatar].json deleted file mode 100644 index 74de77b054..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_image[avatar].json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Ratione excepturi nobis illo quibusdam sit commodi. Pariatur molestiae maxime repellat. Rem velit dolor ex. Aspernatur vero provident totam vel.\nNulla a magni facilis. Commodi eligendi eius quibusdam exercitationem maiores. Libero veritatis expedita eaque delectus accusantium iste. Autem repellendus itaque illo repudiandae beatae laudantium veritatis. Officia accusantium eveniet nam temporibus quisquam.", - "name": "1535132908_nemo", - "public_description": "Tempore ducimus ipsum quam odio perspiciatis adipisci. Odit rerum eius maxime accusantium modi.", - "title": "Labore voluptatem voluptate ratione molestiae." - } - }, - "users": { - "staff_user": { - "username": "01CNPGTBRX0ZS343AK777SNCNK" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_image[banner].json b/factory_data/channels.views.channels_test.test_patch_channel_image[banner].json deleted file mode 100644 index c3085538c5..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_image[banner].json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Nemo qui repellat commodi. Exercitationem in vitae atque adipisci dolorem. Repellendus fugiat adipisci reprehenderit voluptatibus provident pariatur similique. Ea numquam ad distinctio nisi.\nAut laboriosam assumenda minima voluptates ea. Assumenda vel tenetur officiis excepturi soluta. Mollitia dolor distinctio distinctio assumenda necessitatibus adipisci corporis.\nSed incidunt vel fugiat voluptates. Exercitationem asperiores dolorem quos dolorem. Facilis consequatur facere esse.", - "name": "1535132915_ullam", - "public_description": "Totam doloremque praesentium consequuntur iste. Expedita ducimus consequatur ratione.", - "title": "Ad soluta facere ab tenetur et quasi." - } - }, - "users": { - "staff_user": { - "username": "01CNPGTJ7EGVS9831K1AJK8JGN" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_moderator.json b/factory_data/channels.views.channels_test.test_patch_channel_moderator.json deleted file mode 100644 index 87f5bb9c2e..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_moderator.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Reiciendis occaecati dolor earum accusantium ducimus nobis illo. Exercitationem ratione animi dicta provident natus neque sed enim.\nAmet voluptatibus inventore delectus eos delectus occaecati. Non distinctio quos rerum facere sapiente. Molestias quo iusto dolores facilis. Laborum illum fugiat dolorem voluptates praesentium quibusdam libero fugiat.", - "name": "1535132901_porro", - "public_description": "Iusto accusantium nihil quo assumenda minima officiis. Accusamus iste similique quae pariatur.", - "title": "Quisquam assumenda animi nostrum sequi." - } - }, - "users": { - "contributor": { - "username": "01CNPGT1RPK8SHTZMTYCTPACQC" - }, - "staff_user": { - "username": "01CNPGT50Y3MYK561R4MKXNQV4" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_nonstaff.json b/factory_data/channels.views.channels_test.test_patch_channel_nonstaff.json deleted file mode 100644 index 0aa285b677..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_nonstaff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01C044N74CAWJX45D3RFTZSB9W" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_not_found.json b/factory_data/channels.views.channels_test.test_patch_channel_not_found.json deleted file mode 100644 index 2a53e7c527..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_not_found.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKT0YZB6AVZX64DK1TFGJ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_validate_image[avatar].json b/factory_data/channels.views.channels_test.test_patch_channel_validate_image[avatar].json deleted file mode 100644 index bd0932278a..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_validate_image[avatar].json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Tenetur nemo recusandae neque placeat. Aspernatur repellat ipsa reprehenderit earum. Voluptates possimus quam ipsum laboriosam. Rerum magnam numquam mollitia dignissimos dignissimos nobis vitae. Distinctio ad blanditiis quisquam dignissimos.\nArchitecto amet nostrum non similique nihil nisi dolor. Inventore praesentium tempora minus excepturi assumenda officiis.", - "name": "1535132921_ab", - "public_description": "Cum adipisci eius vel rem esse quidem dolorem. Minus facere voluptates aliquam tempora enim.", - "title": "Pariatur quo alias totam debitis vitae." - } - }, - "users": { - "staff_user": { - "username": "01CNPGTRMDDFDZ60YGMYB8MTMF" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_patch_channel_validate_image[banner].json b/factory_data/channels.views.channels_test.test_patch_channel_validate_image[banner].json deleted file mode 100644 index 68cf95d18a..0000000000 --- a/factory_data/channels.views.channels_test.test_patch_channel_validate_image[banner].json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Officia provident a eligendi quo. Illum asperiores culpa sit ab praesentium minima nesciunt deserunt. Doloribus natus distinctio rem reprehenderit quam doloribus.\nQuisquam hic excepturi impedit quaerat. Occaecati quidem ipsa aperiam laboriosam veniam officia ut. Dolorem autem cumque totam molestias quasi facilis ab. Voluptas nam excepturi modi tenetur enim nesciunt.", - "name": "1535132928_repellat", - "public_description": "Labore officia impedit vero nulla reprehenderit iusto in. Inventore ut aliquam facere.", - "title": "Quia quidem hic doloremque asperiores." - } - }, - "users": { - "staff_user": { - "username": "01CNPGTYYGH84TC8YKMJQETP8H" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json b/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json deleted file mode 100644 index 3ca7a36612..0000000000 --- a/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[patch].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "private", - "description": "Magni tenetur quos magnam aut nobis incidunt. Fugiat natus fugit unde id. Consectetur iusto earum eius tempore tenetur quibusdam excepturi. Fuga placeat deleniti quidem eveniet voluptas consequatur.\nQuidem corrupti consectetur deserunt optio doloribus vero voluptatibus cumque. Amet illo voluptatibus velit assumenda vero. Molestiae ipsum minus neque officiis maxime corporis nesciunt.", - "name": "1544134666_porro", - "public_description": "Sint doloribus dolores vel iusto eveniet inventore.", - "title": "Minus illum excepturi ipsum mollitia culpa." - } - }, - "users": { - "index_user": { - "username": "01CY2SJ3BX6972SDHVZ376F0DX" - }, - "staff_user": { - "username": "01CY2SJ6QFX89TZGM9Z2QNXT2Z" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json b/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json deleted file mode 100644 index 12a044e3c7..0000000000 --- a/factory_data/channels.views.channels_test.test_update_title_non_superuser_forbidden[put].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private": { - "channel_type": "private", - "description": "Ducimus mollitia quod cupiditate dolor quibusdam porro. Officiis rem occaecati quo assumenda. Maxime nobis reprehenderit reiciendis aliquid qui repudiandae adipisci eum.\nPossimus magnam accusantium ipsa commodi inventore quae modi. Consequuntur aut aliquam mollitia tenetur amet. Dolorum harum natus culpa amet assumenda. Ipsa totam doloremque ullam voluptas itaque labore tempora.", - "name": "1544134676_officia", - "public_description": "Facilis voluptates incidunt quam dolorem sed ratione numquam.", - "title": "Laboriosam maiores inventore ab laboriosam." - } - }, - "users": { - "index_user": { - "username": "01CY2SJDW3QRHD4P45SFQN2Q9G" - }, - "staff_user": { - "username": "01CY2SJH5MTEG11NEHDZK15W47" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json b/factory_data/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json deleted file mode 100644 index 510edd4572..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment[extra_params0-extra_expected0-1].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Relate actually accept success listen. Democrat speech as ready. Land truth inside professor however worry ago.\nAct news deal college window minute. Worry natural avoid foot really charge finally. Read these first group event parent.\nHeart program executive likely person why happen like. Tough east up worry television deep. Second keep parent dinner hear. Laugh available goal price center.", - "name": "1595973230_9_especial", - "public_description": "Country instead accept expect election.", - "title": "Live garden behind more common." - } - }, - "posts": { - "a post": { - "id": "k", - "text": "Film eye nor create somebody. Memory move everyone now more modern south.", - "title": "Similar ever night." - } - }, - "users": { - "contributor": { - "username": "01EEBPNH7V5H6H0QW9CD03CCTK" - }, - "staff_user": { - "username": "01EEBPNMGM2YNRGZAJEKHJQ9WN" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json b/factory_data/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json deleted file mode 100644 index 1a5ea8236d..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment[extra_params1-extra_expected1-0].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Lose third enough night mission. Themselves attack low brother. Might break today author or north.\nConsumer answer color floor bed another move fear. Teach land whom service laugh chair control. White attack food size recently friend.\nEffort including citizen improve Democrat. Election data audience experience individual scene.\nSo health only fight strong condition successful. Analysis country just Congress hot seven.\nAlmost game difference around child. Buy defense give laugh card.", - "name": "1595973243_10_able", - "public_description": "Last war action relate religious. Market Mrs who might do.", - "title": "Watch part show money study." - } - }, - "posts": { - "a post": { - "id": "l", - "text": "Kid under evening region. Certain future fight land fast course level. Raise race too religious.", - "title": "Out voice through tree forward large would." - } - }, - "users": { - "contributor": { - "username": "01EEBPNY3B2C7PN3TR4A8021Y7" - }, - "staff_user": { - "username": "01EEBPP1BZKWGW8CCR1ZM5CGX3" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json b/factory_data/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json deleted file mode 100644 index 16298230d9..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment[extra_params2-extra_expected2--1].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "In campaign image goal price sell much. Marriage determine receive great. Will think right discover reality or soldier.\nResponse camera hotel something.\nUnder reveal expect yeah necessary. Meeting southern beat ground. Measure their nature new politics.\nDecision eye hand section appear. Leg speak scientist administration we. Form answer stage appear.\nUpon picture case give race. Million now spring big. Past treatment expert.\nPower wall matter. Structure blue tough national.", - "name": "1595973256_11_help", - "public_description": "End past message. Action people threat hope financial.", - "title": "Though owner throughout civil manage keep writer." - } - }, - "posts": { - "a post": { - "id": "m", - "text": "Health middle court issue general want hotel page.", - "title": "Cell try exactly in practice institution stuff." - } - }, - "users": { - "contributor": { - "username": "01EEBPPB2RB5RWBTF4QY72RD53" - }, - "staff_user": { - "username": "01EEBPPEAG1Y4DVTRKC2EATC6W" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment_forbidden.json b/factory_data/channels.views.comments_test.test_create_comment_forbidden.json deleted file mode 100644 index ab4bbf1db7..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment_forbidden.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPPQYEACBSE2KCY6DTQD26" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment_moderator.json b/factory_data/channels.views.comments_test.test_create_comment_moderator.json deleted file mode 100644 index 3c51cecaf1..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment_moderator.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Page middle sport service. Case determine shoulder spring.\nDegree game specific drop. Bed trial nice computer dark. Interesting final sell rest despite.\nLeg single order mouth. Stop close minute spring leader. Nation boy herself.\nEast sit poor question. Son easy who not control.\nOnto hold bring today staff opportunity power different. Ahead face risk find indeed whose agree.\nGet word sport man leg. Cover name avoid paper enter of data. Relate know maybe run local.", - "name": "1595981347_12_choose", - "public_description": "Impact determine crime teacher high. Who listen brother skin.", - "title": "Network box finally discuss hotel." - } - }, - "posts": { - "a post": { - "id": "1f", - "text": "Doctor put born stock head even possible war. Of I week add.", - "title": "Especially require gas lead." - } - }, - "users": { - "contributor": { - "username": "01EEBYD7C007T0X87E4Z5183FP" - }, - "staff_user": { - "username": "01EEBYDB4GB1S20C7JPS993JMN" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment_not_found.json b/factory_data/channels.views.comments_test.test_create_comment_not_found.json deleted file mode 100644 index 95d7356d34..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment_not_found.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPPV8YQNTRK7SQ936G6269" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment_reply_to_comment.json b/factory_data/channels.views.comments_test.test_create_comment_reply_to_comment.json deleted file mode 100644 index aaead99a74..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment_reply_to_comment.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Fly politics building according carry. Card little discuss. Recently dog little.\nDrug piece concern cause girl. Report wife him able a word.\nDraw seem these customer evening station indeed. One citizen window bring especially room coach.\nThis stuff ten over. Process common law memory. Hot check discussion real class.\nBox anyone community child data resource light. Measure billion also everyone.\nCommunity blood by mouth study owner analysis. Free open education early paper.", - "name": "1595973276_12_last", - "public_description": "Cause reflect culture letter. Up certainly join morning why popular.", - "title": "Care pretty across coach cause." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "23", - "post_id": "n", - "text": "By actually expert their clear ability between. Entire back smile cold." - } - }, - "posts": { - "a post": { - "id": "n", - "text": "Person official campaign film. Particularly officer learn box factor agency special behavior.", - "title": "Himself population year this at thank." - } - }, - "users": { - "contributor": { - "username": "01EEBPPYMQWNAR3SA8JY0DYXY4" - }, - "staff_user": { - "username": "01EEBPQ1YM6J1VK48VW7CP0XWC" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json b/factory_data/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json deleted file mode 100644 index 48bd3b2e39..0000000000 --- a/factory_data/channels.views.comments_test.test_create_comment_reply_to_deleted_comment.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Want like official according can maybe win popular. General hear culture. Accept common executive town peace behind worry. Pattern rate part rate by what.\nStrong tough dog bed minute white nature. Give baby each experience shake foreign picture.\nPrice morning radio quickly.\nMedia region particularly end push. Size media voice interview option. Land not thus a forward where stuff writer.\nMarriage according various town note.", - "name": "1595973293_13_raise", - "public_description": "Place measure tough health situation. Office be poor particular computer food.", - "title": "Treatment want Democrat." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "25", - "post_id": "o", - "text": "Give concern western bring newspaper. Place street such public four best often." - } - }, - "posts": { - "post": { - "id": "o", - "text": "Weight she create return inside off they. City story wish fast.", - "title": "Cost leader big reflect huge." - } - }, - "users": { - "contributor": { - "username": "01EEBPQERJ2GFHTKKBXAJRAB40" - }, - "staff_user": { - "username": "01EEBPQJ005T31NBTG00EZ3VSB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_comment.json b/factory_data/channels.views.comments_test.test_get_comment.json deleted file mode 100644 index 424fe01530..0000000000 --- a/factory_data/channels.views.comments_test.test_get_comment.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Laudantium et ex consectetur ducimus impedit. Necessitatibus dolorum a dolores. Consequatur repellat inventore voluptatibus pariatur.\nPossimus nam odit voluptatem accusantium earum. Officia impedit quam ea maxime hic. Voluptatum maiores facere rerum distinctio recusandae.\nEx accusamus porro iste veritatis. Eveniet porro dolor numquam reprehenderit quod. Quia aspernatur expedita expedita et blanditiis voluptatem.", - "name": "1535133316_praesentiu", - "public_description": "Incidunt porro amet consequuntur exercitationem. Cumque quidem delectus nostrum quam dignissimos.", - "title": "Ut magnam dolorem quaerat neque." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "2z", - "post_id": "a", - "text": "Saepe enim fuga rem. Reprehenderit culpa culpa itaque consequuntur voluptate." - } - }, - "posts": { - "my geat post": { - "id": "a", - "text": "Quaerat quaerat laudantium maxime. Adipisci id dolor nam dolor. Eius et illum accusamus.", - "title": "Quidem debitis nemo explicabo ea." - } - }, - "users": { - "contributor": { - "username": "01CNPH6Q3ZWR6NS2TGTW3HV93P" - }, - "staff_user": { - "username": "01CNPH6TD7NDXY1BR13KTWW3MF" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_comment_404.json b/factory_data/channels.views.comments_test.test_get_comment_404.json deleted file mode 100644 index 8143b45f39..0000000000 --- a/factory_data/channels.views.comments_test.test_get_comment_404.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Dicta iste corrupti quos nam ad. Dolorum ab laborum minima voluptas magni enim architecto. Dolore saepe sint quasi veniam delectus velit. Est suscipit cupiditate voluptatem aliquam veniam voluptatem.\nEst exercitationem maxime adipisci repellat. Possimus ex nihil totam voluptatibus minima ducimus fuga aliquam. Facilis nisi eius molestias molestias. Quae laborum sit vitae quisquam recusandae.", - "name": "1535133333_ducimus", - "public_description": "Natus ducimus quidem doloremque deleniti earum dolorum commodi. Rem nobis iusto explicabo.", - "title": "Necessitatibus tempora possimus consequatur." - } - }, - "users": { - "contributor": { - "username": "01CNPH774DQG4KMV54CM7VF2PA" - }, - "staff_user": { - "username": "01CNPH7AEMKTCZTADFW3M7CDC6" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_comment_anonymous.json b/factory_data/channels.views.comments_test.test_get_comment_anonymous.json deleted file mode 100644 index 7ee590e484..0000000000 --- a/factory_data/channels.views.comments_test.test_get_comment_anonymous.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Libero animi ducimus exercitationem vel a odio nostrum. Repellat repudiandae atque aperiam voluptatibus exercitationem amet. Quo quaerat autem rerum unde tempora similique placeat eius.\nProvident soluta similique maxime provident dolorem cum molestias voluptas. Sit eaque in esse tenetur error est quis. Atque illo provident eaque. Repellat ab laborum at atque itaque ab possimus recusandae. Sequi voluptates ad ut magnam.", - "name": "1535133339_ratione", - "public_description": "Dolor vitae laboriosam perferendis eum. Incidunt corporis nulla voluptatem veniam.", - "title": "Error laudantium iste aut earum provident ipsum." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "30", - "post_id": "b", - "text": "Voluptas eos sit voluptatem sequi. Corporis atque totam amet alias enim." - } - }, - "posts": { - "a post with a comment": { - "id": "b", - "text": "Velit maiores consequatur illo eum. Nemo voluptate provident deleniti delectus architecto.", - "title": "Inventore esse quas sequi quod aliquam." - } - }, - "users": { - "staff_user": { - "username": "01CNPH7GZ9722JZ3QWRTM6H83K" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_removed_comment[None-404].json b/factory_data/channels.views.comments_test.test_get_removed_comment[None-404].json deleted file mode 100644 index 6b555fe25f..0000000000 --- a/factory_data/channels.views.comments_test.test_get_removed_comment[None-404].json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Through laugh area security mention. Prepare factor western expert country. Party feel lawyer technology cause long blood.\nOff none police key beyond become lay town. Particularly major yes hospital. Off listen hear top movie box.\nCurrent future price authority behind. Even stay claim thus far card. President unit machine share magazine environment.\nEight might identify spend education something. Card over force sense surface. Beat technology significant south since throughout process.", - "name": "1604587414_8_hotel", - "public_description": "Agency away friend thus. Rule sit late smile stay. West gas especially.", - "title": "American catch life various fly child." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "x", - "post_id": "1c", - "text": "Brother level source top know. Tough director more. Seem so really lawyer however senior hair." - } - }, - "posts": { - "my geat post": { - "id": "1c", - "text": "Art campaign cause lose. Close film large help approach.", - "title": "Himself chance only fact whole career so." - } - }, - "users": { - "comment user": { - "username": "01EPCDSVZ8ZX1BFDG6XWFSN7WQ" - }, - "contributor": { - "username": "01EPCDSJBB352X9DKFXY72QVYE" - }, - "staff_user": { - "username": "01EPCDSNNBM1T2VC3ADCXQPZ72" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json b/factory_data/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json deleted file mode 100644 index 58312cd4be..0000000000 --- a/factory_data/channels.views.comments_test.test_get_removed_comment[comment_writer-200].json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Young move home call hair skill. Politics language cold the quality speech. Find policy billion enough business. Hundred effect space.\nEstablish image less tend wrong. Work describe me. Manager fine continue phone read top. Respond measure position democratic.\nPlay live whole among. Small budget window eye girl approach professional loss. Home mind under music. Economy husband experience local student forget season water.", - "name": "1604587433_9_adult", - "public_description": "Five sell station training throw hour minute.", - "title": "Investment back probably message happy view." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "y", - "post_id": "1d", - "text": "Sound author his hundred result movie. Answer stay southern. Stop use young drug result." - } - }, - "posts": { - "my geat post": { - "id": "1d", - "text": "If contain long I full believe. Player minute new clearly until inside. Present democratic more.", - "title": "Top then project. Dark nearly speech everyone." - } - }, - "users": { - "comment user": { - "username": "01EPCDTEYCKH6GX99WRZG6299P" - }, - "contributor": { - "username": "01EPCDT5DA29PN7KEX3SYYR9CA" - }, - "staff_user": { - "username": "01EPCDT8P32TFT8SWHB1DJJV37" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_removed_comment[staff_user-200].json b/factory_data/channels.views.comments_test.test_get_removed_comment[staff_user-200].json deleted file mode 100644 index 6d4984b868..0000000000 --- a/factory_data/channels.views.comments_test.test_get_removed_comment[staff_user-200].json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Material treatment option where wind. Other end reality against agree.\nIf serve nothing lose. Computer add risk media hit fine. Test dinner kind hospital safe just own.\nYourself heavy long clearly direction money know. Campaign source understand modern everybody design continue. Provide drive policy page decade reduce personal popular.\nChair account rich key site hand. Window education audience information nature edge agent. Much exactly wall report.", - "name": "1604587472_11_lead", - "public_description": "Pull region it court sister day grow. Billion exactly attack imagine.", - "title": "Successful address join memory." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "10", - "post_id": "1f", - "text": "Yard address form fact view him many. Three show which thought billion." - } - }, - "posts": { - "my geat post": { - "id": "1f", - "text": "Win similar music put.", - "title": "Feel Mr begin tend." - } - }, - "users": { - "comment user": { - "username": "01EPCDVMZHJMFA9MTSD3QA3NRJ" - }, - "contributor": { - "username": "01EPCDVBFC808BXDM43QK4JRFK" - }, - "staff_user": { - "username": "01EPCDVERKNH4T0ABBKKPNX2J2" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_get_removed_comment[user-404].json b/factory_data/channels.views.comments_test.test_get_removed_comment[user-404].json deleted file mode 100644 index a044088711..0000000000 --- a/factory_data/channels.views.comments_test.test_get_removed_comment[user-404].json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Moment election goal look response. Listen hope least south break analysis must. Short nation fast fund.\nElection maybe but sense itself. Occur reduce culture from say. Improve thus last be friend whatever star condition.\nMention service perform scene hot. Along this peace question do together today.\nHour security discussion within often.\nWhat difficult seem stage full. Thousand indeed consumer be reach what.", - "name": "1604587453_10_item", - "public_description": "Newspaper meet team enjoy campaign. Budget training sing second.", - "title": "Only cup at very here team senior." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "z", - "post_id": "1e", - "text": "Fast guess keep reach at. Customer production hard two shoulder." - } - }, - "posts": { - "my geat post": { - "id": "1e", - "text": "Magazine thing range difficult. Piece send material off cover. Art tend guess away would.", - "title": "Morning serious true." - } - }, - "users": { - "comment user": { - "username": "01EPCDV204J8NZ5WKDCYRGHH8F" - }, - "contributor": { - "username": "01EPCDTRDD0S27V71Y9KA5HE5T" - }, - "staff_user": { - "username": "01EPCDTVQTKJQMPAX0E9B9QZXB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments[False].json b/factory_data/channels.views.comments_test.test_list_comments[False].json deleted file mode 100644 index 264e2d7242..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments[False].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Voluptatibus voluptatem ea ullam voluptates dicta explicabo cum. Odio nesciunt quia illum odit animi. A a a odio quasi ex dolorum. Harum impedit ea sapiente nulla doloremque pariatur non.\nAmet optio enim quis saepe. Exercitationem quod excepturi iste quas.\nAliquam quaerat incidunt quis dolore. Nisi ab asperiores rem mollitia voluptate tempore.\nVoluptas amet commodi aliquid inventore. Sit esse et molestiae atque. Veritatis sequi voluptates odio quae.", - "name": "1542381779_veritatis", - "public_description": "Impedit enim similique fugit aliquam.", - "title": "Ea fugiat accusamus repellat odio vitae." - } - }, - "comments": { - "comment-0": { - "children": [], - "comment_id": null, - "id": "83", - "post_id": "bb", - "text": "Quidem temporibus nostrum enim ducimus. Dolorum dignissimos fuga a quaerat. Nihil eos at nam omnis." - }, - "comment-1": { - "children": [], - "comment_id": null, - "id": "87", - "post_id": "bb", - "text": "Ipsum porro perferendis cum repudiandae non. Veniam vitae consectetur dicta fugit." - }, - "comment-nested-0": { - "children": [], - "comment_id": "83", - "id": "84", - "post_id": null, - "text": "Quaerat provident eos molestiae totam corporis nulla. Cum optio distinctio repellendus modi." - }, - "comment-nested-1": { - "children": [], - "comment_id": "83", - "id": "85", - "post_id": null, - "text": "Sed necessitatibus rem voluptates. Fugit fugiat harum laboriosam. Corrupti maxime atque optio." - }, - "comment-nested-2": { - "children": [], - "comment_id": "83", - "id": "86", - "post_id": null, - "text": "Ipsa nobis rem sit enim. Quidem laboriosam similique itaque." - } - }, - "posts": { - "a post with comments": { - "id": "bb", - "text": "Dicta dolor non odit. A et amet iste itaque. Fugit eveniet minima delectus.", - "title": "Tenetur architecto soluta asperiores." - } - }, - "users": { - "contributor": { - "username": "01CWEHWBFY8WG9VEY88E9HSA7M" - }, - "staff_user": { - "username": "01CWEHW86XXTG19Q4R0WZ0MX8E" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments[True].json b/factory_data/channels.views.comments_test.test_list_comments[True].json deleted file mode 100644 index 071abafd4b..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments[True].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Suscipit aperiam molestias debitis delectus. Voluptates ullam sunt voluptatem aliquid voluptatem optio neque. Labore molestiae aut corrupti quis.\nNulla dolor optio fugit quod nisi provident. Impedit quo incidunt at quidem nulla quas. Vero aspernatur beatae alias eligendi magni blanditiis aut magnam.", - "name": "1542381740_quasi", - "public_description": "Nulla delectus repellat totam reprehenderit est facere.", - "title": "Non harum atque ex ratione." - } - }, - "comments": { - "comment-0": { - "children": [], - "comment_id": null, - "id": "7v", - "post_id": "ba", - "text": "Ab officia animi ut occaecati praesentium. Soluta eos recusandae sapiente repellendus qui." - }, - "comment-1": { - "children": [], - "comment_id": null, - "id": "7z", - "post_id": "ba", - "text": "Minus blanditiis tempore aut facere voluptates vero. Sint ex nobis quas veniam." - }, - "comment-nested-0": { - "children": [], - "comment_id": "7v", - "id": "7w", - "post_id": null, - "text": "Numquam earum nobis amet aspernatur nesciunt voluptas cum. Voluptas animi enim commodi odit." - }, - "comment-nested-1": { - "children": [], - "comment_id": "7v", - "id": "7x", - "post_id": null, - "text": "Ea explicabo expedita dicta eligendi. Hic eveniet vel nihil culpa qui occaecati." - }, - "comment-nested-2": { - "children": [], - "comment_id": "7v", - "id": "7y", - "post_id": null, - "text": "Sit quisquam ratione blanditiis blanditiis adipisci assumenda et. Quo molestiae esse voluptatibus." - } - }, - "posts": { - "a post with comments": { - "id": "ba", - "text": "Expedita ea esse magni ipsam praesentium vero. Mollitia dolor veniam amet sequi a corporis.", - "title": "Eos modi soluta tempore iusto." - } - }, - "users": { - "contributor": { - "username": "01CWEHV5MM5Y1TMX3FRXW9PEJF" - }, - "staff_user": { - "username": "01CWEHV2B6D15J5D54AVX9FNB3" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments_anonymous.json b/factory_data/channels.views.comments_test.test_list_comments_anonymous.json deleted file mode 100644 index 56588cfbd4..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments_anonymous.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Et voluptas praesentium a officia. Officia earum aut deserunt exercitationem possimus eum veniam. Atque facilis blanditiis numquam dignissimos voluptates. Aliquid maxime quam delectus tempore.\nQuisquam suscipit aperiam nesciunt sequi ea adipisci at. Itaque vitae aut saepe necessitatibus. Occaecati dolorum fuga assumenda occaecati harum et aliquam.", - "name": "1535132937_in", - "public_description": "Accusantium hic temporibus ex saepe. Ex consequatur saepe illum aspernatur.", - "title": "Molestias temporibus laborum rerum." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "3", - "post_id": "5", - "text": "Velit officia nostrum quis error. Totam fugiat odit harum culpa." - } - }, - "posts": { - "a post with comments": { - "id": "5", - "text": "Modi corrupti aliquam quibusdam nostrum id harum nisi. Voluptatem rem adipisci autem.", - "title": "Sed quas necessitatibus distinctio aliquam." - } - }, - "users": { - "staff_user": { - "username": "01CNPGV86QAH0JQVFXX7R50YHD" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments_forbidden.json b/factory_data/channels.views.comments_test.test_list_comments_forbidden.json deleted file mode 100644 index 8d9621585e..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments_forbidden.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Ut nesciunt totam facilis iure deserunt consequuntur. Maxime sint delectus repudiandae dolor alias placeat. Recusandae explicabo distinctio dolor labore ea.\nRem pariatur temporibus nemo neque placeat. Facere dignissimos et veritatis.\nUnde nisi assumenda aut ducimus unde non ipsum. Ea repudiandae reprehenderit magni. Ullam voluptatibus placeat aspernatur a temporibus autem facilis. Nihil corporis quae corporis voluptatem libero.", - "name": "1542381815_molestiae", - "public_description": "Minima eveniet mollitia vel eos.", - "title": "Voluptas tempore reiciendis officia." - } - }, - "posts": { - "one post": { - "id": "bc", - "text": "Nesciunt fugit velit explicabo. Est tenetur exercitationem ipsam deleniti facere.", - "title": "Totam ad dolorem ex perspiciatis quis officiis." - } - }, - "users": { - "contributor": { - "username": "01CWEHXMTZB34JB7G773JZ98EB" - }, - "staff_user": { - "username": "01CWEHXEHDBJAWFBH478SCF729" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments_none.json b/factory_data/channels.views.comments_test.test_list_comments_none.json deleted file mode 100644 index 06fe318cb2..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments_none.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Cum optio totam numquam sed quasi est. Aspernatur minus hic debitis dolor fugit.\nSed consectetur aspernatur excepturi a cum tempora. Facere repellendus in assumenda neque necessitatibus mollitia cupiditate. Natus consectetur molestias nisi harum sunt.\nAb rerum reiciendis neque impedit magnam reiciendis. Ad in voluptas quasi blanditiis consequatur ut.", - "name": "1535132963_officiis", - "public_description": "Rem beatae reprehenderit et dicta. Nulla error aspernatur voluptatibus excepturi.", - "title": "Ab repellat itaque est cumque illum." - } - }, - "posts": { - "one post": { - "id": "7", - "text": "Fuga aperiam minus eos natus. Cum nulla ut corrupti nostrum eum. Earum itaque dolorem eum.", - "title": "Hic ducimus vel est officia." - } - }, - "users": { - "contributor": { - "username": "01CNPGW7ZG13PANK53NT2TVXX2" - }, - "staff_user": { - "username": "01CNPGW1MRQFGFE0SM9Y51E7HT" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_list_comments_not_found.json b/factory_data/channels.views.comments_test.test_list_comments_not_found.json deleted file mode 100644 index 474f62a5e3..0000000000 --- a/factory_data/channels.views.comments_test.test_list_comments_not_found.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01CVAZW09EY8TQG0RVK2EB5HC0" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_more_comments_anonymous.json b/factory_data/channels.views.comments_test.test_more_comments_anonymous.json deleted file mode 100644 index e7b59685f0..0000000000 --- a/factory_data/channels.views.comments_test.test_more_comments_anonymous.json +++ /dev/null @@ -1,382 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Aut debitis delectus et ea consequatur. Exercitationem commodi nam nam nobis maiores totam odit. Eaque rem accusamus consectetur iusto sed asperiores. Ipsum inventore ullam reiciendis aut voluptatum.\nLabore sint rerum magni et. Officia nemo doloremque autem voluptates. Velit aut assumenda quas accusantium numquam rem. Quisquam fuga rem sit excepturi fugit dolor molestias.", - "name": "1535132977_occaecati", - "public_description": "Quia aperiam libero quibusdam. Ipsum quidem accusantium eum. Eos maxime amet quis quas.", - "title": "Architecto fugiat accusamus excepturi ipsum." - } - }, - "comments": { - "comment0": { - "children": [], - "comment_id": null, - "id": "5", - "post_id": "8", - "text": "Neque excepturi eius possimus. Voluptas cupiditate qui ad rem voluptate." - }, - "comment1": { - "children": [], - "comment_id": null, - "id": "6", - "post_id": "8", - "text": "Veniam accusantium incidunt explicabo explicabo. Recusandae magni inventore iure illo dolore." - }, - "comment10": { - "children": [], - "comment_id": null, - "id": "f", - "post_id": "8", - "text": "Vero vero veritatis debitis omnis molestias. Nihil rem beatae ut quo quas consequatur." - }, - "comment11": { - "children": [], - "comment_id": null, - "id": "g", - "post_id": "8", - "text": "Nulla fugit voluptas minus fugit veritatis. Ex fugit amet cum porro. Ullam commodi eum inventore." - }, - "comment12": { - "children": [], - "comment_id": null, - "id": "h", - "post_id": "8", - "text": "Aliquid perspiciatis quod quia. A aliquid natus odio totam neque quibusdam." - }, - "comment13": { - "children": [], - "comment_id": null, - "id": "i", - "post_id": "8", - "text": "Sint culpa quis atque. Odit temporibus quas laborum reprehenderit." - }, - "comment14": { - "children": [], - "comment_id": null, - "id": "j", - "post_id": "8", - "text": "Voluptatum iure sit sed quibusdam debitis dolor. Excepturi eum aliquid eaque ex saepe assumenda." - }, - "comment15": { - "children": [], - "comment_id": null, - "id": "k", - "post_id": "8", - "text": "Accusantium occaecati laudantium maxime quisquam vero. Quas harum sed officia soluta dolorum." - }, - "comment16": { - "children": [], - "comment_id": null, - "id": "l", - "post_id": "8", - "text": "Voluptas quaerat debitis qui. Dolorum cupiditate debitis exercitationem sint." - }, - "comment17": { - "children": [], - "comment_id": null, - "id": "m", - "post_id": "8", - "text": "Vel asperiores magnam neque laudantium. Odit praesentium delectus nesciunt debitis ipsum." - }, - "comment18": { - "children": [], - "comment_id": null, - "id": "n", - "post_id": "8", - "text": "Beatae nisi doloribus quisquam et. Et odit iusto exercitationem ab." - }, - "comment19": { - "children": [], - "comment_id": null, - "id": "o", - "post_id": "8", - "text": "Doloremque velit porro nemo. Aspernatur cum ea corporis libero quos." - }, - "comment2": { - "children": [], - "comment_id": null, - "id": "7", - "post_id": "8", - "text": "Eum nihil quod nisi placeat molestiae. Vitae ab similique incidunt deserunt sed." - }, - "comment20": { - "children": [], - "comment_id": null, - "id": "p", - "post_id": "8", - "text": "In alias neque vero eligendi et quidem. Enim suscipit maiores quibusdam adipisci iste dolorum." - }, - "comment21": { - "children": [], - "comment_id": null, - "id": "q", - "post_id": "8", - "text": "Amet vero beatae soluta debitis id. Quia corporis aut dolor quod." - }, - "comment22": { - "children": [], - "comment_id": null, - "id": "r", - "post_id": "8", - "text": "Ipsum iste doloribus ipsum. Impedit possimus cupiditate expedita velit odit rem est." - }, - "comment23": { - "children": [], - "comment_id": null, - "id": "s", - "post_id": "8", - "text": "Hic assumenda ullam veniam nobis. Necessitatibus earum incidunt nihil accusamus." - }, - "comment24": { - "children": [], - "comment_id": null, - "id": "t", - "post_id": "8", - "text": "Harum dolores perspiciatis sunt ea. Cum in porro illo suscipit." - }, - "comment25": { - "children": [], - "comment_id": null, - "id": "u", - "post_id": "8", - "text": "Hic numquam voluptatem quae atque pariatur. Exercitationem culpa maiores quos ullam maxime et." - }, - "comment26": { - "children": [], - "comment_id": null, - "id": "v", - "post_id": "8", - "text": "Laudantium blanditiis vel veniam aperiam quod velit. Tempore dolor perferendis sunt." - }, - "comment27": { - "children": [], - "comment_id": null, - "id": "w", - "post_id": "8", - "text": "Molestiae delectus ratione consectetur porro. Quis reiciendis qui id odio dolorem facilis." - }, - "comment28": { - "children": [], - "comment_id": null, - "id": "x", - "post_id": "8", - "text": "Dignissimos a delectus consectetur officiis. Placeat doloremque possimus nihil ipsum." - }, - "comment29": { - "children": [], - "comment_id": null, - "id": "y", - "post_id": "8", - "text": "Quo at reiciendis atque ipsum recusandae reiciendis labore. Tempore expedita exercitationem sint." - }, - "comment3": { - "children": [], - "comment_id": null, - "id": "8", - "post_id": "8", - "text": "Quas quae dolores occaecati magnam sunt nemo illo. Ab inventore quis itaque deleniti nihil." - }, - "comment30": { - "children": [], - "comment_id": null, - "id": "z", - "post_id": "8", - "text": "Reiciendis quis rerum qui perferendis. Esse quasi omnis itaque architecto quis voluptas doloremque." - }, - "comment31": { - "children": [], - "comment_id": null, - "id": "10", - "post_id": "8", - "text": "Officiis possimus corporis dolores a. Officiis expedita labore illo nisi autem." - }, - "comment32": { - "children": [], - "comment_id": null, - "id": "11", - "post_id": "8", - "text": "Hic exercitationem quaerat eaque corrupti ad. Nihil veniam veniam voluptate dolore deleniti." - }, - "comment33": { - "children": [], - "comment_id": null, - "id": "12", - "post_id": "8", - "text": "Dolorum mollitia assumenda enim optio error. Fugit neque libero itaque neque illo." - }, - "comment34": { - "children": [], - "comment_id": null, - "id": "13", - "post_id": "8", - "text": "Voluptate voluptatum ratione dolorem iusto placeat. Hic illo tenetur porro totam praesentium." - }, - "comment35": { - "children": [], - "comment_id": null, - "id": "14", - "post_id": "8", - "text": "Ratione minima ipsa praesentium dolor adipisci. Aut modi eveniet minus maiores dolor est corrupti." - }, - "comment36": { - "children": [], - "comment_id": null, - "id": "15", - "post_id": "8", - "text": "Repellat sapiente dolor vero eius mollitia. Maxime sed unde id distinctio." - }, - "comment37": { - "children": [], - "comment_id": null, - "id": "16", - "post_id": "8", - "text": "Recusandae ex provident vitae. Possimus sit et reiciendis officiis et. Porro id ratione quaerat." - }, - "comment38": { - "children": [], - "comment_id": null, - "id": "17", - "post_id": "8", - "text": "Praesentium quidem est quis. Quo enim reprehenderit deserunt recusandae." - }, - "comment39": { - "children": [], - "comment_id": null, - "id": "18", - "post_id": "8", - "text": "Vel eius facilis temporibus quaerat dolores. Corrupti voluptas a unde at fugiat debitis." - }, - "comment4": { - "children": [], - "comment_id": null, - "id": "9", - "post_id": "8", - "text": "Repudiandae neque est est delectus quod. Iure doloremque eveniet quia magnam eligendi consequuntur." - }, - "comment40": { - "children": [], - "comment_id": null, - "id": "19", - "post_id": "8", - "text": "Quas deleniti iusto eum recusandae impedit. Veritatis vero illo excepturi laboriosam cum unde." - }, - "comment41": { - "children": [], - "comment_id": null, - "id": "1a", - "post_id": "8", - "text": "Doloremque placeat quia laborum saepe doloribus. Assumenda distinctio corrupti voluptates velit." - }, - "comment42": { - "children": [], - "comment_id": null, - "id": "1b", - "post_id": "8", - "text": "Recusandae iure cumque itaque in nulla quidem. Laboriosam eos omnis similique." - }, - "comment43": { - "children": [], - "comment_id": null, - "id": "1c", - "post_id": "8", - "text": "Ullam modi possimus dolore esse unde quod. Numquam ut quia atque libero." - }, - "comment44": { - "children": [], - "comment_id": null, - "id": "1d", - "post_id": "8", - "text": "A provident incidunt qui. Optio aperiam amet nostrum assumenda rerum corrupti." - }, - "comment45": { - "children": [], - "comment_id": null, - "id": "1e", - "post_id": "8", - "text": "Molestiae fugit voluptatum dolorum fugit. Reiciendis nam beatae saepe quia." - }, - "comment46": { - "children": [], - "comment_id": null, - "id": "1f", - "post_id": "8", - "text": "Facere odit alias molestiae maiores odio. Nam distinctio culpa iure harum architecto cumque." - }, - "comment47": { - "children": [], - "comment_id": null, - "id": "1g", - "post_id": "8", - "text": "Rerum quasi consequatur veritatis quas vel aliquam. Saepe omnis velit natus atque quisquam." - }, - "comment48": { - "children": [], - "comment_id": null, - "id": "1h", - "post_id": "8", - "text": "Illo animi minus fugit. Reprehenderit est hic pariatur facilis delectus." - }, - "comment49": { - "children": [], - "comment_id": null, - "id": "1i", - "post_id": "8", - "text": "Harum deleniti est earum vitae placeat. Aspernatur velit beatae quae odio." - }, - "comment5": { - "children": [], - "comment_id": null, - "id": "a", - "post_id": "8", - "text": "Harum eveniet dolores nisi et iusto. Vitae minus unde omnis reprehenderit deserunt." - }, - "comment50": { - "children": [], - "comment_id": null, - "id": "1j", - "post_id": "8", - "text": "Alias at excepturi sequi labore fuga. Sit sit excepturi pariatur omnis deserunt at." - }, - "comment6": { - "children": [], - "comment_id": null, - "id": "b", - "post_id": "8", - "text": "Vel voluptas eaque tempora dolores illum rerum ullam. Dignissimos error quasi quibusdam." - }, - "comment7": { - "children": [], - "comment_id": null, - "id": "c", - "post_id": "8", - "text": "Ut laborum at ipsam. Neque perferendis veniam cupiditate hic numquam." - }, - "comment8": { - "children": [], - "comment_id": null, - "id": "d", - "post_id": "8", - "text": "Quos molestiae molestias iure ad tempora quos. Molestias veritatis vero atque sed." - }, - "comment9": { - "children": [], - "comment_id": null, - "id": "e", - "post_id": "8", - "text": "Et ut fuga dolor. Incidunt fugiat ipsam ullam unde ad distinctio." - } - }, - "posts": { - "a post with comments": { - "id": "8", - "text": "Delectus quasi eum occaecati sequi possimus ad. Repellat dolorum illo earum cumque aliquam.", - "title": "Quibusdam beatae cum fugit sint." - } - }, - "users": { - "staff_user": { - "username": "01CNPGWEX7DXFPRTZ6R0DDG1NP" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_approve.json b/factory_data/channels.views.comments_test.test_update_comment_approve.json deleted file mode 100644 index 5cc4f2bc72..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_approve.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Rule other evidence her develop usually. Employee wish avoid listen.\nGuess whose idea TV authority various. Similar determine final task quality.\nMeet detail employee front part. Education gas final stand bag Republican director. Strong learn or pick.\nMemory perform green half. Shoulder detail father any evening many. Civil walk hard whom tell.\nEnd great expect debate career record military. Relate behavior culture. Good perhaps career term adult.", - "name": "1595973345_15_sea", - "public_description": "Activity weight for like opportunity some. Agree glass which particular apply.", - "title": "Smile team prepare artist painting listen course." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "27", - "post_id": "q", - "text": "Study relationship participant. Debate explain member month notice." - } - }, - "posts": { - "post": { - "id": "q", - "text": "Ahead college after year education. Kitchen trouble thus game crime including name character.", - "title": "Determine degree executive your and." - } - }, - "users": { - "contributor": { - "username": "01EEBPSBFKX89WECXVM27SER5T" - }, - "staff_user": { - "username": "01EEBPS54NN9T7CSHTJ4J72Y9V" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_clear_downvote.json b/factory_data/channels.views.comments_test.test_update_comment_clear_downvote.json deleted file mode 100644 index 162a080b69..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_clear_downvote.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPRH9CBWSSVV0N2FNAKGVE" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_clear_upvote.json b/factory_data/channels.views.comments_test.test_update_comment_clear_upvote.json deleted file mode 100644 index 74288cdc34..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_clear_upvote.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPRDRPKMWN6AZATW4C57HT" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_downvote.json b/factory_data/channels.views.comments_test.test_update_comment_downvote.json deleted file mode 100644 index d3daf86b95..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_downvote.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPRA7M2V8PCY0VM1REBXFT" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_forbidden.json b/factory_data/channels.views.comments_test.test_update_comment_forbidden.json deleted file mode 100644 index fe7fbc7eb2..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_forbidden.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPR391T74XHPS9VD1GQG8D" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_ignore_reports.json b/factory_data/channels.views.comments_test.test_update_comment_ignore_reports.json deleted file mode 100644 index e506c07e60..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_ignore_reports.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Public movie street. At account citizen movement me natural.\nChair anything everyone all heavy for. Positive so leader candidate all probably anyone.\nYou character project each style. Example unit who media politics issue. Work understand stop town receive join effort could. Some do vote.\nTeam camera commercial tree draw century. Change Mr need apply.\nResource as task for type. State west amount war accept. Like pay read area choose charge company.", - "name": "1595973362_16_service", - "public_description": "Commercial strategy those almost. Eight national reality practice area nothing.", - "title": "Involve protect necessary win cut cell both." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "28", - "post_id": "r", - "text": "Goal bag trade clear quality address him. Energy be space technology entire." - } - }, - "posts": { - "post": { - "id": "r", - "text": "Lead then item such after less travel. Step natural environmental yeah.", - "title": "Can local suddenly nation investment drive chair." - } - }, - "users": { - "contributor": { - "username": "01EEBPSVQ6EQJKHDD7K8F9R8EX" - }, - "staff_user": { - "username": "01EEBPSN7RGDP90YH3B7ND28XG" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json b/factory_data/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json deleted file mode 100644 index 518fe4388a..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_ignore_reports_forbidden.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "School suddenly ahead wife someone front stock. Answer hot lot hold decade.\nAnother issue benefit assume. Worker young interest night. Tend charge worker her front.\nPossible nice my style visit next.\nToward stock black teacher entire identify today. Hotel while fine country get per report.\nHot information beautiful career between. Save air left section method big. Sea late along wife third first much.\nThen final into option dark edge blue. Specific quite social experience out kid apply.", - "name": "1595973382_17_deep", - "public_description": "Theory administration value everyone final purpose prove.", - "title": "Clearly throw factor new." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "29", - "post_id": "s", - "text": "Think plan fish trip best phone. Recently until garden yeah easy growth." - } - }, - "posts": { - "post": { - "id": "s", - "text": "Left poor baby official throughout. Stuff life place top return.", - "title": "Interesting stage general scene." - } - }, - "users": { - "contributor": { - "username": "01EEBPT5E25KFJDGM216124PJP" - }, - "staff_user": { - "username": "01EEBPT8QDXEYY24C71BK7KPXJ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_remove.json b/factory_data/channels.views.comments_test.test_update_comment_remove.json deleted file mode 100644 index 9e4800f3b1..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_remove.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Success role either project wide. At firm night letter. Class music sell.\nAfter table surface serve likely. Two material material. Reality technology show many best agent.\nHard miss door project the white support. Be lay commercial its news onto charge. Understand recently example believe. Room be thank loss natural paper.\nStructure fight seat condition. Hit impact build side tell.\nFish focus toward movement cultural. Wind join economy. Son ground stand radio trouble also.", - "name": "1595973329_14_environ", - "public_description": "Page wrong police behavior discussion only town.", - "title": "Poor yourself course. Main hand politics." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "26", - "post_id": "p", - "text": "Never tonight operation member. Half writer single building go ahead. Him sound few dream class." - } - }, - "posts": { - "post": { - "id": "p", - "text": "Pull consider up firm house cell. Theory college daughter feel.", - "title": "Share work change stop." - } - }, - "users": { - "contributor": { - "username": "01EEBPRV84XY6E1R34XY20EQJY" - }, - "staff_user": { - "username": "01EEBPRMTYJ6QA9V5GBJ7BECB5" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_subscribe.json b/factory_data/channels.views.comments_test.test_update_comment_subscribe.json deleted file mode 100644 index 1430810333..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_subscribe.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Agreement participant less cut about appear teacher. Final thing without open school. Trouble poor produce new than responsibility professional.\nThen hope put stage guy now. Bill affect him back choice perform. Baby tree role assume.\nView who source term draw.\nDirection health prove population great air onto. Site become happen gas. Prevent score nearly set maybe range doctor.\nBorn high easy relationship debate strategy system. Study effect add.", - "name": "1595973398_18_force", - "public_description": "North particularly significant floor training.", - "title": "Key door each scene raise much." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "2a", - "post_id": "t", - "text": "Likely agree where daughter. Lay over woman station believe song safe particular." - } - }, - "posts": { - "post": { - "id": "t", - "text": "Culture accept and total. Case laugh top indeed surface class help physical.", - "title": "Address already sense key member." - } - }, - "users": { - "contributor": { - "username": "01EEBPTYX1XJZACSCAVPPN19JY" - }, - "staff_user": { - "username": "01EEBPTRFENAMVB3H5AHTA4SW5" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_text.json b/factory_data/channels.views.comments_test.test_update_comment_text.json deleted file mode 100644 index 46dabb5dd6..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_text.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Enjoy consumer life building. Or himself sign hair. Lay forward eight politics.\nPublic commercial decade dark. Arm exist today carry. Fall sit point explain east available. Discuss particular world ahead remain listen.\nSee here operation them. Religious raise official relate oil power heart. Though order defense suddenly who.\nUntil blood sure floor. Future those which within could help scientist. Nice which member star exist consumer. Summer effect tough compare Democrat less.", - "name": "1595974046_14_save", - "public_description": "Already simply no pay find avoid buy. Public identify provide kitchen.", - "title": "Water do other." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "2c", - "post_id": "v", - "text": "Also determine ever radio wife reason land." - } - }, - "posts": { - "my geat post": { - "id": "v", - "text": "Television member a. Edge them so well dream. Though magazine development while general large.", - "title": "Drop on coach under." - } - }, - "users": { - "contributor": { - "username": "01EEBQEE8X64Q74GMJFNXYEQJJ" - }, - "staff_user": { - "username": "01EEBQEHJRET0S3J9ZQMEZWXHF" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_text_moderator.json b/factory_data/channels.views.comments_test.test_update_comment_text_moderator.json deleted file mode 100644 index 435fe9e0eb..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_text_moderator.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Remember really leave. Act remain every break whole with. Specific Mr actually community produce approach.\nPretty catch himself staff necessary adult forget. Ok show wish. Performance travel notice discuss step hospital goal.\nTrial right change pick certainly decade paper again. Whatever worry lose Democrat his budget. Yes artist his age whole idea meeting. Nor talk win especially.\nHuge weight or teach both. Rate evening could especially reveal.", - "name": "1595979688_16_what", - "public_description": "Suffer artist eight learn.", - "title": "Purpose her expect oil." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "2f", - "post_id": "1a", - "text": "What animal threat read relationship director. Measure left enjoy summer." - } - }, - "posts": { - "my geat post": { - "id": "1a", - "text": "Quite thus right reach law visit. Case important fire boy hit.", - "title": "Family challenge old." - } - }, - "users": { - "contributor": { - "username": "01EEBWTMJA2K42Y2PY57W6PW4R" - }, - "staff_user": { - "username": "01EEBWTQRY4357W2RNY3G258HH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_unsubscribe.json b/factory_data/channels.views.comments_test.test_update_comment_unsubscribe.json deleted file mode 100644 index 475fa1d581..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_unsubscribe.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Explain thought pressure admit.\nBreak around purpose say indicate series culture.\nElse certainly actually yet fine section. Others newspaper general nation. Treat morning old rule whether.\nOrder shoulder computer. Hour billion increase simply hair.\nCut happen discover one imagine leave lawyer floor. Wall reason speak arrive past land over. The peace enjoy including.\nIdea land church soldier table focus. Tell red oil. They quality it although spend. Often just statement process position.", - "name": "1595973414_19_stateme", - "public_description": "Spend remember important customer heavy garden forget. Choice man customer.", - "title": "See important thus hard power capital knowledge." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "2b", - "post_id": "u", - "text": "Exist cup we fire step name father common. Worker wall great skin pretty away." - } - }, - "posts": { - "post": { - "id": "u", - "text": "Likely worker source between already author add democratic. Appear well gas.", - "title": "Sort speak write affect gun story." - } - }, - "users": { - "contributor": { - "username": "01EEBPVF1SXSB6FNRZECP1FFN5" - }, - "staff_user": { - "username": "01EEBPV8JXGJ2GQSMGWJG2C3M4" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.comments_test.test_update_comment_upvote.json b/factory_data/channels.views.comments_test.test_update_comment_upvote.json deleted file mode 100644 index 117378de12..0000000000 --- a/factory_data/channels.views.comments_test.test_update_comment_upvote.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "contributor": { - "username": "01EEBPR6PEMKGKKDABJHYTK47W" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_add_contributor.json b/factory_data/channels.views.contributors_test.test_add_contributor.json deleted file mode 100644 index 46867effa5..0000000000 --- a/factory_data/channels.views.contributors_test.test_add_contributor.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKVXTEW4Z9CCZ2Z2FGVKB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_add_contributor[1].json b/factory_data/channels.views.contributors_test.test_add_contributor[1].json deleted file mode 100644 index 024516236f..0000000000 --- a/factory_data/channels.views.contributors_test.test_add_contributor[1].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Iste corrupti suscipit incidunt saepe. Voluptatem voluptatum similique aspernatur eos molestias et deserunt. Quas quae eum deserunt fugiat.\nDistinctio omnis ab cupiditate blanditiis nostrum nesciunt consectetur eveniet. Molestias saepe omnis voluptas. Tempore debitis enim dolorem harum facilis aliquid dignissimos.\nFugit quisquam eaque rerum expedita autem. Voluptate deleniti corporis nam vitae dolor quia voluptates. Dignissimos doloremque omnis facilis numquam iste provident.", - "name": "1542205969_doloribus", - "public_description": "Eligendi repellendus voluptatem quam optio quos.", - "title": "Sint repellendus illum ab eaque illo." - } - }, - "users": { - "contributor": { - "username": "01CW9A71D7HRA4C01VRBV6EVAQ" - }, - "staff_user": { - "username": "01CW9A6Y54BDRDBAGR2C7CHTSD" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_add_contributor[2].json b/factory_data/channels.views.contributors_test.test_add_contributor[2].json deleted file mode 100644 index a4a31b677c..0000000000 --- a/factory_data/channels.views.contributors_test.test_add_contributor[2].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Iure earum nemo facilis fugit. Harum veniam delectus perspiciatis dolorem expedita tenetur dicta. Voluptas sapiente ipsum delectus mollitia eveniet dolor.\nUt cum nam a expedita qui recusandae. Quidem a ullam eius iusto aut pariatur dolores. Doloribus quidem eveniet temporibus quos. Ducimus tenetur vel modi.", - "name": "1542205979_tempore", - "public_description": "Autem ab asperiores quibusdam architecto deserunt ratione.", - "title": "Deserunt sapiente id dolor." - } - }, - "users": { - "contributor": { - "username": "01CW9A7B5BJ5KVKSWAZ04V7BX6" - }, - "staff_user": { - "username": "01CW9A77XFWJ2G85H2DX4QB94V" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_add_contributor_again.json b/factory_data/channels.views.contributors_test.test_add_contributor_again.json deleted file mode 100644 index ff11075ac3..0000000000 --- a/factory_data/channels.views.contributors_test.test_add_contributor_again.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKVYT658QG36A03FC5SFC" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_add_contributor_email.json b/factory_data/channels.views.contributors_test.test_add_contributor_email.json deleted file mode 100644 index 089b34ac37..0000000000 --- a/factory_data/channels.views.contributors_test.test_add_contributor_email.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Sapiente esse possimus praesentium excepturi asperiores enim. Accusantium itaque pariatur illum placeat possimus inventore error veniam.\nQuae minus fuga harum iure atque vel pariatur. Nihil eos itaque provident repellendus exercitationem quasi. Quidem nostrum saepe cupiditate.", - "name": "1535133491_sed", - "public_description": "Aliquid natus cumque excepturi a rerum eaque ab ab. Accusantium neque libero neque quis.", - "title": "Corrupti non molestias modi ad voluptatibus nemo." - } - }, - "users": { - "mod_user1": { - "username": "01CNPHCBHW4CPXYVW6Y73VJVDF" - }, - "new_mod_user": { - "username": "01CNPHCEVAXJWRATHGAFKV44HB" - }, - "staff_user": { - "username": "01CNPHC571JTNT3MMFD9WHKSMT" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_list_contributors.json b/factory_data/channels.views.contributors_test.test_list_contributors.json deleted file mode 100644 index cb014dbe7d..0000000000 --- a/factory_data/channels.views.contributors_test.test_list_contributors.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Magnam dolore corporis dignissimos labore. Asperiores quidem facilis ipsa totam veritatis. Totam inventore quidem quisquam perferendis laudantium.\nPerspiciatis atque id quibusdam quam. Itaque mollitia eveniet debitis fugit rerum quia. Temporibus alias modi pariatur quod eaque.\nSequi eveniet fugit ab velit quaerat. Voluptates quidem corporis consequatur reprehenderit dolorem. Totam atque praesentium perferendis adipisci.", - "name": "1535133481_necessitat", - "public_description": "Consectetur vel veniam dolor veritatis enim quidem dolor. Omnis at aliquam enim asperiores.", - "title": "Veniam quod minus expedita." - } - }, - "users": { - "contributor": { - "username": "01CNPHC1RCECE85P0CSAQQ5ZV9" - }, - "staff_user": { - "username": "01CNPHBV9935NG71CDT6K30BVZ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_remove_contributor.json b/factory_data/channels.views.contributors_test.test_remove_contributor.json deleted file mode 100644 index 94ba2905c7..0000000000 --- a/factory_data/channels.views.contributors_test.test_remove_contributor.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKWC3N60W873Y5EJSYH6S" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_remove_contributor[1].json b/factory_data/channels.views.contributors_test.test_remove_contributor[1].json deleted file mode 100644 index ad3354a20a..0000000000 --- a/factory_data/channels.views.contributors_test.test_remove_contributor[1].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Accusantium laborum nemo maxime praesentium provident natus eos. Perferendis atque cum totam odit cumque doloribus asperiores. Praesentium optio iusto cum maiores minus assumenda similique exercitationem.\nEius molestiae unde error dicta labore sit. Repellat id asperiores sapiente repellendus tenetur vitae dicta. Assumenda ad aperiam fuga incidunt dicta excepturi.", - "name": "1542150374_saepe", - "public_description": "Error exercitationem commodi perferendis sed.", - "title": "Et fugiat voluptatibus nihil eveniet." - } - }, - "users": { - "contributor": { - "username": "01CW7N6MMP3NRD48075TK1R5B2" - }, - "staff_user": { - "username": "01CW7N6E7PGH3NM2DFTARJ9HHH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_remove_contributor[2].json b/factory_data/channels.views.contributors_test.test_remove_contributor[2].json deleted file mode 100644 index 416df0b9f1..0000000000 --- a/factory_data/channels.views.contributors_test.test_remove_contributor[2].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Accusantium eligendi odit deleniti eum fugiat. Porro iste nostrum maxime consequuntur culpa non accusantium. Odio quisquam occaecati alias itaque odio velit nostrum. Fugiat distinctio veniam assumenda enim cumque aperiam.\nIncidunt distinctio fuga modi officia molestiae nemo maxime. Temporibus nam illum asperiores error tempore voluptatum hic quasi.", - "name": "1542150385_dolores", - "public_description": "Temporibus libero minus maxime eum. Perferendis hic nam minus quidem deleniti.", - "title": "Vel aspernatur necessitatibus non quisquam." - } - }, - "users": { - "contributor": { - "username": "01CW7N6YFY85QG1CAPG1DKSQKD" - }, - "staff_user": { - "username": "01CW7N6R64NSADVXQ7Y4F6WEC8" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.contributors_test.test_remove_contributor_again.json b/factory_data/channels.views.contributors_test.test_remove_contributor_again.json deleted file mode 100644 index c690216df3..0000000000 --- a/factory_data/channels.views.contributors_test.test_remove_contributor_again.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKWD3PPNG7FSG9J3HKGSE" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage.json b/factory_data/channels.views.frontpage_test.test_frontpage.json deleted file mode 100644 index 61d65816d1..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Eaque similique soluta in voluptatem. Omnis quis magnam voluptatem. Suscipit temporibus dignissimos nemo debitis error deserunt.\nVoluptates et magnam et similique aliquid neque. Eius quos repudiandae molestias voluptatibus quis.\nQuae minus praesentium ex suscipit. Iusto quasi ducimus ut voluptatibus. Ullam aut voluptas animi voluptatem.", - "name": "1510945793_id", - "public_description": "Modi accusamus fugit est fugiat nam. Quibusdam officiis excepturi facere.", - "title": "Esse inventore tempore quasi accusamus." - } - }, - "posts": { - "my 2nd post": { - "id": "e3", - "text": "Tempore asperiores officia expedita. Repellat doloremque natus quibusdam sit saepe.", - "title": "Vitae id fuga officia iste cumque animi." - }, - "my 3rd post": { - "id": "e4", - "text": "Esse fugiat dignissimos harum iste. Nisi beatae sequi quis aliquam accusamus.", - "title": "Laboriosam harum ad maxime excepturi." - }, - "my 4th post": { - "id": "e5", - "text": "Velit excepturi fuga maxime ullam. Beatae eos itaque ipsam minus quam reprehenderit debitis.", - "title": "Consectetur odio exercitationem consequuntur." - }, - "my post": { - "id": "e2", - "text": "Molestias repellat ad explicabo aliquid debitis. Autem magni nihil eaque at aliquam.", - "title": "Iusto quis reiciendis odit ipsum." - } - }, - "users": { - "contributor": { - "username": "01BZ5P6A0TCMCXZQ0W1ARMF42G" - }, - "staff_user": { - "username": "01BZ5P69ER1167VTVGRW1J8C0B" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage[False].json b/factory_data/channels.views.frontpage_test.test_frontpage[False].json deleted file mode 100644 index 16908e41b5..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage[False].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Debitis totam iure sapiente nam. Laboriosam omnis eos voluptate cum consectetur. Iste omnis repellat porro. Suscipit illo in eligendi doloremque id.\nAccusantium doloremque assumenda ratione dolor dolorem autem similique. Vero harum excepturi sed. Ullam beatae occaecati quae totam accusamus maxime. Iure quo unde soluta facere asperiores nam.", - "name": "1542380725_rerum", - "public_description": "Quam aliquid sunt odio repellendus sapiente.", - "title": "Eaque illum velit sint repudiandae." - } - }, - "posts": { - "my 2nd post": { - "id": "8p", - "text": "Dolor quisquam asperiores eveniet porro. Totam vel esse illo ullam hic officia.", - "title": "Culpa excepturi ratione vitae et dolor nam." - }, - "my 3rd post": { - "id": "8q", - "text": "Expedita eligendi odit laborum soluta. Occaecati eius ipsam eveniet sint veritatis.", - "title": "Modi accusantium earum quod expedita deserunt." - }, - "my 4th post": { - "id": "8r", - "text": "Quis iure alias fugiat sed. Deleniti a eos temporibus. Aliquam ipsa deleniti nulla quod.", - "title": "Quisquam quasi aliquam quidem quo beatae sed." - }, - "my post": { - "id": "8o", - "text": "Quam nobis vel quod. Natus optio eius dolores iusto. Velit accusantium explicabo nihil id.", - "title": "Ratione blanditiis quis esse nulla." - } - }, - "users": { - "contributor": { - "username": "01CWEGW30FCW2N1DXAXEQ5HXM9" - }, - "staff_user": { - "username": "01CWEGW6A7PT35WY87AW30CTTY" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage[True].json b/factory_data/channels.views.frontpage_test.test_frontpage[True].json deleted file mode 100644 index 53784326e6..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage[True].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Eaque nihil cum tenetur impedit omnis. Asperiores culpa asperiores blanditiis. Quos suscipit ex excepturi fuga nemo et.\nQuasi a sunt dicta eaque minus delectus. Veritatis odit quibusdam earum laboriosam. Hic doloremque distinctio labore unde consectetur debitis. Quos officiis earum beatae nam magnam atque rem.\nAliquam placeat aliquid sint laborum. Iste vero quasi qui vel. Quae dolore sed provident. Officiis dolor beatae dolorem commodi.", - "name": "1542380702_adipisci", - "public_description": "Optio quo qui unde sint ipsam blanditiis.", - "title": "Quasi harum sit inventore esse amet esse." - } - }, - "posts": { - "my 2nd post": { - "id": "8l", - "text": "Eveniet architecto officia veniam suscipit. Officia nulla nostrum eveniet ad voluptatibus deserunt.", - "title": "Quia nulla fugiat reiciendis facere cum ipsum." - }, - "my 3rd post": { - "id": "8m", - "text": "Ratione ipsum voluptatum molestiae consectetur. Repudiandae recusandae dolor eveniet alias.", - "title": "Cupiditate ea vel at dolorem non." - }, - "my 4th post": { - "id": "8n", - "text": "Eligendi ex excepturi suscipit. Harum quisquam alias incidunt libero aspernatur.", - "title": "Nisi voluptatem eius harum ad quibusdam at." - }, - "my post": { - "id": "8k", - "text": "Quibusdam amet magni quibusdam perspiciatis. Perferendis cumque consequatur atque nihil a.", - "title": "Accusamus animi distinctio ducimus eos." - } - }, - "users": { - "contributor": { - "username": "01CWEGVCCTWQ93NX53PF269VQB" - }, - "staff_user": { - "username": "01CWEGVFQGZPFMTPY4SZD0YZNB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage_anonymous.json b/factory_data/channels.views.frontpage_test.test_frontpage_anonymous.json deleted file mode 100644 index 7bbea6449b..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage_anonymous.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Ex modi itaque placeat quia. Impedit quasi eos vel voluptates ipsum. Laboriosam quas atque fugit praesentium occaecati eum eveniet laboriosam.\nEnim iusto minima ipsa. Unde molestias ratione fugit aliquid nam. Error quae ipsa recusandae totam quas. Vel consectetur inventore repudiandae aliquam voluptatum corrupti accusantium. Aut ex iste vero similique.", - "name": "1535133621_occaecati", - "public_description": "Nobis dignissimos ipsa aliquid quia repudiandae. Impedit est placeat earum dolorum.", - "title": "Qui sit aut tenetur esse fuga." - } - }, - "users": { - "staff_user": { - "username": "01CNPHG3XBQCJHJ0STDEMWYXDH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[hot].json b/factory_data/channels.views.frontpage_test.test_frontpage_sorted[hot].json deleted file mode 100644 index 8e2259766c..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[hot].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Id voluptate dicta optio blanditiis enim odit. Nobis optio quas sit ipsam officiis at minima maiores. Voluptatibus tempora quam rerum recusandae modi deserunt reiciendis. Quisquam non doloribus est dolor necessitatibus et.\nOdit molestias praesentium aliquid laudantium. Explicabo magnam odio sequi tempora voluptas maxime.\nA nesciunt ex repudiandae culpa voluptatibus doloribus iste. Ipsa accusamus soluta vel ea atque voluptas molestias. Accusantium eum quod magnam enim magni incidunt id.", - "name": "1542380748_repellat", - "public_description": "Id ratione nulla consectetur. Quis dignissimos ullam optio officia.", - "title": "Laborum odit soluta impedit velit." - } - }, - "posts": { - "my 2nd post": { - "id": "8t", - "text": "Cum quisquam laborum dolor distinctio suscipit adipisci. Quaerat fuga aperiam occaecati fugiat.", - "title": "Voluptatibus aliquid quaerat iure." - }, - "my 3rd post": { - "id": "8u", - "text": "Quia incidunt commodi porro iusto aperiam voluptatum. Cupiditate magni ratione commodi expedita.", - "title": "Harum laborum ducimus magnam." - }, - "my 4th post": { - "id": "8v", - "text": "Est voluptate neque est cumque esse. Mollitia cumque quos molestias at.", - "title": "Quae odit aliquam mollitia." - }, - "my post": { - "id": "8s", - "text": "Corrupti at reprehenderit iste ut. Animi ea odit ea. Suscipit non nemo deleniti delectus illo.", - "title": "Molestiae accusamus sed consequuntur maxime." - } - }, - "users": { - "contributor": { - "username": "01CWEGWSH4J6TFRDYGY2HGGV76" - }, - "staff_user": { - "username": "01CWEGWWS64D5JJQ2PKC2XXV53" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[new].json b/factory_data/channels.views.frontpage_test.test_frontpage_sorted[new].json deleted file mode 100644 index d79e49e386..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[new].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quia tempora eum sit. Voluptatem porro similique blanditiis recusandae impedit numquam quos. Aperiam at rerum deserunt quos. Illum reprehenderit ea fuga.\nDebitis minus numquam nisi a inventore quod at. Velit quam itaque ipsa tempore cupiditate aperiam temporibus. Voluptas voluptas libero vitae nesciunt iste quibusdam occaecati.\nSuscipit commodi impedit possimus possimus eos totam esse. Cumque sit veniam beatae eaque cum vitae laudantium perferendis. Asperiores ab quaerat laudantium officiis.", - "name": "1542380794_ratione", - "public_description": "Optio recusandae delectus quisquam voluptates blanditiis eius quia sed.", - "title": "Et minus perspiciatis ab pariatur eveniet." - } - }, - "posts": { - "my 2nd post": { - "id": "91", - "text": "Vero libero itaque repellat architecto a cupiditate dolore. Eligendi itaque id impedit eaque.", - "title": "Reprehenderit accusamus pariatur officia libero." - }, - "my 3rd post": { - "id": "92", - "text": "Officia ipsa magnam officiis delectus. Maxime numquam eum sint quam quae quidem ullam id.", - "title": "Corporis sunt id recusandae." - }, - "my 4th post": { - "id": "93", - "text": "Cupiditate sint quisquam ipsa labore. Beatae asperiores odio qui saepe quis provident reiciendis.", - "title": "Sint quibusdam excepturi tempore." - }, - "my post": { - "id": "90", - "text": "Voluptas non consequatur natus labore. Ipsa fugiat animi delectus.", - "title": "Odit ducimus quasi in tempora." - } - }, - "users": { - "contributor": { - "username": "01CWEGY695PYTZ2E6M9M35PEXZ" - }, - "staff_user": { - "username": "01CWEGY9J3G2EVZTT43G9FX4QQ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[top].json b/factory_data/channels.views.frontpage_test.test_frontpage_sorted[top].json deleted file mode 100644 index d29a8995fd..0000000000 --- a/factory_data/channels.views.frontpage_test.test_frontpage_sorted[top].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Expedita aspernatur expedita inventore quia blanditiis. Tempore pariatur asperiores alias inventore nobis quae. Accusamus fugiat minima asperiores eum sit.\nQuod blanditiis dignissimos ullam beatae sapiente. Quis officiis recusandae dignissimos. Consequatur incidunt ducimus incidunt. Unde dignissimos assumenda explicabo fugiat cumque. Aut consequuntur modi nostrum commodi quaerat eligendi.", - "name": "1542380771_fugiat", - "public_description": "Expedita impedit reprehenderit quia et ea excepturi.", - "title": "Facere ullam dicta totam optio id repellendus." - } - }, - "posts": { - "my 2nd post": { - "id": "8x", - "text": "Voluptatem adipisci quam incidunt quos. Similique culpa rem dolorem.", - "title": "A architecto eum architecto a." - }, - "my 3rd post": { - "id": "8y", - "text": "Numquam eveniet modi fugit amet. Provident dolor quo assumenda. Sit cumque quis vitae qui minus.", - "title": "Totam ipsa totam velit incidunt." - }, - "my 4th post": { - "id": "8z", - "text": "Qui incidunt dolorum corrupti quam facilis et. Saepe molestiae natus nam harum non.", - "title": "Doloribus porro reiciendis maxime error fugit." - }, - "my post": { - "id": "8w", - "text": "Iure in ab hic illo magni et quis. Ex quibusdam suscipit recusandae laborum.", - "title": "Quod omnis nobis saepe sint modi voluptatibus." - } - }, - "users": { - "contributor": { - "username": "01CWEGXFYDM6KQE0GJEXPZ6448" - }, - "staff_user": { - "username": "01CWEGXK8E31XSXKP9PP5SW202" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_add_moderator.json b/factory_data/channels.views.moderators_test.test_add_moderator.json deleted file mode 100644 index 297534f1a8..0000000000 --- a/factory_data/channels.views.moderators_test.test_add_moderator.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Quis deleniti quod est delectus. Molestias quaerat repellat expedita perspiciatis unde ex. Sapiente impedit accusamus nostrum aspernatur.\nPlaceat error aliquam corrupti laboriosam alias illum minima. Aut hic necessitatibus reiciendis voluptates recusandae. Fuga blanditiis deserunt voluptatibus ipsum. Iure officiis reprehenderit dolor dolore sed debitis.", - "name": "1535133724_asperiores", - "public_description": "Repellat perferendis nostrum corporis atque. Nemo cum temporibus eius at.", - "title": "Ratione quod dicta iste vel." - } - }, - "users": { - "new_mod_user": { - "username": "01CNPHKEH02E1WP1ZS8C8TVCH9" - }, - "staff_user": { - "username": "01CNPHK85M1KHY5647G2FQNYD5" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_add_moderator_again.json b/factory_data/channels.views.moderators_test.test_add_moderator_again.json deleted file mode 100644 index 6d341b494a..0000000000 --- a/factory_data/channels.views.moderators_test.test_add_moderator_again.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Esse odio aperiam ipsa. Recusandae aliquam laboriosam pariatur aut voluptatum reiciendis vero. Veritatis dignissimos adipisci beatae adipisci architecto reprehenderit perferendis eaque. Quo porro quaerat explicabo perferendis aliquam officia.\nQuaerat suscipit doloribus placeat. Commodi nostrum sunt nulla. Esse quos tempore qui.\nSimilique dolor nemo id laborum harum. Maiores possimus magni optio totam ut provident laboriosam. Doloribus rem adipisci suscipit deleniti provident cum.", - "name": "1535133747_porro", - "public_description": "Eaque soluta atque debitis nobis eos voluptates accusantium. Qui aperiam labore at molestiae.", - "title": "Voluptates eius nemo eligendi quos doloribus." - } - }, - "users": { - "already_mod": { - "username": "01CNPHM5TGNAY9PMZAVJNR5AV2" - }, - "staff_user": { - "username": "01CNPHKZE781P8JCA70QMX91C9" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_add_moderator_email.json b/factory_data/channels.views.moderators_test.test_add_moderator_email.json deleted file mode 100644 index c292d41a85..0000000000 --- a/factory_data/channels.views.moderators_test.test_add_moderator_email.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Quod at sequi commodi magnam quaerat facere fugit. Id reiciendis explicabo iure sed exercitationem illo. Aut asperiores deserunt iusto ut.\nEarum accusamus illo hic aperiam eligendi commodi blanditiis. Nostrum quia architecto optio necessitatibus aliquam quisquam. Quibusdam modi nemo expedita iusto harum quae eveniet. Consequuntur recusandae voluptas temporibus sapiente ducimus recusandae saepe.", - "name": "1535133734_nesciunt", - "public_description": "Sit animi aperiam alias et totam. Qui ex non veniam vero voluptatum dolor.", - "title": "Deleniti voluptate dicta sed deserunt eveniet id." - } - }, - "users": { - "mod_user1": { - "username": "01CNPHKREAAET76Y23E4RJQ1X3" - }, - "new_mod_user": { - "username": "01CNPHKVQGHSNDTFWAXVMK70X7" - }, - "staff_user": { - "username": "01CNPHKJ1EJTQ7FD2Y561AGJQ8" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_list_moderators.json b/factory_data/channels.views.moderators_test.test_list_moderators.json deleted file mode 100644 index 7f6b9286c3..0000000000 --- a/factory_data/channels.views.moderators_test.test_list_moderators.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Occaecati asperiores ullam tempora nulla. Cumque sequi perferendis eum earum officiis laboriosam. Et voluptatem error quibusdam facere quo sed reprehenderit. Commodi beatae soluta pariatur enim ipsa tempore fugit.\nVoluptatem harum harum est maiores sit. Ducimus rem aliquam ex non. Veniam praesentium eum delectus molestias consectetur. Excepturi voluptatum sit veritatis suscipit velit.", - "name": "1535133635_consectetu", - "public_description": "Occaecati eius maiores aliquid commodi. Ipsum eius fugit modi minima.", - "title": "Incidunt nisi officia eaque reiciendis." - } - }, - "users": { - "contributor": { - "username": "01CNPHGQH75YFM16QF5HPCFRNJ" - }, - "new_mod": { - "username": "01CNPHGTYFT6575518ZQRTSEKS" - }, - "staff_user": { - "username": "01CNPHGH6NW77MCDFNN553X83J" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_list_moderators_anonymous.json b/factory_data/channels.views.moderators_test.test_list_moderators_anonymous.json deleted file mode 100644 index 0a9b0da302..0000000000 --- a/factory_data/channels.views.moderators_test.test_list_moderators_anonymous.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Debitis eveniet tempora omnis blanditiis numquam explicabo dolorum. Voluptates labore reiciendis corrupti nostrum quam nulla. Magni mollitia beatae accusantium laborum repudiandae recusandae dolorem sequi. Earum quasi hic facilis ab.\nAmet corrupti veniam eos reiciendis dolor. Quae dolorem et sed occaecati. Praesentium eaque repellendus illo quasi quae illum deserunt.", - "name": "1535133711_quibusdam", - "public_description": "Eos dicta at esse dolores mollitia non. Eos asperiores debitis illum in.", - "title": "Harum repellat reiciendis beatae similique." - } - }, - "users": { - "staff_user": { - "username": "01CNPHJVF2Z3D6V2ZP1V58TK6Q" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_list_moderators_many_moderator.json b/factory_data/channels.views.moderators_test.test_list_moderators_many_moderator.json deleted file mode 100644 index 4dab0f1b42..0000000000 --- a/factory_data/channels.views.moderators_test.test_list_moderators_many_moderator.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quasi culpa vero quibusdam dignissimos. Nemo aliquam temporibus dolor consequatur perspiciatis fugiat impedit. Consectetur accusamus excepturi recusandae cumque laboriosam vero aut incidunt. Ipsa veritatis vero esse provident vitae soluta reiciendis atque. Tenetur libero impedit asperiores natus.", - "name": "1536867718_praesentiu", - "public_description": "Quidem modi iusto nihil laborum. Necessitatibus eligendi natus voluptate quia deleniti tempora id.", - "title": "Ipsam distinctio consequatur reprehenderit." - } - }, - "users": { - "staff_user": { - "username": "01CQA78HYA7H58Z0VZPD7R3PKQ" - }, - "user0": { - "username": "01CQA78RC22HKTRYDQ2SRFTFAK" - }, - "user1": { - "username": "01CQA78W5JZWEYJF141NJHMJWY" - }, - "user2": { - "username": "01CQA78ZQQDDB7KXYRV09BWC3S" - }, - "user3": { - "username": "01CQA793B3HNP934THJ6T29H99" - }, - "user4": { - "username": "01CQA796ZD142W25BTHCKNJJ3F" - }, - "user5": { - "username": "01CQA79AJDXCFWGT0972W0ZMWY" - }, - "user6": { - "username": "01CQA79E35CNXWK8JSQGASXT6M" - }, - "user7": { - "username": "01CQA79HR8A1DJ274AGHH5P2XW" - }, - "user8": { - "username": "01CQA79NGCW7W54C07FD7C4H57" - }, - "user9": { - "username": "01CQA79S6CXJ6YDVB1NM5QTN51" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_list_moderators_moderator.json b/factory_data/channels.views.moderators_test.test_list_moderators_moderator.json deleted file mode 100644 index 2335ccf55d..0000000000 --- a/factory_data/channels.views.moderators_test.test_list_moderators_moderator.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Similique eligendi commodi voluptatibus voluptas earum voluptatem. Aliquam nesciunt quisquam sed libero itaque repellendus aut. Eveniet aliquid veniam dignissimos. Voluptates dolor repudiandae repudiandae expedita nisi dolore cumque.\nAut eveniet iste officia tempore odit eum. Sed iusto error recusandae dolore a. Temporibus non expedita at aut. Ducimus hic repudiandae consequuntur debitis fugit.", - "name": "1536867707_fugiat", - "public_description": "Facere nobis commodi perspiciatis quod. Debitis placeat excepturi numquam id.", - "title": "Officiis dignissimos molestiae molestiae." - } - }, - "users": { - "staff_user": { - "username": "01CQA787BGXKQKJGZFSJHKFMZS" - }, - "user2": { - "username": "01CQA78E0GC03AMPH3FZKA6F7Y" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_list_moderators_staff.json b/factory_data/channels.views.moderators_test.test_list_moderators_staff.json deleted file mode 100644 index 37a72d68b4..0000000000 --- a/factory_data/channels.views.moderators_test.test_list_moderators_staff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Doloribus dolorem velit nisi nihil facere soluta asperiores. Provident temporibus ex voluptatibus impedit pariatur neque quam.\nQuae cumque adipisci at perspiciatis quos. Quos laudantium dignissimos molestias molestiae soluta facilis odio. Quaerat sapiente nulla architecto aut possimus.", - "name": "1535133648_repellat", - "public_description": "Temporibus ex porro quos non totam. Omnis nam cumque odit. Esse dolorum dolorum maxime aspernatur.", - "title": "Occaecati voluptates voluptatem architecto optio." - } - }, - "users": { - "staff_user": { - "username": "01CNPHGYJ8ADDGNB77RPYFF83Y" - }, - "user2": { - "username": "01CNPHH4W5ENV8N18JYFCE2DRX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_remove_moderator[1].json b/factory_data/channels.views.moderators_test.test_remove_moderator[1].json deleted file mode 100644 index 0577c9ea4a..0000000000 --- a/factory_data/channels.views.moderators_test.test_remove_moderator[1].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Tempora deleniti voluptates similique ea ad voluptate incidunt maiores. Voluptatibus veritatis non voluptatibus aperiam necessitatibus. Nemo consequuntur sapiente magni ex ratione. Maiores ratione ducimus iusto enim doloribus.\nQuaerat officiis delectus hic ex molestiae quaerat suscipit quos. Modi enim eveniet repudiandae iusto repellendus corrupti delectus maxime. At excepturi doloribus dolorum explicabo quo neque accusantium libero.", - "name": "1542218639_porro", - "public_description": "Soluta cum laudantium velit perferendis eius dolor. Alias quisquam nobis nisi.", - "title": "Molestiae ratione quas minima esse." - } - }, - "users": { - "staff_user": { - "username": "01CW9P9PWNGJDCBHCDNMFG2CAK" - }, - "user1": { - "username": "01CW9P9X9HCS7S7VGKFD27F3EX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.moderators_test.test_remove_moderator[2].json b/factory_data/channels.views.moderators_test.test_remove_moderator[2].json deleted file mode 100644 index 70e1956427..0000000000 --- a/factory_data/channels.views.moderators_test.test_remove_moderator[2].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Totam pariatur reiciendis natus tenetur ab animi repudiandae. Voluptatum incidunt esse quod doloremque amet sed culpa. Temporibus quod distinctio vel rerum.\nSint dolores facilis veniam doloremque id. Similique asperiores similique itaque tempora repellat repudiandae cum explicabo. Maxime dicta qui eos repellendus aperiam quasi. Nostrum sint ipsum rerum quidem at ipsa. Laborum consequuntur eius est dolorem.", - "name": "1542218649_maxime", - "public_description": "Sint beatae expedita nam labore. Illum reiciendis modi enim aliquam.", - "title": "Adipisci quaerat illum rem aut natus." - } - }, - "users": { - "staff_user": { - "username": "01CW9PA0ZJDS9QQ6YAC1MHWS04" - }, - "user1": { - "username": "01CW9PA7AKDYGH74Q7M5GYN2AV" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_and_update_post_moderator.json b/factory_data/channels.views.posts_test.test_create_and_update_post_moderator.json deleted file mode 100644 index e4c2bc4945..0000000000 --- a/factory_data/channels.views.posts_test.test_create_and_update_post_moderator.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Certainly huge speak current range network. Different must us fill week education economic meeting. Pass level light view into.\nWhom time represent few society color. Both moment age throughout own short.\nPolitical majority memory forget accept recently executive. Night nice particular child. Down option within. Authority certain cost name.\nPossible three as bag anyone entire. Industry those ball north. Produce environment born soon letter value.", - "name": "1595981160_5_day", - "public_description": "Recently dinner key. Identify director tell risk human pattern beautiful rich.", - "title": "Worry sign everything interest develop." - } - }, - "users": { - "contributor": { - "username": "01EEBY7GJYCTH9AD5FY03HGHTM" - }, - "staff_user": { - "username": "01EEBY7M8VKBZ57WGJX7RAGGDE" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_article_post.json b/factory_data/channels.views.posts_test.test_create_article_post.json deleted file mode 100644 index 8827fa9ca3..0000000000 --- a/factory_data/channels.views.posts_test.test_create_article_post.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Building ground kind low. Whatever tell perform. Group near economic always ask week audience sister. Answer company wear increase over.\nGreat other even control some let surface. Hard total notice develop. Out interesting our nature loss difficult.\nSide hope point program home her strategy mother. Provide entire building hit.\nOf leader fire eye. Nothing agree few land machine court. Piece hear rock.\nNature his message speak but live president. Maintain hundred field door. Teach man race.", - "name": "1595974482_4_move", - "public_description": "Foot election one race discuss.", - "title": "Commercial instead room own new mention side." - } - }, - "users": { - "contributor": { - "username": "01EEBQVRB9FKPY4E26GJ1EH00C" - }, - "staff_user": { - "username": "01EEBQVVJWAVY29P753FEYXVJY" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_article_post_with_cover.json b/factory_data/channels.views.posts_test.test_create_article_post_with_cover.json deleted file mode 100644 index 8350b8025a..0000000000 --- a/factory_data/channels.views.posts_test.test_create_article_post_with_cover.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Personal sound matter open more. Art practice TV fly century team Republican. Bring because under old table enter where.\nDoctor church account instead war. Training firm security value when land game. Practice management financial.\nImportant value his character character. Open sound owner reach south since read. Cup week recently chair later.\nRich itself significant support. Institution order run industry military assume learn.", - "name": "1595974492_5_similar", - "public_description": "School pass pattern mean writer service. Meet dark expect. Be staff fear.", - "title": "By close what for art trip." - } - }, - "users": { - "contributor": { - "username": "01EEBQW24WXAJ1NZFNDPKKJ72H" - }, - "staff_user": { - "username": "01EEBQW5CNMH8NR0E2FC7CVXCB" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_post_forbidden.json b/factory_data/channels.views.posts_test.test_create_post_forbidden.json deleted file mode 100644 index 8bd09c6e34..0000000000 --- a/factory_data/channels.views.posts_test.test_create_post_forbidden.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Deep money situation assume individual subject ever. Indeed say make wife voice.\nTax member number pull.\nSurface them in standard try pick. Party final company able cover. During cost opportunity middle spend black letter stuff.\nUnit teach view maybe marriage per with door. Foot plan professor bar east of whom theory.\nInvolve minute strategy treat may. Wear however upon business cell arm. Need also month adult spend war force. Feeling yet finish certainly young station your.", - "name": "1595974509_8_practice", - "public_description": "True boy door threat tonight him. Miss idea dream many five can wind.", - "title": "Gun chair fall north any." - } - }, - "users": { - "contributor": { - "username": "01EEBQWJ6CBMZMB2D61JXYC6V4" - }, - "staff_user": { - "username": "01EEBQWNHJ4KK5R392QHWXFHTQ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_post_without_upvote.json b/factory_data/channels.views.posts_test.test_create_post_without_upvote.json deleted file mode 100644 index 1d2a38aa30..0000000000 --- a/factory_data/channels.views.posts_test.test_create_post_without_upvote.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Attack add worry form raise. Book sort process should like rather sport parent.\nLose expect develop. Need body all stay. Free here nature.\nPopulation follow indeed add may image way. Seem him matter within find under mission piece. Us listen cause score involve since.\nNotice dinner cut son.\nPick pass moment keep thus. Big doctor face piece performance. Mother possible standard guy kind.\nOne point argue former civil. Serious bed care expert great space.", - "name": "1595974524_28_age", - "public_description": "Miss dog so share. Friend gun consumer personal option value.", - "title": "Chair rate visit ahead." - } - }, - "users": { - "contributor": { - "username": "01EEBQX0RKHWVQ0X4PVGY1JEMD" - }, - "staff_user": { - "username": "01EEBQX412WN4CJTYF0YGYM367" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_text_post.json b/factory_data/channels.views.posts_test.test_create_text_post.json deleted file mode 100644 index 2d78c168b5..0000000000 --- a/factory_data/channels.views.posts_test.test_create_text_post.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Crime story interesting scene particular few plant. Bill child attorney perhaps space happen.\nTraining gas cell girl recent little side. Once forget film. Him how customer shoulder while explain off why.\nAccount minute whole dinner big choose degree. Must author night likely your race two. Trial peace manager.\nAsk plan cost actually already American live. Performance just close meeting skin wish reveal.\nHappen own poor those.", - "name": "1595976232_3_product", - "public_description": "Upon during soldier reveal change medical. Hot name more man building.", - "title": "Rule guess particular local grow three old." - } - }, - "users": { - "contributor": { - "username": "01EEBSH46DFS5GSBMSD396XST2" - }, - "staff_user": { - "username": "01EEBSH7XSN8Z4NRSXHBKJQ7C9" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_text_post_blank.json b/factory_data/channels.views.posts_test.test_create_text_post_blank.json deleted file mode 100644 index 92263a7522..0000000000 --- a/factory_data/channels.views.posts_test.test_create_text_post_blank.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Whatever analysis industry.\nSeven main green certain general very. Instead low here Republican onto need protect.\nIdea enjoy up lose general huge remember. Eight power training between management woman miss. Hospital order manage street hard.\nRead her minute meeting. Yeah body owner any skin yeah star. Pattern third network western among worker else there.\nBoy magazine sign industry cover attorney yourself. Represent hundred candidate sign little time night.", - "name": "1595976244_7_modern", - "public_description": "Woman measure check soon. Note else seven medical more.", - "title": "Age bank it sure new nature hospital." - } - }, - "users": { - "contributor": { - "username": "01EEBSHG6FPPBSVJ8CQEME5H6Q" - }, - "staff_user": { - "username": "01EEBSHKKF98WM2QM64PAY9MGH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_create_url_post_existing_meta.json b/factory_data/channels.views.posts_test.test_create_url_post_existing_meta.json deleted file mode 100644 index d34262c917..0000000000 --- a/factory_data/channels.views.posts_test.test_create_url_post_existing_meta.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Anyone open season guess information least. Congress artist other way control.\nWall bank your change clearly experience difference. Star ok month amount everyone.\nBreak morning call myself allow. Report easy morning research push. Shake fall hard check arrive upon number.\nThough standard low seem left age build. Stock pattern open art defense surface.\nFront hundred opportunity picture city white professor. Sign spend practice its window care first.", - "name": "1595976216_0_arrive", - "public_description": "Short and management design. Something discuss forward value.", - "title": "Story and return enough according beat." - } - }, - "users": { - "contributor": { - "username": "01EEBSGKQQGNDCMVMD3WJPAPFM" - }, - "staff_user": { - "username": "01EEBSGQX37H3EV2HRX7RB5HKJ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_deleted_post[False].json b/factory_data/channels.views.posts_test.test_get_deleted_post[False].json deleted file mode 100644 index 0268be7128..0000000000 --- a/factory_data/channels.views.posts_test.test_get_deleted_post[False].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Dolores veritatis sint eligendi tenetur. Fuga ratione error magni sed provident id maxime odio.\nEsse nobis quidem eius libero. Quibusdam quasi est corporis. Repudiandae similique sapiente dolorum quam eum.\nSunt quam saepe dicta tempora in. Aut ullam necessitatibus laborum. Recusandae recusandae quo eius tenetur eligendi ipsum.\nIure magnam porro modi quas modi fugit. Dolorum asperiores illum hic. Provident ex modi voluptate quam eveniet maxime fuga.", - "name": "1535133835_incidunt", - "public_description": "Aspernatur pariatur modi praesentium fuga. Ullam omnis dolore ratione. Excepturi ad id molestiae.", - "title": "Fugit tenetur nulla asperiores eveniet." - } - }, - "posts": { - "deleted": { - "id": "1a", - "text": "Dolorem soluta fugit voluptas sapiente. Unde odit animi ipsa.", - "title": "Officiis repudiandae dolorum atque maxime." - } - }, - "users": { - "contributor": { - "username": "01CNPHPV6WGYZ0PP40RNVMF75Q" - }, - "staff_user": { - "username": "01CNPHPMV71SGF4H810SVEHEEH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_deleted_post[True].json b/factory_data/channels.views.posts_test.test_get_deleted_post[True].json deleted file mode 100644 index d7627a3130..0000000000 --- a/factory_data/channels.views.posts_test.test_get_deleted_post[True].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Repudiandae doloribus libero ullam natus sunt. Eum vel adipisci ullam incidunt ea. Deleniti officia ducimus praesentium in ad. Id similique doloribus quam deleniti modi hic tempore.\nDicta minus dolorum sunt. Porro quia magni laboriosam odit quis eveniet reiciendis. Modi ratione reprehenderit sint. Vel nemo recusandae animi suscipit asperiores amet. Ullam laborum at animi pariatur amet voluptatem.", - "name": "1535133822_necessitat", - "public_description": "Excepturi quaerat enim dolorum possimus quasi provident odio ea. Quidem iure a sequi non.", - "title": "Doloremque unde mollitia reiciendis." - } - }, - "posts": { - "deleted": { - "id": "19", - "text": "At tempora placeat quasi blanditiis veniam rerum. Vitae adipisci quod non tenetur.", - "title": "Corrupti illo dignissimos quo dolores." - } - }, - "users": { - "contributor": { - "username": "01CNPHPEBP3V0MV2QK7MSF8J29" - }, - "staff_user": { - "username": "01CNPHP8027XRZ6VFFR5NPR886" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_post[False].json b/factory_data/channels.views.posts_test.test_get_post[False].json deleted file mode 100644 index f01bc85324..0000000000 --- a/factory_data/channels.views.posts_test.test_get_post[False].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Ipsam voluptatibus incidunt eius repellendus reprehenderit. Distinctio laborum magni eum necessitatibus ex qui quo. Expedita voluptatem fugiat alias est atque laborum expedita distinctio. Est magnam fugit aliquam sint minus.\nNumquam nam eaque hic sint. Error illo doloremque nesciunt fugiat consequatur aliquid. Aspernatur sunt dolore laudantium deserunt iure magni. Temporibus quasi recusandae sit occaecati sequi labore officiis.", - "name": "1535133862_ipsa", - "public_description": "Cumque totam assumenda perferendis repellendus. Facere eum architecto nisi.", - "title": "Neque voluptatum facilis quidem." - } - }, - "posts": { - "my geat post": { - "id": "1c", - "text": "Optio nemo voluptates praesentium nesciunt. Vero aperiam laborum nihil.", - "title": "Velit ex quasi natus." - } - }, - "users": { - "contributor": { - "username": "01CNPHQN9GRFNS6HFBA7BA952S" - }, - "staff_user": { - "username": "01CNPHQEYJ4WQZQJ8D2Y2W65JA" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_post[True].json b/factory_data/channels.views.posts_test.test_get_post[True].json deleted file mode 100644 index e95a84afc2..0000000000 --- a/factory_data/channels.views.posts_test.test_get_post[True].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Velit animi vel voluptas repudiandae quas esse. Aliquid corrupti odit fuga voluptate pariatur. Veritatis ipsa labore fugiat placeat nobis.\nDignissimos quas assumenda veniam nam optio voluptatibus. Aspernatur qui eaque repellat quos veritatis quis. Soluta eos aspernatur aliquam eveniet occaecati.\nSit vitae distinctio tenetur aspernatur voluptatum. Quidem aperiam consequatur deleniti dolor voluptatum sequi.", - "name": "1535133848_praesentiu", - "public_description": "Dignissimos sunt quibusdam dolore hic dolorem. Laudantium praesentium at consequatur quis vero.", - "title": "Totam commodi veniam nisi ab vero dolore." - } - }, - "posts": { - "my geat post": { - "id": "1b", - "text": "Porro in possimus quaerat vitae. Autem expedita cumque voluptatum deserunt vitae.", - "title": "Fugiat fuga eum et libero." - } - }, - "users": { - "contributor": { - "username": "01CNPHQ8DSXYBKAKS90HA2AMSV" - }, - "staff_user": { - "username": "01CNPHQ23J2GVDPTX7W2H7EMG9" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_post_anonymous.json b/factory_data/channels.views.posts_test.test_get_post_anonymous.json deleted file mode 100644 index afa8769e70..0000000000 --- a/factory_data/channels.views.posts_test.test_get_post_anonymous.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Cupiditate inventore dignissimos distinctio velit cumque provident. Nam dolorum eos facilis ex harum.\nMaxime vel quas exercitationem ipsa ab mollitia. Incidunt ad rem accusamus mollitia dolorum doloremque. Vel enim modi quam officia necessitatibus. Doloremque blanditiis dolorem ad quod alias.\nRatione adipisci qui aut voluptates veniam ipsum in. Illo adipisci adipisci eligendi recusandae modi. Et voluptatibus voluptas delectus.", - "name": "1535133901_voluptatib", - "public_description": "Voluptas laboriosam asperiores dignissimos sit iusto. Aperiam iure architecto blanditiis.", - "title": "Possimus necessitatibus itaque nulla." - } - }, - "posts": { - "link_post": { - "id": "1f", - "title": "Earum cupiditate error quasi unde.", - "url": "http://hernandez.com/wp-content/posts/category/terms.htm" - } - }, - "users": { - "staff_user": { - "username": "01CNPHRNTYZAFRR2SMRC4F2VHZ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_post_no_profile.json b/factory_data/channels.views.posts_test.test_get_post_no_profile.json deleted file mode 100644 index d2f9a96e11..0000000000 --- a/factory_data/channels.views.posts_test.test_get_post_no_profile.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Recusandae itaque omnis voluptatibus consectetur. Labore laborum mollitia ipsum deserunt accusantium doloribus iusto.\nRepellat sequi non aliquam asperiores. Voluptates pariatur ipsum aliquid distinctio dignissimos iure. Accusantium accusamus distinctio doloribus maxime error exercitationem. Harum veritatis sint nemo saepe accusantium.", - "name": "1535133875_aliquam", - "public_description": "Eligendi saepe maxime numquam unde debitis. Commodi doloremque repudiandae accusantium.", - "title": "Molestiae ab quia fuga laboriosam earum." - } - }, - "posts": { - "my geat post": { - "id": "1d", - "text": "Molestias neque nulla amet non. Animi autem veniam dolores corrupti.", - "title": "Dolor expedita ipsam blanditiis eum sunt dolorem." - } - }, - "users": { - "contributor": { - "username": "01CNPHR288JC324SFVTDJWWWVG" - }, - "staff_user": { - "username": "01CNPHQVWET8KG6JM9G2F8K0E4" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_post_stickied.json b/factory_data/channels.views.posts_test.test_get_post_stickied.json deleted file mode 100644 index 242732c071..0000000000 --- a/factory_data/channels.views.posts_test.test_get_post_stickied.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Odit distinctio beatae placeat maxime facilis assumenda autem. Sed tempora eos iusto libero. Quidem maxime incidunt delectus molestiae quidem expedita.\nRecusandae iusto nesciunt distinctio vel sed a. Excepturi possimus exercitationem numquam consequatur pariatur quos. Necessitatibus laudantium debitis dolor beatae aut minima.\nRatione adipisci nostrum reiciendis libero saepe totam. Quam eos non tempora nemo. Enim quis laborum itaque mollitia pariatur totam molestias odit.", - "name": "1535133888_cupiditate", - "public_description": "Magni ut magni enim facere laborum delectus. Dolores enim tenetur dignissimos sed sit minus fugit.", - "title": "Magnam corporis commodi ut quisquam aliquid est." - } - }, - "posts": { - "just a post": { - "id": "1e", - "text": "Illo sunt iure temporibus rem in magnam. Facere corporis autem provident iure nihil.", - "title": "Illum similique ipsum consectetur eum neque." - } - }, - "users": { - "contributor": { - "username": "01CNPHRF8N3G9RBEA7XZPTD2Q3" - }, - "staff_user": { - "username": "01CNPHR8X14JMW7C4HTFDJYFXY" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_removed_post[None-404].json b/factory_data/channels.views.posts_test.test_get_removed_post[None-404].json deleted file mode 100644 index f6e7ec91c1..0000000000 --- a/factory_data/channels.views.posts_test.test_get_removed_post[None-404].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "She according region difference trial top hot visit. Everything be sing cause air energy.\nSafe occur poor five participant. Company trip wide far rock.\nBig model keep fly want democratic final. Why institution chair laugh bar relate campaign media. Here scene since choose against.\nMe point bad generation week your grow. Employee rise individual film wind mind attorney. Style new evidence goal company near perform.", - "name": "1595950370_11_other", - "public_description": "Operation it check team care raise. Affect population fly thank lot article.", - "title": "Voice thought ground toward door what." - } - }, - "posts": { - "removed": { - "id": "f", - "text": "Because song movement left stay exist individual. Our fact put those thank expert miss.", - "title": "City democratic teach rich major law." - } - }, - "users": { - "contributor": { - "username": "01EEB0W0QH6B392N37G7B8GN1W" - }, - "staff_user": { - "username": "01EEB0VXGN7842ZRP2WGT0QG83" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_removed_post[client_user1-404].json b/factory_data/channels.views.posts_test.test_get_removed_post[client_user1-404].json deleted file mode 100644 index c16119da8c..0000000000 --- a/factory_data/channels.views.posts_test.test_get_removed_post[client_user1-404].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Second language take though market. Artist research their less pay recently.\nCrime rest meet dinner student fire among. Research size treat increase story heart address.\nShould him world though quickly country wind. East present approach. Left decision have study scientist lay.\nWide daughter bank audience. Night nearly affect push attention Mr speak. Face perform forward across.\nUs his history music total ground. Speak drug range how fine decade age.", - "name": "1595950383_12_step", - "public_description": "Address visit right pick least own rather.", - "title": "Opportunity between soon money single material." - } - }, - "posts": { - "removed": { - "id": "g", - "text": "Perhaps oil field even after pay. Nearly though politics show gas. Carry say marriage should.", - "title": "Majority cause mission perhaps on economic." - } - }, - "users": { - "contributor": { - "username": "01EEB0WDHATJM4XCFN402M45YZ" - }, - "staff_user": { - "username": "01EEB0WA8V7A4PFBGK0BF4F1KQ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_removed_post[client_user2-200].json b/factory_data/channels.views.posts_test.test_get_removed_post[client_user2-200].json deleted file mode 100644 index 5e062a32e0..0000000000 --- a/factory_data/channels.views.posts_test.test_get_removed_post[client_user2-200].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "In but fight question section open whatever company.\nChild most line. Her cultural place gun share quickly.\nStill time week standard dream sit learn standard. And serve minute game structure model.\nRed work range east smile mouth democratic lose. Pattern character young trade recent often. System school mind because agent heavy.\nControl course serious. Sort degree cup.\nStart book animal bit time subject pressure. Example despite before thought.", - "name": "1595950396_13_Republi", - "public_description": "Century will great. Return himself although exactly spend.", - "title": "Record field fish produce realize." - } - }, - "posts": { - "removed": { - "id": "h", - "text": "History rise page conference meeting. Order well hair.\nWrong run tend social.", - "title": "Over five Democrat worker." - } - }, - "users": { - "contributor": { - "username": "01EEB0WTBKN36JS3S8BRMNCC4C" - }, - "staff_user": { - "username": "01EEB0WQ3H0JJ7WC0PD94V59D1" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_removed_post[staff_user-200].json b/factory_data/channels.views.posts_test.test_get_removed_post[staff_user-200].json deleted file mode 100644 index 19bab35cd7..0000000000 --- a/factory_data/channels.views.posts_test.test_get_removed_post[staff_user-200].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Game appear represent require current necessary. House region some.\nCall side carry civil. Write among happy. Action tonight enjoy nice adult suddenly scene.\nMeeting talk let year far entire recognize. Consider sell indicate carry send miss well us.\nNeed affect month box. Record produce respond song let. Tough mouth concern.\nClear claim tree marriage enjoy south. Social team no word.\nBy your recognize.\nMyself provide certainly. Author manager personal century campaign spring simple threat.", - "name": "1685707941_2_suggest", - "public_description": "Management especially war whole. Might among nature today gas.", - "title": "For word method nearly face all for film." - } - }, - "posts": { - "removed": { - "id": "9", - "text": "Or gun various end level. Direction rate through nothing own. Training leg plant.", - "title": "Own line apply support sign share crime." - } - }, - "users": { - "contributor": { - "username": "01H1Y0BK8MKZY6TFWNWKHYXEK4" - }, - "staff_user": { - "username": "01H1Y0BPJPQRG5E7QF9YZKYKR7" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_get_removed_post[user-404].json b/factory_data/channels.views.posts_test.test_get_removed_post[user-404].json deleted file mode 100644 index 3c01a283b8..0000000000 --- a/factory_data/channels.views.posts_test.test_get_removed_post[user-404].json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Phone new himself probably always trip war. Nature rate just class.\nStage mouth poor sister push stock. Compare forget professor old rich skill difficult.\nMiss start defense summer evening. True design picture apply. Thousand population example city.\nWeight only whole budget around born. Change thus attorney hair assume perform old check.\nMuch best toward tonight animal magazine. Course model design establish.", - "name": "1685707927_1_far", - "public_description": "College baby reason. Floor record business anyone business agreement.", - "title": "Source easy place cost." - } - }, - "posts": { - "removed": { - "id": "8", - "text": "Position design paper author. City most source better usually. Movie outside explain budget nice.", - "title": "Rest mean lay. Mean between environmental could." - } - }, - "users": { - "contributor": { - "username": "01H1Y0B3WHKYX2R61K42G005WF" - }, - "staff_user": { - "username": "01H1Y0B8NQSE6456XR8YZ32SPA" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts[False].json b/factory_data/channels.views.posts_test.test_list_posts[False].json deleted file mode 100644 index b48afa80be..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts[False].json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Perspiciatis ut cum pariatur culpa vitae. Aperiam excepturi officiis laudantium aliquam. Rem ipsa ratione enim.\nExcepturi dignissimos deserunt quos odio earum. Consequatur dolores nesciunt dolor. Laboriosam doloribus eum quod quidem ut porro maiores.\nReprehenderit voluptates iusto non dicta fuga. Velit non laboriosam non tenetur harum quis explicabo. Praesentium unde doloribus in atque ipsum.", - "name": "1542383420_dolor", - "public_description": "Ipsa minima repellat sunt.", - "title": "Ut amet laudantium iste neque numquam ex libero." - } - }, - "posts": { - "link_post": { - "id": "bd", - "title": "Nemo nobis vitae maxime maiores facere autem.", - "url": "http://campbell.org/posts/app/homepage.php" - }, - "text_post": { - "id": "be", - "text": "Mollitia totam ab doloribus. Eum quod suscipit eius nihil hic quis tempore.", - "title": "Rerum minus occaecati accusantium est." - } - }, - "users": { - "contributor": { - "username": "01CWEKEAG1CFJ4VBJK9C5F9DWV" - }, - "staff_user": { - "username": "01CWEKEDTXEBBVVD2RD7516QM2" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts[True].json b/factory_data/channels.views.posts_test.test_list_posts[True].json deleted file mode 100644 index adc2f85541..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts[True].json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Sint rerum eligendi illo rem. Tempora deleniti repellat maiores possimus unde. Facilis consectetur dolorum labore labore magni. Consequuntur autem saepe dolore corporis qui.\nRepellat voluptates dolore alias rerum aliquid. Consequatur atque quas optio similique ullam sequi minus corporis. Mollitia sed dolor voluptates nemo placeat sit. Occaecati sint exercitationem vero fugiat corporis.", - "name": "1535133921_dicta", - "public_description": "In explicabo accusantium temporibus. Voluptate quos consequatur ipsam tempore.", - "title": "Quo id rem reprehenderit beatae." - } - }, - "posts": { - "link_post": { - "id": "1h", - "title": "Perferendis accusamus quo asperiores sunt.", - "url": "https://chapman.com/" - }, - "text_post": { - "id": "1i", - "text": "Sed officia tenetur vel vero dolor voluptatibus repellendus. Ut minus veniam vitae porro at ut sed.", - "title": "Atque vero veritatis quibusdam nobis." - } - }, - "users": { - "contributor": { - "username": "01CNPHSFHDYCDW5NC6W89RWMV9" - }, - "staff_user": { - "username": "01CNPHS95X8CGG3RV7QAA9NPGM" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_anonymous.json b/factory_data/channels.views.posts_test.test_list_posts_anonymous.json deleted file mode 100644 index 3a5271a52d..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_anonymous.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Ullam possimus voluptate voluptas harum expedita. Recusandae ullam laboriosam voluptatem ea vel error perferendis. Doloremque veniam quaerat quae odit. Vero iusto ullam cupiditate et ducimus consequuntur.\nReiciendis ratione laborum facilis sint. Quibusdam enim repudiandae unde reprehenderit maiores at. Possimus iure nesciunt sed laboriosam fugit delectus rerum sapiente. Rerum ex illo repellendus nisi repellendus consequatur enim tempora.", - "name": "1542381150_et", - "public_description": "Molestiae iure ab nobis iure.", - "title": "Possimus consectetur ex assumenda non." - } - }, - "posts": { - "link_post": { - "id": "b9", - "title": "Recusandae iusto dolores vitae quia corrupti.", - "url": "http://pacheco-wheeler.com/list/search/category/terms/" - } - }, - "users": { - "staff_user": { - "username": "01CWEH94K2VZV9QZAFC2EQKWKM" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_none.json b/factory_data/channels.views.posts_test.test_list_posts_none.json deleted file mode 100644 index 30f7ae42f5..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_none.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Expedita quisquam quos delectus. Velit suscipit ab magni amet modi.\nTempore placeat veniam dignissimos autem. Est ipsum maiores dolore minima reiciendis quibusdam provident. Dolore doloribus molestias hic temporibus corporis. Quasi facere quam omnis esse.\nSoluta sapiente ipsa voluptatibus sint. Perspiciatis quod est cupiditate expedita at. Nam amet dolorum labore iusto reiciendis. Enim atque repellat dolor accusantium.", - "name": "1535133954_inventore", - "public_description": "Officiis quas doloremque ex recusandae. Eius consequatur aperiam cumque odio reiciendis eius.", - "title": "Sed exercitationem mollitia aliquid quae aliquid." - } - }, - "users": { - "contributor": { - "username": "01CNPHTFDN4EKS392BZ8WJED67" - }, - "staff_user": { - "username": "01CNPHT93ADNADTD7RQMX622SA" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json b/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json deleted file mode 100644 index d1b99ebadd..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_no_params.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Porro molestiae odit eligendi sint illum sint repellat earum. Aliquid omnis quidem ad recusandae in blanditiis.\nLabore quasi tenetur quae earum eligendi velit. Dolores ad labore asperiores et repellendus. Facere saepe ullam odit laudantium. Expedita ex non iste explicabo.\nIpsum laboriosam dolor suscipit eaque perspiciatis nam dolore eligendi. Molestiae minus odio temporibus repellat quasi cumque quod esse. Ratione eius repellat ipsa dolorum.", - "name": "1542380923_nihil", - "public_description": "Incidunt eaque voluptate ipsum beatae possimus voluptatum.", - "title": "Fugiat rerum accusamus debitis quam minus." - } - }, - "posts": { - "0": { - "id": "9l", - "text": "Ea a vero officia quibusdam facilis autem. Magnam incidunt dolorum natus occaecati corporis hic.", - "title": "Quae nesciunt minus molestias delectus porro." - }, - "1": { - "id": "9m", - "text": "Quidem placeat optio officia. Nostrum optio suscipit nostrum porro.", - "title": "Voluptatem culpa ab voluptatibus accusantium." - }, - "10": { - "id": "9v", - "text": "Necessitatibus ipsa ab adipisci in. Atque alias ratione fuga ex.", - "title": "Veritatis expedita architecto dolor ea." - }, - "11": { - "id": "9w", - "text": "Odio rem ipsum delectus officia quo. Corrupti molestias nobis non laboriosam accusantium sit.", - "title": "Magnam placeat deserunt unde minima rem cumque." - }, - "12": { - "id": "9x", - "text": "Praesentium odit sunt sequi ad aspernatur. Nulla beatae dolorum eos a.", - "title": "Rem pariatur sint vel incidunt in a praesentium." - }, - "13": { - "id": "9y", - "text": "Ducimus eum consectetur eaque natus assumenda perferendis. Ab eius amet distinctio iusto.", - "title": "Quod officiis ullam optio tempore sint." - }, - "14": { - "id": "9z", - "text": "Id beatae cumque occaecati cum deserunt veniam. Vero nisi eveniet magni.", - "title": "Labore nam voluptas ab." - }, - "2": { - "id": "9n", - "text": "Aut quae ipsam omnis nisi tempore. Accusamus praesentium voluptatum ipsum ducimus dolorum.", - "title": "Voluptatem nisi dignissimos excepturi aliquam." - }, - "3": { - "id": "9o", - "text": "Nostrum dolores officiis rem dolor voluptatibus. Temporibus quae quisquam a.", - "title": "Error facere nisi magnam nam." - }, - "4": { - "id": "9p", - "text": "Beatae est veritatis magnam. Illum delectus occaecati libero quis amet natus.", - "title": "Quae magni possimus inventore quam." - }, - "5": { - "id": "9q", - "text": "Deleniti dolore suscipit odit iure illum. Optio excepturi perspiciatis amet officia.", - "title": "A ea minus illum nobis sapiente tempore." - }, - "6": { - "id": "9r", - "text": "Necessitatibus autem ullam nam quasi. Rem atque optio quod ipsam. Quos autem aut officiis optio.", - "title": "Non repellendus quibusdam sint alias." - }, - "7": { - "id": "9s", - "text": "Officiis vitae error velit. Fuga repellendus consectetur sequi fugiat. Minima modi ipsa nam totam.", - "title": "Hic dicta qui voluptas." - }, - "8": { - "id": "9t", - "text": "At magnam blanditiis provident culpa beatae recusandae optio. Harum amet vitae porro quae.", - "title": "Nostrum sint nobis maiores cupiditate." - }, - "9": { - "id": "9u", - "text": "Totam aperiam voluptates ut doloribus. Unde veniam molestiae totam pariatur porro doloribus fugiat.", - "title": "Ipsum quod sit inventore cumque fugiat." - } - }, - "users": { - "contributor": { - "username": "01CWEH23W7DSM2XAT1TV0KT1JP" - }, - "staff_user": { - "username": "01CWEH275GR7P40XCZ0SV20B15" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json b/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json deleted file mode 100644 index 7b4ecefe5c..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_pagination_first_page_with_params.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Laborum illum omnis debitis quae rem quasi. Vero assumenda laboriosam minus animi nam accusamus impedit. Sit maiores voluptatem exercitationem recusandae aliquid ipsum aspernatur.\nFugiat ullam dolor cumque quos debitis officia perferendis. Quasi cupiditate autem qui ipsam quas laborum. Laboriosam porro voluptate delectus nihil. At exercitationem quasi soluta architecto labore.\nVitae eveniet ab itaque itaque possimus. Omnis voluptas aliquid blanditiis sequi.", - "name": "1542380981_magni", - "public_description": "Aperiam voluptate necessitatibus blanditiis quos officia saepe debitis.", - "title": "Esse incidunt modi veritatis." - } - }, - "posts": { - "0": { - "id": "a0", - "text": "Sequi sit quis quaerat. Dolor mollitia eaque ipsa enim odit quibusdam.", - "title": "Officia quas eius architecto." - }, - "1": { - "id": "a1", - "text": "Delectus quaerat at modi fuga. Nulla veniam alias neque iste.", - "title": "Libero molestias unde similique quasi." - }, - "10": { - "id": "aa", - "text": "Et soluta eum illum suscipit error quos asperiores. Porro quasi animi odit ut porro fugiat.", - "title": "Distinctio ad et qui eos corrupti impedit." - }, - "11": { - "id": "ab", - "text": "Autem doloremque eligendi id blanditiis. Ipsa sequi rerum unde sed.", - "title": "Quas ratione sed sint debitis." - }, - "12": { - "id": "ac", - "text": "Nesciunt animi enim voluptatum illum. Magnam at sed officia. Saepe occaecati officia corrupti.", - "title": "Odio vitae similique nesciunt labore." - }, - "13": { - "id": "ad", - "text": "Sint libero modi velit numquam. Optio est voluptate enim rerum quae.", - "title": "Repellat non mollitia ducimus vero." - }, - "14": { - "id": "ae", - "text": "Laudantium qui magni minus. Libero architecto vero mollitia sed. Est tempora eius placeat quisquam.", - "title": "Ducimus occaecati magni saepe aliquam odio quos." - }, - "2": { - "id": "a2", - "text": "Doloribus sapiente corrupti quaerat nostrum laborum. Iste eum laboriosam tenetur doloremque.", - "title": "Quos dolor ratione harum tenetur illum inventore." - }, - "3": { - "id": "a3", - "text": "Totam voluptatibus repellat ullam ipsa. Nostrum aperiam id maxime.", - "title": "Ipsam nihil non autem quia itaque." - }, - "4": { - "id": "a4", - "text": "Dolorem eaque a officia ullam tempore omnis nobis. Minus cumque temporibus labore similique animi.", - "title": "Similique molestias et itaque laboriosam quia." - }, - "5": { - "id": "a5", - "text": "Suscipit illo ex rerum. Quas praesentium similique alias ad fuga esse.", - "title": "Eius corporis nemo nobis recusandae." - }, - "6": { - "id": "a6", - "text": "Incidunt ipsa illum accusantium. Debitis eum quam cumque eligendi.", - "title": "Assumenda maiores labore veniam accusantium." - }, - "7": { - "id": "a7", - "text": "Suscipit sequi ea culpa suscipit nisi fugit. Impedit veritatis dicta nemo voluptatum doloribus.", - "title": "Deleniti officiis tempore cumque vero." - }, - "8": { - "id": "a8", - "text": "Voluptatum velit error tempora soluta. Sunt iste consequuntur quod doloribus debitis totam.", - "title": "Quibusdam dolorum error omnis ipsam dolorem." - }, - "9": { - "id": "a9", - "text": "Possimus necessitatibus animi aspernatur qui. Sed velit magnam quidem totam similique.", - "title": "Quasi doloremque mollitia expedita fugit maiores." - } - }, - "users": { - "contributor": { - "username": "01CWEH3W6FCJJ009MBK960S1YB" - }, - "staff_user": { - "username": "01CWEH3ZFZ5Q9DCAYZ8BZ4Z1DJ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_pagination_non_first_page.json b/factory_data/channels.views.posts_test.test_list_posts_pagination_non_first_page.json deleted file mode 100644 index 05c30b519b..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_pagination_non_first_page.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Delectus suscipit officiis occaecati earum laudantium laudantium. Ipsam natus quaerat voluptatem ducimus voluptatem quo. Voluptates voluptatum ullam sit id exercitationem.\nIllo ea magnam culpa sunt corporis eos nemo. Totam alias quae recusandae cupiditate totam optio earum. Aliquid iste culpa et modi ducimus sed repellat. Illum sapiente aliquid cum. Aut veritatis commodi cum dolorum reiciendis nostrum est.", - "name": "1542381038_repellat", - "public_description": "Expedita et quo ducimus molestias. Assumenda amet maiores nam totam.", - "title": "Quos repudiandae a repudiandae deserunt." - } - }, - "posts": { - "0": { - "id": "af", - "text": "Occaecati deserunt rem amet incidunt id. Doloribus enim ipsum qui unde dicta temporibus eos.", - "title": "Nesciunt nostrum quidem fugit eveniet eveniet." - }, - "1": { - "id": "ag", - "text": "Consequuntur nisi maiores eligendi voluptatem iste. Dolorem vero sed unde reiciendis aspernatur.", - "title": "Exercitationem fugiat quos voluptatum corrupti." - }, - "10": { - "id": "ap", - "text": "Molestiae neque reiciendis molestiae illum est nam. Mollitia quibusdam rerum at consectetur nisi.", - "title": "Itaque commodi ut iure quia quibusdam veniam." - }, - "11": { - "id": "aq", - "text": "Amet illo delectus fugit odio voluptatibus. Fuga iste autem et aperiam rem distinctio.", - "title": "Ut eius consequuntur cumque cumque." - }, - "12": { - "id": "ar", - "text": "Maiores quaerat repellendus cupiditate nesciunt quae sed incidunt. Dolorum dolorem incidunt error.", - "title": "Unde nemo voluptate velit aliquid." - }, - "13": { - "id": "as", - "text": "Eum quaerat id ducimus tempora. Fugit voluptates aspernatur nam.", - "title": "Incidunt eos sint harum inventore." - }, - "14": { - "id": "at", - "text": "Facere eaque ipsam ex blanditiis. A dolore mollitia officiis nam ab hic occaecati fugiat.", - "title": "Perspiciatis quia possimus ipsum quaerat quis." - }, - "2": { - "id": "ah", - "text": "Error nulla accusamus dicta. Dolorem porro dolore aut soluta quibusdam perferendis tempora nisi.", - "title": "Cum quam expedita cum deserunt explicabo." - }, - "3": { - "id": "ai", - "text": "Omnis provident voluptas voluptates a. Exercitationem soluta est a quaerat quos.", - "title": "Ipsum culpa beatae quam corporis cumque ea." - }, - "4": { - "id": "aj", - "text": "Vitae impedit ducimus occaecati natus. Fugit est porro vel maxime facere ipsum quia.", - "title": "Placeat non corporis illo saepe ab hic." - }, - "5": { - "id": "ak", - "text": "Consequatur qui ex ex dolorum temporibus at. Ratione eligendi nulla ipsam.", - "title": "Est laborum beatae beatae." - }, - "6": { - "id": "al", - "text": "Reprehenderit minus porro veniam. Asperiores corrupti accusantium excepturi eum est est.", - "title": "Sapiente quas officiis nemo facilis." - }, - "7": { - "id": "am", - "text": "Iste dolor quia et molestiae facere ex maiores. Quam velit laborum nisi a maiores quia.", - "title": "Quae sunt reiciendis recusandae pariatur." - }, - "8": { - "id": "an", - "text": "Perspiciatis dolorem cupiditate impedit temporibus. Cupiditate excepturi quae ullam totam dolorum.", - "title": "Adipisci ab odio minima non harum autem officia." - }, - "9": { - "id": "ao", - "text": "Ducimus fugiat est dolor quis suscipit corrupti blanditiis. Quidem beatae fugit occaecati.", - "title": "Dolore facere ipsa neque nam odit id praesentium." - } - }, - "users": { - "contributor": { - "username": "01CWEH5ME12ZJN5NJNP6BAQTVF" - }, - "staff_user": { - "username": "01CWEH5QRJCGX8G9WPTPNTQG2X" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json b/factory_data/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json deleted file mode 100644 index f2221b157b..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_pagination_non_offset_page.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Iusto illum cumque delectus eos eum facilis error. Non iste deleniti est vitae id inventore. Non quibusdam harum id quia officia reprehenderit.\nDignissimos nam esse esse praesentium temporibus iure vitae. Quia nihil vero libero. Maiores nemo dicta ut sunt praesentium.\nOdit esse officiis facere voluptatem praesentium vero. Beatae deserunt doloremque iure molestias nemo quasi. Earum soluta iure nisi omnis ipsum similique laborum quibusdam. Molestiae accusamus ducimus maxime deserunt officia.", - "name": "1542381096_voluptates", - "public_description": "Officia ipsam iste sint quia sed fuga.", - "title": "Aperiam perferendis laborum dolores eius." - } - }, - "posts": { - "0": { - "id": "au", - "text": "Molestias ea corporis qui magni. Alias maxime vitae quia id ad.", - "title": "Nihil eum debitis iste autem atque at." - }, - "1": { - "id": "av", - "text": "Rerum ut nisi placeat laboriosam sit eos. Temporibus voluptas assumenda est nam.", - "title": "Odit dicta totam odio doloremque." - }, - "10": { - "id": "b4", - "text": "Sapiente occaecati blanditiis aliquam fugit. Deserunt excepturi delectus animi facere iste.", - "title": "Explicabo commodi est similique ad eius saepe." - }, - "11": { - "id": "b5", - "text": "Quas quidem eligendi eos autem alias nisi. Earum ratione sunt tempora rem recusandae.", - "title": "Magni sapiente a corporis." - }, - "12": { - "id": "b6", - "text": "Ex a corrupti nobis porro architecto porro sed. Commodi magni officiis perferendis nihil quia.", - "title": "Ratione accusantium molestiae harum iure optio." - }, - "13": { - "id": "b7", - "text": "Non eius nisi sunt aliquid. Impedit quae itaque non impedit. Voluptas maiores illum cum vero.", - "title": "Alias architecto illo debitis quasi." - }, - "14": { - "id": "b8", - "text": "Cum ex commodi excepturi iusto ea at repudiandae. Quo vitae sequi doloribus at architecto.", - "title": "Eaque nobis corporis sequi nostrum in." - }, - "2": { - "id": "aw", - "text": "Neque suscipit ratione perferendis explicabo. A sapiente occaecati mollitia voluptatem incidunt.", - "title": "Neque amet fugiat vero error nam rem quisquam." - }, - "3": { - "id": "ax", - "text": "Dolorum minus odit inventore necessitatibus rem. Enim nostrum doloremque omnis aut fugit.", - "title": "At impedit voluptas temporibus." - }, - "4": { - "id": "ay", - "text": "Debitis rerum alias culpa quos eos. Impedit sunt aut vitae sit.", - "title": "At aliquid beatae unde maiores quaerat nostrum." - }, - "5": { - "id": "az", - "text": "Corrupti vel temporibus nemo architecto. Maiores qui commodi dolores. Nobis corrupti nemo quo eum.", - "title": "Harum culpa possimus quaerat atque similique." - }, - "6": { - "id": "b0", - "text": "Praesentium quisquam nemo facere asperiores eum. Nesciunt nulla alias debitis vero.", - "title": "Consectetur similique officia magnam temporibus." - }, - "7": { - "id": "b1", - "text": "Deserunt doloribus quaerat dolore. Itaque error hic voluptate maiores deserunt amet.", - "title": "Illo ducimus soluta repellendus sed aliquid." - }, - "8": { - "id": "b2", - "text": "Adipisci vero vel dicta. Ut tempora occaecati eius dicta deleniti nisi.", - "title": "Fugiat aperiam hic perferendis amet labore." - }, - "9": { - "id": "b3", - "text": "Ipsa quisquam autem pariatur non quia. Id aliquid temporibus minus explicabo ipsum dignissimos.", - "title": "Laboriosam a ea culpa unde alias beatae." - } - }, - "users": { - "contributor": { - "username": "01CWEH7CQQJD0C95VKDNGXN434" - }, - "staff_user": { - "username": "01CWEH7FZWFKEE71ZQ4GP047KQ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_sorted[hot].json b/factory_data/channels.views.posts_test.test_list_posts_sorted[hot].json deleted file mode 100644 index 9284a7925a..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_sorted[hot].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Et doloribus assumenda quidem. Occaecati excepturi ratione consequuntur. Repellendus eius maxime reiciendis aspernatur voluptatibus dolores. Architecto facere harum beatae dolorem laborum officiis eius.\nDucimus quaerat voluptatum assumenda dignissimos accusantium. Adipisci omnis delectus sed dolorem facere corporis quasi. Sequi cupiditate quos neque totam ad error. Nihil reprehenderit laboriosam labore nemo.", - "name": "1542380831_sequi", - "public_description": "Atque aspernatur libero vel ullam commodi rem iure.", - "title": "Earum repellat ipsum assumenda." - } - }, - "posts": { - "my 2nd post": { - "id": "96", - "text": "Assumenda eveniet consequatur eos autem quos. Autem architecto iure nesciunt voluptatibus.", - "title": "Dignissimos at repellat explicabo rem earum." - }, - "my 3rd post": { - "id": "97", - "text": "Corrupti at dolorum natus neque molestiae veritatis. Ab ex vero beatae vel quaerat.", - "title": "Sapiente quidem officiis consectetur amet." - }, - "my 4th post": { - "id": "98", - "text": "Quaerat illum explicabo cumque quo hic. Ratione minima officia dolorum blanditiis ex est.", - "title": "Dolorum voluptates quisquam ab totam occaecati." - }, - "my post": { - "id": "95", - "text": "Expedita suscipit quae impedit. Ea totam et saepe. Et odio a voluptate voluptas fugiat quae.", - "title": "Ad magni quis maiores deserunt." - } - }, - "users": { - "contributor": { - "username": "01CWEGZA3NRMPJANA8PPRYS84N" - }, - "staff_user": { - "username": "01CWEGZDD3DHEYPM8GZGZGK8ND" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_sorted[new].json b/factory_data/channels.views.posts_test.test_list_posts_sorted[new].json deleted file mode 100644 index 8cc9a07bc1..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_sorted[new].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Hic alias reiciendis nihil consequatur amet. Alias ut ad ea quae harum sint labore itaque. Impedit dolor perspiciatis blanditiis. Fugit quaerat quia modi.\nNostrum vero aliquam optio officia. Soluta neque non non architecto. In assumenda aspernatur quos ipsum cum itaque.", - "name": "1542380877_totam", - "public_description": "Necessitatibus voluptatibus animi officiis tempora autem eligendi repellat.", - "title": "Nihil eos praesentium molestiae." - } - }, - "posts": { - "my 2nd post": { - "id": "9e", - "text": "Beatae minima at delectus. Illo magnam et consequatur nam facere odio ex.", - "title": "Porro odit corporis suscipit eum voluptatibus." - }, - "my 3rd post": { - "id": "9f", - "text": "Quod soluta consequatur nesciunt eos ullam. Molestias temporibus amet adipisci doloremque.", - "title": "Quis amet fugiat non." - }, - "my 4th post": { - "id": "9g", - "text": "Vero id voluptatem dicta ad. Quas et expedita autem sequi quasi ipsum. Magni aspernatur fuga ipsam.", - "title": "Quibusdam accusantium occaecati tempora corrupti." - }, - "my post": { - "id": "9d", - "text": "Debitis fugiat repudiandae iure repellat molestiae. Quod quibusdam illum eveniet perspiciatis.", - "title": "Vel magni vitae nisi vitae sequi rem veniam." - } - }, - "users": { - "contributor": { - "username": "01CWEH0Q0XQ49S7PVDNH0AS5CA" - }, - "staff_user": { - "username": "01CWEH0T9W280DZW73XPA1MB1G" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_sorted[top].json b/factory_data/channels.views.posts_test.test_list_posts_sorted[top].json deleted file mode 100644 index bedd362598..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_sorted[top].json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Ad vel ut culpa repudiandae. Perspiciatis libero reiciendis exercitationem tenetur enim odit nihil.\nIllo repellat ipsam consequatur possimus enim porro ex. Quaerat libero possimus ut asperiores. Distinctio tempore molestiae minima velit. Officia illum ratione dolorum ipsum.\nCulpa error aperiam doloribus dolores. Nesciunt ut dicta praesentium dolore quos praesentium. Et fugiat voluptate sed aliquam.", - "name": "1542380854_mollitia", - "public_description": "Odit quo eveniet minus vitae quod.", - "title": "Officiis animi tempora aperiam qui quisquam in." - } - }, - "posts": { - "my 2nd post": { - "id": "9a", - "text": "A vel accusamus provident. Corporis dolor labore culpa.", - "title": "At atque magnam earum ratione omnis culpa rem." - }, - "my 3rd post": { - "id": "9b", - "text": "Aspernatur voluptatum distinctio nostrum quos. Beatae tempora quam beatae quaerat.", - "title": "Quia culpa amet quidem illo." - }, - "my 4th post": { - "id": "9c", - "text": "Amet ea excepturi minima neque illo. Nobis maxime suscipit dolor earum voluptas.", - "title": "Laborum quaerat officiis velit explicabo maiores." - }, - "my post": { - "id": "99", - "text": "Natus quasi soluta nisi architecto quo nihil. Labore totam quas nostrum aliquam ex.", - "title": "Occaecati magnam delectus nisi." - } - }, - "users": { - "contributor": { - "username": "01CWEH00N5E0PR2CH2RXFJEVVC" - }, - "staff_user": { - "username": "01CWEH03Y5CRV488MZ25G3E0WC" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_list_posts_stickied.json b/factory_data/channels.views.posts_test.test_list_posts_stickied.json deleted file mode 100644 index a5b4d286a8..0000000000 --- a/factory_data/channels.views.posts_test.test_list_posts_stickied.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Mollitia commodi ut quam aliquam. Beatae quas magnam veritatis numquam laborum sed repellat. Soluta dolor libero nulla ipsa accusamus hic optio. Autem adipisci deserunt ipsam sint vero.\nFugit deleniti amet corporis. Repellendus ab molestias illo. Laboriosam amet corporis ipsa unde mollitia. Qui fuga qui ab iusto laudantium.", - "name": "1542380900_impedit", - "public_description": "Voluptates fugit ab delectus ex saepe veritatis molestias.", - "title": "Repudiandae culpa molestias non libero deleniti." - } - }, - "posts": { - "great post!0": { - "id": "9h", - "text": "Nemo atque dolore aut sed quos. Sint aliquam magnam dolores.", - "title": "Nostrum assumenda optio aspernatur." - }, - "great post!1": { - "id": "9i", - "text": "Minus tempora laborum accusantium necessitatibus vel. Adipisci totam aspernatur iure possimus vero.", - "title": "Asperiores illum doloremque vero." - }, - "great post!2": { - "id": "9j", - "text": "Quidem laboriosam assumenda error laudantium. Nisi amet voluptatibus vel id cum occaecati.", - "title": "Fuga ab qui dignissimos quo nisi odit." - }, - "great post!3": { - "id": "9k", - "text": "Animi deleniti occaecati quasi. Esse nulla provident adipisci minus.", - "title": "Distinctio rem recusandae assumenda modi." - } - }, - "users": { - "contributor": { - "username": "01CWEH1DEM3FW5FFZKHZNZCGCM" - }, - "staff_user": { - "username": "01CWEH1GPXJRG341F2AD1Z297B" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_patch_article_validate_cover_image.json b/factory_data/channels.views.posts_test.test_patch_article_validate_cover_image.json deleted file mode 100644 index da5949e258..0000000000 --- a/factory_data/channels.views.posts_test.test_patch_article_validate_cover_image.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Impedit recusandae et totam. Rem odit iure doloremque cupiditate in. Provident repellat ex ratione minus distinctio eum dicta. Minus aut ad dignissimos sunt nemo odit ex qui.\nVoluptate labore inventore animi. Magni provident possimus molestiae corrupti eos.\nDolores excepturi architecto odio laudantium aliquam ipsum asperiores aliquam. Nesciunt labore reprehenderit tenetur cupiditate impedit consectetur labore error. Labore nostrum consequuntur numquam perspiciatis tempore eius.", - "name": "1545309153_7_optio", - "public_description": "Assumenda libero illum laboriosam aperiam assumenda hic.", - "title": "Eveniet voluptatum maiores inventore in iusto." - } - }, - "users": { - "contributor": { - "username": "01CZ5SMM4HWVZBKX8W7MQFGYVT" - }, - "staff_user": { - "username": "01CZ5SMQDTAK99K3GVEYFDTQY0" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_post_create_post_new_meta.json b/factory_data/channels.views.posts_test.test_post_create_post_new_meta.json deleted file mode 100644 index 2db94eff84..0000000000 --- a/factory_data/channels.views.posts_test.test_post_create_post_new_meta.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Court return break address final act. Bring physical cost set among.\nNumber but follow space pick. Chair heart around once cover once system. Technology program activity receive American nor door.\nMorning have leader travel. I arrive ok item water. Door major ever major his activity decide.\nCommunity work success performance morning participant affect. Should manager card spring.\nProduction clearly network building able message.", - "name": "1595975729_1_special", - "public_description": "Present student voice certainly child social wall shake.", - "title": "Yard beyond final order stock." - } - }, - "users": { - "contributor": { - "username": "01EEBS1SD0TWP40SAQHC1Z8JGQ" - }, - "staff_user": { - "username": "01EEBS1WXZCWYCME136DPP9SZF" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_post_create_post_no_thumbnail.json b/factory_data/channels.views.posts_test.test_post_create_post_no_thumbnail.json deleted file mode 100644 index f45b9703f8..0000000000 --- a/factory_data/channels.views.posts_test.test_post_create_post_no_thumbnail.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Ok scientist politics section political let.\nDifferent wonder agree garden. Of citizen part buy. More themselves painting several go sort measure. Factor rock article trip form walk minute.\nThreat share candidate current late those understand. Explain pressure everything choice tonight base though.\nWonder way building day page. Not indicate possible both table five.\nMake different now claim fall.\nPerhaps by keep lay behind produce computer. My physical letter. Different street support imagine.", - "name": "1595975451_2_military", - "public_description": "Human operation whom house pretty sign. Line career food indicate shoulder.", - "title": "Father green stock return more remember charge." - } - }, - "users": { - "contributor": { - "username": "01EEBRSAAADXC3T1N25DKFD7YK" - }, - "staff_user": { - "username": "01EEBRSDMMKF8PZFBHR3291WER" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_subscribe_post[False-False-0-1].json b/factory_data/channels.views.posts_test.test_subscribe_post[False-False-0-1].json deleted file mode 100644 index 80d114c1c7..0000000000 --- a/factory_data/channels.views.posts_test.test_subscribe_post[False-False-0-1].json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Saepe quae molestiae perferendis deserunt necessitatibus architecto. Est error corporis doloribus distinctio cupiditate quae. Adipisci commodi qui ea deserunt labore. Id vel non quia culpa.\nDolores quasi minima numquam deleniti rem. Minima perferendis quae eveniet deleniti voluptates. Deserunt illum sit vero ipsum officiis quasi id quidem.", - "name": "1535134525_quo", - "public_description": "A iure quia ex sit voluptates. Cupiditate reiciendis ad velit quo perspiciatis.", - "title": "Odit corporis dolor architecto ducimus." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "3c", - "post_id": "47", - "text": "Deleniti molestiae quas fugiat adipisci ipsam. Totam fugit assumenda neque nemo." - } - }, - "posts": { - "just a post": { - "id": "47", - "text": "Minima dolores natus impedit corporis placeat. Quasi quaerat alias totam nam harum eveniet rerum.", - "title": "Perferendis consequuntur error commodi sint." - } - }, - "users": { - "contributor": { - "username": "01CNPJBX10XSED0SKX3TPVTF8Z" - }, - "staff_user": { - "username": "01CNPJBPNHW3W5FNR2ZGXDEJWK" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_subscribe_post[False-True-1-2].json b/factory_data/channels.views.posts_test.test_subscribe_post[False-True-1-2].json deleted file mode 100644 index 5ef1eb3089..0000000000 --- a/factory_data/channels.views.posts_test.test_subscribe_post[False-True-1-2].json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quae commodi sapiente rem facilis ipsum veniam. Quibusdam ea id nesciunt dicta commodi. Officiis facilis nihil excepturi impedit impedit dolor atque molestias. Perferendis porro esse placeat temporibus eligendi repudiandae impedit. Iusto ut suscipit omnis iste voluptate ratione tempora.", - "name": "1535134508_facilis", - "public_description": "Amet reprehenderit ab numquam odio. Quia id debitis pariatur. Omnis beatae at odio odio sunt.", - "title": "Doloribus tempora beatae illo quia." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "3b", - "post_id": "46", - "text": "Aperiam nisi et excepturi molestias quisquam. Mollitia rerum eveniet nobis velit in." - } - }, - "posts": { - "just a post": { - "id": "46", - "text": "Dignissimos dignissimos quas consequatur facilis. Repellat consequuntur earum eligendi quo dolor.", - "title": "Quisquam ipsum dolorum minus officiis." - } - }, - "users": { - "contributor": { - "username": "01CNPJBCZMNXF2SH6REXCMEEPY" - }, - "staff_user": { - "username": "01CNPJB6MV6D858J1RG6KEMYVC" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_subscribe_post[True-False-1-1].json b/factory_data/channels.views.posts_test.test_subscribe_post[True-False-1-1].json deleted file mode 100644 index b4c21ba09d..0000000000 --- a/factory_data/channels.views.posts_test.test_subscribe_post[True-False-1-1].json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Aut recusandae debitis deserunt nesciunt facere perferendis. Sint voluptatum ut voluptatibus fugit provident dolor. Quibusdam architecto consequuntur ipsam alias illum ut quam delectus. Perferendis beatae beatae ullam.\nLaudantium quod adipisci id itaque debitis dolorem assumenda. Quod voluptate perferendis ab recusandae harum enim labore perferendis. Maiores dolorum et labore in cupiditate ea. Corrupti officiis aperiam error voluptatibus.", - "name": "1535134476_labore", - "public_description": "Velit id soluta perferendis. Nam doloremque atque temporibus amet asperiores modi.", - "title": "Harum voluptates unde sunt nisi soluta." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "39", - "post_id": "44", - "text": "Quam veniam minus tempora dolore consectetur exercitationem. Neque alias nemo asperiores non." - } - }, - "posts": { - "just a post": { - "id": "44", - "text": "Vitae nemo at modi deserunt. Asperiores laborum vero eum aut accusamus voluptas rerum eos.", - "title": "Consectetur voluptatibus eos rerum et." - } - }, - "users": { - "contributor": { - "username": "01CNPJACZ7A3EPJD9YV1KEGQ03" - }, - "staff_user": { - "username": "01CNPJA6NVC06BCEBG0XKZAMHS" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_subscribe_post[True-True-2-2].json b/factory_data/channels.views.posts_test.test_subscribe_post[True-True-2-2].json deleted file mode 100644 index 0aa9b2ed4f..0000000000 --- a/factory_data/channels.views.posts_test.test_subscribe_post[True-True-2-2].json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Quaerat neque cum consequatur animi sequi. Aperiam necessitatibus fugit sint dignissimos. In minima atque aliquid provident ratione error. Itaque rem cumque sint molestias minima aut.\nNemo impedit doloremque eaque odio. Laborum distinctio quia totam ut nesciunt assumenda est. Soluta dicta laudantium doloremque quaerat beatae.", - "name": "1535134492_saepe", - "public_description": "Perferendis eligendi omnis a quidem. Laborum modi itaque qui officia vel.", - "title": "Ipsa cum corporis praesentium fugit tempore vero." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "3a", - "post_id": "45", - "text": "Modi beatae soluta nihil optio nihil. Voluptas sint molestiae quos cupiditate voluptatibus." - } - }, - "posts": { - "just a post": { - "id": "45", - "text": "Qui totam distinctio dolorum accusantium. Nobis blanditiis aliquid atque est.", - "title": "Provident eius voluptates sequi." - } - }, - "users": { - "contributor": { - "username": "01CNPJAWXK2C51C1MKPJDXXWP1" - }, - "staff_user": { - "username": "01CNPJAPJG5HNFR391J3Y96FAS" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_unsubscribe_post.json b/factory_data/channels.views.posts_test.test_unsubscribe_post.json deleted file mode 100644 index 2c686d4f16..0000000000 --- a/factory_data/channels.views.posts_test.test_unsubscribe_post.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Vitae consectetur officiis distinctio reprehenderit perspiciatis. Culpa repellat ratione voluptates commodi consequatur. Omnis amet exercitationem ratione iure. Porro sunt expedita asperiores labore.\nCulpa quos nisi reprehenderit rerum. Eveniet at perspiciatis nemo. Ullam explicabo a rerum doloribus ut dolores adipisci. Maxime iure inventore occaecati facilis unde. Totam quam in voluptatem molestiae labore.", - "name": "1535134541_et", - "public_description": "Illo praesentium officia quod in doloribus. Sint consequatur maxime dolore id eum.", - "title": "Fuga doloribus consequuntur molestiae dicta." - } - }, - "posts": { - "just a post": { - "id": "48", - "text": "Sit odit tempora excepturi dolores. Neque ipsam itaque occaecati. Ipsam amet labore nulla tempore.", - "title": "Quia minus magnam ipsum magnam nihil." - } - }, - "users": { - "contributor": { - "username": "01CNPJCD0QQBXR9Q1FKGPD92H5" - }, - "staff_user": { - "username": "01CNPJC6NMSMRX7H99V0CSWQQX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_update_article_cover.json b/factory_data/channels.views.posts_test.test_update_article_cover.json deleted file mode 100644 index a0f0db5a44..0000000000 --- a/factory_data/channels.views.posts_test.test_update_article_cover.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Firm go near human address quite million. Story or third.\nUnit summer agency can religious. Executive social true nearly yes may animal. Together serve run technology catch music.\nLive expert clearly begin future. Entire either simply. Six agent beautiful before doctor partner able.\nPolice yard future offer. Woman reflect home whom.\nTake goal quite task mouth smile.\nGarden total father wind put attorney just word. Trial teach such laugh east management third. Join various girl important media.", - "name": "1595974547_30_blood", - "public_description": "Modern perform voice war center.", - "title": "Institution task heart hour rise." - } - }, - "posts": { - "post": { - "article_content": [ - { - "node": "text", - "value": "Three where responsibility recent visit so. Score record relate push.\nOver southern likely fish sense. Election million role beautiful cover save staff how. Television read history sing." - }, - { - "node": "text", - "value": "Science ask office rate believe. Certainly various this out fly analysis threat.\nSchool board because upon perform arrive change. Many would act popular. President put rather." - }, - { - "node": "text", - "value": "Level raise onto last small.\nLoss than onto most cost world happen treat. According magazine go community buy after huge." - } - ], - "id": "12", - "title": "Want human political stay rich way establish." - } - }, - "users": { - "contributor": { - "username": "01EEBQXQJM45JXKJ82CRSMA5TX" - }, - "staff_user": { - "username": "01EEBQXTSTNDRJGYXXSKMH9CD8" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.posts_test.test_update_article_post.json b/factory_data/channels.views.posts_test.test_update_article_post.json deleted file mode 100644 index 7f3c43933e..0000000000 --- a/factory_data/channels.views.posts_test.test_update_article_post.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Allow list girl ability. Total under try subject rock cell. Training season recent share condition fight fear.\nHeart all real accept citizen. Herself much decade story those. Condition total goal list couple price happen his.\nSeries nothing room style often bank. Question bit ago somebody.\nLose discussion performance tough discussion as well. Under guess decade plan animal.\nInterest local across glass accept. Character plan generation though tend.\nFast share own almost.", - "name": "1595974534_29_and", - "public_description": "Later college health teach step discussion. Reflect drive up western.", - "title": "Eight those should sign watch rock Congress." - } - }, - "posts": { - "post": { - "article_content": [ - { - "node": "text", - "value": "On out create old especially. Appear support task pattern. Meeting from learn.\nProject single customer key. Tree expert teacher. War air notice prevent." - }, - { - "node": "text", - "value": "Whether soldier toward girl relationship.\nStuff within get indeed tax score form his. Heavy along to film. Focus various evidence free lead bill vote." - }, - { - "node": "text", - "value": "Just information glass PM together. Civil figure successful level as subject. Already at might important skin coach. Step now clearly civil particularly." - } - ], - "id": "11", - "title": "Suggest order after mean painting." - } - }, - "users": { - "contributor": { - "username": "01EEBQXARTDD9YGQXE1Z08Y4Y7" - }, - "staff_user": { - "username": "01EEBQXDZPKES5XBPK019CHXPY" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_list_reports.json b/factory_data/channels.views.reports_test.test_list_reports.json deleted file mode 100644 index 48566d8261..0000000000 --- a/factory_data/channels.views.reports_test.test_list_reports.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Suscipit quas possimus ipsa optio exercitationem explicabo modi. Tempore reprehenderit quibusdam natus harum iusto quidem. Et nulla totam est maxime.\nAsperiores quia doloremque explicabo optio necessitatibus repellat nulla aut. Facilis deserunt suscipit non vel. Quam praesentium alias iusto porro voluptatem itaque quaerat fugit. Hic laboriosam asperiores porro voluptates suscipit neque.", - "name": "1542383541_esse", - "public_description": "Nulla consectetur eius reiciendis alias asperiores.", - "title": "Veniam ratione nam harum qui." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "8b", - "post_id": "bf", - "text": "Itaque placeat dolor fuga ullam voluptatem beatae. Unde cumque ut non." - } - }, - "posts": { - "post": { - "id": "bf", - "text": "Possimus quod inventore minima. Itaque hic ex consectetur accusantium qui minus.", - "title": "Facilis ab atque quae commodi." - } - }, - "users": { - "contributor": { - "username": "01CWEKJ9YE456S8YA76XZ0D4SS" - }, - "staff_user": { - "username": "01CWEKJ3JXRWWGMYEXDEHFQ8CR" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_list_reports_empty.json b/factory_data/channels.views.reports_test.test_list_reports_empty.json deleted file mode 100644 index ac2b73dd82..0000000000 --- a/factory_data/channels.views.reports_test.test_list_reports_empty.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Sint eius animi consectetur laudantium. Vel quae nobis placeat quam ut. Aperiam iste dicta natus rerum tenetur voluptatum. Aspernatur laudantium dicta pariatur quos asperiores.\nPerspiciatis alias ea veritatis. Rem ab atque nemo molestiae quam. Et voluptatibus aut doloribus. Neque pariatur aliquid reiciendis eius corporis rerum.", - "name": "1535134627_nesciunt", - "public_description": "Nulla nemo beatae sapiente. Non modi magnam provident id ullam.", - "title": "Nihil perferendis molestiae maxime aut." - } - }, - "users": { - "staff_user": { - "username": "01CNPJETS82D74DKDSKSYA66K7" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_patch_channel_noauth.json b/factory_data/channels.views.reports_test.test_patch_channel_noauth.json deleted file mode 100644 index 53e23171b5..0000000000 --- a/factory_data/channels.views.reports_test.test_patch_channel_noauth.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Provident at id quis inventore veritatis natus eius reprehenderit. A quos optio pariatur odit temporibus. Ullam voluptates sed animi dolore sint vel ipsum. Facilis veniam ea similique omnis.\nRatione unde inventore deleniti dolor. Reiciendis sed quia quod dolore tempore dignissimos rem labore.", - "name": "1535134644_necessitat", - "public_description": "Perferendis odit repudiandae perferendis culpa. Molestias nesciunt debitis ipsam.", - "title": "Doloremque pariatur quaerat molestias aperiam." - } - }, - "users": { - "staff_user": { - "username": "01CNPJFAVR2VPZGJ0MF12229XV" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_patch_channel_nonstaff.json b/factory_data/channels.views.reports_test.test_patch_channel_nonstaff.json deleted file mode 100644 index 7204e6daf8..0000000000 --- a/factory_data/channels.views.reports_test.test_patch_channel_nonstaff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Enim enim quod ducimus reiciendis molestiae qui. Nulla eligendi hic nesciunt nisi blanditiis ab nesciunt. Earum quod nesciunt earum sequi.\nAtque libero error et illo. Ut assumenda quas ea. Magni possimus vero maxime molestiae corrupti. Voluptatum recusandae sunt quae vel.\nQuibusdam reprehenderit fugiat quam id rem eaque. Molestiae consequatur iusto id. Voluptatibus accusantium repudiandae rem minima voluptatum. Quae tempore suscipit dolor a eius numquam. Alias esse deserunt ratione libero.", - "name": "1535134637_numquam", - "public_description": "Temporibus suscipit pariatur non eligendi beatae maxime. Labore facilis provident rerum molestiae.", - "title": "Eveniet id vitae maxime ab sit sapiente aliquam." - } - }, - "users": { - "contributor": { - "username": "01CNPJF14YVZQZ3AST8WDYHEZ6" - }, - "staff_user": { - "username": "01CNPJF4DTJH6Q7JS8S99ENZWW" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_report_anonymous.json b/factory_data/channels.views.reports_test.test_report_anonymous.json deleted file mode 100644 index 9404895de1..0000000000 --- a/factory_data/channels.views.reports_test.test_report_anonymous.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Sed ex odio iste doloribus optio voluptatem. Error doloremque veniam nisi placeat fugit consectetur. Maxime nulla facere sapiente aliquid. Sit iste odit autem error exercitationem sint ad ipsam.\nQuisquam nemo ipsum voluptatem officiis vero tenetur. Ipsa culpa nesciunt cupiditate minima necessitatibus. Non eveniet rem autem suscipit labore occaecati.", - "name": "1535134585_quae", - "public_description": "Cum earum ab quod placeat repellat. Quod sunt rerum pariatur. Nam enim odit at nesciunt.", - "title": "Corrupti atque suscipit ipsa nihil consequatur." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "3e", - "post_id": "4b", - "text": "Aut fuga numquam eum in. Fugit asperiores quaerat quasi itaque. Atque sapiente esse facilis ullam." - } - }, - "posts": { - "post": { - "id": "4b", - "text": "A explicabo dicta magnam a illum blanditiis. Cum eum inventore aut sapiente.", - "title": "Aperiam velit veritatis ab doloremque molestiae." - } - }, - "users": { - "staff_user": { - "username": "01CNPJDH5HS290ZD5KPVBZ4VT7" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_report_comment.json b/factory_data/channels.views.reports_test.test_report_comment.json deleted file mode 100644 index 38221d6fa0..0000000000 --- a/factory_data/channels.views.reports_test.test_report_comment.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Incidunt iure quibusdam qui quasi earum quas. Laborum eaque tempore nihil quos. Reprehenderit ipsa et quasi necessitatibus repellendus quibusdam exercitationem. Dolore beatae temporibus nemo ipsum asperiores dicta dicta.\nVoluptatum laborum enim amet non rem. Sint reprehenderit aut id officiis culpa. Ipsam perspiciatis exercitationem voluptatem molestias. Recusandae nam porro cum.", - "name": "1535134569_in", - "public_description": "Magnam assumenda minima quisquam porro. Consequuntur pariatur rem quibusdam saepe.", - "title": "Asperiores ut explicabo impedit pariatur." - } - }, - "comments": { - "comment": { - "children": [], - "comment_id": null, - "id": "3d", - "post_id": "4a", - "text": "Fugiat quas deserunt nihil exercitationem eos maxime sed. Fugit nemo accusamus vero accusantium." - } - }, - "posts": { - "post": { - "id": "4a", - "text": "Animi totam ad ullam quas repellat. Amet modi doloremque cum voluptatum temporibus accusamus.", - "title": "Sint sed facilis ea cumque rem quasi." - } - }, - "users": { - "contributor": { - "username": "01CNPJD7M53P1BNXWQC5MJBXH7" - }, - "staff_user": { - "username": "01CNPJD18V7W3WD4K05DKS4P1D" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.reports_test.test_report_post.json b/factory_data/channels.views.reports_test.test_report_post.json deleted file mode 100644 index 6da110e686..0000000000 --- a/factory_data/channels.views.reports_test.test_report_post.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Hic rem earum ipsum. Recusandae iusto non itaque quia. Maxime odio ut vitae enim explicabo.\nMagnam earum esse nemo odio nam corrupti totam. Consequuntur ex accusantium eos placeat neque.\nNumquam tempore optio repudiandae magnam quam rem deleniti. Odit ipsam veritatis animi dolor necessitatibus quae earum sequi. Voluptatum atque fugit perferendis eaque. Ipsum tempore eaque odio corporis.\nOdio error officia tempora corrupti perspiciatis. Sunt ex laborum officiis fugit labore.", - "name": "1535134555_officia", - "public_description": "Numquam quos laborum nostrum at eum maiores. Harum quisquam odio soluta nisi quas.", - "title": "Rem facere facere nobis." - } - }, - "posts": { - "post": { - "id": "49", - "text": "At odio corrupti culpa nam sint architecto. Enim neque optio ab praesentium.", - "title": "Accusamus impedit voluptas deleniti praesentium." - } - }, - "users": { - "contributor": { - "username": "01CNPJCTF7NXVZVNSGRC27ACE9" - }, - "staff_user": { - "username": "01CNPJCM4GJF26RDD1WXD17Q47" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber.json b/factory_data/channels.views.subscribers_test.test_add_subscriber.json deleted file mode 100644 index e8b454f48e..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKW30Y9AY335MMFEE8E0Y" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber[1].json b/factory_data/channels.views.subscribers_test.test_add_subscriber[1].json deleted file mode 100644 index c89a218ffa..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber[1].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Quam vel aliquid sequi ut enim. Ea voluptatem quasi in. Magni nemo sint maiores. Nihil maiores atque commodi dolorum asperiores atque. Rem quam quos nostrum magnam.\nExercitationem sint voluptatem sit vero. Impedit officiis deleniti quae rem officia asperiores. Itaque excepturi quo beatae quam natus fuga soluta. Tempore fugit placeat eos odit.", - "name": "1542147342_reprehende", - "public_description": "Dolor expedita similique debitis voluptatem facere itaque.", - "title": "Illo perferendis adipisci suscipit modi." - } - }, - "users": { - "contributor": { - "username": "01CW7J9WZT8PN8KSMPS293ZB4E" - }, - "staff_user": { - "username": "01CW7J9SQKAGJEXCZ8GB0V9Z6S" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber[2].json b/factory_data/channels.views.subscribers_test.test_add_subscriber[2].json deleted file mode 100644 index 30e751ab58..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber[2].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Necessitatibus tempore similique nam eos voluptatum asperiores quae. Impedit et distinctio reprehenderit sint consequatur exercitationem dolorem error. Ad animi eveniet alias culpa ab quisquam ut. Animi officia consequatur odio temporibus quo facilis.\nPossimus iste maiores aliquid minima quidem sed praesentium. Iure in doloremque voluptatem expedita excepturi quae. Corrupti deserunt a nobis libero.", - "name": "1542147352_distinctio", - "public_description": "Ex itaque minus culpa consectetur ea esse dignissimos dolorum.", - "title": "Eos dolor illo animi consequuntur." - } - }, - "users": { - "contributor": { - "username": "01CW7JA6QRHJE70J1BR4YZNPSW" - }, - "staff_user": { - "username": "01CW7JA3DECYZ39J99C64CW911" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber_again.json b/factory_data/channels.views.subscribers_test.test_add_subscriber_again.json deleted file mode 100644 index 224ba02172..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber_again.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKW4B2641RJX8BH91KC9Q" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber_anonymous.json b/factory_data/channels.views.subscribers_test.test_add_subscriber_anonymous.json deleted file mode 100644 index b93a89aa39..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber_anonymous.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Mollitia illum quas fugit natus odio harum consequatur. Atque magni accusantium velit quia. Ullam occaecati minima culpa nesciunt veniam praesentium. Id distinctio harum a natus necessitatibus voluptas voluptate.\nCum minus mollitia dolores voluptatum maxime totam est. Vero maxime beatae unde quis dolore provident. Ipsa blanditiis labore nisi odio rem repellendus ut animi.", - "name": "1542147362_repellat", - "public_description": "Facilis odit dolores mollitia itaque ut fugiat.", - "title": "Aperiam vitae officia neque." - } - }, - "users": { - "contributor": { - "username": "01CW7JAGQ7DM3ZGS2X5C1EFTPD" - }, - "staff_user": { - "username": "01CW7JADF3Z85PFAMT9F6PRQK0" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber_forbidden.json b/factory_data/channels.views.subscribers_test.test_add_subscriber_forbidden.json deleted file mode 100644 index ae022a1715..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber_forbidden.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Officiis explicabo deserunt aut nesciunt praesentium adipisci optio esse. Libero quidem consectetur iusto. Cumque aspernatur maiores ut voluptate provident aliquid rerum.\nPraesentium amet consequuntur quasi amet neque ipsam esse. Neque veritatis ipsam ullam omnis aliquid. Aut magnam dolorum magnam accusantium.\nEarum ea nostrum atque velit labore. Quis suscipit ullam pariatur voluptas ad ea voluptate. Neque blanditiis doloremque autem corrupti accusantium. Odio adipisci ut blanditiis cum optio.", - "name": "1547499296_115_saepe", - "public_description": "Natus unde eos saepe tempore laudantium nam exercitationem dolores.", - "title": "Repellat ullam quidem sint." - } - }, - "users": { - "contributor": { - "username": "01D172ARDZG7Q2X8M2TEAV3SBB" - }, - "staff_user": { - "username": "01D172AHZRF3Y1F5633EG5AHB7" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_add_subscriber_mod.json b/factory_data/channels.views.subscribers_test.test_add_subscriber_mod.json deleted file mode 100644 index 5088efaf15..0000000000 --- a/factory_data/channels.views.subscribers_test.test_add_subscriber_mod.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Dolorum corporis labore minima dolore. Culpa inventore eum accusamus similique similique voluptates cupiditate.\nConsequuntur dignissimos blanditiis perspiciatis sequi ad. Laudantium incidunt nisi voluptatem eos totam ex. Sapiente cupiditate pariatur deleniti rem voluptate consectetur dolores. Mollitia natus exercitationem sed non quos vel omnis. Illum praesentium mollitia doloribus quam accusantium deleniti debitis.", - "name": "1536938059_natus", - "public_description": "Voluptatibus cupiditate inventore repellat dolores. Eveniet dolore laboriosam autem alias corrupti.", - "title": "Iure consectetur possimus molestias doloremque." - } - }, - "users": { - "new_mod_user": { - "username": "01CQCABD7C0AYE733CKG73FM1Z" - }, - "new_sub_user": { - "username": "01CQCABGEG379XRANA5GVK9VK7" - }, - "staff_user": { - "username": "01CQCAB6P6ZXHVQXM3ZEDBDQZV" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_detail_subscriber.json b/factory_data/channels.views.subscribers_test.test_detail_subscriber.json deleted file mode 100644 index d2aafea5a5..0000000000 --- a/factory_data/channels.views.subscribers_test.test_detail_subscriber.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Vitae placeat inventore ipsum eveniet. Aperiam est placeat molestias quod esse. Debitis nostrum iusto a eius. Modi nihil soluta aspernatur sed.\nFacere ratione quaerat pariatur necessitatibus facere natus sit. Error ab et hic nesciunt pariatur. Maiores ex quas odio occaecati hic expedita sint quae.\nDoloremque culpa dicta blanditiis molestiae doloribus. Saepe laudantium alias error et consequuntur itaque. Id consequuntur culpa voluptates architecto hic.", - "name": "1535134655_odio", - "public_description": "Ad ratione dolore ad porro quia maiores rem asperiores. Nesciunt unde perspiciatis adipisci nam.", - "title": "Quis at soluta perspiciatis amet accusamus." - } - }, - "users": { - "contributor": { - "username": "01CNPJFJ40CQ18CS13JGC2NK40" - }, - "staff_user": { - "username": "01CNPJFNDKRC5JGMB00CZGDWHZ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_detail_subscriber_anonymous.json b/factory_data/channels.views.subscribers_test.test_detail_subscriber_anonymous.json deleted file mode 100644 index 25e6995e4f..0000000000 --- a/factory_data/channels.views.subscribers_test.test_detail_subscriber_anonymous.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Rerum temporibus sed quibusdam consectetur quisquam occaecati suscipit. Quo tenetur ducimus animi voluptate earum et odio. Reprehenderit magni illo atque impedit nisi incidunt. Rerum cum beatae maiores nihil amet soluta.\nAnimi atque qui quos voluptatum repellat nulla aspernatur. Quae delectus molestiae neque officiis.", - "name": "1542146424_ipsam", - "public_description": "Repudiandae praesentium sapiente dolorum ratione sunt eum.", - "title": "Recusandae quisquam eligendi voluptate enim fuga." - } - }, - "users": { - "contributor": { - "username": "01CW7HDWR6VANCFBMVCB8X3A45" - }, - "staff_user": { - "username": "01CW7HDSF9FAT27TW1ZHS1BZRJ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_detail_subscriber_missing.json b/factory_data/channels.views.subscribers_test.test_detail_subscriber_missing.json deleted file mode 100644 index 8033d86af2..0000000000 --- a/factory_data/channels.views.subscribers_test.test_detail_subscriber_missing.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Earum perferendis expedita consectetur. Eos facere voluptatibus laudantium alias.\nEnim impedit rerum earum. Vel asperiores debitis eligendi aperiam. Amet nobis vero atque harum consectetur. Facere cum quas reiciendis nesciunt sequi voluptas.\nQuidem impedit voluptatum sit id consectetur. Enim nobis consequatur libero beatae ex consequatur voluptatem.\nTempora totam molestias illo perferendis explicabo. Possimus rerum voluptatum eius odio. Neque eligendi vitae fugiat fugit dolorem.", - "name": "1535134665_vel", - "public_description": "Architecto quibusdam cum iste. Minima beatae quod eaque maiores ab vel qui.", - "title": "Aliquid earum dolorum architecto adipisci." - } - }, - "users": { - "contributor": { - "username": "01CNPJFVWRX89JDWZX9FW5MX6E" - }, - "staff_user": { - "username": "01CNPJFZ49RBAXF9BZBMWVQ9KX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_list_subscribers.json b/factory_data/channels.views.subscribers_test.test_list_subscribers.json deleted file mode 100644 index 058b373c52..0000000000 --- a/factory_data/channels.views.subscribers_test.test_list_subscribers.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Eligendi optio sunt provident suscipit veniam unde. Repellat saepe id minima molestiae numquam ducimus cum.\nDeserunt esse veniam sapiente numquam eveniet illum facilis. Officiis iste quo quod consequuntur. Iste optio veniam eveniet optio.\nEsse soluta quae dolorum incidunt sequi molestiae. Doloribus delectus officiis molestias ex. Libero cum ea quibusdam asperiores. Accusamus laborum cumque nemo ipsam ea corrupti dolorum.", - "name": "1542396725_sint", - "public_description": "Perspiciatis qui esse dolorem laboriosam.", - "title": "Quae sapiente dolore beatae suscipit." - } - }, - "users": { - "staff_user": { - "username": "01CWF04EQC40Z680Y42KD877BH" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_remove_subscriber.json b/factory_data/channels.views.subscribers_test.test_remove_subscriber.json deleted file mode 100644 index 66d9396b2a..0000000000 --- a/factory_data/channels.views.subscribers_test.test_remove_subscriber.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKWGE32QAWMK1DM73FZ83" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_remove_subscriber[1].json b/factory_data/channels.views.subscribers_test.test_remove_subscriber[1].json deleted file mode 100644 index 7241db0319..0000000000 --- a/factory_data/channels.views.subscribers_test.test_remove_subscriber[1].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Laudantium temporibus numquam similique tempora laboriosam corporis sit. Inventore nam sint provident voluptate. Iure at perspiciatis rem accusamus omnis sit. Eius quas ex dolore corrupti quidem ab.\nSimilique maiores ullam sit minus soluta magnam. Molestiae quasi deleniti non facere doloribus suscipit.\nQuos culpa perferendis quaerat. Eum ad error possimus numquam quod. Molestiae delectus impedit in nesciunt temporibus esse natus fuga.", - "name": "1542205997_distinctio", - "public_description": "Vitae tempora iste repellendus nobis repellat nam illo quisquam.", - "title": "Recusandae temporibus quam vero quas odio porro." - } - }, - "users": { - "contributor": { - "username": "01CW9A7X1G6M1VJPAASQF3WM1A" - }, - "staff_user": { - "username": "01CW9A7SQHT52QBSTCV7BCTSBQ" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_remove_subscriber[2].json b/factory_data/channels.views.subscribers_test.test_remove_subscriber[2].json deleted file mode 100644 index aaccbb2db2..0000000000 --- a/factory_data/channels.views.subscribers_test.test_remove_subscriber[2].json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Illo inventore nulla accusamus rerum iste maiores. Soluta sequi voluptates adipisci vel laudantium. Veniam repellendus dolorem expedita perferendis tempore beatae dignissimos.\nQuasi eligendi delectus animi. Voluptates nulla illum labore occaecati aspernatur eius quidem. Accusamus beatae consequatur rem ullam accusantium reprehenderit ipsam. Doloribus facere quasi placeat vel velit earum.", - "name": "1542206007_et", - "public_description": "Magni maxime delectus pariatur ratione. Eos aut nisi beatae eos.", - "title": "Voluptatum qui hic dignissimos qui distinctio id." - } - }, - "users": { - "contributor": { - "username": "01CW9A86SY9SXA0070K682CE65" - }, - "staff_user": { - "username": "01CW9A83HBFD1TFGVVTM6SJQGX" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_remove_subscriber_again.json b/factory_data/channels.views.subscribers_test.test_remove_subscriber_again.json deleted file mode 100644 index bc4df0139b..0000000000 --- a/factory_data/channels.views.subscribers_test.test_remove_subscriber_again.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "users": { - "staff_user": { - "username": "01BYXNKWHVY9GRCNY7P1YJDMRA" - } - } -} \ No newline at end of file diff --git a/factory_data/channels.views.subscribers_test.test_remove_subscriber_anonymous.json b/factory_data/channels.views.subscribers_test.test_remove_subscriber_anonymous.json deleted file mode 100644 index 8be03ed717..0000000000 --- a/factory_data/channels.views.subscribers_test.test_remove_subscriber_anonymous.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "channels": { - "public_channel": { - "channel_type": "public", - "description": "Perspiciatis adipisci excepturi officia commodi. Iste dicta sit incidunt aperiam unde recusandae necessitatibus at. Vitae omnis at inventore qui cumque aliquam. Et rem explicabo rem quis quia rerum expedita.\nOdio illo in consequuntur. Voluptates libero a beatae corrupti maiores debitis quia similique. Ducimus omnis neque commodi ex eligendi sed expedita et. Ad ullam minus deserunt facilis.", - "name": "1542387391_consequunt", - "public_description": "Doloremque harum recusandae ad officiis ipsum.", - "title": "Deleniti vero magnam dolorum voluptatum." - } - }, - "users": { - "contributor": { - "username": "01CWEQ7M5SQ3GK5G2DQNYJMKFW" - }, - "staff_user": { - "username": "01CWEQ7GVFJT5PM7YXJ0EAMDBR" - } - } -} \ No newline at end of file diff --git a/factory_data/notifications.notifiers.comments_test.test_send_notification[False].json b/factory_data/notifications.notifiers.comments_test.test_send_notification[False].json deleted file mode 100644 index 63275cf8b1..0000000000 --- a/factory_data/notifications.notifiers.comments_test.test_send_notification[False].json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Cum sint eaque quasi ducimus mollitia. Porro facere culpa sunt et ipsum asperiores.\nTempore dolore quae eius praesentium. Nobis nobis non est asperiores mollitia incidunt quas. Officia doloremque rerum qui fugiat corporis repudiandae. Reiciendis maiores placeat tempore ex a non. Nobis sapiente impedit exercitationem.\nVitae blanditiis aperiam molestias iure expedita incidunt. Eos sapiente veniam sed. Ipsam unde harum officia.", - "name": "1535134712_ut", - "public_description": "Non laborum cumque illo similique. Dolor ducimus ullam est illo. Animi ipsam illo modi vel.", - "title": "Quod odit dolores excepturi harum suscipit." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "3j", - "post_id": "4f", - "text": "Amet quod velit amet beatae suscipit. Labore maxime at omnis tenetur." - } - }, - "posts": { - "just a post": { - "id": "4f", - "text": "Consectetur eaque vero maxime dolore ab. Perspiciatis sunt aspernatur sequi iure.", - "title": "Harum culpa optio unde quia." - } - }, - "users": { - "contributor": { - "username": "01CNPJHM3CJEN8DE4XRQYWTRNT" - }, - "staff_user": { - "username": "01CNPJHDSYVFABBT2MGRTTXJST" - } - } -} \ No newline at end of file diff --git a/factory_data/notifications.notifiers.comments_test.test_send_notification[True].json b/factory_data/notifications.notifiers.comments_test.test_send_notification[True].json deleted file mode 100644 index d1153d442f..0000000000 --- a/factory_data/notifications.notifiers.comments_test.test_send_notification[True].json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Vel consectetur nemo amet nemo nisi nostrum. Veritatis officia nulla voluptate voluptatem adipisci molestias. Enim molestiae porro dolorum exercitationem. Mollitia placeat recusandae eaque rerum cupiditate quo deleniti sed. Reiciendis inventore nostrum repellat placeat sit.\nFuga debitis eius fugiat molestiae. Perspiciatis dolores deleniti corporis minus beatae eveniet.\nDolorem vitae ducimus at aliquid ut quisquam ipsam deleniti. Esse odio totam totam ipsa.", - "name": "1535134693_delectus", - "public_description": "Eveniet fugit neque dolorum unde. Maxime quam ullam excepturi sint distinctio deleniti.", - "title": "Molestiae omnis saepe dolor consectetur." - } - }, - "comments": { - "just a comment": { - "children": [], - "comment_id": null, - "id": "3h", - "post_id": "4e", - "text": "Eveniet ipsa architecto non. Omnis voluptate enim perspiciatis animi." - }, - "reply comment": { - "children": [], - "comment_id": "3h", - "id": "3i", - "post_id": null, - "text": "Unde totam molestiae iure. Tempora deleniti veritatis dolore cupiditate." - } - }, - "posts": { - "just a post": { - "id": "4e", - "text": "Repellendus excepturi voluptatum qui. Perferendis molestias debitis voluptatem corrupti.", - "title": "Velit rem amet maiores quam dolores." - } - }, - "users": { - "contributor": { - "username": "01CNPJH103W906X220J9GHBREV" - }, - "staff_user": { - "username": "01CNPJGTPKPHX5RTX7V6FFHS7F" - } - } -} \ No newline at end of file diff --git a/factory_data/notifications.notifiers.moderator_posts_test.test_send_notification.json b/factory_data/notifications.notifiers.moderator_posts_test.test_send_notification.json deleted file mode 100644 index 1d2e607725..0000000000 --- a/factory_data/notifications.notifiers.moderator_posts_test.test_send_notification.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "channels": { - "private_channel": { - "channel_type": "private", - "description": "Thus risk example west area Mrs. Guess rest message. Develop woman security still chance huge.\nRemain late development keep far thought. Design form letter somebody discussion. At small account edge magazine own.\nAll day foreign once foot lot. Be chance result. Onto visit big produce.\nBefore leave continue reason discuss city day. Cell grow environment course personal act. Detail nice teacher set hold.\nRecent try word open. Test per staff situation whole rate.", - "name": "1605535440_0_result", - "public_description": "The assume beautiful state research brother.", - "title": "Mission college nearly work." - } - }, - "posts": { - "just a post": { - "id": "2q", - "text": "Pull leader whom include also. Source event success else training laugh ball summer.", - "title": "Minute black difficult walk different." - } - }, - "users": { - "contributor": { - "username": "01EQ8NXAQS3AZF79GKMKQ29QJZ" - }, - "staff_user": { - "username": "01EQ8NX4C1HWYMFQFKT949BPET" - } - } -} \ No newline at end of file diff --git a/fixtures/betamax.py b/fixtures/betamax.py deleted file mode 100644 index 4f4de18ff3..0000000000 --- a/fixtures/betamax.py +++ /dev/null @@ -1,64 +0,0 @@ -"""Betamax fixtures""" -# pylint: disable=redefined-outer-name, unused-argument -import os - -import pytest -import urllib3 -from betamax.fixtures.pytest import _casette_name - -from channels.test_utils import no_ssl_verification -from open_discussions.betamax_config import setup_betamax - - -@pytest.fixture -def cassette_name(request): - """Returns the cassette name for this test""" - return _casette_name(request, parametrized=True) - - -@pytest.fixture -def cassette_exists(cassette_name): - """Returns True if cassette exists""" - path = "cassettes/{}.json".format(cassette_name) - return os.path.exists(path) - - -@pytest.fixture(autouse=True) -def use_betamax(request): - """Determines if we're using betamax""" - marker = request.keywords.get("betamax", None) - if marker: - request.getfixturevalue("configure_betamax") - return True - return False - - -@pytest.fixture() -def configure_betamax(mocker, cassette_exists, praw_settings, request): - """Configure betamax""" - setup_betamax("once" if cassette_exists is False else "none") - - # defer this until we know we need it and after setup_betamax - betamax_parametrized_recorder = request.getfixturevalue( - "betamax_parametrized_recorder" - ) - - mocker.patch( - "channels.api._get_session", return_value=betamax_parametrized_recorder.session - ) - if cassette_exists: - # only patch if we're running off an existing cassette - mocker.patch( - "channels.api._get_refresh_token", - return_value={ - "refresh_token": "fake", - "access_token": "fake", - "expires_in": 1234, - }, - ) - - urllib3.disable_warnings() - - # always ignore SSL verification - with no_ssl_verification(): - yield betamax_parametrized_recorder diff --git a/fixtures/common.py b/fixtures/common.py index 4924aa0ff7..fcdb244e43 100644 --- a/fixtures/common.py +++ b/fixtures/common.py @@ -1,21 +1,14 @@ """Common config for pytest and friends""" # pylint: disable=unused-argument, redefined-outer-name -import importlib import logging import warnings -from functools import wraps from types import SimpleNamespace -from unittest.mock import Mock, patch import factory import pytest import responses from pytest_mock import PytestMockWarning from urllib3.exceptions import InsecureRequestWarning - -import channels.api -import channels.factories -import channels.serializers from open_discussions.factories import UserFactory @@ -47,7 +40,7 @@ def warnings_as_errors(): # Ignore deprecation warnings in third party libraries warnings.filterwarnings( "ignore", - module=".*(api_jwt|api_jws|rest_framework_jwt|betamax|astroid|celery).*", + module=".*(api_jwt|api_jws|rest_framework_jwt|astroid|celery).*", category=DeprecationWarning, ) yield @@ -61,44 +54,6 @@ def randomness(): factory.fuzzy.reseed_random("happy little clouds") -@pytest.fixture(scope="session", autouse=True) -def session_indexing_decorator(): - """ - Fixture that mocks the reddit object indexer for the test suite by default. - - Decorators require some extra work to patch since they are already applied to functions - when a module is loaded. To get around this, we patch the decorator function then - reload the relevant modules via importlib. - """ - mock_persist_func = Mock(original=[]) - - def dummy_decorator(*persistence_funcs): # pylint: disable=unused-argument - """A decorator that calls a mock before calling the wrapped function""" - - def dummy_decorator_inner(func): # pylint: disable=missing-docstring - @wraps(func) - def wrapped_api_func(*args, **kwargs): # pylint: disable=missing-docstring - for persistence_func in persistence_funcs: - mock_persist_func.original.append(persistence_func) - mock_persist_func(*args, **kwargs) - return func(*args, **kwargs) - - return wrapped_api_func - - return dummy_decorator_inner - - patched_decorator = patch( - "search.search_index_helpers.reddit_object_persist", dummy_decorator - ) - patched_decorator.start() - # Reload the modules that import and use the channels API. All methods decorated with - # reddit_object_persist will now use the simple patched version that was created here. - importlib.reload(channels.factories) - importlib.reload(channels.api) - importlib.reload(channels.serializers) - yield SimpleNamespace(patch=patched_decorator, mock_persist_func=mock_persist_func) - - @pytest.fixture() def indexing_decorator(session_indexing_decorator): """ @@ -110,24 +65,6 @@ def indexing_decorator(session_indexing_decorator): yield session_indexing_decorator -@pytest.fixture() -def mock_channel_exists(mocker): - """ - Mock the permissions.channel_exists function to always return True - """ - return mocker.patch( - "open_discussions.permissions.channel_exists", return_value=True - ) - - -@pytest.fixture() -def mock_req_channel_api(mocker): - """ - Mocks the channel API object that is made available on a request via middleware - """ - return mocker.patch("open_discussions.middleware.channel_api.Api", autospec=True) - - @pytest.fixture() def mocked_celery(mocker): """Mock object that patches certain celery functions""" @@ -165,10 +102,3 @@ def mocked_responses(): """Mock responses fixture""" with responses.RequestsMock() as rsps: yield rsps - - -@pytest.fixture(autouse=True) -def default_settings(settings): - """Default settings for tests""" - settings.AKISMET_API_KEY = None - settings.AKISMET_BLOG_URL = None diff --git a/fixtures/reddit.py b/fixtures/reddit.py deleted file mode 100644 index cf6ab8a09c..0000000000 --- a/fixtures/reddit.py +++ /dev/null @@ -1,175 +0,0 @@ -"""Reddit fixtures""" -# pylint: disable=redefined-outer-name, unused-argument -from types import SimpleNamespace -import pytest - -from channels import api -from channels.constants import CHANNEL_TYPE_PRIVATE, CHANNEL_TYPE_PUBLIC, LINK_TYPE_SELF -from channels.factories.models import PostFactory -from channels.factories.reddit import RedditFactories, FactoryStore -from channels.proxies import PostProxy -from channels.utils import render_article_text - - -@pytest.fixture -def praw_settings(settings, cassette_exists): - """Settings needed to use Api client""" - if cassette_exists: - settings.MITOPEN_REDDIT_CLIENT_ID = "client_id" - settings.MITOPEN_REDDIT_SECRET = "secret" - settings.MITOPEN_REDDIT_URL = "https://reddit.local" - settings.MITOPEN_REDDIT_VALIDATE_SSL = False - settings.MITOPEN_CHANNEL_POST_LIMIT = 25 - return settings - - -@pytest.fixture() -def reddit_factories(use_betamax, cassette_name, cassette_exists): - """RedditFactories fixture""" - store = FactoryStore(cassette_name) - ctx = RedditFactories(store) - if cassette_exists: - store.load() - yield ctx - if not cassette_exists: - store.write() - - -@pytest.fixture() -def reddit_user(reddit_factories): - """Override the user fixture to use reddit_factories""" - return reddit_factories.user("contributor") - - -@pytest.fixture() -def reddit_staff_user(reddit_factories): - """Override the staff_user fixture to use reddit_factories""" - from channels.test_utils import no_ssl_verification - - with no_ssl_verification(): - return reddit_factories.user("staff_user", is_staff=True) - - -@pytest.fixture() -def reddit_index_user(reddit_factories): - """Override the staff_user fixture to use reddit_factories""" - from channels.test_utils import no_ssl_verification - - with no_ssl_verification(): - return reddit_factories.user("index_user", is_staff=True) - - -@pytest.fixture() -def private_channel(reddit_factories, staff_user): - """Returns a standard private channel for tests""" - return reddit_factories.channel( - "private_channel", staff_user, channel_type=CHANNEL_TYPE_PRIVATE - ) - - -@pytest.fixture -def public_channel(reddit_factories, staff_user): - """Returns a standard public channel for tests""" - return reddit_factories.channel( - "public_channel", staff_user, channel_type=CHANNEL_TYPE_PUBLIC - ) - - -@pytest.fixture() -def staff_api(staff_user): - """A fixture for an Api instance configured with the staff user""" - return api.Api(staff_user) - - -@pytest.fixture() -def contributor_api(user): - """A fixture for an Api instance configured with the contributor user""" - return api.Api(user) - - -@pytest.fixture() -def private_channel_and_contributor(private_channel, staff_api, user, mocker): - """Fixture for a channel and a user who is a contributor""" - - mocker.patch("search.search_index_helpers.upsert_profile", autospec=True) - - staff_api.add_contributor(user.username, private_channel.name) - staff_api.add_subscriber(user.username, private_channel.name) - return private_channel, user - - -@pytest.fixture() -def subscribed_channels(reddit_factories, staff_user, staff_api, user): - """Fixture for five channels with a user who is a contributor & subscriber""" - channels = [] - for i in range(5): - channels.append( - reddit_factories.channel( - "private_channel_{}".format(i), - staff_user, - channel_type=CHANNEL_TYPE_PRIVATE, - ) - ) - staff_api.add_contributor(user.username, channels[i].name) - staff_api.add_subscriber(user.username, channels[i].name) - return channels - - -@pytest.fixture() -def reddit_submission_obj(): - """A dummy Post object""" - article_content = {"text": "some text"} - return SimpleNamespace( - author=SimpleNamespace(name="testuser"), - article_content=article_content, - plain_text=render_article_text(article_content), - subreddit=SimpleNamespace( - display_name="channel_1", title="Channel", subreddit_type="public" - ), - selftext="Body text", - score=1, - created=12345, - id="a", - title="Post Title", - num_comments=1, - is_self=True, - likes=1, - banned_by=None, - edited=False, - permalink="http://reddit.local/r/channel_1/a/post-title", - ) - - -@pytest.fixture() -def reddit_comment_obj(mocker, reddit_submission_obj): - """A dummy Comment object""" - return SimpleNamespace( - parent=mocker.Mock(return_value=reddit_submission_obj), - submission=reddit_submission_obj, - author=SimpleNamespace(name="testuser"), - subreddit=reddit_submission_obj.subreddit, - body="Comment text", - id="b", - score=1, - created=12345, - likes=1, - banned_by=None, - edited=False, - permalink=lambda: "/r/{}/{}".format( - reddit_submission_obj.subreddit.display_name, - "/r/{}/comments/a/post-title/43".format( - reddit_submission_obj.subreddit.display_name - ), - ), - ) - - -@pytest.fixture() -def post_proxy(reddit_submission_obj): - """A dummy PostProxy object based on the reddit_submission_obj fixture""" - post = PostFactory.create( - post_id=reddit_submission_obj.id, - channel__name=reddit_submission_obj.subreddit.display_name, - post_type=LINK_TYPE_SELF, - ) - return PostProxy(reddit_submission_obj, post) diff --git a/fixtures/users.py b/fixtures/users.py index aafca4b435..d5760ae96f 100644 --- a/fixtures/users.py +++ b/fixtures/users.py @@ -11,28 +11,20 @@ @pytest.fixture -def user(db, use_betamax, request): +def user(db): """Create a user""" - if use_betamax: - return request.getfixturevalue("reddit_user") return UserFactory.create() @pytest.fixture -def staff_user(db, use_betamax, request): +def staff_user(db): """Create a staff user""" - if use_betamax: - request.getfixturevalue("configure_betamax") - return request.getfixturevalue("reddit_staff_user") return UserFactory.create(is_staff=True) @pytest.fixture() -def index_user(db, use_betamax, request): +def index_user(db): """Create a user to be used for indexing""" - if use_betamax: - request.getfixturevalue("configure_betamax") - return request.getfixturevalue("reddit_index_user") user = UserFactory.create(is_staff=True) return user diff --git a/mail/api.py b/mail/api.py index 8f4580ac89..d2554592d3 100644 --- a/mail/api.py +++ b/mail/api.py @@ -152,7 +152,7 @@ def messages_for_recipients(recipients_and_contexts, template_name): Yields: EmailMultiAlternatives: email message with rendered content """ - with mail.get_connection(settings.NOTIFICATION_EMAIL_BACKEND) as connection: + with mail.get_connection(settings.EMAIL_BACKEND) as connection: for recipient, context in recipients_and_contexts: subject, text_body, html_body = render_email_templates( template_name, context diff --git a/mail/forms.py b/mail/forms.py index b0f5524eca..a2e058c952 100644 --- a/mail/forms.py +++ b/mail/forms.py @@ -5,11 +5,4 @@ class EmailDebuggerForm(forms.Form): """Form for email debugger""" - email_type = forms.ChoiceField( - choices=( - ("verification", "Verify Email"), - ("password_reset", "Password Reset"), - ("frontpage", "Frontpage"), - ("comments", "Comments"), - ) - ) + email_type = forms.ChoiceField(choices=()) diff --git a/mail/templates/comments/body.html b/mail/templates/comments/body.html deleted file mode 100644 index 2dab300857..0000000000 --- a/mail/templates/comments/body.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends "email_base.html" %} - -{% block content %} - - - - - - - -
-

{{ comment.text }}

-
- - - - - - - - - -
- {% if is_comment_reply %} - Read More - {% else %} - Read More - {% endif %} -
- - - - -{% endblock %} - -{% block footer %} -You are receiving this email because you are following a post on {{ site_name }}. -

-To reply to this comment you can -{% if is_comment_reply %} - view it on {{ site_name }}. -{% else %} - view it on {{ site_name }}. -{% endif %} -
-If you don't want to receive these emails in the future, you can -unfollow this post. -

-{% endblock %} diff --git a/mail/templates/comments/subject.txt b/mail/templates/comments/subject.txt deleted file mode 100644 index 47674c2226..0000000000 --- a/mail/templates/comments/subject.txt +++ /dev/null @@ -1 +0,0 @@ -Re: [{{ post.channel_title|safe }}] {{ post.title|safe }} diff --git a/mail/templates/email_base.html b/mail/templates/email_base.html index 639e23a1c8..7148185396 100644 --- a/mail/templates/email_base.html +++ b/mail/templates/email_base.html @@ -268,26 +268,6 @@

- - - - -{% for post in posts %} - - - - - - -{% endfor %} - - - - - - -{% endif %} -{% if episodes %} - - - - - - -{% for episode in episodes %} - - - - - - -{% endfor %} - - - - - - -{% endif %} -{% endblock %} - diff --git a/mail/templates/frontpage/subject.txt b/mail/templates/frontpage/subject.txt deleted file mode 100644 index 6bdb4193d1..0000000000 --- a/mail/templates/frontpage/subject.txt +++ /dev/null @@ -1 +0,0 @@ -[{{ site_name }}] Top Stories for You diff --git a/mail/templates/invite/body.html b/mail/templates/invite/body.html deleted file mode 100644 index e66611032a..0000000000 --- a/mail/templates/invite/body.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "email_base.html" %} - -{% block content %} - - - - - -{% endblock %} diff --git a/mail/templates/invite/subject.txt b/mail/templates/invite/subject.txt deleted file mode 100644 index 4e13702140..0000000000 --- a/mail/templates/invite/subject.txt +++ /dev/null @@ -1 +0,0 @@ -{{ invite.inviter.profile.name }} invited you to {{ invite.channel.title }} diff --git a/mail/templates/moderator_posts/body.html b/mail/templates/moderator_posts/body.html deleted file mode 100644 index 1ecfd019d5..0000000000 --- a/mail/templates/moderator_posts/body.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "email_base.html" %} -{% load humanize %} -{% load timeago %} - -{% block content %} - - - - - - - - - - - -{% endblock %} \ No newline at end of file diff --git a/mail/templates/moderator_posts/subject.txt b/mail/templates/moderator_posts/subject.txt deleted file mode 100644 index 917a101a55..0000000000 --- a/mail/templates/moderator_posts/subject.txt +++ /dev/null @@ -1 +0,0 @@ -New Post on Open [{{ post.channel_title|safe }}] {{ post.title|safe }} diff --git a/mail/templatetags/timeago.py b/mail/templatetags/timeago.py deleted file mode 100644 index c9682365db..0000000000 --- a/mail/templatetags/timeago.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Custom template tags for email""" -from dateutil.parser import parse -from django import template - -register = template.Library() - - -@register.filter -def parse_iso(value): - """ - Parses an iso datetime string into a datetime object - - Args: - value (str): datetime str - - Returns: - datetime: the parsed datetime - """ - return parse(value) diff --git a/mail/views.py b/mail/views.py index 86a93070cf..9cc4fff602 100644 --- a/mail/views.py +++ b/mail/views.py @@ -1,5 +1,4 @@ """Mail views""" -from types import SimpleNamespace from django.conf import settings from django.http import JsonResponse @@ -43,66 +42,6 @@ def post(self, request): "site_name": settings.MITOPEN_TITLE, } - # static, dummy data - if email_type == "comments": - context.update( - { - "post": SimpleNamespace( - id="abc", - title="Batman Rules!", - slug="batman_rules", - channel_name="channel_name", - channel_title="Favorite Superheros", - ), - "comment": SimpleNamespace( - id="def", text="Your post is really awesome!" - ), - } - ) - elif email_type == "frontpage": - context.update( - { - "posts": [ - SimpleNamespace( - id="abc", - author_name="Steve Brown", - author_headline="Physics Professor", - author_id="njksdfg", - title="Batman Rules!", - url="http://example.com/batman.jpg", - url_domain="example.com", - slug="batman_rules", - created="2018-09-19T18:50:32+00:00", - channel_name="channel_name", - channel_title="Favorite Superheros", - ), - SimpleNamespace( - id="def", - author_name="Casey Adams", - author_headline="Graduate Student", - author_id="ghjkl", - title="I, however, do not concur", - slug="i_however_do_not_concur", - created="2018-09-19T18:50:32+00:00", - channel_name="channel_name", - channel_title="Favorite Superheros", - ), - ], - "episodes": [ - SimpleNamespace( - title="Pasta is tasty!", - last_modified="2018-09-19T18:50:32+00:00", - podcast_title="cooking podcast", - ), - SimpleNamespace( - title="Superman is better", - last_modified="2018-09-19T18:50:32+00:00", - podcast_title="Favorite Superheros", - ), - ], - } - ) - subject, text_body, html_body = api.render_email_templates(email_type, context) return JsonResponse( diff --git a/moira_lists/__init__.py b/moira_lists/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/moira_lists/admin.py b/moira_lists/admin.py deleted file mode 100644 index 74f55d493e..0000000000 --- a/moira_lists/admin.py +++ /dev/null @@ -1,21 +0,0 @@ -""" Admin for channels """ -from django.contrib import admin - -from moira_lists.models import MoiraList - - -class MoiraListAdmin(admin.ModelAdmin): - """Admin for Moira Lists""" - - model = MoiraList - search_fields = ("name", "users__email") - readonly_fields = ("users", "name") - - def has_change_permission(self, request, obj=None): - return False - - def has_add_permission(self, request): - return False - - -admin.site.register(MoiraList, MoiraListAdmin) diff --git a/moira_lists/apps.py b/moira_lists/apps.py deleted file mode 100644 index f0bf807008..0000000000 --- a/moira_lists/apps.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Moira lists app""" -from django.apps import AppConfig - - -class MoiraListsConfig(AppConfig): - """MoiraLists AppConfig""" - - name = "moira_lists" diff --git a/moira_lists/conftest.py b/moira_lists/conftest.py deleted file mode 100644 index a33a928469..0000000000 --- a/moira_lists/conftest.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Test config for channels""" -import pytest - - -@pytest.fixture -def mock_moira(mocker): - """Return a fake mit_moira.Moira object""" - return mocker.patch("moira_lists.moira_api.Moira") - - -@pytest.fixture -def mock_moira_client(mocker): - """Return a fake moira client""" - return mocker.patch("moira_lists.moira_api.get_moira_client", autospec=True) - - -@pytest.fixture -def mock_user_moira_lists(mocker): - """Return a fake moira client""" - mocked = mocker.patch("moira_lists.moira_api.user_moira_lists") - mocked.return_value = set() - return mocked diff --git a/moira_lists/exceptions.py b/moira_lists/exceptions.py deleted file mode 100644 index 800d100ed3..0000000000 --- a/moira_lists/exceptions.py +++ /dev/null @@ -1,5 +0,0 @@ -"""moira_lists custom exceptions""" - - -class MoiraException(Exception): - """Custom exception to be used when something goes wrong with Moira API calls""" diff --git a/moira_lists/factories.py b/moira_lists/factories.py deleted file mode 100644 index e3324d7814..0000000000 --- a/moira_lists/factories.py +++ /dev/null @@ -1,39 +0,0 @@ -"""Factory classes for moira""" -import factory - -from moira_lists.models import MoiraList - -# pylint: disable=unused-argument - - -class MoiraListFactory(factory.django.DjangoModelFactory): - """Factory for Moira Lists""" - - name = factory.Sequence(lambda n: "moira_#%s" % n) - - @factory.post_generation - def channels(self, create, extracted, **kwargs): - """Create associated channels""" - if not create: - # Simple build, do nothing. - return - - if extracted: - # A list of groups were passed in, use them - for channel in extracted: - self.channels.add(channel) - - @factory.post_generation - def users(self, create, extracted, **kwargs): - """Create associated users""" - if not create: - # Simple build, do nothing. - return - - if extracted: - # A list of groups were passed in, use them - for user in extracted: - self.users.add(user) - - class Meta: - model = MoiraList diff --git a/moira_lists/migrations/0001_initial.py b/moira_lists/migrations/0001_initial.py deleted file mode 100644 index 0550f9053f..0000000000 --- a/moira_lists/migrations/0001_initial.py +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by Django 2.2.10 on 2020-03-13 19:42 - -from django.conf import settings -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("channels", "0024_channel_membership_config"), - ] - - operations = [ - migrations.CreateModel( - name="MoiraList", - fields=[ - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ( - "name", - models.CharField( - max_length=250, primary_key=True, serialize=False, unique=True - ), - ), - ( - "users", - models.ManyToManyField( - related_name="moira_lists", to=settings.AUTH_USER_MODEL - ), - ), - ], - options={"abstract": False}, - ) - ] diff --git a/moira_lists/migrations/__init__.py b/moira_lists/migrations/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/moira_lists/models.py b/moira_lists/models.py deleted file mode 100644 index 597a86b355..0000000000 --- a/moira_lists/models.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Models for moira lists""" -from django.contrib.auth.models import User -from django.db import models - -from open_discussions.models import TimestampedModel - - -class MoiraList(TimestampedModel): - """ - Moira list - """ - - name = models.CharField(max_length=250, unique=True, primary_key=True) - users = models.ManyToManyField(User, related_name="moira_lists") - - def __str__(self): - return self.name - - def __repr__(self): - return "".format(self=self) diff --git a/moira_lists/moira_api.py b/moira_lists/moira_api.py deleted file mode 100644 index 4746749191..0000000000 --- a/moira_lists/moira_api.py +++ /dev/null @@ -1,195 +0,0 @@ -"""Moira list utility functions""" -import os -import re -from collections import namedtuple - -from django.conf import settings -from django.contrib.auth.models import User -from django.db import transaction -from mit_moira import Moira - -from moira_lists.exceptions import MoiraException -from moira_lists.models import MoiraList - -MoiraUser = namedtuple("MoiraUser", "username type") - - -def get_moira_client(): - """ - Gets a moira client. - - Returns: - Moira: A moira client - """ - - _check_files_exist( - [settings.MIT_WS_CERTIFICATE_FILE, settings.MIT_WS_PRIVATE_KEY_FILE] - ) - try: - return Moira(settings.MIT_WS_CERTIFICATE_FILE, settings.MIT_WS_PRIVATE_KEY_FILE) - except Exception as exc: # pylint: disable=broad-except - raise MoiraException( - "Something went wrong with creating a moira client" - ) from exc - - -def _check_files_exist(paths): - """Checks that files exist at given paths.""" - errors = [] - for path in paths: - if not os.path.isfile(path): - errors.append("File missing: expected path '{}'".format(path)) - if errors: - raise RuntimeError("\n".join(errors)) - - -def get_moira_user(user): - """ - Return the most likely username & type (USER, STRING) for a user in moira lists based on email. - If the email ends with 'mit.edu', assume kerberos id = email prefix - Otherwise use the entire email address as the username. - - Args: - user (django.contrib.auth.User): the Django user to return a Moira user for. - - Returns: - MoiraUser: A namedtuple containing username and type - """ - if re.search(r"(@|\.)mit.edu$", user.email): - return MoiraUser(user.email.split("@")[0], "USER") - return MoiraUser(user.email, "STRING") - - -def query_moira_lists(user): - """ - Get a set of all moira lists (including nested lists) a user has access to, by querying the Moira service. - - Args: - user (django.contrib.auth.User): the Django user. - - Returns: - list_names(list of str): A list of names of moira lists which contain the user as a member. - """ - moira_user = get_moira_user(user) - moira = get_moira_client() - try: - list_infos = moira.user_list_membership( - moira_user.username, moira_user.type, max_return_count=100_000 - ) - list_names = [ - list_info["listName"] for list_info in list_infos if list_info["listName"] - ] - return list_names - except Exception as exc: # pylint: disable=broad-except - if "java.lang.NullPointerException" in str(exc): - # User is not a member of any moira lists, so ignore exception and return empty list - return [] - raise MoiraException( - "Something went wrong with getting moira-lists for %s" % user.username - ) from exc - - -def user_moira_lists(user): - """ - Get a list of all the moira lists a user has access to - - Args: - user (django.contrib.auth.User): the Django user. - - Returns: - list_names(set): An set containing all known lists the user belongs to, - including ancestors of nested lists. - """ - if user.is_anonymous: - return [] - list_names = set(query_moira_lists(user)) - return list_names - - -def moira_user_emails(member_list): - """ - Transform a list of moira list members to emails. - Assumes kerberos id => @mit.edu - - Args: - member_list (list of str): List of members returned by Moira - - Returns: - list of str: Member emails in list - """ - return list( - map( - lambda member: member if "@" in member else f"{member}@mit.edu", - filter(None, member_list), - ) - ) - - -@transaction.atomic -def update_user_moira_lists(user): - """ - Add moira lists the user is a member of, remove any expired lists - - Args: - user (User): user to update moira lists for - """ - moira_lists = query_moira_lists(user) - - for list_name in moira_lists: - moira_list, _ = MoiraList.objects.get_or_create(name=list_name) - moira_list.users.add(user) - - user.moira_lists.set(MoiraList.objects.filter(name__in=moira_lists)) - - -def get_list_members(moira_name): - """ - Get all the members of a moira list - - Args: - moira_name (str): Moira list name - - Returns: - list of str: moira list members - - """ - moira_client = get_moira_client() - members = moira_client.list_members(moira_name, type="USER") - members.extend(moira_client.list_members(moira_name, type="STRING")) - return members - - -@transaction.atomic -def update_moira_list_users(moira_list): - """ - Update the users in a moira list - - Args: - moira_list (MoiraList): the moira list - """ - users = User.objects.filter( - email__in=moira_user_emails(get_list_members(moira_list.name)) - ) - moira_list.users.set(users) - - -def is_public_list_editor(user): - """ - Determine if a user can author public user lists & paths - - Args: - user (User): a user - - Returns: - boolean: True or False - """ - return user and ( - user.is_superuser - or user.is_staff - or len( - set(user.moira_lists.values_list("name", flat=True)).intersection( - settings.STAFF_MOIRA_LISTS - ) - ) - > 0 - ) diff --git a/moira_lists/moira_api_test.py b/moira_lists/moira_api_test.py deleted file mode 100644 index 1082b17b0d..0000000000 --- a/moira_lists/moira_api_test.py +++ /dev/null @@ -1,186 +0,0 @@ -"""Moira list utility function tests""" -from tempfile import NamedTemporaryFile - -import pytest -from django.contrib.auth.models import AnonymousUser, User -from zeep.exceptions import Fault - -from moira_lists.exceptions import MoiraException -from moira_lists.factories import MoiraListFactory -from moira_lists.models import MoiraList -from moira_lists.moira_api import ( - user_moira_lists, - get_moira_client, - query_moira_lists, - update_user_moira_lists, - moira_user_emails, - update_moira_list_users, - get_list_members, -) -from open_discussions.factories import UserFactory - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize( - "key_file, cert_file", - [(NamedTemporaryFile(), None), (None, NamedTemporaryFile()), (None, None)], -) -def test_get_moira_client_missing_secrets(mock_moira, settings, key_file, cert_file): - """Test that the correct error is returned if a key file is missing""" - settings.MIT_WS_PRIVATE_KEY_FILE = ( - "bad/file/path" if not key_file else key_file.name - ) - settings.MIT_WS_CERTIFICATE_FILE = ( - "bad/file/path" if not cert_file else cert_file.name - ) - with pytest.raises(RuntimeError) as err: - get_moira_client() - assert not mock_moira.called - if key_file is None: - assert settings.MIT_WS_PRIVATE_KEY_FILE in str(err) - if cert_file is None: - assert settings.MIT_WS_CERTIFICATE_FILE in str(err) - - -def test_get_moira_client_success(mock_moira, settings): - """Test that a client is returned from get_moira_client""" - tempfile1, tempfile2 = (NamedTemporaryFile(), NamedTemporaryFile()) - settings.MIT_WS_PRIVATE_KEY_FILE = tempfile1.name - settings.MIT_WS_CERTIFICATE_FILE = tempfile2.name - get_moira_client() - assert mock_moira.called_once_with( - settings.MIT_WS_CERTIFICATE_FILE, settings.MIT_WS_PRIVATE_KEY_FILE - ) - - -def test_get_moira_client_error(mock_moira): - """Test that a MoiraException is returned if anything goes wrong with the moira call""" - mock_moira.side_effect = TabError - with pytest.raises(MoiraException): - get_moira_client() - - -def test_query_moira_lists(mock_moira_client): - """ - Test that expected lists are returned. - """ - list_names = ["test_moira_list01", "test_moira_list02"] - mock_moira_client.return_value.user_list_membership.return_value = [ - {"listName": list_name} for list_name in list_names - ] - other_user = UserFactory(email="someone@mit.edu") - assert query_moira_lists(other_user) == list_names - - -def test_query_moira_lists_no_lists(mock_moira_client): - """ - Test that an empty list is returned if Moira throws a java NPE - """ - mock_moira_client.return_value.user_list_membership.side_effect = Fault( - "java.lang.NullPointerException" - ) - other_user = UserFactory(email="someone@mit.edu") - assert query_moira_lists(other_user) == [] - - -def test_query_moira_lists_error(mock_moira_client): - """ - Test that a Moira exception is raised if moira client call fails with anything other than a java NPE - """ - mock_moira_client.return_value.user_list_membership.side_effect = Fault( - "Not a java NPE" - ) - with pytest.raises(MoiraException): - query_moira_lists(UserFactory()) - - -def test_user_moira_lists(mocker): - """ - Test that expected list is returned for a user - """ - user = UserFactory.create() - mock_lists = ["test.list.1", "test.list.2"] - mock_query_moira_lists = mocker.patch( - "moira_lists.moira_api.query_moira_lists", return_value=mock_lists - ) - - assert user_moira_lists(user) == set(mock_lists) - mock_query_moira_lists.assert_called_once_with(user) - - -def test_user_moira_lists_anonymous(): - """ - Test that empty list is returned for anonymous user - """ - assert user_moira_lists(AnonymousUser()) == [] - - -def test_moira_user_emails(): - """Test that moira_user_emails returns expected list of emails""" - inlist = ["test1", "Te.st.2", "test@test.edu", "tester@mit.edu"] - expected = ["test1@mit.edu", "Te.st.2@mit.edu", "test@test.edu", "tester@mit.edu"] - assert moira_user_emails(inlist) == expected - - -def test_update_user_moira_lists(mock_moira_client): - """Test that update_user_moira_lists updates the user's related moira lists""" - moira_user = UserFactory.create() - user_lists = ["test.list.1", "test.list.2", "", None] - mock_moira_client.return_value.user_list_membership.return_value = [ - {"listName": list_name} for list_name in user_lists - ] - valid_user_lists = user_lists[0:2] - - moira_list_3 = MoiraListFactory.create(name="test.list.3", users=[moira_user]) - assert list(moira_list_3.users.all()) == [moira_user] - assert list(moira_user.moira_lists.all()) == [moira_list_3] - - update_user_moira_lists(moira_user) - - assert ( - list( - User.objects.get(id=moira_user.id) - .moira_lists.order_by("name") - .values_list("name", flat=True) - ) - == valid_user_lists - ) - for name in valid_user_lists: - assert list(MoiraList.objects.get(name=name).users.all()) == [moira_user] - assert list(MoiraList.objects.get(name=moira_list_3.name).users.all()) == [] - assert ( - list( - moira_user.moira_lists.order_by("name").all().values_list("name", flat=True) - ) - == valid_user_lists - ) - assert MoiraList.objects.filter(name="").count() == 0 - - -def test_update_moira_list_users(mock_moira_client): - """Test that update_moira_list_users updates the moira lists' users""" - moira_users = UserFactory.create_batch(3) - moira_list = MoiraListFactory.create(users=[moira_users[2]]) - assert list(moira_list.users.all()) == [moira_users[2]] - mock_moira_client.return_value.list_members.return_value = [ - user.email for user in moira_users[:2] - ] - update_moira_list_users(moira_list) - assert list(moira_list.users.order_by("id")) == sorted( - moira_users[:2], key=lambda user: user.id - ) - - -def test_get_list_members(mock_moira_client): - """Test that both kerberos and email members are retrieved""" - mock_moira_client.return_value.list_members.side_effect = [ - ["kerberos1", "kerberos2"], - ["email1@test.edu", "email2@test.edu"], - ] - assert get_list_members("foo") == [ - "kerberos1", - "kerberos2", - "email1@test.edu", - "email2@test.edu", - ] diff --git a/moira_lists/tasks.py b/moira_lists/tasks.py deleted file mode 100644 index 4c5747c7e1..0000000000 --- a/moira_lists/tasks.py +++ /dev/null @@ -1,41 +0,0 @@ -"""Moira list tasks""" -import logging -from django.contrib.auth import get_user_model - -from channels.membership_api import update_memberships_for_managed_channels -from moira_lists.models import MoiraList -from moira_lists import moira_api -from open_discussions.celery import app - -User = get_user_model() -log = logging.getLogger() - - -@app.task -def update_user_moira_lists(user_id, update_memberships=False): - """ - Update the user's moira lists - - Args: - user_id (int): User id - update_memberships (bool): Whether to update memberships afterward - """ - moira_api.update_user_moira_lists(User.objects.get(id=user_id)) - if update_memberships: - update_memberships_for_managed_channels(user_ids=[user_id]) - - -@app.task -def update_moira_list_users(names, channel_ids=None): - """ - Update the users for each moira list - - Args: - names (list of str): Moira list name - channel_ids (list of int): Channel id's - """ - for name in names: - moira_list, _ = MoiraList.objects.get_or_create(name=name) - moira_api.update_moira_list_users(moira_list) - if channel_ids is not None: - update_memberships_for_managed_channels(channel_ids=channel_ids) diff --git a/moira_lists/tasks_test.py b/moira_lists/tasks_test.py deleted file mode 100644 index 62a80cbd28..0000000000 --- a/moira_lists/tasks_test.py +++ /dev/null @@ -1,43 +0,0 @@ -""" Tests for moira tasks""" -import pytest - -from moira_lists.tasks import update_moira_list_users, update_user_moira_lists -from moira_lists.factories import MoiraListFactory -from open_discussions.factories import UserFactory - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize("update_memberships", [True, False]) -def test_update_user_moira_lists(mocker, update_memberships): - """Test that the update_user_moira_lists task calls the api function of the same name""" - mock_moira_api = mocker.patch("moira_lists.moira_api.update_user_moira_lists") - mock_member_api = mocker.patch( - "moira_lists.tasks.update_memberships_for_managed_channels" - ) - user = UserFactory.create() - update_user_moira_lists(user.id, update_memberships=update_memberships) - mock_moira_api.assert_called_once_with(user) - if update_memberships: - mock_member_api.assert_called_once_with(user_ids=[user.id]) - else: - mock_member_api.assert_not_called() - - -@pytest.mark.parametrize("channel_ids", [None, [1, 2]]) -def test_update_moira_list_users(mocker, channel_ids): - """Test that the update_moira_list_users task calls the api function of the same name""" - mock_api = mocker.patch("moira_lists.moira_api.update_moira_list_users") - mock_member_api = mocker.patch( - "moira_lists.tasks.update_memberships_for_managed_channels" - ) - moira_lists = MoiraListFactory.create_batch(3) - update_moira_list_users( - [moira_list.name for moira_list in moira_lists], channel_ids=channel_ids - ) - for moira_list in moira_lists: - mock_api.assert_any_call(moira_list) - if channel_ids is not None: - mock_member_api.assert_called_once_with(channel_ids=channel_ids) - else: - mock_member_api.assert_not_called() diff --git a/notifications/__init__.py b/notifications/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/notifications/api.py b/notifications/api.py deleted file mode 100644 index 799dd4f2e1..0000000000 --- a/notifications/api.py +++ /dev/null @@ -1,262 +0,0 @@ -"""Notifications API""" -import logging - -from django.conf import settings -from django.db.models import Q -from django.contrib.auth.models import User - -from channels.models import Subscription, ChannelGroupRole, Channel -from channels.api import get_admin_api -from channels.constants import ROLE_MODERATORS - -from notifications.notifiers.exceptions import ( - UnsupportedNotificationTypeError, - CancelNotificationError, -) -from notifications.models import ( - EmailNotification, - PostEvent, - NotificationSettings, - NOTIFICATION_TYPE_FRONTPAGE, - NOTIFICATION_TYPE_COMMENTS, - NOTIFICATION_TYPE_MODERATOR, - FREQUENCY_IMMEDIATE, - FREQUENCY_DAILY, - FREQUENCY_WEEKLY, - FREQUENCY_NEVER, -) -from notifications.notifiers import comments, frontpage, moderator_posts -from notifications import tasks -from open_discussions.utils import chunks - -log = logging.getLogger() - - -def ensure_notification_settings(user, skip_moderator_setting=False): - """ - Populates user with notification settings - - Args: - user (User): user to create settings for - skip_moderator_setting (boolean): Skip moderator notifaction creation - """ - existing_notification_types = NotificationSettings.objects.filter( - user=user - ).values_list("notification_type", flat=True) - - if NOTIFICATION_TYPE_FRONTPAGE not in existing_notification_types: - NotificationSettings.objects.get_or_create( - user=user, - notification_type=NOTIFICATION_TYPE_FRONTPAGE, - defaults={"trigger_frequency": FREQUENCY_DAILY}, - ) - - if NOTIFICATION_TYPE_COMMENTS not in existing_notification_types: - NotificationSettings.objects.get_or_create( - user=user, - notification_type=NOTIFICATION_TYPE_COMMENTS, - defaults={"trigger_frequency": FREQUENCY_IMMEDIATE}, - ) - - if not skip_moderator_setting: - for channel_group_role in ChannelGroupRole.objects.filter( - group__user=user, role=ROLE_MODERATORS - ): - NotificationSettings.objects.get_or_create( - user=user, - notification_type=NOTIFICATION_TYPE_MODERATOR, - channel=channel_group_role.channel, - defaults={"trigger_frequency": FREQUENCY_IMMEDIATE}, - ) - - -def attempt_send_notification_batch(notification_settings_ids): - """ - Attempts to send notification for the given batch of ids - - Args: - notification_settings_ids (list of int): list of NotificationSettings.ids - """ - notification_settings = NotificationSettings.objects.filter( - id__in=notification_settings_ids - ) - for notification_setting in notification_settings: - try: - notifier = frontpage.FrontpageDigestNotifier(notification_setting) - notifier.attempt_notify() - except: # pylint: disable=bare-except - log.exception( - "Error attempting notification for user %s", notification_setting.user - ) - - -def get_daily_frontpage_settings_ids(): - """Returns daily frontpage digest NotificationSettings""" - return ( - NotificationSettings.frontpage_settings() - .filter(trigger_frequency=FREQUENCY_DAILY) - .filter(user__is_active=True) - .values_list("id", flat=True) - .order_by("id") - .iterator() - ) - - -def get_weekly_frontpage_settings_ids(): - """Returns weekly frontpage digest NotificationSettings""" - return ( - NotificationSettings.frontpage_settings() - .filter(trigger_frequency=FREQUENCY_WEEKLY) - .filter(user__is_active=True) - .values_list("id", flat=True) - .order_by("id") - .iterator() - ) - - -def _get_notifier_for_notification(notification): - """ - Get the notifier for the notification's type - - Args: - notification (NotificationBase): the notification to get a notifier for - - Returns: - Notifier: instance of the notifier to use - """ - if notification.notification_type == NOTIFICATION_TYPE_MODERATOR: - channel_api = get_admin_api() - event = PostEvent.objects.get(email_notification=notification) - channel_name = channel_api.get_post(event.post_id).subreddit.display_name - - notification_settings = NotificationSettings.objects.get( - user=notification.user, - notification_type=notification.notification_type, - channel__name=channel_name, - ) - else: - notification_settings = NotificationSettings.objects.get( - user=notification.user, notification_type=notification.notification_type - ) - - if notification.notification_type == NOTIFICATION_TYPE_FRONTPAGE: - return frontpage.FrontpageDigestNotifier(notification_settings) - elif notification.notification_type == NOTIFICATION_TYPE_COMMENTS: - return comments.CommentNotifier(notification_settings) - elif notification.notification_type == NOTIFICATION_TYPE_MODERATOR: - return moderator_posts.ModeratorPostsNotifier(notification_settings) - else: - raise UnsupportedNotificationTypeError( - "Notification type '{}' is unsupported".format( - notification.notification_type - ) - ) - - -def send_unsent_email_notifications(): - """ - Send all notifications that haven't been sent yet - """ - - for notification_ids in chunks( - EmailNotification.objects.filter(state=EmailNotification.STATE_PENDING) - .exclude(notification_type=NOTIFICATION_TYPE_FRONTPAGE) - .values_list("id", flat=True), - chunk_size=settings.NOTIFICATION_SEND_CHUNK_SIZE, - ): - EmailNotification.objects.filter(id__in=notification_ids).update( - state=EmailNotification.STATE_SENDING - ) - tasks.send_email_notification_batch.delay(notification_ids) - - for notification_ids in chunks( - EmailNotification.objects.filter( - state=EmailNotification.STATE_PENDING, - notification_type=NOTIFICATION_TYPE_FRONTPAGE, - ).values_list("id", flat=True), - chunk_size=settings.NOTIFICATION_SEND_CHUNK_SIZE, - ): - EmailNotification.objects.filter(id__in=notification_ids).update( - state=EmailNotification.STATE_SENDING - ) - tasks.send_frontpage_email_notification_batch.delay(notification_ids) - - -def send_email_notification_batch(notification_ids): - """ - Sends a batch of notifications - - Args: - notification_ids (list of int): notification ids to send - """ - for notification in EmailNotification.objects.filter(id__in=notification_ids): - try: - notifier = _get_notifier_for_notification(notification) - notifier.send_notification(notification) - except CancelNotificationError: - log.debug("EmailNotification canceled: %s", notification.id) - notification.state = EmailNotification.STATE_CANCELED - notification.save() - except: # pylint: disable=bare-except - log.exception("Error sending notification %s", notification) - - -def send_comment_notifications(post_id, comment_id, new_comment_id): - """ - Sends notifications for a reply to a given post notification - - Args: - post_id (str): base36 post id - comment_id (str): base36 comment id - new_comment_id (str): base36 comment id of the new comment - """ - for subscription in ( - Subscription.objects.filter(post_id=post_id) - .filter(Q(comment_id=comment_id) | Q(comment_id=None)) - .distinct("user") - .iterator() - ): - try: - notification_settings = NotificationSettings.objects.get( - user_id=subscription.user_id, - notification_type=NOTIFICATION_TYPE_COMMENTS, - ) - except NotificationSettings.DoesNotExist: - log.exception( - "NotificationSettings didn't exist for subscription %s", subscription.id - ) - continue - - notifier = comments.CommentNotifier(notification_settings) - notifier.create_comment_event(subscription, new_comment_id) - - -def send_moderator_notifications(post_id, channel_name): - """ - Sends post notifications to channel moderators - - Args: - post_id (str): base36 post id - channel_name (str): channel_name - """ - - channel_api = get_admin_api() - for moderator in channel_api.list_moderators(channel_name): - self_user = User.objects.get(username=moderator.name) - try: - notification_setting = NotificationSettings.objects.get( - user=self_user, - notification_type=NOTIFICATION_TYPE_MODERATOR, - channel__name=channel_name, - ) - except NotificationSettings.DoesNotExist: - channel = Channel.objects.get(name=channel_name) - notification_setting = NotificationSettings.objects.create( - user=self_user, - notification_type=NOTIFICATION_TYPE_MODERATOR, - channel=channel, - trigger_frequency=FREQUENCY_NEVER, - ) - - notifier = moderator_posts.ModeratorPostsNotifier(notification_setting) - notifier.create_moderator_post_event(self_user, post_id) diff --git a/notifications/api_test.py b/notifications/api_test.py deleted file mode 100644 index 62e8f9fbce..0000000000 --- a/notifications/api_test.py +++ /dev/null @@ -1,382 +0,0 @@ -"""Tests for notification apis""" -from unittest.mock import Mock -import pytest - -from channels.factories.models import SubscriptionFactory, ChannelFactory -from channels.api import add_user_role - -from notifications.factories import ( - EmailNotificationFactory, - NotificationSettingsFactory, - PostEventFactory, -) -from notifications.models import ( - NotificationSettings, - EmailNotification, - CommentEvent, - PostEvent, - NOTIFICATION_TYPE_FRONTPAGE, - NOTIFICATION_TYPE_COMMENTS, - NOTIFICATION_TYPE_MODERATOR, - FREQUENCY_NEVER, - FREQUENCY_IMMEDIATE, - FREQUENCY_DAILY, - FREQUENCY_WEEKLY, -) -from notifications.notifiers.exceptions import CancelNotificationError -from notifications import api -from open_discussions.factories import UserFactory - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize("is_moderator", (True, False)) -@pytest.mark.parametrize("skip_moderator_setting", (True, False)) -def test_ensure_notification_settings(user, is_moderator, skip_moderator_setting): - """Assert that notification settings are created""" - assert NotificationSettings.objects.filter(user=user).count() == 0 - - if is_moderator: - channel = ChannelFactory.create() - add_user_role(channel, "moderators", user) - - api.ensure_notification_settings( - user, skip_moderator_setting=skip_moderator_setting - ) - - if is_moderator and not skip_moderator_setting: - assert NotificationSettings.objects.filter(user=user).count() == 3 - ns = NotificationSettings.objects.get( - user=user, notification_type=NOTIFICATION_TYPE_MODERATOR - ) - assert ns.via_app is False - assert ns.via_email is True - assert ns.trigger_frequency == FREQUENCY_IMMEDIATE - - else: - assert NotificationSettings.objects.filter(user=user).count() == 2 - - ns = NotificationSettings.objects.get( - user=user, notification_type=NOTIFICATION_TYPE_FRONTPAGE - ) - assert ns.via_app is False - assert ns.via_email is True - assert ns.trigger_frequency == FREQUENCY_DAILY - - ns = NotificationSettings.objects.get( - user=user, notification_type=NOTIFICATION_TYPE_COMMENTS - ) - assert ns.via_app is False - assert ns.via_email is True - assert ns.trigger_frequency == FREQUENCY_IMMEDIATE - - -@pytest.mark.parametrize("is_moderator", (True, False)) -def test_ensure_notification_settings_existing(user, is_moderator): - """Assert that existing notification settings are left alone""" - settings_for_user = NotificationSettings.objects.filter(user=user) - - if is_moderator: - channel = ChannelFactory.create() - add_user_role(channel, "moderators", user) - - assert settings_for_user.count() == 0 - api.ensure_notification_settings(user) - settings = list(settings_for_user) - - if is_moderator: - assert settings_for_user.count() == 3 - else: - assert settings_for_user.count() == 2 - - frontpage_setting = settings[0] - frontpage_setting.trigger_frequency = FREQUENCY_WEEKLY - frontpage_setting.save() - comments_settings = settings[1] - comments_settings.trigger_frequency = FREQUENCY_NEVER - comments_settings.save() - - if is_moderator: - moderator_settings = settings[2] - moderator_settings.trigger_frequency = FREQUENCY_NEVER - moderator_settings.save() - - api.ensure_notification_settings(user) - assert frontpage_setting.trigger_frequency == settings_for_user[0].trigger_frequency - assert comments_settings.trigger_frequency == settings_for_user[1].trigger_frequency - - if is_moderator: - assert ( - moderator_settings.trigger_frequency - == settings_for_user[2].trigger_frequency - ) - - -def test_get_daily_frontpage_settings_ids(): - """Tests that get_daily_frontpage_settings_ids only triggers for daily settings""" - notification_settings = NotificationSettingsFactory.create_batch( - 5, daily=True, frontpage_type=True - ) - # these shouldn't show up - NotificationSettingsFactory.create_batch( - 5, daily=True, frontpage_type=True, user__is_active=False - ) - NotificationSettingsFactory.create_batch(5, weekly=True, frontpage_type=True) - - assert set(api.get_daily_frontpage_settings_ids()) == { - ns.id for ns in notification_settings - } - - -def test_get_weekly_frontpage_settings_ids(): - """Tests that get_weekly_frontpage_settings_ids only returns weekly settings""" - notification_settings = NotificationSettingsFactory.create_batch( - 5, weekly=True, frontpage_type=True - ) - # these shouldn't show up - NotificationSettingsFactory.create_batch( - 5, weekly=True, frontpage_type=True, user__is_active=False - ) - NotificationSettingsFactory.create_batch(5, daily=True, frontpage_type=True) - - assert set(api.get_weekly_frontpage_settings_ids()) == { - ns.id for ns in notification_settings - } - - -@pytest.mark.parametrize("side_effect", [None, Exception("bad_attempt_notify")]) -def test_attempt_send_notification_batch(mocker, side_effect): - """Verifies that attempt_send_notification_batch will attempt a notify on all settings""" - notification_settings = NotificationSettingsFactory.create_batch( - 5, weekly=True, frontpage_type=True - ) - mock_notifier = mocker.patch( - "notifications.notifiers.frontpage.FrontpageDigestNotifier", autospec=True - ) - mock_notifier_instance = mock_notifier.return_value - mock_notifier_instance.side_effect = side_effect - - api.attempt_send_notification_batch([ns.id for ns in notification_settings]) - - assert mock_notifier.call_count == len(notification_settings) - - for notificiation_setting in notification_settings: - mock_notifier.assert_any_call(notificiation_setting) - - assert mock_notifier_instance.attempt_notify.call_count == len( - notification_settings - ) - - -def test_send_unsent_email_notifications(mocker, settings): - """Tests that send_unsent_email_notifications triggers a task for each batch""" - - settings.NOTIFICATION_SEND_CHUNK_SIZE = 75 - - frontpage_notifications_ids = sorted( - [ - note.id - for note in EmailNotificationFactory.create_batch(150, frontpage_type=True) - ] - ) - - other_notifications_ids = sorted( - [ - note.id - for note in EmailNotificationFactory.create_batch(150, comments_type=True) - ] - ) - - mock_frontpage_task = mocker.patch( - "notifications.tasks.send_frontpage_email_notification_batch" - ).delay - - mock_other_notifications_task = mocker.patch( - "notifications.tasks.send_email_notification_batch" - ).delay - - assert ( - EmailNotification.objects.filter(state=EmailNotification.STATE_SENDING).count() - == 0 - ) - - api.send_unsent_email_notifications() - - assert mock_frontpage_task.call_count == 2 - mock_frontpage_task.assert_any_call(frontpage_notifications_ids[:75]) - mock_frontpage_task.assert_any_call(frontpage_notifications_ids[75:]) - - assert mock_other_notifications_task.call_count == 2 - mock_other_notifications_task.assert_any_call(other_notifications_ids[:75]) - mock_other_notifications_task.assert_any_call(other_notifications_ids[75:]) - - assert EmailNotification.objects.filter( - state=EmailNotification.STATE_SENDING - ).count() == len(frontpage_notifications_ids) + len(other_notifications_ids) - - -@pytest.mark.parametrize("should_cancel", (True, False)) -@pytest.mark.parametrize( - "notification_type, notifier_fqn", - [ - ( - NOTIFICATION_TYPE_COMMENTS, - "notifications.notifiers.comments.CommentNotifier", - ), - ( - NOTIFICATION_TYPE_FRONTPAGE, - "notifications.notifiers.frontpage.FrontpageDigestNotifier", - ), - ( - NOTIFICATION_TYPE_MODERATOR, - "notifications.notifiers.moderator_posts.ModeratorPostsNotifier", - ), - ], -) -def test_send_email_notification_batch( - mocker, should_cancel, notification_type, notifier_fqn -): - """Verify send_email_notification_batch calls the notifier for each of the notifications it is given""" - - notifications = EmailNotificationFactory.create_batch( - 5, notification_type=notification_type - ) - - if notification_type == NOTIFICATION_TYPE_MODERATOR: - channel = ChannelFactory.create() - - mock_admin_api = Mock() - - mock_admin_api.get_post().subreddit.display_name = channel.name - mocker.patch( - "notifications.api.get_admin_api", - autospec=True, - return_value=mock_admin_api, - ) - - for notification in notifications: - PostEventFactory.create(email_notification=notification) - - NotificationSettingsFactory.create( - user=notification.user, - notification_type=notification_type, - channel=channel, - ) - else: - for notification in notifications: - NotificationSettingsFactory.create( - user=notification.user, notification_type=notification_type - ) - - mock_notifier = mocker.patch(notifier_fqn).return_value - - if should_cancel: - mock_notifier.send_notification.side_effect = CancelNotificationError - - api.send_email_notification_batch([note.id for note in notifications]) - - assert mock_notifier.send_notification.call_count == len(notifications) - - for notification in notifications: - notification.refresh_from_db() - mock_notifier.send_notification.assert_any_call(notification) - - if should_cancel: - assert notification.state == EmailNotification.STATE_CANCELED - - -@pytest.mark.parametrize("post_id,comment_id", [("1", "4"), ("1", None)]) -def test_send_comment_notifications(post_id, comment_id): - """Tests that send_comment_notifications works correctly""" - comment_users = UserFactory.create_batch(5) - for user in comment_users: - NotificationSettingsFactory.create(user=user, comments_type=True) - # create both so we cover the notifiication deduplication - SubscriptionFactory.create(user=user, post_id=post_id, comment_id=comment_id) - SubscriptionFactory.create(user=user, post_id=post_id, comment_id=None) - - post_users = UserFactory.create_batch(5) - for user in post_users: - NotificationSettingsFactory.create(user=user, comments_type=True) - SubscriptionFactory.create(user=user, post_id=post_id, comment_id=None) - - # create just a subscription for a user so we can test no settings scenario - SubscriptionFactory.create(post_id=post_id, comment_id=comment_id) - - # create a bunch on other subscriptions - SubscriptionFactory.create_batch(10) - - api.send_comment_notifications(post_id, comment_id, "abc") - - users = post_users + comment_users - - assert CommentEvent.objects.count() == len(users) - for event in CommentEvent.objects.all(): - assert event.post_id == post_id - assert event.comment_id == "abc" - assert event.user in users - - -def test_send_moderator_notifications(mocker): - """Tests that send_moderator_notifications works correctly""" - - mod_user = UserFactory.create() - reddit_user = Mock() - reddit_user.name = mod_user.username - - channel = ChannelFactory.create() - - mock_api = Mock() - mock_api.list_moderators.return_value = [reddit_user] - - mocker.patch("notifications.api.get_admin_api", return_value=mock_api) - - NotificationSettingsFactory.create( - user=mod_user, channel=channel, notification_type=NOTIFICATION_TYPE_MODERATOR - ) - api.send_moderator_notifications("1", channel.name) - - assert PostEvent.objects.count() == 1 - event = PostEvent.objects.last() - assert event.post_id == "1" - assert event.user == mod_user - - assert EmailNotification.objects.count() == 1 - notification = EmailNotification.objects.last() - assert notification.user == mod_user - assert notification.notification_type == NOTIFICATION_TYPE_MODERATOR - - -def test_send_moderator_notifications_missing_setting(mocker): - """ - Tests that send_moderator_notifications creates a new notification setting and continues - if a moderator is missing a notification setting - """ - - mod_user = UserFactory.create() - reddit_user = Mock() - reddit_user.name = mod_user.username - - misconfigured_mod_user = UserFactory.create() - misconfigured_reddit_user = Mock() - misconfigured_reddit_user.name = misconfigured_mod_user.username - - channel = ChannelFactory.create() - - mock_api = Mock() - mock_api.list_moderators.return_value = [misconfigured_reddit_user, reddit_user] - - mocker.patch("notifications.api.get_admin_api", return_value=mock_api) - - NotificationSettingsFactory.create( - user=mod_user, channel=channel, notification_type=NOTIFICATION_TYPE_MODERATOR - ) - api.send_moderator_notifications("1", channel.name) - - new_setting = NotificationSettings.objects.last() - assert new_setting.user == misconfigured_mod_user - assert new_setting.channel == channel - assert new_setting.trigger_frequency == FREQUENCY_NEVER - - assert PostEvent.objects.count() == 2 - assert EmailNotification.objects.count() == 2 diff --git a/notifications/apps.py b/notifications/apps.py deleted file mode 100644 index 81652cb617..0000000000 --- a/notifications/apps.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Notification apps""" -from django.apps import AppConfig - - -class NotificationsConfig(AppConfig): - """Notifications config""" - - name = "notifications" diff --git a/notifications/factories.py b/notifications/factories.py deleted file mode 100644 index 8614bae1dc..0000000000 --- a/notifications/factories.py +++ /dev/null @@ -1,81 +0,0 @@ -"""Factories for making test data""" -import factory -from factory import Faker, SubFactory -from factory.django import DjangoModelFactory -from factory.fuzzy import FuzzyChoice -import pytz -import base36 - -from open_discussions.factories import UserFactory -from notifications.models import ( - NotificationSettings, - EmailNotification, - PostEvent, - FREQUENCIES, - FREQUENCY_IMMEDIATE, - FREQUENCY_DAILY, - FREQUENCY_WEEKLY, - FREQUENCY_NEVER, - NOTIFICATION_TYPES, - NOTIFICATION_TYPE_FRONTPAGE, - NOTIFICATION_TYPE_COMMENTS, -) - - -class NotificationSettingsFactory(DjangoModelFactory): - """Factory for NotificationSettings""" - - user = SubFactory(UserFactory) - notification_type = FuzzyChoice(NOTIFICATION_TYPES) - channel = None - - via_app = Faker("boolean") - via_email = Faker("boolean") - - trigger_frequency = FuzzyChoice(FREQUENCIES) - - class Meta: - model = NotificationSettings - - class Params: - frontpage_type = factory.Trait(notification_type=NOTIFICATION_TYPE_FRONTPAGE) - comments_type = factory.Trait(notification_type=NOTIFICATION_TYPE_COMMENTS) - - immediate = factory.Trait(trigger_frequency=FREQUENCY_IMMEDIATE) - weekly = factory.Trait(trigger_frequency=FREQUENCY_WEEKLY) - daily = factory.Trait(trigger_frequency=FREQUENCY_DAILY) - never = factory.Trait(trigger_frequency=FREQUENCY_NEVER) - - -class EmailNotificationFactory(DjangoModelFactory): - """Factory for EmailNotification""" - - user = SubFactory(UserFactory) - notification_type = FuzzyChoice(NOTIFICATION_TYPES) - - state = EmailNotification.STATE_PENDING - sent_at = None - - class Meta: - model = EmailNotification - - class Params: - frontpage_type = factory.Trait(notification_type=NOTIFICATION_TYPE_FRONTPAGE) - comments_type = factory.Trait(notification_type=NOTIFICATION_TYPE_COMMENTS) - - sent = factory.Trait( - state=EmailNotification.STATE_SENT, - sent_at=Faker("past_datetime", tzinfo=pytz.utc), - ) - sending = factory.Trait(state=EmailNotification.STATE_SENDING) - - -class PostEventFactory(DjangoModelFactory): - """Factory for PostEvent""" - - user = SubFactory(UserFactory) - post_id = factory.Sequence(base36.dumps) - email_notification = SubFactory(EmailNotificationFactory) - - class Meta: - model = PostEvent diff --git a/notifications/management/__init__.py b/notifications/management/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/notifications/management/commands/__init__.py b/notifications/management/commands/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/notifications/management/commands/populate_notification_settings.py b/notifications/management/commands/populate_notification_settings.py deleted file mode 100644 index 9f5065765c..0000000000 --- a/notifications/management/commands/populate_notification_settings.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Command to populate user notification settings""" -from django.core.management.base import BaseCommand -from django.contrib.auth import get_user_model - -from notifications import api - - -class Command(BaseCommand): - """Populates user notification setting""" - - help = "Populates user notification settings" - - def add_arguments(self, parser): - parser.add_argument("--username", nargs="?", action="append") - - def handle(self, *args, **options): - users = get_user_model().objects.all() - - if options["username"]: - users = users.filter(username__in=options["username"]) - - for user in users.iterator(): - api.ensure_notification_settings(user) diff --git a/notifications/migrations/0001_add_notification_settings.py b/notifications/migrations/0001_add_notification_settings.py deleted file mode 100644 index 606ef66454..0000000000 --- a/notifications/migrations/0001_add_notification_settings.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.5 on 2018-02-14 21:05 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] - - operations = [ - migrations.CreateModel( - name="NotificationSettings", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ( - "notification_type", - models.CharField( - choices=[("frontpage", "Frontpage"), ("comments", "Comments")], - max_length=20, - ), - ), - ("via_app", models.BooleanField(default=False)), - ("via_email", models.BooleanField(default=True)), - ( - "trigger_frequency", - models.CharField( - choices=[ - ("never", "Never"), - ("immediate", "Immediate"), - ("daily", "Daily"), - ("weekly", "Weekly"), - ], - max_length=10, - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="notification_settings", - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="notificationsettings", - unique_together=set([("user", "notification_type")]), - ), - ] diff --git a/notifications/migrations/0002_add_notifications.py b/notifications/migrations/0002_add_notifications.py deleted file mode 100644 index d1eaadc1a4..0000000000 --- a/notifications/migrations/0002_add_notifications.py +++ /dev/null @@ -1,71 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.5 on 2018-03-05 16:03 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("notifications", "0001_add_notification_settings"), - ] - - operations = [ - migrations.CreateModel( - name="EmailNotification", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ( - "notification_type", - models.CharField( - choices=[("frontpage", "Frontpage"), ("comments", "Comments")], - max_length=20, - ), - ), - ( - "state", - models.CharField( - choices=[ - ("pending", "Pending"), - ("sending", "Sending"), - ("sent", "Sent"), - ], - default="pending", - max_length=10, - ), - ), - ("sent_at", models.DateTimeField(null=True)), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterIndexTogether( - name="notificationsettings", - index_together=set([("notification_type", "trigger_frequency")]), - ), - migrations.AlterIndexTogether( - name="emailnotification", - index_together=set( - [("state", "updated_on"), ("user", "notification_type", "created_on")] - ), - ), - ] diff --git a/notifications/migrations/0003_add_notification_skipped.py b/notifications/migrations/0003_add_notification_skipped.py deleted file mode 100644 index 1a4a88c5c0..0000000000 --- a/notifications/migrations/0003_add_notification_skipped.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.5 on 2018-03-09 16:04 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [("notifications", "0002_add_notifications")] - - operations = [ - migrations.AlterField( - model_name="emailnotification", - name="state", - field=models.CharField( - choices=[ - ("pending", "Pending"), - ("sending", "Sending"), - ("sent", "Sent"), - ("canceled", "Canceled"), - ], - default="pending", - max_length=10, - ), - ) - ] diff --git a/notifications/migrations/0004_add_comment_event.py b/notifications/migrations/0004_add_comment_event.py deleted file mode 100644 index b077a34aeb..0000000000 --- a/notifications/migrations/0004_add_comment_event.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.10 on 2018-03-29 14:45 -from __future__ import unicode_literals - -import channels.models -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("notifications", "0003_add_notification_skipped"), - ] - - operations = [ - migrations.CreateModel( - name="CommentEvent", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("post_id", channels.models.Base36IntegerField()), - ("comment_id", channels.models.Base36IntegerField(null=True)), - ( - "email_notification", - models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="notifications.EmailNotification", - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AlterUniqueTogether( - name="commentevent", - unique_together=set([("user", "post_id", "comment_id")]), - ), - ] diff --git a/notifications/migrations/0005_moderator_post_notifications.py b/notifications/migrations/0005_moderator_post_notifications.py deleted file mode 100644 index b1c557f834..0000000000 --- a/notifications/migrations/0005_moderator_post_notifications.py +++ /dev/null @@ -1,74 +0,0 @@ -# Generated by Django 2.2.13 on 2020-11-12 18:34 - -import channels.models -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ("notifications", "0004_add_comment_event"), - ] - - operations = [ - migrations.AlterField( - model_name="emailnotification", - name="notification_type", - field=models.CharField( - choices=[ - ("frontpage", "Frontpage"), - ("comments", "Comments"), - ("moderator_posts", "Moderator"), - ], - max_length=20, - ), - ), - migrations.AlterField( - model_name="notificationsettings", - name="notification_type", - field=models.CharField( - choices=[ - ("frontpage", "Frontpage"), - ("comments", "Comments"), - ("moderator_posts", "Moderator"), - ], - max_length=20, - ), - ), - migrations.CreateModel( - name="PostEvent", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("created_on", models.DateTimeField(auto_now_add=True)), - ("updated_on", models.DateTimeField(auto_now=True)), - ("post_id", channels.models.Base36IntegerField()), - ( - "email_notification", - models.ForeignKey( - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="notifications.EmailNotification", - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - options={"unique_together": {("user", "post_id")}}, - ), - ] diff --git a/notifications/migrations/0006_moderator_post_notifiacation_channel.py b/notifications/migrations/0006_moderator_post_notifiacation_channel.py deleted file mode 100644 index b2e973759e..0000000000 --- a/notifications/migrations/0006_moderator_post_notifiacation_channel.py +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by Django 2.2.13 on 2021-01-05 02:48 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ("channels", "0026_channel_moderator_notifications"), - ("notifications", "0005_moderator_post_notifications"), - ] - - operations = [ - migrations.AddField( - model_name="notificationsettings", - name="channel", - field=models.ForeignKey( - blank=True, - default=None, - null=True, - on_delete=django.db.models.deletion.CASCADE, - to="channels.Channel", - ), - ), - migrations.AlterUniqueTogether( - name="notificationsettings", unique_together=set() - ), - migrations.AddConstraint( - model_name="notificationsettings", - constraint=models.UniqueConstraint( - fields=("user", "notification_type", "channel"), - name="unique_with_channel", - ), - ), - migrations.AddConstraint( - model_name="notificationsettings", - constraint=models.UniqueConstraint( - condition=models.Q(channel=None), - fields=("user", "notification_type"), - name="unique_without_channel", - ), - ), - ] diff --git a/notifications/migrations/__init__.py b/notifications/migrations/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/notifications/models.py b/notifications/models.py deleted file mode 100644 index e1992a5854..0000000000 --- a/notifications/models.py +++ /dev/null @@ -1,174 +0,0 @@ -"""Notification models""" -from django.conf import settings -from django.db import models -from django.db.models import Q -from django.db.models.constraints import UniqueConstraint - -from channels.models import Base36IntegerField, Channel -from open_discussions.models import TimestampedModel - -NOTIFICATION_TYPE_FRONTPAGE = "frontpage" -NOTIFICATION_TYPE_COMMENTS = "comments" -NOTIFICATION_TYPE_MODERATOR = "moderator_posts" -NOTIFICATION_TYPE_CHOICES = ( - (NOTIFICATION_TYPE_FRONTPAGE, "Frontpage"), - (NOTIFICATION_TYPE_COMMENTS, "Comments"), - (NOTIFICATION_TYPE_MODERATOR, "Moderator"), -) -NOTIFICATION_TYPES = [choice[0] for choice in NOTIFICATION_TYPE_CHOICES] - -FREQUENCY_IMMEDIATE = "immediate" -FREQUENCY_DAILY = "daily" -FREQUENCY_WEEKLY = "weekly" -FREQUENCY_NEVER = "never" -FREQUENCY_CHOICES = ( - (FREQUENCY_NEVER, "Never"), - (FREQUENCY_IMMEDIATE, "Immediate"), - (FREQUENCY_DAILY, "Daily"), - (FREQUENCY_WEEKLY, "Weekly"), -) -FREQUENCIES = [choice[0] for choice in FREQUENCY_CHOICES] - -DELIVERY_TYPE_EMAIL = "email" -DELIVERY_TYPE_IN_APP = "in_app" -DELIVERY_TYPE_CHOICES = ( - (DELIVERY_TYPE_EMAIL, "Email"), - (DELIVERY_TYPE_IN_APP, "In App"), -) - - -class NotificationSettings(TimestampedModel): - """Notification settings""" - - user = models.ForeignKey( - settings.AUTH_USER_MODEL, - on_delete=models.CASCADE, - related_name="notification_settings", - ) - - notification_type = models.CharField( - max_length=20, choices=NOTIFICATION_TYPE_CHOICES - ) - - via_app = models.BooleanField(default=False) - via_email = models.BooleanField(default=True) - - trigger_frequency = models.CharField( - max_length=10, choices=FREQUENCY_CHOICES, blank=False - ) - - channel = models.ForeignKey( - Channel, on_delete=models.CASCADE, default=None, blank=True, null=True - ) - - @classmethod - def frontpage_settings(cls): - """Returns a QuerySet filtered to frontpage notification settings""" - return cls.objects.filter(notification_type=NOTIFICATION_TYPE_FRONTPAGE) - - @property - def is_triggered_daily(self): - """Returns True if the trigger_frequency is daily""" - return self.trigger_frequency == FREQUENCY_DAILY - - @property - def is_triggered_weekly(self): - """Returns True if the trigger_frequency is weekly""" - return self.trigger_frequency == FREQUENCY_WEEKLY - - @property - def is_triggered_immediate(self): - """Returns True if the trigger_frequency is immediate""" - return self.trigger_frequency == FREQUENCY_IMMEDIATE - - @property - def is_triggered_never(self): - """Returns True if the trigger_frequency is never""" - return self.trigger_frequency == FREQUENCY_NEVER - - class Meta: - constraints = [ - UniqueConstraint( - fields=["user", "notification_type", "channel"], - name="unique_with_channel", - ), - UniqueConstraint( - fields=["user", "notification_type"], - condition=Q(channel=None), - name="unique_without_channel", - ), - ] - - index_together = (("notification_type", "trigger_frequency"),) - - -class NotificationBase(TimestampedModel): - """ - Abstract base model for notifications - - The intent here is to keep a core base behavior that is simple, but allow - specific delivery mechanisms to add their own fields by having them be separate tables - """ - - user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - - notification_type = models.CharField( - max_length=20, choices=NOTIFICATION_TYPE_CHOICES - ) - - class Meta: - abstract = True - - index_together = (("user", "notification_type", "created_on"),) - - -class EmailNotification(NotificationBase): - """Notification model for emails""" - - STATE_PENDING = "pending" - STATE_SENDING = "sending" - STATE_SENT = "sent" - STATE_CANCELED = "canceled" - STATE_CHOICES = ( - (STATE_PENDING, "Pending"), - (STATE_SENDING, "Sending"), - (STATE_SENT, "Sent"), - (STATE_CANCELED, "Canceled"), - ) - - state = models.CharField( - choices=STATE_CHOICES, max_length=10, default=STATE_PENDING - ) - sent_at = models.DateTimeField(null=True) - - class Meta: - index_together = ( - ("state", "updated_on"), - ) + NotificationBase.Meta.index_together - - -class CommentEvent(TimestampedModel): - """Represents a new comment on a subscribed object""" - - user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - post_id = Base36IntegerField() - comment_id = Base36IntegerField(null=True) - email_notification = models.ForeignKey( - EmailNotification, on_delete=models.CASCADE, null=True - ) - - class Meta: - unique_together = (("user", "post_id", "comment_id"),) - - -class PostEvent(TimestampedModel): - """Represents a new post in a chennel where the moderators want to see post notifications""" - - user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) - post_id = Base36IntegerField() - email_notification = models.ForeignKey( - EmailNotification, on_delete=models.CASCADE, null=True - ) - - class Meta: - unique_together = (("user", "post_id"),) diff --git a/notifications/models_test.py b/notifications/models_test.py deleted file mode 100644 index 703342debb..0000000000 --- a/notifications/models_test.py +++ /dev/null @@ -1,24 +0,0 @@ -"""Tests for models""" -import pytest - -from notifications.factories import NotificationSettingsFactory -from notifications.models import ( - FREQUENCY_IMMEDIATE, - FREQUENCY_DAILY, - FREQUENCY_NEVER, - FREQUENCY_WEEKLY, - FREQUENCIES, -) - -pytestmark = pytest.mark.django_db - - -@pytest.mark.parametrize("trigger_frequency", FREQUENCIES) -def test_triggered_properties(trigger_frequency): - """Test that the is_triggered_X properties return correct values""" - ns = NotificationSettingsFactory.create(trigger_frequency=trigger_frequency) - - assert ns.is_triggered_immediate is (trigger_frequency == FREQUENCY_IMMEDIATE) - assert ns.is_triggered_never is (trigger_frequency == FREQUENCY_NEVER) - assert ns.is_triggered_weekly is (trigger_frequency == FREQUENCY_WEEKLY) - assert ns.is_triggered_daily is (trigger_frequency == FREQUENCY_DAILY) diff --git a/notifications/notifiers/__init__.py b/notifications/notifiers/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/notifications/notifiers/base.py b/notifications/notifiers/base.py deleted file mode 100644 index 902c11af8d..0000000000 --- a/notifications/notifiers/base.py +++ /dev/null @@ -1,126 +0,0 @@ -"""Base implementation for sending notifications""" -import logging -from datetime import timedelta - -from notifications.notifiers.exceptions import InvalidTriggerFrequencyError -from notifications.models import NotificationBase -from open_discussions.utils import now_in_utc, normalize_to_start_of_day - -DELTA_ONE_DAY = timedelta(days=1) -DELTA_ONE_WEEK = timedelta(days=7) - -log = logging.getLogger() - - -class BaseNotifier: - """Base class for notifier""" - - def __init__(self, notification_cls, notification_settings): - if not issubclass(notification_cls, NotificationBase): - raise AttributeError( - "'notification_cls' must be a subclass of NotificationBase" - ) - self.notification_cls = notification_cls - self.notification_settings = notification_settings - - @property - def user(self): - """Returns the user for this notifier""" - return self.notification_settings.user - - def _get_most_recent_notification(self, before=None): - """ - Get the most recent notification - - Args: - before (NotificationBase): notification to filter recent notifications before - - Returns: - NotificationBase: concrete instance of a notification or None - """ - query = self.notification_cls.objects.filter( - user=self.user, - notification_type=self.notification_settings.notification_type, - ) - - if before is not None: - query = query.filter(created_on__lt=before.created_on) - - return query.order_by("-created_on").first() - - def can_notify(self, last_notification): - """ - Returns true if we can notify this user based on their settings and when the last notification occurred - - Args: - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid - - Returns: - bool: True if we're due to send another notification - """ - if ( - not self.notification_settings.user.is_active - or self.notification_settings.is_triggered_never - ): - return False - - # special case if we've never sent a notification or the setting is for an immediate send - if ( - last_notification is None - or self.notification_settings.is_triggered_immediate - ): - return True - - # normalize now and created_on to the start of their respective days - normalized_now = normalize_to_start_of_day(now_in_utc()) - normalized_created_on = normalize_to_start_of_day(last_notification.created_on) - - if self.notification_settings.is_triggered_daily: - trigger_offset = DELTA_ONE_DAY - elif self.notification_settings.is_triggered_weekly: - trigger_offset = DELTA_ONE_WEEK - else: - # practically, we'd only see this if our code called a notifier invalidly for a NEVER trigger_frequency - raise InvalidTriggerFrequencyError( - "Unsupported trigger_frequency: {}".format( - self.notification_settings.trigger_frequency - ) - ) - - # return true if the normalized value is at least trigger_offset in the past - return (normalized_created_on + trigger_offset) <= normalized_now - - def attempt_notify(self): - """ - Attempts to notify the recipient - - Returns: - NotificationBase: concrete instance of a notification or None - """ - last_notification = self._get_most_recent_notification() - - if self.can_notify(last_notification): - return self.notify() - - return None - - def notify(self): - """ - Attempts to notify the recipient via email - """ - return self._create_notification() - - def _create_notification(self): - """ - Get the most recent notification - - Returns: - NotificationBase: concrete instance of a notification or None - """ - return self.notification_cls.objects.create( - user=self.user, - notification_type=self.notification_settings.notification_type, - ) diff --git a/notifications/notifiers/base_test.py b/notifications/notifiers/base_test.py deleted file mode 100644 index 1486c49084..0000000000 --- a/notifications/notifiers/base_test.py +++ /dev/null @@ -1,95 +0,0 @@ -"""Tests for BaseNotifier""" -# pylint: disable=redefined-outer-name -from datetime import datetime, timedelta - -import pytest -import pytz - -from notifications.factories import NotificationSettingsFactory -from notifications.models import NotificationBase, FREQUENCY_DAILY, FREQUENCY_WEEKLY -from notifications.notifiers.base import BaseNotifier, DELTA_ONE_WEEK, DELTA_ONE_DAY -from notifications.notifiers.exceptions import InvalidTriggerFrequencyError -from open_discussions.utils import now_in_utc - -pytestmark = pytest.mark.django_db - - -@pytest.fixture -def notifier(mocker): - """BaseNotifier fixture""" - # bypass the typecheck here - notifier = BaseNotifier(NotificationBase, None) - notifier.notification_cls = mocker.Mock(spec=NotificationBase) - return notifier - - -def test_invalid_notification_cls(): - """Tests that an AttributeError is raised""" - - class _NotANotification: - """Dummy class that doesn't subclass NotificationBase""" - - with pytest.raises(AttributeError): - BaseNotifier(_NotANotification, None) - - -@pytest.mark.parametrize("is_active", [True, False]) -def test_can_notify_immediate(notifier, mocker, is_active): - """Tests that if the settings are for immediate the notification triggers""" - notifier.notification_settings = NotificationSettingsFactory.create( - immediate=True, user__is_active=is_active - ) - assert notifier.can_notify(mocker.Mock()) is is_active - - -@pytest.mark.parametrize("expected", [True, False]) -@pytest.mark.parametrize("frequency", [FREQUENCY_DAILY, FREQUENCY_WEEKLY]) -@pytest.mark.parametrize("hour_of_day", range(23)) -def test_can_notify(notifier, mocker, frequency, expected, hour_of_day): - """Tests that it triggers correctly given the last notification""" - now = datetime(2018, 4, 18, hour_of_day, 0, 0, tzinfo=pytz.utc) - if expected is False: - offset = timedelta(0) - else: - offset = DELTA_ONE_DAY if frequency == FREQUENCY_DAILY else DELTA_ONE_WEEK - mocker.patch("notifications.notifiers.base.now_in_utc", return_value=now) - notifier.notification_settings = NotificationSettingsFactory.create( - trigger_frequency=frequency - ) - notification = mocker.Mock() - notification.created_on = datetime(2018, 4, 18, 0, 0, 0, tzinfo=pytz.utc) - offset - assert notifier.can_notify(notification) is expected - - -def test_can_notify_never(notifier, mocker): - """Tests that if the settings are for never the can_notify is False""" - notifier.notification_settings = NotificationSettingsFactory.create(never=True) - assert notifier.can_notify(mocker.Mock()) is False - - -def test_can_notify_invalid_frequency(notifier, mocker): - """Tests that this raises an error if an unsupported trigger_frequency is used""" - notifier.notification_settings = NotificationSettingsFactory.create( - trigger_frequency="bananas" - ) - notification = mocker.Mock() - notification.created_on = now_in_utc() - with pytest.raises(InvalidTriggerFrequencyError): - notifier.can_notify(notification) - - -@pytest.mark.parametrize("can_notify", [True, False]) -def test_attempt_notify(notifier, mocker, can_notify): - """Tests that this creates a new notification in pending status""" - ns = NotificationSettingsFactory.create(immediate=True) - notifier.notification_settings = ns - mocker.patch.object(notifier, "can_notify", return_value=can_notify) - - notifier.attempt_notify() - - if can_notify: - notifier.notification_cls.objects.create.assert_called_once_with( - user=ns.user, notification_type=ns.notification_type - ) - else: - notifier.notification_cls.objects.create.assert_not_called() diff --git a/notifications/notifiers/comments.py b/notifications/notifiers/comments.py deleted file mode 100644 index 1f5733ca42..0000000000 --- a/notifications/notifiers/comments.py +++ /dev/null @@ -1,98 +0,0 @@ -"""Subscription notifiers""" -from django.db import transaction -from praw.models import Comment - -from channels import api -from channels.proxies import proxy_post -from channels.serializers.comments import CommentSerializer -from channels.serializers.posts import PostSerializer -from notifications.models import CommentEvent -from notifications.notifiers.email import EmailNotifier -from notifications.utils import praw_error_to_cancelled -from open_discussions import features - - -class CommentNotifier(EmailNotifier): - """Notifier for post/comment subscriptions""" - - def __init__(self, notification_settings): - super().__init__("comments", notification_settings) - - def can_notify(self, last_notification): - """ - Returns true if we can notify this user based on their settings and when the last notification occurred - - Args: - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid - - Returns: - bool: True if we're due to send another notification - """ - return features.is_enabled( - features.COMMENT_NOTIFICATIONS - ) and super().can_notify(last_notification) - - @praw_error_to_cancelled() - def _get_notification_data( - self, current_notification, last_notification - ): # pylint: disable=unused-argument - """ - Gets the data for this notification - - Args: - current_notification (NotificationBase): current notification we're sending for - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid for the frontpage digest - """ - event = CommentEvent.objects.get(email_notification=current_notification) - api_client = api.Api(self.user) - comment = api_client.get_comment(event.comment_id) - parent = comment.parent() - is_comment_reply = isinstance(parent, Comment) - ctx = {"current_user": self.user} - - post = proxy_post(comment.submission) - - if not is_comment_reply: - parent = proxy_post(parent) - - return { - "is_comment_reply": is_comment_reply, - "post": PostSerializer(post, context=ctx).data, - "parent": ( - CommentSerializer(parent, context=ctx) - if is_comment_reply - else PostSerializer(parent, context=ctx) - ).data, - "comment": CommentSerializer(comment, context=ctx).data, - } - - def create_comment_event(self, subscription, comment_id): - """ - Creates a new CommentEvent - - Args: - subscription (channels.models.Subscription): the subscription this event is triggered from - comment_id (str): the base36 id of the new comment - - Returns: - CommentEvent: the created event - """ - kwargs = {} - - with transaction.atomic(): - # if this is an immediate trigger notification, create and assign the event to it right away - if self.notification_settings.is_triggered_immediate: - kwargs["email_notification"] = self._create_notification() - - return CommentEvent.objects.create( - user=subscription.user, - post_id=subscription.post_id, - comment_id=comment_id, - **kwargs, - ) diff --git a/notifications/notifiers/comments_test.py b/notifications/notifiers/comments_test.py deleted file mode 100644 index 36c1f13ca2..0000000000 --- a/notifications/notifiers/comments_test.py +++ /dev/null @@ -1,84 +0,0 @@ -"""Tests for comments notifier""" -from django.core.mail import EmailMessage -import pytest - -from channels.models import Subscription -from channels.factories.models import SubscriptionFactory -from notifications.factories import NotificationSettingsFactory -from notifications.models import EmailNotification -from notifications.notifiers import comments -from open_discussions import features -from open_discussions.test_utils import any_instance_of - -pytestmark = [pytest.mark.django_db] - - -@pytest.mark.parametrize("is_enabled", [True, False]) -@pytest.mark.parametrize("can_notify", [True, False]) -def test_can_notify(mocker, settings, is_enabled, can_notify): - """Test that can_notify works correctly""" - mock_can_notify = mocker.patch( - "notifications.notifiers.email.EmailNotifier.can_notify", - return_value=can_notify, - ) - notifier = comments.CommentNotifier(None) - settings.FEATURES[features.COMMENT_NOTIFICATIONS] = is_enabled - mock_notification = mocker.Mock() - expected = is_enabled and can_notify - assert notifier.can_notify(mock_notification) is expected - if is_enabled: - mock_can_notify.assert_called_once_with(mock_notification) - else: - mock_can_notify.assert_not_called() - - -@pytest.mark.parametrize("is_immediate", [True, False]) -@pytest.mark.parametrize("is_comment", [True, False]) -def test_create_comment_event(is_immediate, is_comment): - """Tests that create_comment_event works correctly""" - ns = NotificationSettingsFactory.create( - immediate=is_immediate, never=not is_immediate - ) - notifier = comments.CommentNotifier(ns) - subscription = SubscriptionFactory.create(user=ns.user, is_comment=is_comment) - event = notifier.create_comment_event(subscription, "h") - - assert event.post_id == subscription.post_id - assert event.comment_id == "h" - - if is_immediate: - assert event.email_notification is not None - else: - assert event.email_notification is None - - -@pytest.mark.betamax -@pytest.mark.parametrize("is_parent_comment", [True, False]) -def test_send_notification( - mocker, is_parent_comment, reddit_factories, private_channel_and_contributor -): - """Tests send_notification""" - channel, user = private_channel_and_contributor - ns = NotificationSettingsFactory.create( - user=user, comments_type=True, via_email=True, immediate=True - ) - notifier = comments.CommentNotifier(ns) - send_messages_mock = mocker.patch("mail.api.send_messages") - post = reddit_factories.text_post("just a post", user, channel=channel) - comment = reddit_factories.comment("just a comment", user, post_id=post.id) - if is_parent_comment: - subscription = Subscription.objects.create( - user=user, comment_id=comment.id, post_id=post.id - ) - comment = reddit_factories.comment("reply comment", user, comment_id=comment.id) - else: - subscription = Subscription.objects.create(user=user, post_id=post.id) - - event = notifier.create_comment_event(subscription, comment.id) - note = event.email_notification - note.state = EmailNotification.STATE_SENDING - note.save() - - notifier.send_notification(note) - - send_messages_mock.assert_called_once_with([any_instance_of(EmailMessage)]) diff --git a/notifications/notifiers/email.py b/notifications/notifiers/email.py deleted file mode 100644 index 420da8141a..0000000000 --- a/notifications/notifiers/email.py +++ /dev/null @@ -1,103 +0,0 @@ -"""Email-based notifier""" -import logging - -from mail import api -from notifications.notifiers.exceptions import CancelNotificationError -from notifications.notifiers.base import BaseNotifier -from notifications.models import EmailNotification -from notifications import utils -from open_discussions import features - -log = logging.getLogger() - - -class EmailNotifier(BaseNotifier): - """Notifier for email notifications""" - - def __init__(self, template_name, notification_settings): - # sets notification_cls - super().__init__(EmailNotification, notification_settings) - self._template_name = template_name - - def can_notify(self, last_notification): - """ - Returns true if we can notify this user based on their settings and when the last notification occurred - - Args: - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid - - Returns: - bool: True if we're due to send another notification - """ - return ( - features.is_enabled(features.EMAIL_NOTIFICATIONS) - and self.notification_settings.via_email - and api.can_email_user(self.user) - and super().can_notify(last_notification) - ) - - def _get_notification_data( - self, current_notification, last_notification - ): # pylint: disable=unused-argument - """ - Gets the data for this notification - - Args: - current_notification (NotificationBase): current notification we're sending for - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid for the frontpage digest - """ - return {} - - def send_notification(self, email_notification): - """ - Sends the notification to the user - - Args: - email_notification (EmailNotification): the notification to be sent - """ - messages = None - user = email_notification.user - - with utils.mark_as_sent_or_canceled(email_notification) as will_send: - # check against programmer error - if user != self.user: - raise Exception( # pylint: disable=broad-exception-raised - "Notification user doesn't match settings user" - ) - # if we're trying to send an email, but the preference is never, we should just cancel it - if self.notification_settings.is_triggered_never: - raise CancelNotificationError() - - if not will_send: - return - - last_notification = self._get_most_recent_notification( - before=email_notification - ) - - data = self._get_notification_data(email_notification, last_notification) - - # generate the message (there's only 1) - messages = list( - api.messages_for_recipients( - [ - (recipient, api.context_for_user(user=user, extra_context=data)) - for recipient, user in api.safe_format_recipients([user]) - ], - self._template_name, - ) - ) - - if not messages: - raise CancelNotificationError() - - # we don't want an error sending to cause a resend, because it could cause us to actually send it twice - if messages: - # if we got this far and have messages, send them - api.send_messages(messages) diff --git a/notifications/notifiers/email_test.py b/notifications/notifiers/email_test.py deleted file mode 100644 index 848f0e32f1..0000000000 --- a/notifications/notifiers/email_test.py +++ /dev/null @@ -1,128 +0,0 @@ -"""Tests for EmailNotifier""" -# pylint: disable=redefined-outer-name -from django.core.mail import EmailMessage -import pytest - -from notifications.factories import ( - EmailNotificationFactory, - NotificationSettingsFactory, -) -from notifications.models import EmailNotification, FREQUENCY_NEVER -from notifications.notifiers import email -from open_discussions import features -from open_discussions.test_utils import any_instance_of - -pytestmark = [pytest.mark.django_db, pytest.mark.usefixtures("notifier_settings")] - - -@pytest.fixture -def notifier_settings(settings): - """Default settings""" - settings.FEATURES[features.EMAIL_NOTIFICATIONS] = True - - -@pytest.fixture -def notifier(): - """Fixture for EmailNotifier""" - return email.EmailNotifier( - "frontpage", NotificationSettingsFactory.create(daily=True) - ) - - -@pytest.mark.parametrize("is_enabled", [True, False]) -@pytest.mark.parametrize("can_notify", [True, False]) -@pytest.mark.parametrize("via_email", [True, False]) -def test_can_notify(settings, mocker, is_enabled, can_notify, via_email): - """Test can_notify""" - can_notify_mock = mocker.patch( - "notifications.notifiers.base.BaseNotifier.can_notify", return_value=can_notify - ) - ns = NotificationSettingsFactory.create(via_email=via_email) - notifier = email.EmailNotifier("frontpage", ns) - note_mock = mocker.Mock() - settings.FEATURES[features.EMAIL_NOTIFICATIONS] = is_enabled - - expected = is_enabled and can_notify and via_email - assert notifier.can_notify(note_mock) is expected - - if is_enabled and via_email: - can_notify_mock.assert_called_once_with(note_mock) - - -def test_send_notification(notifier, mocker): - """Tests send_notification""" - send_messages_mock = mocker.patch("mail.api.send_messages") - note = EmailNotificationFactory.create( - user=notifier.user, - notification_type=notifier.notification_settings.notification_type, - sending=True, - ) - - notifier.send_notification(note) - - send_messages_mock.assert_called_once_with([any_instance_of(EmailMessage)]) - - -def test_send_notification_already_sent(notifier, mocker): - """Tests send_notification that it doesn't send a notification that has already been sent""" - send_messages_mock = mocker.patch("mail.api.send_messages") - note = EmailNotificationFactory.create( - user=notifier.user, - notification_type=notifier.notification_settings.notification_type, - sent=True, - ) - - notifier.send_notification(note) - - send_messages_mock.assert_not_called() - - -def test_send_notification_no_messages(notifier, mocker): - """Tests send_notification that it cancels the notification if a message can't be sent""" - send_messages_mock = mocker.patch("mail.api.send_messages") - mocker.patch("mail.api.messages_for_recipients", return_value=[]) - note = EmailNotificationFactory.create( - user=notifier.user, - notification_type=notifier.notification_settings.notification_type, - sending=True, - ) - - notifier.send_notification(note) - - note.refresh_from_db() - assert note.state == EmailNotification.STATE_CANCELED - - send_messages_mock.assert_not_called() - - -def test_send_notification_no_user_mismatch(notifier, mocker): - """Tests send_notification that it raises an error if the user mismatches""" - send_messages_mock = mocker.patch("mail.api.send_messages") - mocker.patch("mail.api.messages_for_recipients", return_value=[]) - note = EmailNotificationFactory.create( - notification_type=notifier.notification_settings.notification_type, sending=True - ) - - notifier.send_notification(note) - - note.refresh_from_db() - assert note.state == EmailNotification.STATE_PENDING - - send_messages_mock.assert_not_called() - - -def test_send_notification_never(notifier, mocker): - """Tests send_notification if trigger_frequency is never""" - send_messages_mock = mocker.patch("mail.api.send_messages") - notifier.notification_settings.trigger_frequency = FREQUENCY_NEVER - note = EmailNotificationFactory.create( - user=notifier.user, - notification_type=notifier.notification_settings.notification_type, - sending=True, - ) - - notifier.send_notification(note) - note.refresh_from_db() - assert note.state == EmailNotification.STATE_CANCELED - - send_messages_mock.assert_not_called() diff --git a/notifications/notifiers/exceptions.py b/notifications/notifiers/exceptions.py deleted file mode 100644 index e201a7748a..0000000000 --- a/notifications/notifiers/exceptions.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Notifier exceptions""" - - -class NotifierException(Exception): - """Exception sending notification""" - - -class InvalidTriggerFrequencyError(NotifierException): - """The trigger frequency is invalid""" - - -class UnsupportedNotificationTypeError(NotifierException): - """The notification type was invalid""" - - -class CancelNotificationError(NotifierException): - """The notification should be canceled""" diff --git a/notifications/notifiers/frontpage.py b/notifications/notifiers/frontpage.py deleted file mode 100644 index 4fdf9f91d5..0000000000 --- a/notifications/notifiers/frontpage.py +++ /dev/null @@ -1,182 +0,0 @@ -"""Notifier for frontpage digest""" -from datetime import datetime - -from django.conf import settings -import pytz - -from channels import api -from channels.proxies import proxy_posts -from channels.serializers import posts as post_serializers -from channels.utils import ListingParams -from course_catalog.models import PodcastEpisode -from course_catalog.serializers import PodcastEpisodeSerializer -from notifications.models import FREQUENCY_DAILY, FREQUENCY_WEEKLY -from notifications.notifiers.email import EmailNotifier -from notifications.notifiers.exceptions import ( - InvalidTriggerFrequencyError, - CancelNotificationError, -) -from open_discussions import features - -DAILY_LISTING_PARAMS = ListingParams(None, None, 0, api.POSTS_SORT_HOT) -WEEKLY_LISTING_PARAMS = ListingParams(None, None, 0, api.POSTS_SORT_TOP) - - -def _get_listing_params(trigger_frequency): - """ - Returns the listing params for the given trigger_frequency - - Args: - trigger_frequency (str): trigger frequency to query for - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid for the frontpage digest - - Returns: - ListingParams: the listing params configured for this trigger_frequency - """ - if trigger_frequency == FREQUENCY_DAILY: - return DAILY_LISTING_PARAMS - elif trigger_frequency == FREQUENCY_WEEKLY: - return WEEKLY_LISTING_PARAMS - else: - raise InvalidTriggerFrequencyError( - "Trigger frequency '{}' is invalid for frontpage".format(trigger_frequency) - ) - - -def _is_post_after_notification(post, notification): - """ - Returns True if the post was created after the specified notification - - Args: - notification_settings (NotificationSettings): settings for this user and notification_type - notification (NotificationBase): notification that was triggered for this NotificationSettings - - Returns: - bool: True if the post was created after the specified notification - """ - if notification is None: - return True - return datetime.fromtimestamp(post.created, tz=pytz.utc) > notification.created_on - - -def _posts_since_notification(notification_settings, notification): - """ - Returns posts that were created after the given notification - - Args: - notification_settings (NotificationSettings): settings for this user and notification_type - notification (NotificationBase): notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid - - Returns: - list of praw.models.Submission: list of posts - """ - user = notification_settings.user - params = _get_listing_params(notification_settings.trigger_frequency) - api_client = api.Api(user) - - posts = api_client.front_page(params) - - # filter posts - posts = [ - post - for post in posts - if not post.stickied and _is_post_after_notification(post, notification) - ] - - posts = proxy_posts(posts) - posts = list( - filter(lambda post: not post._self_post.exclude_from_frontpage_emails, posts) - ) - posts = posts[: settings.MITOPEN_FRONTPAGE_DIGEST_MAX_POSTS] - - return posts - - -def _podcast_episodes_since_notification(notification): - """ - Returns podcast episodes that were created after the given notification - - Args: - notification (NotificationBase): notification - - Returns: - list of PodcastEpisode: list of podcast episodes - """ - - episodes = PodcastEpisode.objects.filter(published=True).order_by("-last_modified") - - if notification: - episodes = episodes.filter(last_modified__gt=notification.created_on) - else: - episodes = episodes.all() - return episodes[: settings.MITOPEN_FRONTPAGE_DIGEST_MAX_EPISODES] - - -class FrontpageDigestNotifier(EmailNotifier): - """Notifier for frontpage digests""" - - def __init__(self, notification_settings): - super().__init__("frontpage", notification_settings) - - def can_notify(self, last_notification): - """ - Returns true if we can notify this user based on their settings and when the last notification occurred - - Args: - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid - - Returns: - bool: True if we're due to send another notification - """ - if features.is_enabled(features.FRONTPAGE_EMAIL_DIGESTS) and super().can_notify( - last_notification - ): - - # do this last as it's expensive if the others are False anyway - # check if we have posts since the last notification - return bool( - _posts_since_notification(self.notification_settings, last_notification) - ) or bool(_podcast_episodes_since_notification(last_notification)) - - return False - - def _get_notification_data( - self, current_notification, last_notification - ): # pylint: disable=unused-argument - """ - Gets the data for this notification - - Args: - current_notification (NotificationBase): current notification we're sending for - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - - Raises: - InvalidTriggerFrequencyError: if the frequency is invalid for the frontpage digest - """ - posts = _posts_since_notification(self.notification_settings, last_notification) - podcast_episodes = _podcast_episodes_since_notification(last_notification) - - if not (posts or podcast_episodes): - # edge case, nothing new to send even though we expected some - raise CancelNotificationError() - - return { - "posts": [ - post_serializers.PostSerializer( - post, context={"current_user": self.user} - ).data - for post in posts - ], - "episodes": [ - PodcastEpisodeSerializer(podcast_episode).data - for podcast_episode in podcast_episodes - ], - } diff --git a/notifications/notifiers/frontpage_test.py b/notifications/notifiers/frontpage_test.py deleted file mode 100644 index 8db1bf22ae..0000000000 --- a/notifications/notifiers/frontpage_test.py +++ /dev/null @@ -1,194 +0,0 @@ -"""Tests for frontpage notifier""" -from datetime import timedelta - -from django.core.mail import EmailMessage -import pytest - -from channels.factories.models import PostFactory -from channels.proxies import PostProxy -from course_catalog.factories import PodcastEpisodeFactory -from notifications.factories import ( - NotificationSettingsFactory, - EmailNotificationFactory, -) -from notifications.models import EmailNotification, FREQUENCY_DAILY, FREQUENCY_WEEKLY -from notifications.notifiers import frontpage -from notifications.notifiers.exceptions import InvalidTriggerFrequencyError -from open_discussions import features -from open_discussions.utils import now_in_utc -from open_discussions.test_utils import any_instance_of - -pytestmark = [pytest.mark.django_db, pytest.mark.usefixtures("notifier_settings")] - - -@pytest.fixture -def notifier_settings(settings): - """Default settings""" - settings.FEATURES[features.EMAIL_NOTIFICATIONS] = True - settings.FEATURES[features.FRONTPAGE_EMAIL_DIGESTS] = True - - -@pytest.mark.parametrize("is_enabled", [True, False]) -@pytest.mark.parametrize("can_notify", [True, False]) -@pytest.mark.parametrize("has_posts", [True, False]) -@pytest.mark.parametrize("trigger_frequency", [FREQUENCY_DAILY, FREQUENCY_WEEKLY]) -@pytest.mark.parametrize("has_last_notification", [True, False]) -@pytest.mark.parametrize("has_posts_after", [True, False]) -@pytest.mark.parametrize("has_episodes_after", [True, False]) -@pytest.mark.parametrize("exclude_from_frontpage_emails", [True, False]) -def test_can_notify( - settings, - mocker, - is_enabled, - can_notify, - has_posts, - trigger_frequency, - has_last_notification, - has_posts_after, - has_episodes_after, - exclude_from_frontpage_emails, -): # pylint: disable=too-many-arguments, too-many-locals - """Test can_notify""" - notification_settings = NotificationSettingsFactory.create( - trigger_frequency=trigger_frequency - ) - notification = ( - EmailNotificationFactory.create( - user=notification_settings.user, frontpage_type=True, sent=True - ) - if has_last_notification - else None - ) - settings.FEATURES[features.FRONTPAGE_EMAIL_DIGESTS] = is_enabled - can_notify_mock = mocker.patch( - "notifications.notifiers.email.EmailNotifier.can_notify", - return_value=can_notify, - ) - created_on = notification.created_on if notification is not None else now_in_utc() - - episode = PodcastEpisodeFactory.create() - if has_episodes_after: - episode.last_modified = created_on + timedelta(days=10) - else: - episode.last_modified = created_on + timedelta(days=-10) - episode.save() - - post = PostFactory.create( - exclude_from_frontpage_emails=exclude_from_frontpage_emails - ) - api_mock = mocker.patch("channels.api.Api") - api_mock.return_value.front_page.return_value = ( - [ - mocker.Mock( - id=post.post_id, - created=int( - ( - created_on + timedelta(days=10 if has_posts_after else -10) - ).timestamp() - ), - stickied=False, - ) - ] - if has_posts - else [] - ) - notifier = frontpage.FrontpageDigestNotifier(notification_settings) - - expected = ( - is_enabled - and can_notify - and ( - not has_last_notification - or (has_posts and has_posts_after and not exclude_from_frontpage_emails) - or has_episodes_after - ) - ) - assert notifier.can_notify(notification) is expected - - if is_enabled: - can_notify_mock.assert_called_once_with(notification) - - -def test_can_notify_never(): - """Verify it returns False for notifications set to never""" - notification_settings = NotificationSettingsFactory.create( - never=True, via_email=True - ) - notifier = frontpage.FrontpageDigestNotifier(notification_settings) - assert notifier.can_notify(None) is False - - -def test_can_notify_invalid_frequency(): - """Verify it raises an error for an invalid frequency""" - notification_settings = NotificationSettingsFactory.create( - immediate=True, via_email=True - ) - notifier = frontpage.FrontpageDigestNotifier(notification_settings) - with pytest.raises(InvalidTriggerFrequencyError): - notifier.can_notify(None) - - -def test_send_notification(mocker, user): - """Tests send_notification""" - ns = NotificationSettingsFactory.create(via_email=True, weekly=True) - notifier = frontpage.FrontpageDigestNotifier(ns) - post = PostFactory.create() - episode = PodcastEpisodeFactory.create() - send_messages_mock = mocker.patch("mail.api.send_messages") - post_serializer_mock = mocker.patch("channels.serializers.posts.PostSerializer") - post_serializer_mock.return_value.data = { - "id": post.post_id, - "title": "post's title", - "slug": "a_slug", - "channel_name": "micromasters", - "channel_title": "MicroMasters", - "created": now_in_utc().isoformat(), - "author_id": user.username, - } - episode_serializer_mock = mocker.patch( - "notifications.notifiers.frontpage.PodcastEpisodeSerializer" - ) - episode_serializer_mock.return_value.data = { - "title": "episode title", - "podcast_title": "podcast title", - "last_modified": now_in_utc().isoformat(), - } - submission = mocker.Mock( - id=post.post_id, created=int(now_in_utc().timestamp()), stickied=False - ) - api_mock = mocker.patch("channels.api.Api") - api_mock.return_value.front_page.return_value = [submission] - note = EmailNotificationFactory.create( - user=ns.user, notification_type=ns.notification_type, sending=True - ) - - notifier.send_notification(note) - - post_serializer_mock.assert_called_once_with( - PostProxy(submission, post), context={"current_user": note.user} - ) - - episode_serializer_mock.assert_called_once_with(episode) - - send_messages_mock.assert_called_once_with([any_instance_of(EmailMessage)]) - - -def test_send_notification_no_posts_or_episodes(mocker): - """Tests send_notification if there are somehow no posts or episodes""" - ns = NotificationSettingsFactory.create(via_email=True, weekly=True) - notifier = frontpage.FrontpageDigestNotifier(ns) - send_messages_mock = mocker.patch("mail.api.send_messages") - serializer_mock = mocker.patch("channels.serializers.posts.PostSerializer") - api_mock = mocker.patch("channels.api.Api") - api_mock.return_value.front_page.return_value = [] - note = EmailNotificationFactory.create( - user=ns.user, notification_type=ns.notification_type, sending=True - ) - - notifier.send_notification(note) - - serializer_mock.assert_not_called() - send_messages_mock.assert_not_called() - - note.refresh_from_db() - assert note.state == EmailNotification.STATE_CANCELED diff --git a/notifications/notifiers/moderator_posts.py b/notifications/notifiers/moderator_posts.py deleted file mode 100644 index 8f027d171f..0000000000 --- a/notifications/notifiers/moderator_posts.py +++ /dev/null @@ -1,49 +0,0 @@ -"""Notifier for new posts for moderators""" -from django.db import transaction - -from notifications.notifiers.email import EmailNotifier -from notifications.models import NOTIFICATION_TYPE_MODERATOR, PostEvent -from notifications.utils import praw_error_to_cancelled -from channels import api -from channels.serializers.posts import PostSerializer - - -class ModeratorPostsNotifier(EmailNotifier): - """Notifier for posts for moderators""" - - def __init__(self, notification_settings): - super().__init__(NOTIFICATION_TYPE_MODERATOR, notification_settings) - - @praw_error_to_cancelled() - def _get_notification_data( - self, current_notification, last_notification - ): # pylint: disable=unused-argument - """ - Gets the data for this notification - - Args: - current_notification (NotificationBase): current notification we're sending for - last_notification (NotificationBase): last notification that was triggered for this NotificationSettings - """ - ctx = {"current_user": self.user} - event = PostEvent.objects.get(email_notification=current_notification) - api_client = api.Api(self.user) - post = api_client.get_post(event.post_id) - return {"post": PostSerializer(post, context=ctx).data, "moderator_email": True} - - def create_moderator_post_event(self, user, post_id): - """ - Creates a new PostEvent - - Args: - user (User): the moderator who should be notified - post_id (str): the base36 id of the new post - - Returns: - CommentEvent: the created event - """ - kwargs = {} - - with transaction.atomic(): - kwargs["email_notification"] = self._create_notification() - return PostEvent.objects.create(user=user, post_id=post_id, **kwargs) diff --git a/notifications/notifiers/moderator_posts_test.py b/notifications/notifiers/moderator_posts_test.py deleted file mode 100644 index ef5439a239..0000000000 --- a/notifications/notifiers/moderator_posts_test.py +++ /dev/null @@ -1,53 +0,0 @@ -"""Tests for comments notifier""" -from django.core.mail import EmailMessage -import pytest - -from notifications.factories import NotificationSettingsFactory -from notifications.models import EmailNotification -from notifications.notifiers import moderator_posts -from notifications.models import NOTIFICATION_TYPE_MODERATOR, FREQUENCY_IMMEDIATE -from open_discussions.test_utils import any_instance_of - - -pytestmark = [pytest.mark.django_db] - - -def test_create_moderator_post_event(): - """Tests that create_moderator_post_event works correctly""" - notification_setting = NotificationSettingsFactory.create(immediate=True) - notifier = moderator_posts.ModeratorPostsNotifier(notification_setting) - event = notifier.create_moderator_post_event(notification_setting.user, "post_id") - - assert event.post_id == "post_id" - assert event.email_notification is not None - - -@pytest.mark.betamax -def test_send_notification( - mocker, - reddit_factories, - private_channel_and_contributor, - staff_api, # pylint:disable=unused-argument -): - """Tests send_notification""" - channel, user = private_channel_and_contributor - notification_setting = NotificationSettingsFactory.create( - user=user, - trigger_frequency=FREQUENCY_IMMEDIATE, - notification_type=NOTIFICATION_TYPE_MODERATOR, - via_email=True, - ) - notifier = moderator_posts.ModeratorPostsNotifier(notification_setting) - - send_messages_mock = mocker.patch("mail.api.send_messages") - - post = reddit_factories.text_post("just a post", user, channel=channel) - - event = notifier.create_moderator_post_event(notification_setting.user, post.id) - note = event.email_notification - note.state = EmailNotification.STATE_SENDING - note.save() - - notifier.send_notification(note) - - send_messages_mock.assert_called_once_with([any_instance_of(EmailMessage)]) diff --git a/notifications/serializers.py b/notifications/serializers.py deleted file mode 100644 index a7eba71410..0000000000 --- a/notifications/serializers.py +++ /dev/null @@ -1,35 +0,0 @@ -"""Notification serializers""" -from rest_framework import serializers - -from notifications.models import NotificationSettings - - -class NotificationSettingsSerializer(serializers.ModelSerializer): - """Serializer for NotificationSettings""" - - channel_name = serializers.SerializerMethodField() - channel_title = serializers.SerializerMethodField() - - def get_channel_name(self, instance): - """get the channel name""" - if instance.channel: - return instance.channel.name - else: - return None - - def get_channel_title(self, instance): - """get the channel title""" - if instance.channel: - return instance.channel.title - else: - return None - - class Meta: - model = NotificationSettings - fields = ( - "notification_type", - "trigger_frequency", - "channel_name", - "channel_title", - ) - read_only_fields = ("notification_type", "channel_name", "channel_title") diff --git a/notifications/serializers_test.py b/notifications/serializers_test.py deleted file mode 100644 index 2732d101bc..0000000000 --- a/notifications/serializers_test.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Tests for notification serializers""" -from channels.factories.models import ChannelFactory -from notifications.serializers import NotificationSettingsSerializer -from notifications.factories import NotificationSettingsFactory - - -def test_notification_settings_serializer(user): - """Tests that the correct fields are serialized""" - settings = NotificationSettingsFactory.create(user=user) - assert NotificationSettingsSerializer(settings).data == { - "trigger_frequency": settings.trigger_frequency, - "notification_type": settings.notification_type, - "channel_name": None, - "channel_title": None, - } - - -def test_notification_settings_serializer_with_channel(user): - """Tests that the correct fields are serialized""" - channel = ChannelFactory.create() - settings = NotificationSettingsFactory.create(user=user, channel=channel) - assert NotificationSettingsSerializer(settings).data == { - "trigger_frequency": settings.trigger_frequency, - "notification_type": settings.notification_type, - "channel_name": channel.name, - "channel_title": channel.title, - } diff --git a/notifications/tasks.py b/notifications/tasks.py deleted file mode 100644 index 4ee2f2da22..0000000000 --- a/notifications/tasks.py +++ /dev/null @@ -1,124 +0,0 @@ -"""Notification tasks""" -import celery -from django.conf import settings - -from open_discussions.celery import app -from open_discussions.utils import chunks -from channels.models import Channel - -from notifications import api - - -def _gen_attempt_send_notification_batches(notification_settings): - """ - Generates the set of attempt_send_notification_batch tasks in a fan-out structure - - Args: - notification_settings (iterable of NotificationSettings): an iterable of NotificationSettings to attempt the sends for - - Returns: - celery.group: the celery group of tasks to execute - """ - return celery.group( - [ - attempt_send_notification_batch.si(notification_settings_ids) - for notification_settings_ids in chunks( - notification_settings, - chunk_size=settings.NOTIFICATION_ATTEMPT_CHUNK_SIZE, - ) - ] - ) - - -@app.task(bind=True) -def send_daily_frontpage_digests(self): - """Daily frontpage digest task""" - notification_settings = api.get_daily_frontpage_settings_ids() - - tasks = _gen_attempt_send_notification_batches(notification_settings) - - # to reduce the risk of triggering these multiple times, we trigger and replace this task all at once - raise self.replace(tasks) - - -@app.task(bind=True) -def send_weekly_frontpage_digests(self): - """Weekly frontpage digest task""" - notification_settings = api.get_weekly_frontpage_settings_ids() - - tasks = _gen_attempt_send_notification_batches(notification_settings) - - # to reduce the risk of triggering these multiple times, we trigger and replace this task all at once - raise self.replace(tasks) - - -@app.task( - # The two settings below *should* ensure a task is never dropped, but it may be executed several times - acks_late=True, # don't acknowledge the task until it's done - reject_on_worker_lost=True, # if the worker gets killed, don't acknowledge the task - rate_limit=settings.NOTIFICATION_ATTEMPT_RATE_LIMIT, # an option to rate limit these if they become too much -) -def attempt_send_notification_batch(notification_settings_ids): - """ - Attempt to send a notification batch - - Args: - notification_settings_ids (list of int): list of NotificationSettings.ids - """ - api.attempt_send_notification_batch(notification_settings_ids) - - -@app.task -def send_unsent_email_notifications(): - """Send any unsent notifications""" - api.send_unsent_email_notifications() - - -@app.task -def send_email_notification_batch(notification_ids): - """ - Sends a batch of notifications - - Args: - notification_ids (list of int): notification ids to send - """ - api.send_email_notification_batch(notification_ids) - - -@app.task -def send_frontpage_email_notification_batch(notification_ids): - """ - Sends a batch of notifications. This is a separate task from send_email_notification_batch so that - frontpage notification tasks, which are not time sensitive, can be queued separately from other tasks - - Args: - notification_ids (list of int): notification ids to send - """ - api.send_email_notification_batch(notification_ids) - - -@app.task -def notify_subscribed_users(post_id, comment_id, new_comment_id): - """ - Notifies subscribed users of a new comment - - Args: - post_id (str): base36 id of the post replied to - comment_id (str): base36 id of the comment replied to (may be None) - new_comment_id (str): base36 id of the new comment - """ - api.send_comment_notifications(post_id, comment_id, new_comment_id) - - -@app.task -def notify_moderators(post_id, channel_name): - """ - Notifies channel moderators of a new post. - - Args: - post_id (str): base36 id of the post - channel_name (str): channel name - """ - channel = Channel.objects.get(name=channel_name) - if channel.moderator_notifications: - api.send_moderator_notifications(post_id, channel_name) diff --git a/notifications/tasks_test.py b/notifications/tasks_test.py deleted file mode 100644 index 474a6df3b1..0000000000 --- a/notifications/tasks_test.py +++ /dev/null @@ -1,120 +0,0 @@ -"""Tests for notifications tasks""" -import pytest - -from notifications import tasks -from notifications.factories import NotificationSettingsFactory -from channels.factories.models import ChannelFactory - - -@pytest.mark.django_db -def test_send_daily_frontpage_digests(mocker, settings, mocked_celery): - """Tests that send_daily_frontpage_digests calls the API method""" - notification_settings = NotificationSettingsFactory.create_batch( - 4, daily=True, frontpage_type=True - ) - - settings.NOTIFICATION_ATTEMPT_CHUNK_SIZE = 2 - mock_attempt_send_notification_batch = mocker.patch( - "notifications.tasks.attempt_send_notification_batch", autospec=True - ) - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.send_daily_frontpage_digests.delay() - - assert mocked_celery.group.call_count == 1 - - # Celery's 'group' function takes a generator as an argument. In order to make assertions about the items - # in that generator, 'list' is being called to force iteration through all of those items. - list(mocked_celery.group.call_args[0][0]) - - assert mock_attempt_send_notification_batch.si.call_count == 2 - - mock_attempt_send_notification_batch.si.assert_any_call( - [notification_settings[0].id, notification_settings[1].id] - ) - mock_attempt_send_notification_batch.si.assert_any_call( - [notification_settings[2].id, notification_settings[3].id] - ) - - -@pytest.mark.django_db -def test_send_weekly_frontpage_digests(mocker, settings, mocked_celery): - """Tests that send_weekly_frontpage_digests calls the API method""" - notification_settings = NotificationSettingsFactory.create_batch( - 4, weekly=True, frontpage_type=True - ) - - settings.NOTIFICATION_ATTEMPT_CHUNK_SIZE = 2 - mock_attempt_send_notification_batch = mocker.patch( - "notifications.tasks.attempt_send_notification_batch", autospec=True - ) - - with pytest.raises(mocked_celery.replace_exception_class): - tasks.send_weekly_frontpage_digests.delay() - - assert mocked_celery.group.call_count == 1 - - # Celery's 'group' function takes a generator as an argument. In order to make assertions about the items - # in that generator, 'list' is being called to force iteration through all of those items. - list(mocked_celery.group.call_args[0][0]) - - assert mock_attempt_send_notification_batch.si.call_count == 2 - - mock_attempt_send_notification_batch.si.assert_any_call( - [notification_settings[0].id, notification_settings[1].id] - ) - mock_attempt_send_notification_batch.si.assert_any_call( - [notification_settings[2].id, notification_settings[3].id] - ) - - -def test_attempt_send_notification_batch(mocker): - """Tests that attempt_send_notification_batch calls the API method""" - api_mock = mocker.patch("notifications.api.attempt_send_notification_batch") - - ids = [1, 2, 3] - tasks.attempt_send_notification_batch.delay(ids) - api_mock.assert_called_once_with(ids) - - -def test_send_unsent_email_notifications(mocker): - """Tests that send_unsent_email_notifications calls the API method""" - api_mock = mocker.patch("notifications.api.send_unsent_email_notifications") - - tasks.send_unsent_email_notifications.delay() - api_mock.assert_called_once_with() - - -def test_send_email_notification_batch(mocker): - """Tests that send_email_notification_batch calls the API method""" - api_mock = mocker.patch("notifications.api.send_email_notification_batch") - - ids = [1, 2, 3] - tasks.send_email_notification_batch.delay(ids) - api_mock.assert_called_once_with(ids) - - -def send_frontpage_email_notification_batch(mocker): - """Tests that send_frontpage_email_notification_batch calls the API method""" - api_mock = mocker.patch("notifications.api.send_email_notification_batch") - - ids = [1, 2, 3] - tasks.send_frontpage_email_notification_batch.delay(ids) - api_mock.assert_called_once_with(ids) - - -def test_notify_subscribed_users(mocker): - """Tests that notify_subscribed_users calls the API method""" - api_mock = mocker.patch("notifications.api.send_comment_notifications") - - tasks.notify_subscribed_users.delay(1, 2, 3) - api_mock.assert_called_once_with(1, 2, 3) - - -@pytest.mark.django_db -def test_notify_moderators(mocker): - """Tests that notify_moderators calls the API method""" - api_mock = mocker.patch("notifications.api.send_moderator_notifications") - channel = ChannelFactory.create(moderator_notifications=True) - tasks.notify_moderators.delay("1", channel.name) - api_mock.assert_called_once_with("1", channel.name) diff --git a/notifications/urls.py b/notifications/urls.py deleted file mode 100644 index 9edd66c05e..0000000000 --- a/notifications/urls.py +++ /dev/null @@ -1,15 +0,0 @@ -"""URL configurations for notifications""" -from django.urls import re_path, include - -from rest_framework.routers import DefaultRouter - -from notifications.views import NotificationSettingsViewSet - -router = DefaultRouter() -router.register( - r"notification_settings", - NotificationSettingsViewSet, - basename="notification_settings", -) - -urlpatterns = [re_path(r"^api/v0/", include(router.urls))] diff --git a/notifications/utils.py b/notifications/utils.py deleted file mode 100644 index b2204867bf..0000000000 --- a/notifications/utils.py +++ /dev/null @@ -1,76 +0,0 @@ -"""Notification Utils""" -from contextlib import contextmanager -import logging - -from django.db import transaction -from praw.exceptions import APIException, PRAWException -from prawcore.exceptions import Forbidden, NotFound, Redirect - -from notifications.notifiers.exceptions import CancelNotificationError -from notifications.models import EmailNotification -from open_discussions.utils import now_in_utc - -log = logging.getLogger() - - -@contextmanager -def mark_as_sent_or_canceled(notification): - """ - Marks the message as sent if it hasn't been yet or canceled if a cancel exception is raised - - Yeilds: - bool: True if the email is being sent - - Args: - notification (NotificationBase): notification to mark as sent - """ - with transaction.atomic(): - notification = EmailNotification.objects.select_for_update().get( - id=notification.id - ) - if notification.state != EmailNotification.STATE_SENDING: - # prevent sending an email that is not ready to be sent or already has been - log.debug("EmailNotification not in sending state: %s", notification.id) - yield False - return - - try: - yield True - - log.debug("EmailNotification sent: %s", notification.id) - notification.state = EmailNotification.STATE_SENT - notification.sent_at = now_in_utc() - notification.save() - except CancelNotificationError: - log.debug("EmailNotification canceled: %s", notification.id) - notification.state = EmailNotification.STATE_CANCELED - notification.save() - except: # pylint: disable=bare-except - # if any other error happens, roll back to pending so that the crontask picks it up again - log.exception( - "EmailNotification rolled back to pending: %s", notification.id - ) - notification.state = EmailNotification.STATE_PENDING - notification.save() - - -@contextmanager -def praw_error_to_cancelled(): - """Raises CancelNotificationErrors from certain praw errors, otherwise raises the original error""" - try: - yield - except (Forbidden, NotFound, Redirect) as exc: - raise CancelNotificationError() from exc - except APIException as exc: - if exc.error_type in ( - "SUBREDDIT_NOTALLOWED", - "SUBREDDIT_NOEXIST", - "DELETED_COMMENT", - ): - raise CancelNotificationError() from exc - raise - except PRAWException as exc: - # special case if the user isn't a contributor on channel we call comment.parent() - if exc.args[0].startswith("No 'Comment' data returned for thing"): - raise CancelNotificationError() from exc - raise diff --git a/notifications/utils_test.py b/notifications/utils_test.py deleted file mode 100644 index b8f388af9c..0000000000 --- a/notifications/utils_test.py +++ /dev/null @@ -1,101 +0,0 @@ -"""Utils tests""" -from unittest.mock import MagicMock - -import pytest -from praw.exceptions import APIException, PRAWException -from prawcore.exceptions import Forbidden, NotFound, Redirect - -from notifications import utils -from notifications.notifiers.exceptions import CancelNotificationError -from notifications.factories import EmailNotificationFactory -from notifications.models import EmailNotification - -pytestmark = pytest.mark.django_db - - -def test_mark_as_sent_or_canceled(): - """Verify mark_as_sent_or_canceled marks the notification sent if no errors""" - notification = EmailNotificationFactory.create(sending=True) - - with utils.mark_as_sent_or_canceled(notification) as will_send: - assert will_send is True - - notification.refresh_from_db() - assert notification.state == EmailNotification.STATE_SENT - assert notification.sent_at is not None - - -def test_mark_as_sent_or_canceled_already_sent(): - """Verify mark_as_sent_or_canceled doesn't try to send if it is already sent""" - notification = EmailNotificationFactory.create(sent=True) - - with utils.mark_as_sent_or_canceled(notification) as will_send: - assert will_send is False - - notification.refresh_from_db() - assert notification.state == EmailNotification.STATE_SENT - - -def test_mark_as_sent_or_canceled_cancel_error(): - """Verify mark_as_sent_or_canceled marks the task as canceled""" - notification = EmailNotificationFactory.create(sending=True) - - with utils.mark_as_sent_or_canceled(notification) as will_send: - assert will_send is True - raise CancelNotificationError() - - notification.refresh_from_db() - assert notification.state == EmailNotification.STATE_CANCELED - assert notification.sent_at is None - - -def test_mark_as_sent_or_canceled_misc_error(): - """Verify mark_as_sent_or_canceled marks the task as pending if a non-send related error occurs""" - notification = EmailNotificationFactory.create(sending=True) - - with utils.mark_as_sent_or_canceled(notification) as will_send: - assert will_send is True - raise Exception("some random error") # pylint:disable=broad-exception-raised) - - notification.refresh_from_db() - assert notification.state == EmailNotification.STATE_PENDING - assert notification.sent_at is None - - -@pytest.mark.parametrize( - "error,expected_cls", - [ - ( - PRAWException("No 'Comment' data returned for thing t1_u5"), - CancelNotificationError, - ), - (PRAWException("NOT TRANSLATED"), PRAWException), - (APIException("FAKE_ERROR_TYPE", "", ""), APIException), - (Exception("NOT TRANSLATED"), Exception), - ] - + [ - (APIException(error_type, "", ""), CancelNotificationError) - for error_type in ( - "SUBREDDIT_NOTALLOWED", - "SUBREDDIT_NOEXIST", - "DELETED_COMMENT", - ) - ] - + [ - ( - error_cls( - MagicMock( - # because of side-affecting constructors - headers={"location": "http://exmaple.com/"} - ) - ), - CancelNotificationError, - ) - for error_cls in (Forbidden, NotFound, Redirect) - ], -) -def test_praw_error_to_cancelled(error, expected_cls): - """Test that each of the errors is correctly translated to CancelNotificationError or reraised""" - with pytest.raises(expected_cls): - with utils.praw_error_to_cancelled(): - raise error diff --git a/notifications/views.py b/notifications/views.py deleted file mode 100644 index 28678fca40..0000000000 --- a/notifications/views.py +++ /dev/null @@ -1,56 +0,0 @@ -"""Notification views""" -from django.db.models import Q -from django.shortcuts import get_object_or_404 -from rest_framework.authentication import SessionAuthentication -from rest_framework.permissions import IsAuthenticated -from rest_framework.mixins import ListModelMixin, UpdateModelMixin, RetrieveModelMixin -from rest_framework.viewsets import GenericViewSet - -from notifications.serializers import NotificationSettingsSerializer -from notifications.models import NOTIFICATION_TYPE_FRONTPAGE, NOTIFICATION_TYPE_COMMENTS - -from open_discussions.authentication import ( - StatelessTokenAuthentication, - IgnoreExpiredJwtAuthentication, -) - - -class NotificationSettingsViewSet( - ListModelMixin, UpdateModelMixin, RetrieveModelMixin, GenericViewSet -): - """View for notification settings""" - - serializer_class = NotificationSettingsSerializer - authentication_classes = ( - IgnoreExpiredJwtAuthentication, - SessionAuthentication, - StatelessTokenAuthentication, - ) - permission_classes = (IsAuthenticated,) - lookup_field = "notification_type" - - def get_queryset(self): - """Gets the QuerySet for this view""" - user = self.request.user - - return user.notification_settings.filter( - Q( - notification_type__in=[ - NOTIFICATION_TYPE_FRONTPAGE, - NOTIFICATION_TYPE_COMMENTS, - ] - ) - | Q(channel__moderator_notifications=True) - ) - - def get_object(self): - queryset = self.get_queryset() - - queryset_filter = {} - queryset_filter["notification_type"] = self.kwargs["notification_type"] - - if "channel_name" in self.request.data: - queryset_filter["channel__name"] = self.request.data["channel_name"] - - obj = get_object_or_404(queryset, **queryset_filter) - return obj diff --git a/notifications/views_test.py b/notifications/views_test.py deleted file mode 100644 index 5c8db91630..0000000000 --- a/notifications/views_test.py +++ /dev/null @@ -1,161 +0,0 @@ -"""Tests for notification views""" -# pylint: disable=redefined-outer-name, unused-argument -from operator import itemgetter - -import pytest -from django.urls import reverse -from rest_framework import status - -from channels.factories.models import ChannelFactory -from notifications.factories import NotificationSettingsFactory -from notifications.models import ( - FREQUENCIES, - NOTIFICATION_TYPES, - NOTIFICATION_TYPE_MODERATOR, - NOTIFICATION_TYPE_COMMENTS, - NOTIFICATION_TYPE_FRONTPAGE, -) - - -def _sort_settings(settings): - """Sort settings by notification_type""" - return sorted(settings, key=itemgetter("notification_type")) - - -def test_list_notification_settings_unauthenticated(client): - """Tests that a get on notification settings returns forbidden if unauthenticated""" - response = client.get(reverse("notification_settings-list")) - assert response.status_code == status.HTTP_401_UNAUTHORIZED - - -def test_notification_settings_list_empty(user, client): - """Tests that the notifications settings returns an empty list for a new user""" - client.force_login(user) - response = client.get(reverse("notification_settings-list")) - assert response.status_code == status.HTTP_200_OK - assert response.json() == [] - - -@pytest.mark.parametrize("channel_moderator_notifications", [True, False]) -def test_notification_settings_list( - user, client, mocker, channel_moderator_notifications -): - """Tests that the notifications settings returns the user's notification settings""" - channel = ChannelFactory.create( - moderator_notifications=channel_moderator_notifications - ) - - settings = [ - NotificationSettingsFactory.create( - user=user, notification_type=notification_type - ) - for notification_type in [ - NOTIFICATION_TYPE_COMMENTS, - NOTIFICATION_TYPE_FRONTPAGE, - ] - ] - - moderator_setting = NotificationSettingsFactory.create( - user=user, notification_type=NOTIFICATION_TYPE_MODERATOR, channel=channel - ) - - if channel_moderator_notifications: - settings.append(moderator_setting) - - client.force_login(user) - response = client.get(reverse("notification_settings-list")) - assert response.status_code == status.HTTP_200_OK - assert _sort_settings(response.json()) == _sort_settings( - [ - { - "trigger_frequency": setting.trigger_frequency, - "notification_type": setting.notification_type, - "channel_name": setting.channel.name if setting.channel else None, - "channel_title": setting.channel.title if setting.channel else None, - } - for setting in settings - ] - ) - - -@pytest.mark.parametrize("notification_type", NOTIFICATION_TYPES) -def test_notification_settings_get(user, client, notification_type): - """Tests that the notifications settings returns a specific notification settings""" - if notification_type == NOTIFICATION_TYPE_MODERATOR: - channel = ChannelFactory.create(moderator_notifications=True) - setting = NotificationSettingsFactory.create( - user=user, notification_type=notification_type, channel=channel - ) - args = {"channel_name": channel.name} - else: - setting = NotificationSettingsFactory.create( - user=user, notification_type=notification_type - ) - args = {} - - client.force_login(user) - url = reverse( - "notification_settings-detail", kwargs={"notification_type": notification_type} - ) - response = client.get(url, args) - assert response.status_code == status.HTTP_200_OK - assert response.json() == { - "trigger_frequency": setting.trigger_frequency, - "notification_type": notification_type, - "channel_name": setting.channel.name if setting.channel else None, - "channel_title": setting.channel.title if setting.channel else None, - } - - -@pytest.mark.parametrize("notification_type", NOTIFICATION_TYPES) -def test_notification_settings_get_unauthenticated(client, notification_type): - """Tests that a get on a specific setting returns forbidden if unauthenticated""" - url = reverse( - "notification_settings-detail", kwargs={"notification_type": notification_type} - ) - response = client.get(url) - assert response.status_code == status.HTTP_401_UNAUTHORIZED - - -@pytest.mark.parametrize("notification_type", NOTIFICATION_TYPES) -@pytest.mark.parametrize("trigger_frequency", FREQUENCIES) -def test_notification_settings_patch( - user, client, trigger_frequency, notification_type -): - """Tests that the notifications settings returns a specific notification settings""" - if notification_type == NOTIFICATION_TYPE_MODERATOR: - channel = ChannelFactory.create(moderator_notifications=True) - setting = NotificationSettingsFactory.create( - user=user, notification_type=notification_type, channel=channel - ) - args = {"trigger_frequency": trigger_frequency, "channel_name": channel.name} - else: - setting = NotificationSettingsFactory.create( - user=user, notification_type=notification_type - ) - args = {"trigger_frequency": trigger_frequency} - client.force_login(user) - url = reverse( - "notification_settings-detail", kwargs={"notification_type": notification_type} - ) - response = client.patch(url, args) - assert response.status_code == status.HTTP_200_OK - assert response.json() == { - "trigger_frequency": trigger_frequency, - "notification_type": notification_type, - "channel_name": setting.channel.name if setting.channel else None, - "channel_title": setting.channel.title if setting.channel else None, - } - - -@pytest.mark.parametrize("notification_type", NOTIFICATION_TYPES) -@pytest.mark.parametrize("trigger_frequency", FREQUENCIES) -def test_notification_settings_patch_unauthenticated( - client, trigger_frequency, notification_type -): - """Tests that a patch on a specific setting returns forbidden if unauthenticated""" - url = reverse( - "notification_settings-detail", kwargs={"notification_type": notification_type} - ) - response = client.patch(url, {"trigger_frequency": trigger_frequency}) - assert response.status_code == status.HTTP_401_UNAUTHORIZED diff --git a/open_discussions/authentication_test.py b/open_discussions/authentication_test.py index 9fc74e2273..b2aa35a8f3 100644 --- a/open_discussions/authentication_test.py +++ b/open_discussions/authentication_test.py @@ -16,19 +16,15 @@ def test_stateless_token_authentication_expired(rf): """Tests that StatelessTokenAuthentication returns None if token is expired""" token = "MDFDNEZBV1dFOTc1VDFLRk4wQ0RZNllLUFo6MWVvRTlrOi05V2VacjYxWm9aR25wdTdVUlY2RGFQUXRRSQ==" - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Token {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="Token {}".format(token)) authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) is None def test_stateless_token_authentication_invalid(rf): """Tests that StatelessTokenAuthentication returns None if token is invalid""" - token = "can i haz notifications?" - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Token {}".format(token) - ) + token = "can i haz index page?" + request = rf.get("index", HTTP_AUTHORIZATION="Token {}".format(token)) authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) is None @@ -36,9 +32,7 @@ def test_stateless_token_authentication_invalid(rf): def test_stateless_token_authentication_valid(rf, user): """Tests that StatelessTokenAuthentication returns a user if token is still valid""" token = get_encoded_and_signed_subscription_token(user) - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Token {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="Token {}".format(token)) authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) == (user, None) @@ -46,16 +40,14 @@ def test_stateless_token_authentication_valid(rf, user): def test_stateless_token_authentication_wrong_prefix(rf, user): """Tests that StatelessTokenAuthentication nothing if the prefix is different""" token = get_encoded_and_signed_subscription_token(user) - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="OAuth {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="OAuth {}".format(token)) authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) is None def test_stateless_token_authentication_no_header(rf): """Tests that StatelessTokenAuthentication returns nothing if no auth header is present""" - request = rf.get("api/v0/notification_settings") + request = rf.get("index") authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) is None @@ -64,9 +56,7 @@ def test_stateless_token_authentication_no_user(rf, user): """Tests that StatelessTokenAuthentication returns nothing if user doesn't exist""" token = get_encoded_and_signed_subscription_token(user) user.delete() - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Token {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="Token {}".format(token)) authentication = StatelessTokenAuthentication() assert authentication.authenticate(request) is None @@ -75,9 +65,7 @@ def test_ignore_expired_jwt_authentication_valid(rf, user): """Tests that IgnoreExpiredJwtAuthentication returns None if token is valid""" payload = jwt_payload_handler(user) token = jwt_encode_handler(payload) - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Bearer {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="Bearer {}".format(token)) authentication = IgnoreExpiredJwtAuthentication() assert authentication.authenticate(request) == (user, token) @@ -87,8 +75,6 @@ def test_ignore_expired_jwt_authentication_expired(rf, user): payload = jwt_payload_handler(user) payload["exp"] = datetime.utcnow() - timedelta(seconds=100) token = jwt_encode_handler(payload) - request = rf.get( - "api/v0/notification_settings", HTTP_AUTHORIZATION="Bearer {}".format(token) - ) + request = rf.get("index", HTTP_AUTHORIZATION="Bearer {}".format(token)) authentication = IgnoreExpiredJwtAuthentication() assert authentication.authenticate(request) is None diff --git a/open_discussions/betamax_config.py b/open_discussions/betamax_config.py deleted file mode 100644 index d5e1350917..0000000000 --- a/open_discussions/betamax_config.py +++ /dev/null @@ -1,39 +0,0 @@ -"""Configuration for betamax""" -from betamax import Betamax -from betamax.util import deserialize_prepared_request -from betamax.matchers.body import BodyMatcher -from betamax_serializers.pretty_json import PrettyJSONSerializer - - -class CustomBodyMatcher(BodyMatcher): - """Override BodyMatcher to skip OAuth body checks""" - - name = "custom-body" - - def match(self, request, recorded_request): - recorded_request = deserialize_prepared_request(recorded_request) - - request_body = request.body or b"" - recorded_body = recorded_request.body or b"" - - # Don't check body for oauth workflow - if request.url.endswith("api/v1/access_token"): - return True - - return recorded_body == request_body - - -def setup_betamax(record_mode="none"): - """Do global configuration for betamax. This function is idempotent.""" - Betamax.register_request_matcher(CustomBodyMatcher) - Betamax.register_serializer(PrettyJSONSerializer) - - config = Betamax.configure() - config.cassette_library_dir = "cassettes" - config.default_cassette_options["match_requests_on"] = [ - "uri", - "method", - "custom-body", - ] - config.default_cassette_options["serialize_with"] = "prettyjson" - config.default_cassette_options["record_mode"] = record_mode diff --git a/open_discussions/celery.py b/open_discussions/celery.py index bd080ed703..0c806fb94d 100644 --- a/open_discussions/celery.py +++ b/open_discussions/celery.py @@ -16,10 +16,6 @@ app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) # pragma: no cover app.conf.task_routes = { - "channels.tasks.check_post_for_spam": {"queue": "spam"}, - "channels.tasks.check_comment_for_spam": {"queue": "spam"}, - "channels.tasks.update_spam": {"queue": "spam"}, - "channels.tasks.retire_user": {"queue": "spam"}, "course_catalog.tasks.get_content_tasks": {"queue": "edx_content"}, "course_catalog.tasks.get_content_files": {"queue": "edx_content"}, "course_catalog.tasks.import_all_xpro_files": {"queue": "edx_content"}, @@ -28,10 +24,4 @@ "search.tasks.index_course_content_files": {"queue": "edx_content"}, "search.tasks.index_run_content_files": {"queue": "edx_content"}, "search.tasks.deindex_run_content_files": {"queue": "edx_content"}, - "notifications.tasks.send_frontpage_email_notification_batch": { - "queue": "digest_emails" - }, - "notifications.tasks.send_daily_frontpage_digests": {"queue": "digest_emails"}, - "notifications.tasks.send_weekly_frontpage_digests": {"queue": "digest_emails"}, - "notifications.tasks.attempt_send_notification_batch": {"queue": "digest_emails"}, } diff --git a/open_discussions/features.py b/open_discussions/features.py index a072658c96..a163b72ab1 100644 --- a/open_discussions/features.py +++ b/open_discussions/features.py @@ -2,21 +2,15 @@ from functools import wraps from django.conf import settings -EMAIL_NOTIFICATIONS = "EMAIL_NOTIFICATIONS" -FRONTPAGE_EMAIL_DIGESTS = "FRONTPAGE_EMAIL_DIGESTS" -COMMENT_NOTIFICATIONS = "COMMENT_NOTIFICATIONS" INDEX_UPDATES = "INDEX_UPDATES" PROFILE_UI = "PROFILE_UI" ARTICLE_UI = "ARTICLE_UI" COURSE_UI = "COURSE_UI" COURSE_FILE_SEARCH = "COURSE_FILE_SEARCH" -RELATED_POSTS_UI = "RELATED_POSTS_UI" LIVESTREAM_UI = "LIVESTREAM_UI" HOT_POST_REPAIR = "HOT_POST_REPAIR" -MOIRA = "MOIRA" PODCAST_APIS = "PODCAST_APIS" PODCAST_SEARCH = "PODCAST_SEARCH" -SPAM_EXEMPTIONS = "SPAM_EXEMPTIONS" USER_LIST_SEARCH = "USER_LIST_SEARCH" diff --git a/open_discussions/middleware/channel_api.py b/open_discussions/middleware/channel_api.py deleted file mode 100644 index 11de8cbc6e..0000000000 --- a/open_discussions/middleware/channel_api.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Channel API middleware""" -from django.utils.functional import SimpleLazyObject - -from channels.api import Api - - -class ChannelApiMiddleware: - """ - Middleware that makes a channel API object available to views - via a lazy object attached to the request - """ - - def __init__(self, get_response): - self.get_response = get_response - - def __call__(self, request): - request.channel_api = SimpleLazyObject(lambda: Api(request.user)) - return self.get_response(request) diff --git a/open_discussions/middleware/channel_api_test.py b/open_discussions/middleware/channel_api_test.py deleted file mode 100644 index ce8ebc8223..0000000000 --- a/open_discussions/middleware/channel_api_test.py +++ /dev/null @@ -1,24 +0,0 @@ -"""Tests for channel API middleware""" -from django.utils.functional import SimpleLazyObject - -from open_discussions.middleware.channel_api import ChannelApiMiddleware - - -def test_channel_api_middleware( - mocker, jwt_token, rf, user -): # pylint: disable=unused-argument - """Tests that the middleware makes a channel API object available on the request""" - api_mock_obj = mocker.Mock(some_api_method=mocker.Mock(return_value="result")) - patched_api_cls = mocker.patch( - "open_discussions.middleware.channel_api.Api", return_value=api_mock_obj - ) - request = rf.get("/") - request.user = user - get_request_mock = mocker.Mock() - middleware = ChannelApiMiddleware(get_request_mock) - middleware(request) - assert hasattr(request, "channel_api") - assert isinstance(request.channel_api, SimpleLazyObject) - result = request.channel_api.some_api_method() - patched_api_cls.assert_called_with(user) - assert result == "result" diff --git a/open_discussions/permissions.py b/open_discussions/permissions.py index 04d28813e3..8bcb4579ae 100644 --- a/open_discussions/permissions.py +++ b/open_discussions/permissions.py @@ -1,30 +1,9 @@ """Custom permissions""" -from django.http import Http404 -from prawcore.exceptions import Forbidden as PrawForbidden -from prawcore.exceptions import Redirect as PrawRedirect from rest_framework import permissions -from channels.models import Channel from open_discussions import features -def channel_exists(view): - """ - Return True if a Channel object exists for a channel_name in the view, or there is no channel name. - Raises 404 if the Channel does not exist. - - Args: - view (rest_framework.views.APIView): django DRF view - - Returns: - bool: True if Channel exists (or there is no channel name) - """ - channel_name = view.kwargs.get("channel_name", None) - if not channel_name or Channel.objects.filter(name=channel_name).exists(): - return True - raise Http404() - - def is_admin_user(request): """ Args: @@ -51,41 +30,11 @@ def is_moderator(request, view): """ user_api = request.channel_api channel_name = view.kwargs.get("channel_name", None) - try: - return ( - channel_name - and not request.user.is_anonymous - and user_api.is_moderator(channel_name, request.user.username) - ) - except PrawForbidden: - # User was forbidden to list moderators so they are most certainly not one - return False - except PrawRedirect: - # if a redirect occurred, that means the user doesn't have any permissions - # for the subreddit and most definitely is not a moderator - return False - - -def channel_is_mod_editable(view): - """ - Helper function to check that a channel can be edited by a moderator on discussions. - - Args: - view (APIView): a DRF view object - - Returns: - bool: - True if the channel can be edited by a moderator. False if the channel does not exist or can only - be edited by a staff user from another server. - """ - channel_name = view.kwargs.get("channel_name") - managed = ( - Channel.objects.filter(name=channel_name) - .values_list("membership_is_managed", flat=True) - .first() + return ( + channel_name + and not request.user.is_anonymous + and user_api.is_moderator(channel_name, request.user.username) ) - # None means the channel does not exist, True means it does but we shouldn't edit it via REST API - return managed is False def is_readonly(request): @@ -117,29 +66,6 @@ def has_permission(self, request, view): return is_readonly(request) or is_admin_user(request) -class IsStaffOrModeratorPermission(permissions.BasePermission): - """Checks that the user is either staff or a moderator""" - - def has_permission(self, request, view): - """Returns True if the user has the staff role or is a moderator""" - - return channel_exists(view) and ( - is_admin_user(request) or is_moderator(request, view) - ) - - -class IsStaffModeratorOrReadonlyPermission(permissions.BasePermission): - """Checks that the user is either staff, a moderator, or performing a readonly operation""" - - def has_permission(self, request, view): - """Returns True if the user has the staff role, is a moderator, or the request is readonly""" - return channel_exists(view) and ( - is_readonly(request) - or is_admin_user(request) - or is_moderator(request, view) - ) - - class IsOwnSubscriptionOrAdminPermission(permissions.BasePermission): """ Checks that the user is (1) staff/moderator, (2) editing their own subscription, or (3) making @@ -167,39 +93,6 @@ def has_permission(self, request, view): ) -class ContributorPermissions(permissions.BasePermission): - """ - Only staff and moderators should be able to see and edit the list of contributors - """ - - def has_permission(self, request, view): - if not channel_exists(view): - return False - # Allow self-delete - if ( - request.method == "DELETE" - and view.kwargs.get("contributor_name", None) == request.user.username - ): - return True - return is_admin_user(request) or ( - (channel_is_mod_editable(view) or is_readonly(request)) - and is_moderator(request, view) - ) - - -class ModeratorPermissions(permissions.BasePermission): - """ - All users should be able to see a list of moderators. Only staff and moderators should be able to edit it. - """ - - def has_permission(self, request, view): - return channel_exists(view) and ( - is_readonly(request) - or is_admin_user(request) - or (channel_is_mod_editable(view) and is_moderator(request, view)) - ) - - class AnonymousAccessReadonlyPermission(permissions.BasePermission): """Checks that the user is authenticated or is allowed anonymous access""" diff --git a/open_discussions/permissions_test.py b/open_discussions/permissions_test.py index add30e41ce..13b7cfcb97 100644 --- a/open_discussions/permissions_test.py +++ b/open_discussions/permissions_test.py @@ -1,30 +1,17 @@ """Tests for permissions""" import pytest from django.contrib.auth.models import AnonymousUser -from django.http import Http404 -from prawcore.exceptions import Forbidden as PrawForbidden -from prawcore.exceptions import Redirect as PrawRedirect -from channels.models import Channel from open_discussions.permissions import ( AnonymousAccessReadonlyPermission, - ContributorPermissions, IsOwnSubscriptionOrAdminPermission, - IsStaffModeratorOrReadonlyPermission, - IsStaffOrModeratorPermission, IsStaffOrReadonlyPermission, IsStaffPermission, - ModeratorPermissions, ObjectOnlyPermissions, - channel_exists, - channel_is_mod_editable, - is_moderator, is_readonly, is_admin_user, ) -pytestmark = pytest.mark.usefixtures("mock_channel_exists") - @pytest.mark.parametrize( "method,result", @@ -36,20 +23,6 @@ def test_is_readonly(mocker, method, result): assert is_readonly(request) is result -@pytest.mark.parametrize("result", [True, False]) -def test_is_moderator(user, mocker, result): - """is_moderator should return True if the user is a moderator for the channel""" - request = mocker.Mock(user=user) - request.channel_api = mocker.patch("channels.api.Api").return_value - request.channel_api.is_moderator.return_value = result - channel_name = "abc" - view = mocker.Mock(kwargs={"channel_name": channel_name}) - assert is_moderator(request, view) is result - request.channel_api.is_moderator.assert_called_once_with( - channel_name, user.username - ) - - @pytest.mark.parametrize( "has_user, is_staff, is_super, expected", [ @@ -72,27 +45,6 @@ def test_is_staff_user( assert is_admin_user(request) is expected -@pytest.mark.parametrize( - "membership_is_managed,expected", [[True, False], [False, True], [None, False]] -) -def test_channel_is_mod_editable( - mocker, membership_is_managed, expected, db -): # pylint: disable=unused-argument - """ - channel_is_mod_editable should be true if the channel exists and the membership is not managed by micromasters - or another external server - """ - channel_name = "abc" - view = mocker.Mock(kwargs={"channel_name": channel_name}) - - if membership_is_managed is not None: - Channel.objects.create( - name=channel_name, membership_is_managed=membership_is_managed - ) - - assert channel_is_mod_editable(view) is expected - - @pytest.mark.parametrize("is_staff", [True, False]) def test_is_staff_permission(mocker, is_staff): """ @@ -136,109 +88,6 @@ def test_is_staff_or_readonly_permission(mocker, is_staff, readonly, expected): is_readonly_mock.assert_called_once_with(request) -@pytest.mark.parametrize( - "is_staff,moderator,expected", - [ - [True, True, True], - [True, False, True], - [False, True, True], - [False, False, False], - ], -) -def test_is_staff_or_moderator_permission(mocker, is_staff, moderator, expected): - """ - Test that staff users or moderators are allowed - """ - request, view = mocker.Mock(), mocker.Mock() - is_staff_user_mock = mocker.patch( - "open_discussions.permissions.is_admin_user", - autospec=True, - return_value=is_staff, - ) - is_moderator_mock = mocker.patch( - "open_discussions.permissions.is_moderator", - autospec=True, - return_value=moderator, - ) - assert IsStaffOrModeratorPermission().has_permission(request, view) is expected - if is_moderator_mock.called: - is_moderator_mock.assert_called_once_with(request, view) - is_staff_user_mock.assert_called_once_with(request) - - -@pytest.mark.parametrize("exception_cls", [PrawRedirect, PrawForbidden]) -def test_is_staff_or_moderator_exceptions(mocker, user, exception_cls): - """ - Test that user is deemed not a moderator if praw raises a forbidden or redirect error - """ - perm = IsStaffOrModeratorPermission() - request = mocker.Mock(user=user) - request.channel_api = mocker.patch("channels.api.Api").return_value - request.channel_api.is_moderator.side_effect = exception_cls( - mocker.MagicMock(headers={"location": "/"}) - ) - view = mocker.Mock(kwargs=dict(channel_name="abc")) - assert perm.has_permission(request, view) is False - - -@pytest.mark.parametrize( - "is_staff,moderator,readonly,expected", - [ - [True, True, True, True], - [True, False, True, True], - [False, True, True, True], - [False, False, True, True], - [True, True, False, True], - [True, False, False, True], - [False, True, False, True], - [False, False, False, False], - ], -) -def test_is_staff_moderator_or_readonly_permission( - mocker, is_staff, moderator, readonly, expected -): - """ - Test that staff users or moderators are allowed - """ - request, view = mocker.Mock(), mocker.Mock() - is_staff_user_mock = mocker.patch( - "open_discussions.permissions.is_admin_user", - autospec=True, - return_value=is_staff, - ) - is_moderator_mock = mocker.patch( - "open_discussions.permissions.is_moderator", - autospec=True, - return_value=moderator, - ) - is_readonly_mock = mocker.patch( - "open_discussions.permissions.is_readonly", autospec=True, return_value=readonly - ) - assert ( - IsStaffModeratorOrReadonlyPermission().has_permission(request, view) is expected - ) - is_readonly_mock.assert_called_once_with(request) - if is_staff_user_mock.called: - is_staff_user_mock.assert_called_once_with(request) - if is_moderator_mock.called: - is_moderator_mock.assert_called_once_with(request, view) - - -@pytest.mark.parametrize("exception_cls", [PrawRedirect, PrawForbidden]) -def test_is_staff_moderator_or_readonly_exceptions(mocker, user, exception_cls): - """ - Test that user is deemed not a moderator if praw raises a forbidden or redirect error - """ - perm = IsStaffModeratorOrReadonlyPermission() - request = mocker.Mock(user=user) - request.channel_api = mocker.patch("channels.api.Api").return_value - request.channel_api.is_moderator.side_effect = exception_cls( - mocker.MagicMock(headers={"location": "/"}) - ) - view = mocker.Mock(kwargs=dict(channel_name="abc")) - assert perm.has_permission(request, view) is False - - @pytest.mark.parametrize( "logged_in_username,req_body_username,url_kwarg_username,expected", [ @@ -270,133 +119,6 @@ def test_is_own_subscription_permission( ) -def test_contributor_permission_self_delete(mocker): - """ - Test that users can delete their own contributor status - """ - mocker.patch("open_discussions.permissions.is_admin_user", return_value=False) - mocker.patch("open_discussions.permissions.is_moderator", return_value=False) - username = "user1" - request, view = mocker.Mock(), mocker.Mock() - request.method = "DELETE" - request.user.username = username - view.kwargs = {"contributor_name": username} - assert ContributorPermissions().has_permission(request, view) is True - - -# This is essentially is_staff or (moderator and (mod_editable or readonly)) -@pytest.mark.parametrize( - "is_staff, moderator, mod_editable, readonly, expected", - [ - [True, True, True, True, True], - [True, True, True, False, True], - [True, True, False, True, True], - [True, True, False, False, True], - [True, False, True, True, True], - [True, False, True, False, True], - [True, False, False, True, True], - [True, False, False, False, True], - [False, True, True, True, True], - [False, True, True, False, True], - [False, True, False, True, True], - [False, True, False, False, False], - [False, False, True, True, False], - [False, False, True, False, False], - [False, False, False, True, False], - [False, False, False, False, False], - ], -) # pylint: disable=too-many-arguments -def test_contributor_permission( # pylint:disable=unused-argument,too-many-arguments - mocker, is_staff, moderator, mod_editable, readonly, expected -): - """ - Test who can view and edit via the contributor REST API - """ - request, view = mocker.Mock(), mocker.Mock() - is_staff_user_mock = mocker.patch( - "open_discussions.permissions.is_admin_user", - autospec=True, - return_value=is_staff, - ) - is_moderator_mock = mocker.patch( - "open_discussions.permissions.is_moderator", - autospec=True, - return_value=moderator, - ) - channel_is_mod_editable_mock = mocker.patch( - "open_discussions.permissions.channel_is_mod_editable", - autospec=True, - return_value=mod_editable, - ) - is_readonly_mock = mocker.patch( - "open_discussions.permissions.is_readonly", autospec=True, return_value=readonly - ) - assert ContributorPermissions().has_permission(request, view) is expected - is_staff_user_mock.assert_called_once_with(request) - if is_moderator_mock.called: - is_moderator_mock.assert_called_once_with(request, view) - if channel_is_mod_editable_mock.called: - channel_is_mod_editable_mock.assert_called_once_with(view) - if is_readonly_mock.called: - is_readonly_mock.assert_called_once_with(request) - - -@pytest.mark.parametrize( - "readonly, is_staff, mod_editable, moderator, expected", - [ - [True, True, True, True, True], - [True, True, True, False, True], - [True, True, False, True, True], - [True, True, False, False, True], - [True, False, True, True, True], - [True, False, True, False, True], - [True, False, False, True, True], - [True, False, False, False, True], - [False, True, True, True, True], - [False, True, True, False, True], - [False, True, False, True, True], - [False, True, False, False, True], - [False, False, True, True, True], - [False, False, True, False, False], - [False, False, False, True, False], - [False, False, False, False, False], - ], -) # pylint: disable=too-many-arguments -def test_moderator_permission( # pylint:disable=unused-argument,too-many-arguments - mocker, readonly, is_staff, mod_editable, moderator, expected -): - """ - Test who can view and edit via the moderator REST API - """ - request, view = mocker.Mock(), mocker.Mock() - is_readonly_mock = mocker.patch( - "open_discussions.permissions.is_readonly", autospec=True, return_value=readonly - ) - is_staff_user_mock = mocker.patch( - "open_discussions.permissions.is_admin_user", - autospec=True, - return_value=is_staff, - ) - is_moderator_mock = mocker.patch( - "open_discussions.permissions.is_moderator", - autospec=True, - return_value=moderator, - ) - channel_is_mod_editable_mock = mocker.patch( - "open_discussions.permissions.channel_is_mod_editable", - autospec=True, - return_value=mod_editable, - ) - assert ModeratorPermissions().has_permission(request, view) is expected - is_readonly_mock.assert_called_once_with(request) - if is_staff_user_mock.called: - is_staff_user_mock.assert_called_once_with(request) - if is_moderator_mock.called: - is_moderator_mock.assert_called_once_with(request, view) - if channel_is_mod_editable_mock.called: - channel_is_mod_editable_mock.assert_called_once_with(view) - - @pytest.mark.parametrize( "method,result", [("GET", True), ("HEAD", True), ("OPTIONS", True), ("POST", False), ("PUT", False)], @@ -420,24 +142,6 @@ def test_not_anonymous(method, mocker): assert perm.has_permission(request, mocker.Mock()) is True -@pytest.mark.parametrize( - "name,raises_404", [["real", False], ["fake", True], [None, False]] -) -@pytest.mark.django_db -def test_channel_exists(mocker, name, raises_404): - """ - channel_exists function should raise an Http404 if channel name is not None and doesn't exist - """ - channel_view = mocker.Mock(kwargs={"channel_name": name}) - if name and not raises_404: - Channel.objects.create(name=name) - if raises_404: - with pytest.raises(Http404): - channel_exists(channel_view) - else: - assert channel_exists(channel_view) - - def test_object_only_permissions(mocker): """Checks that ObjectOnlyPermissions.has_permission() returns True""" perm = ObjectOnlyPermissions() diff --git a/open_discussions/recorder.py b/open_discussions/recorder.py deleted file mode 100644 index fcb97561df..0000000000 --- a/open_discussions/recorder.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Add context manager to make recording reddit requests simpler""" -from contextlib import contextmanager -from unittest.mock import patch - -from betamax import Betamax -import requests - -from channels.api import Api -from open_discussions.betamax_config import setup_betamax - - -@contextmanager -def record(name, user): - """ - Record a cassette of some reddit communication. - - Usage: - with record('cassette_name', my_user) as api: - api.update_channel('channel', title='new_title') - - Args: - name (str): The name of the new cassette - user (django.contrib.auth.models.User): User to authenticate with - """ - setup_betamax() - session = requests.Session() - session.verify = False - - with patch("channels.api._get_session", return_value=session): - with Betamax(session).use_cassette(name): - api = Api(user) - yield api diff --git a/open_discussions/settings.py b/open_discussions/settings.py index 4fc8ffa980..c2f311506e 100644 --- a/open_discussions/settings.py +++ b/open_discussions/settings.py @@ -23,7 +23,6 @@ get_any, get_bool, get_int, - get_key, get_list_of_str, get_string, ) @@ -66,9 +65,6 @@ if not SITE_BASE_URL: raise ImproperlyConfigured("MITOPEN_BASE_URL is not set") MITOPEN_TITLE = get_string("MITOPEN_TITLE", "MIT Open") -MITOPEN_TOS_URL = get_string( - "MITOPEN_TOS_URL", urljoin(SITE_BASE_URL, "/terms-and-conditions/") -) WEBPACK_LOADER = { "INFINITE_CORRIDOR": { @@ -108,15 +104,12 @@ # Put our apps after this point "open_discussions", "authentication", - "channels", "channels_fields", "profiles", "mail", - "notifications", "search", "widgets", "interactions", - "moira_lists", "discussions", "learning_resources", # to replace below when ready "course_catalog", @@ -132,7 +125,6 @@ "django.middleware.clickjacking.XFrameOptionsMiddleware", "corsheaders.middleware.CorsMiddleware", "authentication.middleware.BlockedIPMiddleware", - "open_discussions.middleware.channel_api.ChannelApiMiddleware", "authentication.middleware.SocialAuthExceptionRedirectMiddleware", "hijack.middleware.HijackUserMiddleware", ) @@ -155,6 +147,10 @@ LOGOUT_URL = "/logout" LOGOUT_REDIRECT_URL = "/" +MITOPEN_TOS_URL = get_string( + "MITOPEN_TOS_URL", urljoin(SITE_BASE_URL, "/terms-and-conditions/") +) + ROOT_URLCONF = "open_discussions.urls" TEMPLATES = [ @@ -351,22 +347,6 @@ else: ADMINS = () -# Email Notifications config - -NOTIFICATION_EMAIL_BACKEND = get_string( - "MITOPEN_NOTIFICATION_EMAIL_BACKEND", - "anymail.backends.mailgun.EmailBackend", -) -# See https://docs.celeryproject.org/en/latest/reference/celery.app.task.html#celery.app.task.Task.rate_limit -NOTIFICATION_ATTEMPT_RATE_LIMIT = get_string( - "MITOPEN_NOTIFICATION_ATTEMPT_RATE_LIMIT", None # default is no rate limit -) - -NOTIFICATION_ATTEMPT_CHUNK_SIZE = get_int( - "MITOPEN_NOTIFICATION_ATTEMPT_CHUNK_SIZE", 100 -) -NOTIFICATION_SEND_CHUNK_SIZE = get_int("MITOPEN_NOTIFICATION_SEND_CHUNK_SIZE", 100) - # embed.ly configuration EMBEDLY_KEY = get_string("EMBEDLY_KEY", None) EMBEDLY_EMBED_URL = get_string("EMBEDLY_EMBED_URL", "https://api.embed.ly/1/oembed") @@ -528,22 +508,11 @@ raise ImproperlyConfigured("Missing setting INDEXING_API_USERNAME") INDEXING_ERROR_RETRIES = get_int("INDEXING_ERROR_RETRIES", 1) -# reddit-specific settings -MITOPEN_REDDIT_CLIENT_ID = get_string("MITOPEN_REDDIT_CLIENT_ID", None) -MITOPEN_REDDIT_SECRET = get_string("MITOPEN_REDDIT_SECRET", None) -MITOPEN_REDDIT_URL = get_string("MITOPEN_REDDIT_URL", "") -MITOPEN_REDDIT_VALIDATE_SSL = get_bool("MITOPEN_REDDIT_VALIDATE_SSL", True) -MITOPEN_REDDIT_ACCESS_TOKEN = get_string("MITOPEN_REDDIT_ACCESS_TOKEN", "INSECURE") -MITOPEN_REDDIT_COMMENTS_LIMIT = get_int("MITOPEN_REDDIT_COMMENTS_LIMIT", 50) - # JWT authentication settings MITOPEN_JWT_SECRET = get_string( "MITOPEN_JWT_SECRET", "terribly_unsafe_default_jwt_secret_key" ) -MITOPEN_CHANNEL_POST_LIMIT = get_int("MITOPEN_CHANNEL_POST_LIMIT", 25) -MITOPEN_MAX_COMMENT_DEPTH = get_int("MITOPEN_MAX_COMMENT_DEPTH", 6) - MITOPEN_COOKIE_NAME = get_string("MITOPEN_COOKIE_NAME", None) if not MITOPEN_COOKIE_NAME: raise ImproperlyConfigured("MITOPEN_COOKIE_NAME is not set") @@ -566,27 +535,11 @@ "JWT_AUTH_HEADER_PREFIX": "Bearer", } -MITOPEN_FRONTPAGE_DIGEST_MAX_POSTS = get_int("MITOPEN_FRONTPAGE_DIGEST_MAX_POSTS", 5) -MITOPEN_FRONTPAGE_DIGEST_MAX_EPISODES = get_int( - "MITOPEN_FRONTPAGE_DIGEST_MAX_EPISODES", 5 -) - -MITOPEN_DEFAULT_CHANNEL_BACKPOPULATE_BATCH_SIZE = get_int( - "MITOPEN_DEFAULT_CHANNEL_BACKPOPULATE_BATCH_SIZE", 1000 -) -MITOPEN_RELATED_POST_COUNT = get_int("MITOPEN_RELATED_POST_COUNT", 4) - # Similar resources settings MITOPEN_SIMILAR_RESOURCES_COUNT = get_int("MITOPEN_SIMILAR_RESOURCES_COUNT", 3) OPEN_RESOURCES_MIN_DOC_FREQ = get_int("OPEN_RESOURCES_MIN_DOC_FREQ", 1) OPEN_RESOURCES_MIN_TERM_FREQ = get_int("OPEN_RESOURCES_MIN_TERM_FREQ", 1) -# Only repair the first page worth of posts -MITOPEN_HOT_POST_REPAIR_LIMIT = get_int( - "MITOPEN_HOT_POST_REPAIR_LIMIT", MITOPEN_CHANNEL_POST_LIMIT -) -MITOPEN_HOT_POST_REPAIR_DELAY = get_int("MITOPEN_HOT_POST_REPAIR_DELAY", 30) - # features flags def get_all_config_keys(): @@ -657,41 +610,19 @@ def get_all_config_keys(): LIVESTREAM_SECRET_KEY = get_string("LIVESTREAM_SECRET_KEY", None) LIVESTREAM_ACCOUNT_ID = get_string("LIVESTREAM_ACCOUNT_ID", None) -# x509 certificate for moira -MIT_WS_CERTIFICATE = get_key("MIT_WS_CERTIFICATE", "") -MIT_WS_PRIVATE_KEY = get_key("MIT_WS_PRIVATE_KEY", "") - # x509 filenames MIT_WS_CERTIFICATE_FILE = os.path.join(STATIC_ROOT, "mit_x509.cert") MIT_WS_PRIVATE_KEY_FILE = os.path.join(STATIC_ROOT, "mit_x509.key") -STAFF_MOIRA_LISTS = get_list_of_str("STAFF_MOIRA_LISTS", []) - -AKISMET_API_KEY = get_string("AKISMET_API_KEY", None) -AKISMET_BLOG_URL = get_string("AKISMET_BLOG_URL", None) -AKISMET_IS_TESTING = get_string("AKISMET_IS_TESTING", False) -SPAM_EXEMPT_EMAILS = get_list_of_str("SPAM_EXEMPT_EMAILS", ["[@\\.]mit\\.edu"]) - RSS_FEED_EPISODE_LIMIT = get_int("RSS_FEED_EPISODE_LIMIT", 100) RSS_FEED_CACHE_MINUTES = get_int("RSS_FEED_CACHE_MINUTES", 15) -ENABLE_INFINITE_CORRIDOR = get_bool("ENABLE_INFINITE_CORRIDOR", False) - REQUESTS_TIMEOUT = get_int("REQUESTS_TIMEOUT", 30) if DEBUG: # allow for all IPs to be routable, including localhost, for testing IPWARE_PRIVATE_IP_PREFIX = () - -def setup_x509(): - """write the moira x509 certification & key to files""" - from open_discussions.utils import write_x509_files - - write_x509_files() - - -setup_x509() SPECTACULAR_SETTINGS = open_spectacular_settings # drf extension settings diff --git a/open_discussions/settings_celery.py b/open_discussions/settings_celery.py index 7035f35500..30f00dc81a 100644 --- a/open_discussions/settings_celery.py +++ b/open_discussions/settings_celery.py @@ -17,22 +17,6 @@ ) CELERY_BEAT_SCHEDULE = { - "evict-expired-access-tokens-every-1-hrs": { - "task": "channels.tasks.evict_expired_access_tokens", - "schedule": crontab(minute=0, hour="*"), - }, - "send-unsent-emails-every-1-mins": { - "task": "notifications.tasks.send_unsent_email_notifications", - "schedule": crontab(minute="*"), - }, - "send-frontpage-digests-every-1-days": { - "task": "notifications.tasks.send_daily_frontpage_digests", - "schedule": crontab(minute=0, hour=14), # 10am EST - }, - "send-frontpage-digests-every-1-weeks": { - "task": "notifications.tasks.send_weekly_frontpage_digests", - "schedule": crontab(minute=0, hour=14, day_of_week=2), # 10am EST on tuesdays - }, "update_edx-courses-every-1-days": { "task": "course_catalog.tasks.get_mitx_data", "schedule": crontab(minute=30, hour=15), # 11:30am EST @@ -93,10 +77,6 @@ "YOUTUBE_FETCH_TRANSCRIPT_SCHEDULE_SECONDS", 60 * 60 * 12 ), # default is 12 hours }, - "update-managed-channel-memberships": { - "task": "channels.tasks.update_memberships_for_managed_channels", - "schedule": crontab(minute=30, hour=10), # 6:30am EST - }, } CELERY_TASK_SERIALIZER = "json" diff --git a/open_discussions/urls.py b/open_discussions/urls.py index 8e740c1ccb..8a72320256 100644 --- a/open_discussions/urls.py +++ b/open_discussions/urls.py @@ -35,11 +35,9 @@ re_path(r"^admin/", admin.site.urls), re_path(r"", include("authentication.urls")), re_path(r"", include("social_django.urls", namespace="social")), - re_path(r"", include("channels.urls")), re_path(r"", include("channels_fields.urls")), re_path(r"", include("profiles.urls")), re_path(r"", include("mail.urls")), - re_path(r"", include("notifications.urls")), re_path(r"", include("embedly.urls")), re_path(r"", include("search.urls")), re_path(r"", include("ckeditor.urls")), @@ -52,27 +50,6 @@ # React App re_path(r"^$", index, name="open_discussions-index"), re_path(r"^infinite/", index), - re_path( - r"^c/(?P[A-Za-z0-9_]+)/(?P[A-Za-z0-9_]+)/" - r"(?P{post_slug_pattern})/comment/(?P[A-Za-z0-9_]+)/?$".format( - post_slug_pattern=POST_SLUG_PATTERN - ), - index, - name="channel-post-comment", - ), - re_path( - r"^c/(?P[A-Za-z0-9_]+)/(?P[A-Za-z0-9_]+)/(?P{post_slug_pattern})/?$".format( - post_slug_pattern=POST_SLUG_PATTERN - ), - index, - name="channel-post", - ), - re_path(r"^c/(?P[A-Za-z0-9_]+)/$", index, name="channel"), - re_path( - r"^manage/c/edit/(?P[A-Za-z0-9_]+)/basic/$", - index, - name="manage-channel", - ), re_path(r"^settings/(?P[^/]+)/$", index, name="settings-anon"), re_path(r"^profile/(?P[A-Za-z0-9_]+)/", index, name="profile"), re_path(r"^signup/", index, name="signup"), diff --git a/open_discussions/utils.py b/open_discussions/utils.py index 2df32f93a6..b7d75535d2 100644 --- a/open_discussions/utils.py +++ b/open_discussions/utils.py @@ -304,20 +304,3 @@ def write_x509_files(): """Write the x509 certificate and key to files""" write_to_file(settings.MIT_WS_CERTIFICATE_FILE, settings.MIT_WS_CERTIFICATE) write_to_file(settings.MIT_WS_PRIVATE_KEY_FILE, settings.MIT_WS_PRIVATE_KEY) - - -def get_field_names(model): - """ - Get field names which aren't autogenerated - - Args: - model (class extending django.db.models.Model): A Django model class - Returns: - list of str: - A list of field names - """ - return [ - field.name - for field in model._meta.get_fields() - if not field.auto_created # pylint: disable=protected-access - ] diff --git a/open_discussions/utils_test.py b/open_discussions/utils_test.py index 4e95c0a588..ec0d4a1b15 100644 --- a/open_discussions/utils_test.py +++ b/open_discussions/utils_test.py @@ -7,7 +7,6 @@ import pytest import pytz -from channels.models import SpamCheckResult from open_discussions.factories import UserFactory from open_discussions.utils import ( now_in_utc, @@ -22,7 +21,6 @@ prefetched_iterator, extract_values, write_to_file, - get_field_names, ) User = get_user_model() @@ -195,20 +193,3 @@ def test_write_to_file(): write_to_file(outfile.name, content) with open(outfile.name, "rb") as infile: assert infile.read() == content - - -def test_get_field_names(): - """ - Assert that get_field_names returns expected fields - """ - assert set(get_field_names(SpamCheckResult)) == { - "user_ip", - "user_agent", - "checks", - "is_spam", - "content_type", - "content_object", - "object_id", - "created_on", - "updated_on", - } diff --git a/open_discussions/views.py b/open_discussions/views.py index dd4a28f918..55ee937761 100644 --- a/open_discussions/views.py +++ b/open_discussions/views.py @@ -13,8 +13,6 @@ from course_catalog.permissions import is_staff_list_editor -from moira_lists.moira_api import is_public_list_editor - def index(request, **kwargs): # pylint: disable=unused-argument """Render the example app""" @@ -28,8 +26,6 @@ def index(request, **kwargs): # pylint: disable=unused-argument "user": { "id": user.id, "is_authenticated": bool(user.is_authenticated), - "is_public_list_editor": user.is_authenticated - and is_public_list_editor(user), "is_staff_list_editor": user.is_authenticated and (is_admin_user(request) or is_staff_list_editor(request)), }, diff --git a/poetry.lock b/poetry.lock index cca8c299ac..9a2e86fe68 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,19 +1,5 @@ # This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. -[[package]] -name = "akismet" -version = "1.2.1" -description = "A Python interface to the Akismet spam-filtering API." -optional = false -python-versions = ">=3.7" -files = [ - {file = "akismet-1.2.1-py3-none-any.whl", hash = "sha256:49f128a22c3049c94e727db797ffbd01048bf3d47dd6195c888e0bc5e964d4ea"}, - {file = "akismet-1.2.1.tar.gz", hash = "sha256:f3790489ea091d43a14717f1f6b1a0a86af2ac235d10b13742ee0ea064ff8ea7"}, -] - -[package.dependencies] -requests = "*" - [[package]] name = "amqp" version = "5.1.1" @@ -154,37 +140,6 @@ soupsieve = ">1.2" html5lib = ["html5lib"] lxml = ["lxml"] -[[package]] -name = "betamax" -version = "0.8.1" -description = "A VCR imitation for python-requests" -optional = false -python-versions = "*" -files = [ - {file = "betamax-0.8.1-py2.py3-none-any.whl", hash = "sha256:aa5ad34cc8d018b35814fb0557d15c78ced9ac56fdc43ccacdb882aa7a5217c1"}, - {file = "betamax-0.8.1.tar.gz", hash = "sha256:5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2"}, -] - -[package.dependencies] -requests = ">=2.0" - -[[package]] -name = "betamax-serializers" -version = "0.2.1" -description = "A set of third-party serializers for Betamax" -optional = false -python-versions = "*" -files = [ - {file = "betamax-serializers-0.2.1.tar.gz", hash = "sha256:345c419b1b73171f2951c62ac3c701775ac4b76e13e86464ebf0ff2a978e4949"}, - {file = "betamax_serializers-0.2.1-py2.py3-none-any.whl", hash = "sha256:1b23c46429c40a8873682854c88d805c787c72d252f3fa0c858e9c300682ceac"}, -] - -[package.dependencies] -betamax = ">=0.3.2" - -[package.extras] -yaml11 = ["PyYAML"] - [[package]] name = "billiard" version = "4.1.0" @@ -1626,6 +1581,7 @@ files = [ {file = "greenlet-2.0.2-cp27-cp27m-win32.whl", hash = "sha256:6c3acb79b0bfd4fe733dff8bc62695283b57949ebcca05ae5c129eb606ff2d74"}, {file = "greenlet-2.0.2-cp27-cp27m-win_amd64.whl", hash = "sha256:283737e0da3f08bd637b5ad058507e578dd462db259f7f6e4c5c365ba4ee9343"}, {file = "greenlet-2.0.2-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:d27ec7509b9c18b6d73f2f5ede2622441de812e7b1a80bbd446cb0633bd3d5ae"}, + {file = "greenlet-2.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d967650d3f56af314b72df7089d96cda1083a7fc2da05b375d2bc48c82ab3f3c"}, {file = "greenlet-2.0.2-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:30bcf80dda7f15ac77ba5af2b961bdd9dbc77fd4ac6105cee85b0d0a5fcf74df"}, {file = "greenlet-2.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26fbfce90728d82bc9e6c38ea4d038cba20b7faf8a0ca53a9c07b67318d46088"}, {file = "greenlet-2.0.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9190f09060ea4debddd24665d6804b995a9c122ef5917ab26e1566dcc712ceeb"}, @@ -1634,6 +1590,7 @@ files = [ {file = "greenlet-2.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:76ae285c8104046b3a7f06b42f29c7b73f77683df18c49ab5af7983994c2dd91"}, {file = "greenlet-2.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:2d4686f195e32d36b4d7cf2d166857dbd0ee9f3d20ae349b6bf8afc8485b3645"}, {file = "greenlet-2.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:c4302695ad8027363e96311df24ee28978162cdcdd2006476c43970b384a244c"}, + {file = "greenlet-2.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d4606a527e30548153be1a9f155f4e283d109ffba663a15856089fb55f933e47"}, {file = "greenlet-2.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c48f54ef8e05f04d6eff74b8233f6063cb1ed960243eacc474ee73a2ea8573ca"}, {file = "greenlet-2.0.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a1846f1b999e78e13837c93c778dcfc3365902cfb8d1bdb7dd73ead37059f0d0"}, {file = "greenlet-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a06ad5312349fec0ab944664b01d26f8d1f05009566339ac6f63f56589bc1a2"}, @@ -1663,6 +1620,7 @@ files = [ {file = "greenlet-2.0.2-cp37-cp37m-win32.whl", hash = "sha256:3f6ea9bd35eb450837a3d80e77b517ea5bc56b4647f5502cd28de13675ee12f7"}, {file = "greenlet-2.0.2-cp37-cp37m-win_amd64.whl", hash = "sha256:7492e2b7bd7c9b9916388d9df23fa49d9b88ac0640db0a5b4ecc2b653bf451e3"}, {file = "greenlet-2.0.2-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:b864ba53912b6c3ab6bcb2beb19f19edd01a6bfcbdfe1f37ddd1778abfe75a30"}, + {file = "greenlet-2.0.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:1087300cf9700bbf455b1b97e24db18f2f77b55302a68272c56209d5587c12d1"}, {file = "greenlet-2.0.2-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:ba2956617f1c42598a308a84c6cf021a90ff3862eddafd20c3333d50f0edb45b"}, {file = "greenlet-2.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc3a569657468b6f3fb60587e48356fe512c1754ca05a564f11366ac9e306526"}, {file = "greenlet-2.0.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8eab883b3b2a38cc1e050819ef06a7e6344d4a990d24d45bc6f2cf959045a45b"}, @@ -1671,6 +1629,7 @@ files = [ {file = "greenlet-2.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:b0ef99cdbe2b682b9ccbb964743a6aca37905fda5e0452e5ee239b1654d37f2a"}, {file = "greenlet-2.0.2-cp38-cp38-win32.whl", hash = "sha256:b80f600eddddce72320dbbc8e3784d16bd3fb7b517e82476d8da921f27d4b249"}, {file = "greenlet-2.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:4d2e11331fc0c02b6e84b0d28ece3a36e0548ee1a1ce9ddde03752d9b79bba40"}, + {file = "greenlet-2.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8512a0c38cfd4e66a858ddd1b17705587900dd760c6003998e9472b77b56d417"}, {file = "greenlet-2.0.2-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:88d9ab96491d38a5ab7c56dd7a3cc37d83336ecc564e4e8816dbed12e5aaefc8"}, {file = "greenlet-2.0.2-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:561091a7be172ab497a3527602d467e2b3fbe75f9e783d8b8ce403fa414f71a6"}, {file = "greenlet-2.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:971ce5e14dc5e73715755d0ca2975ac88cfdaefcaab078a284fea6cfabf866df"}, @@ -1827,20 +1786,6 @@ qtconsole = ["qtconsole"] test = ["pytest (<7.1)", "pytest-asyncio", "testpath"] test-extra = ["curio", "matplotlib (!=3.2.0)", "nbformat", "numpy (>=1.21)", "pandas", "pytest (<7.1)", "pytest-asyncio", "testpath", "trio"] -[[package]] -name = "isodate" -version = "0.6.1" -description = "An ISO 8601 date/time/duration parser and formatter" -optional = false -python-versions = "*" -files = [ - {file = "isodate-0.6.1-py2.py3-none-any.whl", hash = "sha256:0751eece944162659049d35f4f549ed815792b38793f07cf73381c1c87cbed96"}, - {file = "isodate-0.6.1.tar.gz", hash = "sha256:48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9"}, -] - -[package.dependencies] -six = "*" - [[package]] name = "isort" version = "5.12.0" @@ -2238,24 +2183,6 @@ files = [ {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, ] -[[package]] -name = "mit-moira" -version = "0.0.4" -description = "" -optional = false -python-versions = "*" -files = [] -develop = false - -[package.dependencies] -zeep = "*" - -[package.source] -type = "git" -url = "https://github.com/mitodl/mit-moira" -reference = "v0.0.4" -resolved_reference = "0b73483f2bad49327b77a3eb94a4a9a602ef26ce" - [[package]] name = "moto" version = "4.1.13" @@ -2668,35 +2595,6 @@ files = [ dev = ["pre-commit", "tox"] testing = ["pytest", "pytest-benchmark"] -[[package]] -name = "praw" -version = "4.6.0" -description = "PRAW, an acronym for `Python Reddit API Wrapper`, is a python package that allows for simple access to reddit's API." -optional = false -python-versions = "*" -files = [ - {file = "praw-4.6.0-py2.py3-none-any.whl", hash = "sha256:da448ca455f1362edb83b4929869e87f99725f7decb729e59e9b5b8ffef570c0"}, - {file = "praw-4.6.0.tar.gz", hash = "sha256:3f1cb9405291e0f875cc6d75e1705e1c1a55c13fcf8deeca229a93e9dfc6a1b1"}, -] - -[package.dependencies] -prawcore = ">=0.10.1,<0.11" -update-checker = ">=0.16" - -[[package]] -name = "prawcore" -version = "0.10.1" -description = "Low-level communication layer for PRAW 4+." -optional = false -python-versions = "*" -files = [ - {file = "prawcore-0.10.1-py2.py3-none-any.whl", hash = "sha256:eacf1b2e10da4883759bd795235b7c7d35e56db18c10a174e52ae65b60359f53"}, - {file = "prawcore-0.10.1.tar.gz", hash = "sha256:215ba911c9b6721145aff21d3309d700f87999e61f56e399680659e85049b50c"}, -] - -[package.dependencies] -requests = ">=2.6.0,<3.0" - [[package]] name = "prompt-toolkit" version = "3.0.39" @@ -3280,6 +3178,7 @@ files = [ {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, + {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, @@ -3287,8 +3186,15 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, + {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, + {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, + {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, + {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, @@ -3305,6 +3211,7 @@ files = [ {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, + {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, @@ -3312,6 +3219,7 @@ files = [ {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, + {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, @@ -3401,20 +3309,6 @@ requests = ">=2.0.0" [package.extras] rsa = ["oauthlib[signedtoken] (>=3.0.0)"] -[[package]] -name = "requests-toolbelt" -version = "1.0.0" -description = "A utility belt for advanced users of python-requests" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -files = [ - {file = "requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6"}, - {file = "requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06"}, -] - -[package.dependencies] -requests = ">=2.0.1,<3.0.0" - [[package]] name = "responses" version = "0.14.0" @@ -4008,25 +3902,6 @@ files = [ {file = "ulid_py-0.0.3-py2.py3-none-any.whl", hash = "sha256:0b9c686536cb5c6e72ab6843e85193a6cd48722701d79174aca2a77ef3c2f628"}, ] -[[package]] -name = "update-checker" -version = "0.18.0" -description = "A python module that will check for package updates." -optional = false -python-versions = "*" -files = [ - {file = "update_checker-0.18.0-py3-none-any.whl", hash = "sha256:cbba64760a36fe2640d80d85306e8fe82b6816659190993b7bdabadee4d4bbfd"}, - {file = "update_checker-0.18.0.tar.gz", hash = "sha256:6a2d45bb4ac585884a6b03f9eade9161cedd9e8111545141e9aa9058932acb13"}, -] - -[package.dependencies] -requests = ">=2.3.0" - -[package.extras] -dev = ["black", "flake8", "pytest (>=2.7.3)"] -lint = ["black", "flake8"] -test = ["pytest (>=2.7.3)"] - [[package]] name = "uritemplate" version = "4.1.1" @@ -4260,33 +4135,6 @@ files = [ {file = "xmltodict-0.13.0.tar.gz", hash = "sha256:341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56"}, ] -[[package]] -name = "zeep" -version = "4.2.1" -description = "A Python SOAP client" -optional = false -python-versions = ">=3.7" -files = [ - {file = "zeep-4.2.1-py3-none-any.whl", hash = "sha256:6754feb4c34a4b6d65fbc359252bf6654dcce3937bf1d95aae4402a60a8f5939"}, - {file = "zeep-4.2.1.tar.gz", hash = "sha256:72093acfdb1d8360ed400869b73fbf1882b95c4287f798084c42ee0c1ff0e425"}, -] - -[package.dependencies] -attrs = ">=17.2.0" -isodate = ">=0.5.4" -lxml = ">=4.6.0" -platformdirs = ">=1.4.0" -pytz = "*" -requests = ">=2.7.0" -requests-file = ">=1.5.1" -requests-toolbelt = ">=0.7.1" - -[package.extras] -async = ["httpx (>=0.15.0)"] -docs = ["sphinx (>=1.4.0)"] -test = ["coverage[toml] (==5.2.1)", "flake8 (==3.8.3)", "flake8-blind-except (==0.1.1)", "flake8-debugger (==3.2.1)", "flake8-imports (==0.1.1)", "freezegun (==0.3.15)", "isort (==5.3.2)", "pretend (==1.0.9)", "pytest (==6.2.5)", "pytest-asyncio", "pytest-cov (==2.8.1)", "pytest-httpx", "requests-mock (>=0.7.0)"] -xmlsec = ["xmlsec (>=0.6.1)"] - [[package]] name = "zipp" version = "3.16.0" @@ -4305,4 +4153,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "3.11.4" -content-hash = "ba3c95c2d67614811e88e6b1abbcc066e4a4c08a91de0981be21e7e530dfff92" +content-hash = "4e7b665021a5855de3d5fc0d1bf5fb1376981069adeb8d80f9be394468139335" diff --git a/profiles/api.py b/profiles/api.py index 8121d7a9eb..e712c7e438 100644 --- a/profiles/api.py +++ b/profiles/api.py @@ -3,7 +3,6 @@ from django.db import transaction -from channels.models import ChannelGroupRole from profiles.models import ( Profile, filter_profile_props, @@ -46,58 +45,12 @@ def _after_profile_created_or_updated(): Operations that should be run after the profile create or update is committed """ search_index_helpers.upsert_profile(profile.id) - search_index_helpers.update_author_posts_comments(profile.id) # this will either get called when the outermost transaction commits or otherwise immediately # this avoids race conditions where the async tasks may not see the record or the updated values transaction.on_commit(_after_profile_created_or_updated) -def get_channels(user): - """ - Get the list of channel names for which the user is a moderator, contributor, or subscriber - - Args: - user(django.contrib.auth.models.User): the user to retrieve channel names for - - Returns: - set of str: Channel names - """ - return set( - list(user.channelsubscription_set.values_list("channel__name", flat=True)) - + list( - ChannelGroupRole.objects.filter(group__in=user.groups.all()).values_list( - "channel__name", flat=True - ) - ) - ) - - -def get_channel_join_dates(user): - """ - Get the list of channels and the dates that the user joined them - - Args: - user(django.contrib.auth.models.User): the user to retrieve channel names for - - Returns: - set of (str: Channel names, datetime: when they joined) - """ - names_and_dates = list( - user.channelsubscription_set.values_list("channel__name", "created_on") - ) + list( - ChannelGroupRole.objects.filter(group__in=user.groups.all()).values_list( - "channel__name", "created_on" - ) - ) - - output = {} - for name, joined in names_and_dates: - if name not in output or joined < output[name]: - output[name] = joined - return [(k, v) for k, v in output.items()] - - def get_site_type_from_url(url): """ Gets a site type (as defined in profiles.models) from the given URL diff --git a/profiles/api_test.py b/profiles/api_test.py index 8beaef5c08..43318e3b5d 100644 --- a/profiles/api_test.py +++ b/profiles/api_test.py @@ -1,15 +1,9 @@ """Profile API tests""" import pytest -from channels.api import sync_channel_subscription_model, add_user_role -from channels.constants import ROLE_CONTRIBUTORS, ROLE_MODERATORS -from channels.factories.models import ChannelFactory -from channels.models import ChannelGroupRole from open_discussions.factories import UserFactory from profiles import api from profiles.api import ( - get_channels, - get_channel_join_dates, get_site_type_from_url, after_profile_created_or_updated, ) @@ -57,7 +51,6 @@ def test_after_profile_created_or_updated(mocker, user): after_profile_created_or_updated(user.profile) mock_search_tasks.upsert_profile.assert_not_called() - mock_search_tasks.update_author_posts_comments.assert_not_called() mock_transaction.on_commit.assert_called_once() @@ -66,38 +59,6 @@ def test_after_profile_created_or_updated(mocker, user): on_commit() mock_search_tasks.upsert_profile.assert_called_once_with(user.profile.id) - mock_search_tasks.update_author_posts_comments.assert_called_once_with( - user.profile.id - ) - - -def test_get_channels(user): - """ - Test that get_channels returns the correct list of channel names for a user - """ - channels = ChannelFactory.create_batch(4) - sync_channel_subscription_model(channels[0], user) - add_user_role(channels[1], ROLE_CONTRIBUTORS, user) - add_user_role(channels[2], ROLE_MODERATORS, user) - assert get_channels(user) == {channel.name for channel in channels[:3]} - - -def test_get_channel_join_dates(user): - """ - Test out the get_channel_join_dates function - """ - channels = ChannelFactory.create_batch(4) - sync_channel_subscription_model(channels[0], user) - sync_channel_subscription_model(channels[1], user) - add_user_role(channels[2], "moderators", user) - add_user_role(channels[3], "contributors", user) - assert sorted(get_channel_join_dates(user)) == sorted( - [ - (obj.channel.name, obj.created_on) - for obj in list(user.channelsubscription_set.all()) - + list(ChannelGroupRole.objects.filter(group__in=user.groups.all())) - ] - ) @pytest.mark.parametrize( diff --git a/profiles/filters.py b/profiles/filters.py index 9aead4c136..3392e363d7 100644 --- a/profiles/filters.py +++ b/profiles/filters.py @@ -14,10 +14,7 @@ class UserFilter(django_filters.FilterSet): social_auth_provider = django_filters.Filter( field_name="social_auth", lookup_expr="provider__in" ) - moira_lists = django_filters.Filter( - field_name="moira_lists", lookup_expr="name__in" - ) class Meta: model = User - fields = ("email__endswith", "social_auth_provider", "moira_lists") + fields = ("email__endswith", "social_auth_provider") diff --git a/profiles/filters_test.py b/profiles/filters_test.py index 2768bcdf53..ae2d5f7871 100644 --- a/profiles/filters_test.py +++ b/profiles/filters_test.py @@ -2,7 +2,6 @@ import pytest from django.contrib.auth import get_user_model -from moira_lists.factories import MoiraListFactory from open_discussions.factories import UserFactory from profiles.filters import UserFilter @@ -22,45 +21,3 @@ def test_user_filter_email_endswith(): assert matching_user in query assert nonmatching_user not in query - - -def test_user_filter_moira_lists(): - """Verify that UserFilter's moira_lists filter works""" - matching_user = UserFactory.create() - nonmatching_user = UserFactory.create() - - moira_list = MoiraListFactory.create() - moira_list.users.add(matching_user) - - query = UserFilter( - {"moira_lists": [moira_list.name]}, queryset=User.objects.all() - ).qs - - assert matching_user in query - assert nonmatching_user not in query - - -@pytest.mark.parametrize("moira_list", [None, "moira-list-1"]) -@pytest.mark.parametrize("email", [None, "@matching.domain"]) -def test_user_filter_filter_combos(email, moira_list): - """Verify that UserFilter works for combinations of filters""" - if moira_list is None and email is None: - pytest.skip("Invalid combination") - - matching_user = UserFactory.create(email="user@matching.domain") - nonmatching_user = UserFactory.create() - - params = {} - - if moira_list: - moira_list = MoiraListFactory.create(name=moira_list) - moira_list.users.add(matching_user) - params["moira_lists"] = [moira_list] - - if email: - params["email__endswith"] = email - - query = UserFilter(params, queryset=User.objects.all()).qs - - assert matching_user in query - assert nonmatching_user not in query diff --git a/profiles/management/commands/retire_user.py b/profiles/management/commands/retire_user.py index 4a6569bc1e..2f56538534 100644 --- a/profiles/management/commands/retire_user.py +++ b/profiles/management/commands/retire_user.py @@ -39,18 +39,6 @@ def handle(self, *args, **options): self.stdout.write("Deleting {} social auths".format(user.social_auth.count())) user.social_auth.all().delete() - self.stdout.write( - "Deleting {} channel invitations".format(user.received_invitations.count()) - ) - user.received_invitations.all().delete() - search_index_helpers.deindex_profile(user) - self.stdout.write( - "Deleting {} post/comment subscriptions".format( - user.content_subscriptions.count() - ) - ) - user.content_subscriptions.all().delete() - self.stdout.write("Retired user: {}".format(user)) diff --git a/profiles/urls.py b/profiles/urls.py index be2325d77b..f238b0087c 100644 --- a/profiles/urls.py +++ b/profiles/urls.py @@ -8,7 +8,6 @@ ProfileViewSet, UserWebsiteViewSet, name_initials_avatar_view, - UserContributionListView, ) router = DefaultRouter() @@ -17,11 +16,6 @@ router.register(r"websites", UserWebsiteViewSet, basename="user_websites_api") urlpatterns = [ - re_path( - r"^api/v0/profiles/(?P[A-Za-z0-9_]+)/(?Pposts|comments)/$", - UserContributionListView.as_view(), - name="user-contribution-list", - ), re_path(r"^api/v0/", include(router.urls)), # The URL that gravatar will redirect to if no gravatar exists for the user (no query parameters allowed). re_path( diff --git a/profiles/utils_test.py b/profiles/utils_test.py index 2ce80c47c9..81f2cb7606 100644 --- a/profiles/utils_test.py +++ b/profiles/utils_test.py @@ -1,13 +1,10 @@ """ Tests for profiles.utils """ -import re from io import BytesIO from urllib.parse import urlparse, parse_qs import xml.etree.ElementTree as etree - import pytest from PIL import Image -from channels.factories.models import ArticleFactory from open_discussions.factories import UserFactory from open_discussions.utils import generate_filepath from profiles.utils import ( @@ -19,7 +16,6 @@ update_full_name, generate_svg_avatar, generate_initials, - article_image_uri, ) @@ -189,18 +185,3 @@ def test_get_svg_avatar(): def test_generate_initials(text, initials): """Test that expected initials are returned from text""" assert generate_initials(text) == initials - - -@pytest.mark.django_db -def test_article_image_uri(): - """Test that article_image_uri provides the right URI for a post""" - article = ArticleFactory.create() - assert ( - re.match( - r"article\/" - + article.post.post_id - + r"\/myfile\-\d{4}\-\d{2}\-\d{2}T\d{6}_article\.jpg", - article_image_uri(article, "myfile.jpg"), - ) - is not None - ) diff --git a/profiles/views.py b/profiles/views.py index b8a44af82f..cf940311d6 100644 --- a/profiles/views.py +++ b/profiles/views.py @@ -7,8 +7,6 @@ from rest_framework import viewsets, mixins from rest_framework.permissions import IsAuthenticated -from rest_framework.views import APIView -from rest_framework.response import Response from cairosvg import svg2png # pylint:disable=no-name-in-module @@ -24,15 +22,6 @@ UserWebsiteSerializer, ) from profiles.utils import generate_svg_avatar, DEFAULT_PROFILE_IMAGE -from channels.models import Comment -from channels.proxies import proxy_posts -from channels.serializers.posts import BasePostSerializer -from channels.serializers.comments import BaseCommentSerializer -from channels.utils import ( - get_pagination_and_reddit_obj_list, - get_listing_params, - translate_praw_exceptions, -) class UserViewSet(viewsets.ModelViewSet): @@ -81,69 +70,3 @@ def name_initials_avatar_view( return redirect(DEFAULT_PROFILE_IMAGE) svg = generate_svg_avatar(user.profile.name, int(size), color, bgcolor) return HttpResponse(svg2png(bytestring=svg), content_type="image/png") - - -class UserContributionListView(APIView): - """View that returns user a user's posts or comments depending on the request URL""" - - permission_classes = (AnonymousAccessReadonlyPermission,) - - def get_serializer_context(self): - """Context for the request and view""" - return { - "include_permalink_data": True, - "channel_api": self.request.channel_api, - "current_user": self.request.user, - "request": self.request, - "view": self, - } - - def get(self, request, *args, **kwargs): - # pylint:disable=too-many-locals - """View method for HTTP GET request""" - with translate_praw_exceptions(request.user): - api = self.request.channel_api - profile_username = self.kwargs["username"] - profile_user = User.objects.get(username=profile_username) - object_type = self.kwargs["object_type"] - listing_params = get_listing_params(self.request) - - if object_type == "posts": - serializer_cls = BasePostSerializer - listing_getter = api.list_user_posts - else: - serializer_cls = BaseCommentSerializer - listing_getter = api.list_user_comments - - object_listing = listing_getter(profile_username, listing_params) - pagination, user_objects = get_pagination_and_reddit_obj_list( - object_listing, listing_params - ) - - if object_type == "posts": - user_objects = proxy_posts(user_objects) - user_objects = list( - filter(lambda object: not object.removed, user_objects) - ) - else: - spam_comments = Comment.objects.filter( - comment_id__in=[object.id for object in user_objects], removed=True - ).values_list("comment_id", flat=True) - - user_objects = list( - filter(lambda object: object.id not in spam_comments, user_objects) - ) - - return Response( - { - object_type: serializer_cls( - user_objects, - many=True, - context={ - **self.get_serializer_context(), - "users": {profile_username: profile_user}, - }, - ).data, - "pagination": pagination, - } - ) diff --git a/profiles/views_test.py b/profiles/views_test.py index 294e64b224..5e5be1d29c 100644 --- a/profiles/views_test.py +++ b/profiles/views_test.py @@ -2,35 +2,16 @@ # pylint: disable=redefined-outer-name, unused-argument, too-many-arguments import json from os.path import splitext, basename -from types import SimpleNamespace from django.contrib.auth.models import User from django.urls import reverse import pytest -from channels.serializers.posts import BasePostSerializer -from channels.serializers.comments import BaseCommentSerializer -from channels.constants import LINK_TYPE_SELF -from channels.proxies import PostProxy -from channels.factories.models import CommentFactory from profiles.utils import make_temp_image_file, DEFAULT_PROFILE_IMAGE -from fixtures.reddit import PostFactory pytestmark = [pytest.mark.django_db] -@pytest.fixture() -def removed_post_proxy(reddit_submission_obj): - """A dummy removed PostProxy object""" - post = PostFactory.create( - post_id="removed", - channel__name="channel", - post_type=LINK_TYPE_SELF, - removed=True, - ) - return PostProxy(reddit_submission_obj, post) - - def test_list_users(staff_client, staff_user): """ List users @@ -317,102 +298,3 @@ def test_initials_avatar_fake_user(client): response = client.get(url, follow=True) last_url, _ = response.redirect_chain[-1] assert last_url.endswith(DEFAULT_PROFILE_IMAGE) - - -class TestUserContributionListView: - """Tests for UserContributionListView""" - - @pytest.fixture() - def scenario(self, user_client, user): - """Common test data needed for class test cases""" - return SimpleNamespace(fake_pagination={"fake": "pagination"}) - - @pytest.mark.usefixtures("mock_req_channel_api") - @pytest.mark.parametrize("logged_in", [True, False]) - def test_user_posts_view( - self, - mocker, - user_client, - user, - scenario, - post_proxy, - removed_post_proxy, - logged_in, - ): - """Test that a request for user posts fetches and serializes a user's posts correctly""" - mock_get_obj_list = mocker.patch( - "profiles.views.get_pagination_and_reddit_obj_list", - return_value=( - scenario.fake_pagination, - [ - post_proxy._self_submission, # pylint: disable=protected-access - removed_post_proxy._self_submission, # pylint: disable=protected-access - ], - ), - ) - mock_proxy_posts = mocker.patch( - "profiles.views.proxy_posts", return_value=[post_proxy, removed_post_proxy] - ) - url = reverse( - "user-contribution-list", - kwargs={"username": user.username, "object_type": "posts"}, - ) - if not logged_in: - user_client.logout() - response = user_client.get(url) - assert mock_get_obj_list.called is True - assert mock_proxy_posts.called is True - resp_data = json.loads(response.content) - assert resp_data["pagination"] == scenario.fake_pagination - assert "posts" in resp_data - assert len(resp_data["posts"]) == 1 - serialized_post = resp_data["posts"][0] - assert serialized_post == BasePostSerializer(post_proxy).data - - @pytest.mark.usefixtures("mock_req_channel_api") - @pytest.mark.parametrize("logged_in", [True, False]) - @pytest.mark.parametrize("removed", [True, False]) - def test_user_comments_view( - self, - mocker, - user_client, - user, - scenario, - reddit_comment_obj, - logged_in, - removed, - ): - """Test that a request for user comments fetches and serializes a user's comments correctly""" - mock_get_obj_list = mocker.patch( - "profiles.views.get_pagination_and_reddit_obj_list", - return_value=(scenario.fake_pagination, [reddit_comment_obj]), - ) - url = reverse( - "user-contribution-list", - kwargs={"username": user.username, "object_type": "comments"}, - ) - CommentFactory.create(comment_id=reddit_comment_obj.id, removed=removed) - if not logged_in: - user_client.logout() - response = user_client.get(url) - assert mock_get_obj_list.called is True - resp_data = json.loads(response.content) - assert resp_data["pagination"] == scenario.fake_pagination - assert "comments" in resp_data - - if removed: - assert len(resp_data["comments"]) == 0 - else: - serialized_comment = resp_data["comments"][0] - assert ( - serialized_comment - == BaseCommentSerializer( - reddit_comment_obj, context={"include_permalink_data": True} - ).data - ) - # Channel name is not serialized for a comment by default. Since it's needed for the comment permalink, this - # view should include a flag that ensures that value is serialized. - assert ( - serialized_comment["channel_name"] - == reddit_comment_obj.submission.subreddit.display_name - ) diff --git a/pylintrc b/pylintrc index e51c90ce40..bae5c53691 100644 --- a/pylintrc +++ b/pylintrc @@ -1,6 +1,6 @@ [MASTER] ignore=.git -ignore-paths=^.*/migrations/.*$, ^node_modules, ^course_catalog, ^channels +ignore-paths=^.*/migrations/.*$, ^node_modules, ^course_catalog load-plugins = pylint_django [BASIC] diff --git a/pyproject.toml b/pyproject.toml index 90ce7c99e4..c76269ffed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,6 @@ authors = ["MIT ODL"] [tool.poetry.dependencies] python = "3.11.4" -akismet = "^1.1" attrs = "^23.1.0" base36 = "^0.1.1" beautifulsoup4 = "^4.8.2" @@ -65,7 +64,6 @@ drf-extensions = "^0.7.1" drf-jwt = "^1.19.2" drf-spectacular = "^0.26.2" feedparser = "^6.0.10" -mit-moira = {git = "https://github.com/mitodl/mit-moira", tag = "v0.0.4"} google-api-python-client = "^2.89.0" html5lib = "^1.1" importlib_metadata = "^6.6.0" @@ -78,7 +76,6 @@ newrelic = "^8.8.0" ocw-data-parser = "^0.35.1" opensearch-dsl = "^1.0.0" opensearch-py = "^1.0.0" -praw = "^4.5.1" psycopg2 = "^2.9.6" pygithub = "^1.44.1" python-dateutil = "^2.8.2" @@ -103,8 +100,6 @@ isort = "^5.12.0" [tool.poetry.group.dev.dependencies] astroid = "^2.15.4" -betamax = "^0.8.0" -betamax_serializers = "^0.2.1" black = "22.6.0" bpython = "^0.24" ddt = "^1.6.0" diff --git a/pytest.ini b/pytest.ini index aa5a69584a..ed8c16d522 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,7 +6,6 @@ markers = # In addition to existing env variables env = - AKISMET_IS_TESTING=True CELERY_TASK_ALWAYS_EAGER=True DEBUG=False OCW_WEBHOOK_KEY=fake_key @@ -14,7 +13,6 @@ env = MITOPEN_COOKIE_DOMAIN=localhost MITOPEN_COOKIE_NAME=cookie_monster MITOPEN_FEATURES_DEFAULT=False - MITOPEN_NOTIFICATION_EMAIL_BACKEND=anymail.backends.test.EmailBackend MITOPEN_SECURE_SSL_REDIRECT=False MITOPEN_USE_S3=False SENTRY_DSN= diff --git a/search/api.py b/search/api.py index 1b8ae48848..68ce8c0d38 100644 --- a/search/api.py +++ b/search/api.py @@ -8,15 +8,6 @@ from opensearch_dsl.query import MoreLikeThis from nested_lookup import nested_lookup -from channels.constants import ( - CHANNEL_TYPE_PUBLIC, - CHANNEL_TYPE_RESTRICTED, - COMMENT_TYPE, - POST_TYPE, - ROLE_CONTRIBUTORS, - ROLE_MODERATORS, -) -from channels.models import ChannelGroupRole from course_catalog.constants import PrivacyLevel from course_catalog.models import FavoriteItem from course_catalog.utils import get_list_items_by_resource @@ -26,7 +17,6 @@ from search.constants import ( ALIAS_ALL_INDICES, COURSE_TYPE, - GLOBAL_DOC_TYPE, LEARNING_RESOURCE_TYPES, PODCAST_EPISODE_TYPE, PODCAST_TYPE, @@ -36,36 +26,9 @@ RESOURCE_FILE_TYPE, ) -RELATED_POST_RELEVANT_FIELDS = ["plain_text", "post_title", "author_id", "channel_name"] SIMILAR_RESOURCE_RELEVANT_FIELDS = ["title", "short_description"] -def gen_post_id(reddit_obj_id): - """ - Generates the OpenSearch document id for a post - - Args: - reddit_obj_id (int|str): The id of a reddit object as reported by PRAW - - Returns: - str: The OpenSearch document id for this object - """ - return "p_{}".format(reddit_obj_id) - - -def gen_comment_id(reddit_obj_id): - """ - Generates the OpenSearch document id for a comment - - Args: - reddit_obj_id (int|str): The id of a reddit object as reported by PRAW - - Returns: - str: The OpenSearch document id for this object - """ - return "c_{}".format(reddit_obj_id) - - def gen_profile_id(profile_id): """ Generates the OpenSearch document id for a profile @@ -187,64 +150,6 @@ def gen_podcast_episode_id(podcast_episode_obj): return "podcast_ep_{}".format(podcast_episode_obj.id) -def is_reddit_object_removed(reddit_obj): - """ - Indicates whether or not a given reddit object is considered to be removed by moderators - - Args: - reddit_obj (praw.models.reddit.submission.Submission, praw.models.reddit.comment.Comment): - A PRAW post/'submission' or comment object - - Returns: - bool: True if the object is considered removed, False otherwise - """ - return bool(reddit_obj.banned_by) and not reddit_obj.approved_by - - -# pylint: disable=invalid-unary-operand-type -def _apply_general_query_filters(search, user): - """ - Applies a series of filters to a Search object so permissions are respected, deleted - objects are ignored, etc. - - search (opensearch_dsl.Search): Search object - user (User): The user executing the search - - Returns: - opensearch_dsl.Search: Search object with filters applied - """ - # Get the list of channels a logged in user is a contributor/moderator of - channel_names = ( - sorted( - list( - ChannelGroupRole.objects.filter( - group__user=user, role__in=(ROLE_CONTRIBUTORS, ROLE_MODERATORS) - ) - .values_list("channel__name", flat=True) - .distinct() - ) - ) - if not user.is_anonymous - else [] - ) - - # Search for comments and posts from channels - channels_filter = Q( - "terms", channel_type=[CHANNEL_TYPE_PUBLIC, CHANNEL_TYPE_RESTRICTED] - ) | ~Q("terms", object_type=[COMMENT_TYPE, POST_TYPE]) - - # Exclude deleted comments and posts - content_filter = (Q("term", deleted=False) & Q("term", removed=False)) | ~Q( - "terms", object_type=[COMMENT_TYPE, POST_TYPE] - ) - - # Search public channels and channels user is a contributor/moderator of - if channel_names: - channels_filter = channels_filter | Q("terms", channel_name=channel_names) - - return search.filter(channels_filter).filter(content_filter) - - # pylint: disable=invalid-unary-operand-type def _apply_learning_query_filters(search, user): """ @@ -321,7 +226,7 @@ def relevant_indexes(query): return map(get_default_alias_name, object_types) -def execute_search(*, user, query): +def execute_search(*, query): """ Execute a search based on the query @@ -335,7 +240,6 @@ def execute_search(*, user, query): indexes = ",".join(relevant_indexes(query)) search = Search(index=indexes) search.update_from_dict(query) - search = _apply_general_query_filters(search, user) return _transform_search_results_suggest_with_compatability( search.execute().to_dict() ) @@ -552,33 +456,6 @@ def _transform_search_results_coursenum(search_result, department_filters): ] -def find_related_documents(*, user, post_id): - """ - Execute a "more like this" query to find posts that are related to a specific post - - Args: - user (User): The user executing the search - post_id (str): The id of the post that you want to find related posts for - - Returns: - dict: The OpenSearch response dict - """ - index = get_default_alias_name(ALIAS_ALL_INDICES) - search = Search(index=index) - search = _apply_general_query_filters(search, user) - search = search.query( - MoreLikeThis( - like={"_id": gen_post_id(post_id), "_type": GLOBAL_DOC_TYPE}, - fields=RELATED_POST_RELEVANT_FIELDS, - min_term_freq=1, - min_doc_freq=1, - ) - ) - # Limit results to the number indicated in settings - search = search[0 : settings.MITOPEN_RELATED_POST_COUNT] - return search.execute().to_dict() - - def find_similar_resources(*, user, value_doc): """ Execute a "more like this" query to find learning resources that are similar to the one provided. @@ -593,7 +470,6 @@ def find_similar_resources(*, user, value_doc): """ index = get_default_alias_name(ALIAS_ALL_INDICES) search = Search(index=index) - search = _apply_general_query_filters(search, user) search = search.filter(Q("terms", object_type=LEARNING_RESOURCE_TYPES)) search = search.query( MoreLikeThis( diff --git a/search/api_test.py b/search/api_test.py index e31b64392c..10647990b8 100644 --- a/search/api_test.py +++ b/search/api_test.py @@ -5,9 +5,6 @@ from django.contrib.auth.models import AnonymousUser from django.contrib.contenttypes.models import ContentType -from channels.api import add_user_role -from channels.constants import CHANNEL_TYPE_PUBLIC, CHANNEL_TYPE_RESTRICTED -from channels.factories.models import ChannelFactory from course_catalog.constants import PlatformType, PrivacyLevel from course_catalog.factories import ( ContentFileFactory, @@ -25,20 +22,15 @@ SIMILAR_RESOURCE_RELEVANT_FIELDS, execute_learn_search, execute_search, - find_related_documents, find_similar_resources, - gen_comment_id, - gen_post_id, gen_video_id, get_similar_topics, - is_reddit_object_removed, transform_results, ) from search.connection import get_default_alias_name from search.constants import ( ALIAS_ALL_INDICES, COURSE_TYPE, - GLOBAL_DOC_TYPE, PODCAST_EPISODE_TYPE, PODCAST_TYPE, USER_LIST_TYPE, @@ -87,30 +79,6 @@ def search_features(settings): settings.FEATURES[features.PODCAST_SEARCH] = True -@pytest.fixture() -def gen_query_filters_mock(mocker): - """Mock _apply_general_query_filters""" - - def return_search_arg( - search, *args - ): # pylint: disable=missing-docstring,unused-argument - return search - - return mocker.patch( - "search.api._apply_general_query_filters", side_effect=return_search_arg - ) - - -def test_gen_post_id(): - """Test that gen_post_id returns an expected id""" - assert gen_post_id("1") == "p_1" - - -def test_gen_comment_id(): - """Test that gen_comment_id returns an expected id""" - assert gen_comment_id("1") == "c_1" - - def test_gen_video_id(mocker): """Test that gen_video_id returns an expected id""" assert ( @@ -119,198 +87,12 @@ def test_gen_video_id(mocker): ) -@pytest.mark.parametrize( - "banned_by_val,approved_by_val,expected_value", - [ - ("admin_username", "", True), - ("admin_username", None, True), - ("admin_username", "admin_username", False), - ("", None, False), - (None, None, False), - ], -) -def test_is_reddit_object_removed( - mocker, banned_by_val, approved_by_val, expected_value -): - """ - Tests that is_reddit_object_removed returns the expected values based on the - banned_by and approved_by properties for the given object - """ - reddit_obj = mocker.Mock(banned_by=banned_by_val, approved_by=approved_by_val) - assert is_reddit_object_removed(reddit_obj) is expected_value - - -def test_execute_search(user, opensearch): - """execute_search should execute an OpenSearch search""" - channels = sorted(ChannelFactory.create_batch(2), key=lambda channel: channel.name) - add_user_role(channels[0], "moderators", user) - add_user_role(channels[1], "contributors", user) - - query = {"a": "query"} - opensearch.conn.search.return_value = {"hits": {"total": 10}} - - assert execute_search(user=user, query=query) == opensearch.conn.search.return_value - opensearch.conn.search.assert_called_once_with( - body={ - **query, - "query": { - "bool": { - "filter": [ - { - "bool": { - "should": [ - { - "bool": { - "must_not": [ - { - "terms": { - "object_type": [ - "comment", - "post", - ] - } - } - ] - } - }, - { - "terms": { - "channel_type": [ - CHANNEL_TYPE_PUBLIC, - CHANNEL_TYPE_RESTRICTED, - ] - } - }, - { - "terms": { - "channel_name": [ - channel.name for channel in channels - ] - } - }, - ] - } - }, - { - "bool": { - "should": [ - { - "bool": { - "must": [ - {"term": {"deleted": False}}, - {"term": {"removed": False}}, - ] - } - }, - { - "bool": { - "must_not": [ - { - "terms": { - "object_type": [ - "comment", - "post", - ] - } - } - ] - } - }, - ] - } - }, - ] - } - }, - }, - index=[get_default_alias_name(ALIAS_ALL_INDICES)], - ) - - -def test_execute_search_anonymous(opensearch): - """execute_search should execute an OpenSearch search with an anonymous user""" - user = AnonymousUser() - query = {"a": "query"} - opensearch.conn.search.return_value = {"hits": {"total": 10}} - - assert execute_search(user=user, query=query) == opensearch.conn.search.return_value - opensearch.conn.search.assert_called_once_with( - body={ - **query, - "query": { - "bool": { - "filter": [ - { - "bool": { - "should": [ - { - "bool": { - "must_not": [ - { - "terms": { - "object_type": [ - "comment", - "post", - ] - } - } - ] - } - }, - { - "terms": { - "channel_type": [ - CHANNEL_TYPE_PUBLIC, - CHANNEL_TYPE_RESTRICTED, - ] - } - }, - ] - } - }, - { - "bool": { - "should": [ - { - "bool": { - "must": [ - {"term": {"deleted": False}}, - {"term": {"removed": False}}, - ] - } - }, - { - "bool": { - "must_not": [ - { - "terms": { - "object_type": [ - "comment", - "post", - ] - } - } - ] - } - }, - ] - } - }, - ] - } - }, - }, - index=[get_default_alias_name(ALIAS_ALL_INDICES)], - ) - - @pytest.mark.parametrize("max_suggestions", [1, 3]) @pytest.mark.parametrize("suggest_min_hits", [2, 4]) def test_execute_search_with_suggestion( opensearch, suggest_min_hits, max_suggestions, settings ): """execute_search should execute an OpenSearch search suggestions""" - user = AnonymousUser() query = {"a": "query"} settings.OPENSEARCH_MAX_SUGGEST_HITS = suggest_min_hits @@ -327,7 +109,7 @@ def test_execute_search_with_suggestion( "suggest": RAW_SUGGESTIONS, } - assert execute_search(user=user, query=query) == { + assert execute_search(query=query) == { "hits": {"total": 3}, "suggest": expected_suggest, } @@ -343,9 +125,6 @@ def test_execute_learn_search( opensearch.conn.search.return_value = { "hits": {"total": {"value": 10, "relation": "eq"}} } - channels = sorted(ChannelFactory.create_batch(2), key=lambda channel: channel.name) - add_user_role(channels[0], "moderators", user) - add_user_role(channels[1], "contributors", user) if has_resource_type_subquery: query = {"a": {"bool": {"object_type": COURSE_TYPE}}} @@ -505,30 +284,6 @@ def test_execute_learn_search_podcasts(settings, user, opensearch): } -def test_find_related_documents(settings, opensearch, user, gen_query_filters_mock): - """find_related_documents should execute a more-like-this query""" - posts_to_return = 7 - settings.MITOPEN_RELATED_POST_COUNT = posts_to_return - post_id = "abc" - - assert ( - find_related_documents(user=user, post_id=post_id) - == opensearch.conn.search.return_value - ) - assert gen_query_filters_mock.call_count == 1 - constructed_query = opensearch.conn.search.call_args[1] - assert constructed_query["body"]["query"] == { - "more_like_this": { - "like": {"_id": gen_post_id(post_id), "_type": GLOBAL_DOC_TYPE}, - "fields": ["plain_text", "post_title", "author_id", "channel_name"], - "min_term_freq": 1, - "min_doc_freq": 1, - } - } - assert constructed_query["body"]["from"] == 0 - assert constructed_query["body"]["size"] == posts_to_return - - @pytest.mark.parametrize("is_anonymous", [True, False]) @pytest.mark.django_db def test_find_similar_resources(settings, is_anonymous, opensearch, user): diff --git a/search/connection.py b/search/connection.py index 866c1b2d1c..5051ba5924 100644 --- a/search/connection.py +++ b/search/connection.py @@ -48,7 +48,7 @@ def make_backing_index_name(object_type): Make a unique name for use for a backing index Args: - object_type(str): The object type (post, comment, profile) + object_type(str): The object type. Returns: str: A new name for a backing index @@ -65,7 +65,7 @@ def make_alias_name(is_reindexing, object_type): Make the name used for the Opensearch alias Args: - object_type(str): The object type of the index (post, comment, etc) + object_type(str): The object type of the index. is_reindexing (bool): If true, use the alias name meant for reindexing Returns: @@ -88,7 +88,7 @@ def get_active_aliases(conn, *, object_types=None, include_reindexing=True): Args: conn(opensearch.client.Opensearch): An Opensearch client - object_types(list of str): list of object types (post, comment, etc) + object_types(list of str): list of object types. include_reindexing(boolean): include reindexing indexes if true Returns: @@ -112,7 +112,7 @@ def active_aliases_with_reindexing(conn, object_types): Args: conn(opensearch.client.Opensearch): An Opensearch client - object_types(list of str): list of object types (post, comment, etc) + object_types(list of str): list of object types. """ return [ diff --git a/search/connection_test.py b/search/connection_test.py index f5bdd44e46..58341997f5 100644 --- a/search/connection_test.py +++ b/search/connection_test.py @@ -31,10 +31,6 @@ def test_get_active_aliases(mocker, include_reindexing, indexes_exist, object_ty else: if include_reindexing: assert active_aliases == [ - "testindex_post_default", - "testindex_post_reindexing", - "testindex_comment_default", - "testindex_comment_reindexing", "testindex_profile_default", "testindex_profile_reindexing", "testindex_course_default", @@ -54,8 +50,6 @@ def test_get_active_aliases(mocker, include_reindexing, indexes_exist, object_ty ] else: assert active_aliases == [ - "testindex_post_default", - "testindex_comment_default", "testindex_profile_default", "testindex_course_default", "testindex_program_default", diff --git a/search/constants.py b/search/constants.py index 13732edf07..7ddb7abcda 100644 --- a/search/constants.py +++ b/search/constants.py @@ -1,11 +1,7 @@ """ Constants for search """ from opensearchpy.exceptions import ConnectionError as ESConnectionError -from praw.exceptions import PRAWException -from prawcore.exceptions import PrawcoreException from urllib3.exceptions import TimeoutError as UrlTimeoutError -from channels.constants import COMMENT_TYPE, POST_TYPE - ALIAS_ALL_INDICES = "all" PROFILE_TYPE = "profile" COURSE_TYPE = "course" @@ -31,8 +27,6 @@ ) VALID_OBJECT_TYPES = ( - POST_TYPE, - COMMENT_TYPE, PROFILE_TYPE, COURSE_TYPE, PROGRAM_TYPE, @@ -364,20 +358,6 @@ } MAPPING = { - POST_TYPE: { - **CONTENT_OBJECT_TYPE, - "post_link_url": {"type": "keyword"}, - "post_link_thumbnail": {"type": "keyword"}, - "num_comments": {"type": "long"}, - "plain_text": ENGLISH_TEXT_FIELD, - "post_type": {"type": "keyword"}, - }, - COMMENT_TYPE: { - **CONTENT_OBJECT_TYPE, - "comment_id": {"type": "keyword"}, - "parent_comment_id": {"type": "keyword"}, - "parent_post_removed": {"type": "boolean"}, - }, PROFILE_TYPE: PROFILE_OBJECT_TYPE, COURSE_TYPE: COURSE_OBJECT_TYPE, PROGRAM_TYPE: PROGRAM_OBJECT_TYPE, @@ -390,4 +370,3 @@ } SEARCH_CONN_EXCEPTIONS = (ESConnectionError, UrlTimeoutError) -REDDIT_EXCEPTIONS = (PrawcoreException, PRAWException) diff --git a/search/indexing_api.py b/search/indexing_api.py index 47f7a352fb..66922acf74 100644 --- a/search/indexing_api.py +++ b/search/indexing_api.py @@ -24,13 +24,11 @@ ) from search.constants import ( ALIAS_ALL_INDICES, - COMMENT_TYPE, COURSE_TYPE, GLOBAL_DOC_TYPE, MAPPING, PODCAST_EPISODE_TYPE, PODCAST_TYPE, - POST_TYPE, PROFILE_TYPE, PROGRAM_TYPE, SCRIPTING_LANG, @@ -42,15 +40,12 @@ ) from search.exceptions import ReindexException from search.serializers import ( - OSPostSerializer, - serialize_bulk_comments, serialize_bulk_courses, serialize_bulk_courses_for_deletion, serialize_bulk_podcast_episodes, serialize_bulk_podcast_episodes_for_deletion, serialize_bulk_podcasts, serialize_bulk_podcasts_for_deletion, - serialize_bulk_posts, serialize_bulk_profiles, serialize_bulk_profiles_for_deletion, serialize_bulk_programs, @@ -76,7 +71,7 @@ def clear_and_create_index(*, index_name=None, skip_mapping=False, object_type=N Args: index_name (str): The name of the index to clear skip_mapping (bool): If true, don't set any mapping - object_type(str): The type of document (post, comment) + object_type(str): The type of document. """ if object_type not in VALID_OBJECT_TYPES: raise ValueError( @@ -166,7 +161,7 @@ def update_field_values_by_query(query, field_dict, object_types=None): Args: query (dict): A dict representing an ES query field_dict (dict): dictionary of fields with values to update - object_types (list of str): The object types to query (post, comment, etc) + object_types (list of str): The object types to query. """ sources = [] params = {} @@ -210,7 +205,7 @@ def _update_document_by_id(doc_id, body, object_type, *, retry_on_conflict=0, ** Args: doc_id (str): The ES document id body (dict): ES update operation body - object_type (str): The object type to update (post, comment, etc) + object_type (str): The object type to update. retry_on_conflict (int): Number of times to retry if there's a conflict (default=0) kwargs (dict): Optional kwargs to be passed to opensearch """ @@ -241,7 +236,7 @@ def update_document_with_partial(doc_id, doc, object_type, *, retry_on_conflict= Args: doc_id (str): The ES document id doc (dict): Full or partial ES document - object_type (str): The object type to update (post, comment, etc) + object_type (str): The object type to update. retry_on_conflict (int): Number of times to retry if there's a conflict (default=0) """ _update_document_by_id( @@ -256,7 +251,7 @@ def upsert_document(doc_id, doc, object_type, *, retry_on_conflict=0, **kwargs): Args: doc_id (str): The ES document id doc (dict): Full ES document - object_type (str): The object type to update (post, comment, etc) + object_type (str): The object type to update. retry_on_conflict (int): Number of times to retry if there's a conflict (default=0) kwargs (dict): Optional kwargs to be passed to opensearch """ @@ -275,7 +270,7 @@ def increment_document_integer_field(doc_id, field_name, incr_amount, object_typ Args: doc_id (str): The ES document id - object_type (str): The object type to update (post, comment, etc) + object_type (str): The object type to update. field_name (str): The name of the field to increment incr_amount (int): The amount to increment by """ @@ -292,19 +287,6 @@ def increment_document_integer_field(doc_id, field_name, incr_amount, object_typ ) -def update_post(doc_id, post): - """ - Serializes a Post object and updates it in the index - - Args: - doc_id (str): The ES document id - post (channels.models.Post): A Post object - """ - return update_document_with_partial( - doc_id, OSPostSerializer(instance=post).data, POST_TYPE - ) - - def deindex_items(documents, object_type, update_only, **kwargs): """ Calls index_items with error catching around not_found for objects that don't exist @@ -383,29 +365,6 @@ def index_items(documents, object_type, update_only, **kwargs): ) -def index_posts(ids, update_only=False): - """ - Index a list of posts by id - - Args: - ids(list of int): List of Post id's - update_only (bool): Update existing index only - """ - index_items(serialize_bulk_posts(ids), POST_TYPE, update_only) - - -def index_comments(ids, update_only=False): - """ - Index a list of comments by id - - Args: - ids(list of int): List of Comment id's - update_only (bool): Update existing index only - - """ - index_items(serialize_bulk_comments(ids), COMMENT_TYPE, update_only) - - def index_profiles(ids, update_only=False): """ Index a list of profiles by id @@ -683,7 +642,7 @@ def create_backing_index(object_type): Start the reindexing process by creating a new backing index and pointing the reindex alias toward it Args: - object_type (str): The object type for the index (post, comment, etc) + object_type (str): The object type for the index. Returns: str: The new backing index @@ -714,7 +673,7 @@ def switch_indices(backing_index, object_type): Args: backing_index (str): The backing index of the reindex alias - object_type (str): The object type for the index (post, comment, etc) + object_type (str): The object type for the index. """ conn = get_conn() actions = [] diff --git a/search/indexing_api_test.py b/search/indexing_api_test.py index f91f1a1352..d1efe76289 100644 --- a/search/indexing_api_test.py +++ b/search/indexing_api_test.py @@ -5,10 +5,8 @@ from types import SimpleNamespace import pytest -from opensearchpy.exceptions import ConflictError, NotFoundError +from opensearchpy.exceptions import NotFoundError -from channels.api import add_user_role, sync_channel_subscription_model -from channels.factories.models import ChannelFactory from course_catalog.factories import ( ContentFileFactory, CourseFactory, @@ -21,32 +19,24 @@ from search.api import gen_course_id from search.connection import get_default_alias_name from search.constants import ( - ALIAS_ALL_INDICES, - COMMENT_TYPE, GLOBAL_DOC_TYPE, - POST_TYPE, PROFILE_TYPE, SCRIPTING_LANG, UPDATE_CONFLICT_SETTING, + COURSE_TYPE, ) from search.exceptions import ReindexException from search.indexing_api import ( clear_and_create_index, - create_backing_index, - create_document, deindex_courses, deindex_document, deindex_run_content_files, delete_orphaned_indices, - get_reindexing_alias_name, - increment_document_integer_field, index_course_content_files, index_items, index_run_content_files, - switch_indices, - update_document_with_partial, update_field_values_by_query, - update_post, + get_reindexing_alias_name, ) from search.serializers import serialize_bulk_profiles @@ -63,8 +53,8 @@ def mocked_es(mocker, settings): "search.indexing_api.get_conn", autospec=True, return_value=conn ) mocker.patch("search.connection.get_conn", autospec=True) - default_alias = get_default_alias_name(POST_TYPE) - reindex_alias = get_reindexing_alias_name(POST_TYPE) + default_alias = get_default_alias_name(COURSE_TYPE) + reindex_alias = get_reindexing_alias_name(COURSE_TYPE) yield SimpleNamespace( get_conn=get_conn_patch, conn=conn, @@ -75,23 +65,6 @@ def mocked_es(mocker, settings): ) -@pytest.mark.parametrize("object_type", [POST_TYPE, COMMENT_TYPE]) -def test_create_document(mocked_es, mocker, object_type): - """ - Test that create_document gets a connection and calls the correct opensearch-dsl function - """ - doc_id, data = ("doc_id", {"object_type": object_type}) - mock_get_aliases = mocker.patch( - "search.indexing_api.get_active_aliases", return_value=[object_type] - ) - create_document(doc_id, data) - mock_get_aliases.assert_called_once_with(mocked_es.conn, object_types=[object_type]) - mocked_es.get_conn.assert_called_once_with() - mocked_es.conn.create.assert_any_call( - index=object_type, doc_type=GLOBAL_DOC_TYPE, body=data, id=doc_id - ) - - @pytest.mark.parametrize( "version_conflicts,expected_error_logged", [(0, False), (1, True)] ) @@ -130,112 +103,6 @@ def test_update_field_values_by_query( assert patched_logger.error.called is expected_error_logged -@pytest.mark.parametrize("object_type", [POST_TYPE, COMMENT_TYPE]) -def test_update_document_with_partial(mocked_es, mocker, object_type): - """ - Test that update_document_with_partial gets a connection and calls the correct opensearch-dsl function - """ - mock_get_aliases = mocker.patch( - "search.indexing_api.get_active_aliases", return_value=[object_type] - ) - doc_id, data = ("doc_id", {"key1": "value1"}) - update_document_with_partial(doc_id, data, object_type) - mock_get_aliases.assert_called_once_with(mocked_es.conn, object_types=[object_type]) - mocked_es.get_conn.assert_called_once_with() - mocked_es.conn.update.assert_called_once_with( - index=object_type, - doc_type=GLOBAL_DOC_TYPE, - body={"doc": data}, - id=doc_id, - params={"retry_on_conflict": 0}, - ) - - -def test_update_partial_conflict_logging(mocker, mocked_es): - """ - Test that update_document_with_partial logs an error if a version conflict occurs - """ - patched_logger = mocker.patch("search.indexing_api.log") - doc_id, data = ("doc_id", {"key1": "value1", "object_type": POST_TYPE}) - mocked_es.conn.update.side_effect = ConflictError - update_document_with_partial(doc_id, data, POST_TYPE) - assert patched_logger.error.called is True - - -def test_update_post(mocker): - """Test that update_post serializes a Post object and updates the corresponding ES document""" - fake_post = mocker.Mock(post_id="1") - fake_serialized_post = mocker.Mock(data={"key": "value"}) - mock_update_document = mocker.patch( - "search.indexing_api.update_document_with_partial" - ) - mocker.patch( - "search.indexing_api.OSPostSerializer", return_value=fake_serialized_post - ) - - update_post("abc", fake_post) - assert mock_update_document.called is True - assert mock_update_document.call_args[0] == ( - "abc", - fake_serialized_post.data, - POST_TYPE, - ) - - -def test_increment_document_integer_field(mocked_es): - """ - Test that increment_document_integer_field gets a connection and calls the - correct opensearch-dsl function - """ - doc_id, field_name, incr_amount = ("doc_id", "some_field_name", 1) - increment_document_integer_field(doc_id, field_name, incr_amount, POST_TYPE) - mocked_es.get_conn.assert_called_once_with() - - for alias in mocked_es.active_aliases: - mocked_es.conn.update.assert_any_call( - index=alias, - doc_type=GLOBAL_DOC_TYPE, - body={ - "script": { - "source": "ctx._source.{} += params.incr_amount".format(field_name), - "lang": SCRIPTING_LANG, - "params": {"incr_amount": incr_amount}, - } - }, - id=doc_id, - params={"retry_on_conflict": 0}, - ) - - -@pytest.mark.parametrize("object_type", [POST_TYPE, COMMENT_TYPE]) -@pytest.mark.parametrize("skip_mapping", [True, False]) -@pytest.mark.parametrize("already_exists", [True, False]) -def test_clear_and_create_index(mocked_es, object_type, skip_mapping, already_exists): - """ - clear_and_create_index should deindex the index and create a new empty one with a mapping - """ - index = "index" - - conn = mocked_es.conn - conn.indices.exists.return_value = already_exists - - clear_and_create_index( - index_name=index, skip_mapping=skip_mapping, object_type=object_type - ) - - conn.indices.exists.assert_called_once_with(index) - assert conn.indices.delete.called is already_exists - if already_exists: - conn.indices.delete.assert_called_once_with(index) - - assert conn.indices.create.call_count == 1 - assert conn.indices.create.call_args[0][0] == index - body = conn.indices.create.call_args[1]["body"] - - assert "settings" in body - assert "mappings" not in body if skip_mapping else "mappings" in body - - @pytest.mark.parametrize("object_type", [None, "fake"]) def test_clear_and_create_index_error(object_type): """ @@ -247,102 +114,12 @@ def test_clear_and_create_index_error(object_type): ) -@pytest.mark.parametrize("object_type", [POST_TYPE, COMMENT_TYPE]) -@pytest.mark.parametrize("default_exists", [True, False]) -def test_switch_indices(mocked_es, mocker, default_exists, object_type): - """ - switch_indices should atomically remove the old backing index - for the default alias and replace it with the new one - """ - refresh_mock = mocker.patch("search.indexing_api.refresh_index", autospec=True) - conn_mock = mocked_es.conn - conn_mock.indices.exists_alias.return_value = default_exists - old_backing_index = "old_backing" - conn_mock.indices.get_alias.return_value.keys.return_value = [old_backing_index] - - backing_index = "backing" - switch_indices(backing_index, object_type) - - conn_mock.indices.delete_alias.assert_any_call( - name=get_reindexing_alias_name(object_type), index=backing_index - ) - default_alias = get_default_alias_name(object_type) - all_alias = get_default_alias_name(ALIAS_ALL_INDICES) - conn_mock.indices.exists_alias.assert_called_once_with(name=default_alias) - - actions = [] - if default_exists: - actions.extend( - [ - {"remove": {"index": old_backing_index, "alias": default_alias}}, - {"remove": {"index": old_backing_index, "alias": all_alias}}, - ] - ) - actions.extend( - [ - {"add": {"index": backing_index, "alias": default_alias}}, - {"add": {"index": backing_index, "alias": all_alias}}, - ] - ) - conn_mock.indices.update_aliases.assert_called_once_with({"actions": actions}) - refresh_mock.assert_called_once_with(backing_index) - if default_exists: - conn_mock.indices.delete.assert_called_once_with(old_backing_index) - else: - assert conn_mock.indices.delete.called is False - - conn_mock.indices.delete_alias.assert_called_once_with( - name=get_reindexing_alias_name(object_type), index=backing_index - ) - - -@pytest.mark.parametrize("temp_alias_exists", [True, False]) -def test_create_backing_index(mocked_es, mocker, temp_alias_exists): - """create_backing_index should make a new backing index and set the reindex alias to point to it""" - reindexing_alias = get_reindexing_alias_name(POST_TYPE) - backing_index = "backing_index" - conn_mock = mocked_es.conn - conn_mock.indices.exists_alias.return_value = temp_alias_exists - get_alias = conn_mock.indices.get_alias - get_alias.return_value = ( - {backing_index: {"alias": {reindexing_alias: {}}}} if temp_alias_exists else {} - ) - clear_and_create_mock = mocker.patch( - "search.indexing_api.clear_and_create_index", autospec=True - ) - make_backing_index_mock = mocker.patch( - "search.indexing_api.make_backing_index_name", return_value=backing_index - ) - - assert create_backing_index(POST_TYPE) == backing_index - - get_conn_mock = mocked_es.get_conn - get_conn_mock.assert_called_once_with() - make_backing_index_mock.assert_called_once_with(POST_TYPE) - clear_and_create_mock.assert_called_once_with( - index_name=backing_index, object_type=POST_TYPE - ) - - conn_mock.indices.exists_alias.assert_called_once_with(name=reindexing_alias) - if temp_alias_exists: - conn_mock.indices.delete_alias.assert_any_call( - index=backing_index, name=reindexing_alias - ) - assert conn_mock.indices.delete_alias.called is temp_alias_exists - - conn_mock.indices.put_alias.assert_called_once_with( - index=backing_index, name=reindexing_alias - ) - - @pytest.mark.usefixtures("indexing_user") @pytest.mark.parametrize("errors", ([], ["error"])) @pytest.mark.parametrize( "indexing_func_name, serializing_func_name, object_type", [ ("index_profiles", "serialize_bulk_profiles", "profile"), - ("index_comments", "serialize_bulk_comments", "comment"), - ("index_posts", "serialize_bulk_posts", "post"), ("index_courses", "serialize_bulk_courses", "course"), ("index_programs", "serialize_bulk_programs", "program"), ("index_user_lists", "serialize_bulk_user_lists", "userlist"), @@ -566,10 +343,6 @@ def test_index_profile_items(mocker): index_items for profiles should call alias and bulk index functions """ users = UserFactory.create_batch(2) - for user in users: - channel = ChannelFactory.create() - sync_channel_subscription_model(channel, user) - add_user_role(channel, "moderators", user) profile_ids = [user.profile.id for user in users] mock_aliases = mocker.patch( diff --git a/search/management/commands/recreate_index.py b/search/management/commands/recreate_index.py index 8fff75cbcd..c1e6b4568e 100644 --- a/search/management/commands/recreate_index.py +++ b/search/management/commands/recreate_index.py @@ -1,4 +1,4 @@ -"""Management command to index reddit content""" +"""Management command to index content""" from django.core.management.base import BaseCommand, CommandError from open_discussions.utils import now_in_utc @@ -7,7 +7,7 @@ class Command(BaseCommand): - """Indexes reddit content""" + """Indexes content""" help = "Recreate opensearch index" @@ -26,7 +26,7 @@ def add_arguments(self, parser): super().add_arguments(parser) def handle(self, *args, **options): - """Index the comments and posts for the channels the user is subscribed to""" + """Index all VALID_OBJECT_TYPES""" if options["all"]: task = start_recreate_index.delay(list(VALID_OBJECT_TYPES)) self.stdout.write( diff --git a/search/management/commands/update_index.py b/search/management/commands/update_index.py index 81a5615fb7..f34be02afa 100644 --- a/search/management/commands/update_index.py +++ b/search/management/commands/update_index.py @@ -1,4 +1,4 @@ -"""Management command to index reddit content""" +"""Management command to index content""" from django.core.management.base import BaseCommand, CommandError from open_discussions.utils import now_in_utc @@ -47,7 +47,7 @@ def add_arguments(self, parser): super().add_arguments(parser) def handle(self, *args, **options): - """Index the comments and posts for the channels the user is subscribed to""" + """Index all learning resources""" if options["all"]: task = start_update_index.delay(valid_object_types, options["platform"]) diff --git a/search/search_index_helpers.py b/search/search_index_helpers.py index d2b0a256d0..ff759ba828 100644 --- a/search/search_index_helpers.py +++ b/search/search_index_helpers.py @@ -2,27 +2,19 @@ Functions that execute search-related asynchronous tasks """ import logging -from functools import partial, wraps from django.conf import settings - -from channels.constants import COMMENT_TYPE, POST_TYPE, VoteActions -from channels.models import Comment -from channels.utils import render_article_text from open_discussions.features import INDEX_UPDATES, if_feature_enabled from search import tasks from search.api import ( - gen_comment_id, gen_course_id, gen_podcast_episode_id, gen_podcast_id, - gen_post_id, gen_profile_id, gen_program_id, gen_staff_list_id, gen_user_list_id, gen_video_id, - is_reddit_object_removed, ) from search.constants import ( COURSE_TYPE, @@ -34,14 +26,8 @@ USER_LIST_TYPE, VIDEO_TYPE, ) -from search.serializers import OSCommentSerializer, OSPostSerializer from search.tasks import ( - create_document, - create_post_document, deindex_document, - increment_document_integer_field, - update_document_with_partial, - update_field_values_by_query, ) log = logging.getLogger() @@ -57,137 +43,6 @@ def try_with_retry_as_task(function, *args): function.delay(*args) -def reddit_object_persist(*persistence_funcs): - """ - Decorator that passes a PRAW object to any number of functions that persist the object to a new data store. - The decorated function must return a PRAW object - (e.g.: praw.models.reddit.submission.Submission, praw.models.reddit.comment.Comment) - """ - - def api_indexing_listener_inner(func): # pylint: disable=missing-docstring - @wraps(func) - def wrapped_api_func(*args, **kwargs): # pylint: disable=missing-docstring - reddit_obj = func(*args, **kwargs) - try: - for persistence_func in persistence_funcs: - persistence_func(reddit_obj) - except Exception: # pylint: disable=broad-except - log.exception( - "Error occurred while trying to serialize and index PRAW object" - ) - return reddit_obj - - return wrapped_api_func - - return api_indexing_listener_inner - - -@if_feature_enabled(INDEX_UPDATES) -def index_new_post(post_obj): - """ - Serializes a post object and runs a task to create an ES document for it. - - Args: - post_obj (channels.proxies.PostProxy): A proxied post/submission - """ - post = post_obj._self_post # pylint: disable=protected-access - data = OSPostSerializer(instance=post).data - create_post_document.delay(gen_post_id(post.post_id), data) - - -@if_feature_enabled(INDEX_UPDATES) -def index_new_comment(comment_obj): - """ - Serializes a comment object and runs a task to create an ES document for it. - - Args: - comment_obj (praw.models.reddit.comment.Comment): A PRAW comment object - """ - comment = Comment.objects.get(comment_id=comment_obj.id) - data = OSCommentSerializer(instance=comment).data - create_document.delay(gen_comment_id(comment_obj.id), data) - increment_parent_post_comment_count(comment_obj) - - -@if_feature_enabled(INDEX_UPDATES) -def update_post_text(post_obj): - """ - Serializes post object text and runs a task to update the text for the associated ES document. - - Args: - post_obj (praw.models.reddit.submission.Submission): A PRAW post ('submission') object - """ - update_document_with_partial.delay( - gen_post_id(post_obj.id), - { - "plain_text": render_article_text(post_obj.article_content), - "text": post_obj.selftext, - }, - POST_TYPE, - ) - - -@if_feature_enabled(INDEX_UPDATES) -def update_comment_text(comment_obj): - """ - Serializes comment object text and runs a task to update the text for the associated ES document. - - Args: - comment_obj (praw.models.reddit.comment.Comment): A PRAW comment object - """ - update_document_with_partial.delay( - gen_comment_id(comment_obj.id), {"text": comment_obj.body}, COMMENT_TYPE - ) - - -@if_feature_enabled(INDEX_UPDATES) -def update_field_for_all_post_comments(post_obj, field_name, field_value): - """ - Runs a task to update a field value for all comments associated with a given post. - - Args: - post_obj (praw.models.reddit.submission.Submission): A PRAW post ('submission') object - """ - update_field_values_by_query.delay( - query={ - "query": { - "bool": { - "must": [ - {"match": {"object_type": COMMENT_TYPE}}, - {"match": {"post_id": post_obj.id}}, - ] - } - } - }, - field_dict={field_name: field_value}, - object_types=[COMMENT_TYPE], - ) - - -@if_feature_enabled(INDEX_UPDATES) -def update_channel_index(channel_obj): - """ - Runs a task to update the channel title, type for all posts and comments associated with the given channel. - - Args: - channel_obj (praw.models.Subreddit): A PRAW channel ('subreddit') object - """ - update_field_values_by_query.delay( - query={ - "query": { - "bool": { - "must": [{"match": {"channel_name": channel_obj.display_name}}] - } - } - }, - field_dict={ - "channel_title": channel_obj.title, - "channel_type": channel_obj.subreddit_type, - }, - object_types=[COMMENT_TYPE, POST_TYPE], - ) - - @if_feature_enabled(INDEX_UPDATES) def upsert_profile(user_id): """ @@ -213,142 +68,6 @@ def deindex_profile(user_obj): ) -@if_feature_enabled(INDEX_UPDATES) -def update_author_posts_comments(profile_id): - """ - Run a task to update author name and avatar in all associated post and comment docs - - Args: - profile_id (int): the primary key for the Profile object to query by - """ - tasks.update_author_posts_comments.delay(profile_id) - - -@if_feature_enabled(INDEX_UPDATES) -def update_post_removal_status(post_obj): - """ - Serializes the removal status for a post object and runs a task to update that status - for the associated ES document. - - Args: - post_obj (praw.models.reddit.submission.Submission): A PRAW post ('submission') object - """ - update_document_with_partial.delay( - gen_post_id(post_obj.id), - {"removed": is_reddit_object_removed(post_obj)}, - POST_TYPE, - ) - update_field_for_all_post_comments( - post_obj, - field_name="parent_post_removed", - field_value=is_reddit_object_removed(post_obj), - ) - - -@if_feature_enabled(INDEX_UPDATES) -def update_comment_removal_status(comment_obj): - """ - Serializes the removal status for a comment object and runs a task to update that status - for the associated ES document. - - Args: - comment_obj (praw.models.reddit.comment.Comment): A PRAW comment object - """ - update_document_with_partial.delay( - gen_comment_id(comment_obj.id), - {"removed": is_reddit_object_removed(comment_obj)}, - COMMENT_TYPE, - ) - - -@if_feature_enabled(INDEX_UPDATES) -def _update_parent_post_comment_count(comment_obj, incr_amount=1): - """ - Updates the comment count for a post object (retrieved via a comment object) - and runs a task to update that count for the associated ES document. - - Args: - comment_obj (praw.models.reddit.comment.Comment): A PRAW comment object - incr_amount (int): The amount to increment to count - """ - post_obj = comment_obj.submission - increment_document_integer_field.delay( - gen_post_id(post_obj.id), - field_name="num_comments", - incr_amount=incr_amount, - object_type=POST_TYPE, - ) - - -increment_parent_post_comment_count = partial( - _update_parent_post_comment_count, incr_amount=1 -) -decrement_parent_post_comment_count = partial( - _update_parent_post_comment_count, incr_amount=-1 -) - - -@if_feature_enabled(INDEX_UPDATES) -def set_post_to_deleted(post_obj): - """ - Sets a post to deleted and updates child comments to be deleted as well. - - Args: - post_obj (praw.models.reddit.submission.Submission): A PRAW post ('submission') object - """ - update_document_with_partial.delay( - gen_post_id(post_obj.id), {"deleted": True}, POST_TYPE - ) - update_field_for_all_post_comments(post_obj, field_name="deleted", field_value=True) - - -@if_feature_enabled(INDEX_UPDATES) -def set_comment_to_deleted(comment_obj): - """ - Sets a comment to deleted and updates the parent post's comment count. - - Args: - comment_obj (praw.models.reddit.comment.Comment): A PRAW comment object - """ - update_document_with_partial.delay( - gen_comment_id(comment_obj.id), {"deleted": True}, COMMENT_TYPE - ) - decrement_parent_post_comment_count(comment_obj) - - -@if_feature_enabled(INDEX_UPDATES) -def update_indexed_score(instance, instance_type, vote_action=None): - """ - Runs a task to update the score for a post/comment document in ES. - - Args: - instance: A PRAW Comment or Submission (a.k.a. post) object - instance_type (str): A string indicating the type of object being passed in - vote_action (VoteActions): A value indicating what kind of vote action was taken - """ - if vote_action in (VoteActions.UPVOTE, VoteActions.CLEAR_DOWNVOTE): - vote_increment = 1 - elif vote_action in (VoteActions.DOWNVOTE, VoteActions.CLEAR_UPVOTE): - vote_increment = -1 - else: - raise ValueError("Received an invalid vote action value: %s" % vote_action) - - if instance_type not in [POST_TYPE, COMMENT_TYPE]: - return - content_id = ( - gen_post_id(instance.id) - if instance_type == POST_TYPE - else gen_comment_id(instance.id) - ) - - increment_document_integer_field.delay( - content_id, - field_name="score", - incr_amount=vote_increment, - object_type=instance_type, - ) - - @if_feature_enabled(INDEX_UPDATES) def upsert_course(course_id): """ diff --git a/search/search_index_helpers_test.py b/search/search_index_helpers_test.py index 79a3633646..1f6d9c26c3 100644 --- a/search/search_index_helpers_test.py +++ b/search/search_index_helpers_test.py @@ -2,9 +2,6 @@ # pylint: disable=redefined-outer-name,unused-argument import pytest -from channels.constants import COMMENT_TYPE, POST_TYPE, VoteActions -from channels.factories.models import CommentFactory -from channels.utils import render_article_text from course_catalog.constants import UserListType from course_catalog.factories import ( ContentFileFactory, @@ -17,11 +14,9 @@ ) from open_discussions.features import INDEX_UPDATES from search.api import ( - gen_comment_id, gen_course_id, gen_podcast_episode_id, gen_podcast_id, - gen_post_id, gen_profile_id, gen_user_list_id, gen_video_id, @@ -35,7 +30,6 @@ VIDEO_TYPE, ) from search.search_index_helpers import ( - decrement_parent_post_comment_count, deindex_course, deindex_podcast, deindex_podcast_episode, @@ -43,20 +37,7 @@ deindex_run_content_files, deindex_user_list, deindex_video, - increment_parent_post_comment_count, - index_new_comment, - index_new_post, index_run_content_files, - reddit_object_persist, - set_comment_to_deleted, - update_author_posts_comments, - update_channel_index, - update_comment_removal_status, - update_comment_text, - update_field_for_all_post_comments, - update_indexed_score, - update_post_removal_status, - update_post_text, upsert_content_file, upsert_course, upsert_podcast, @@ -95,294 +76,6 @@ def mock_es_profile_serializer(mocker): ) -def test_reddit_object_persist(mocker): - """ - Test that a function decorated with reddit_object_persist receives the return value - of the decorated function, passes it to a provided function, and returns the value - as normal. - """ - - def mock_indexer1(reddit_obj): # pylint: disable=missing-docstring - reddit_obj.changed1 = True - - def mock_indexer2(reddit_obj): # pylint: disable=missing-docstring - reddit_obj.changed2 = True - - @reddit_object_persist(mock_indexer1, mock_indexer2) - def decorated_api_func(mock_reddit_obj): # pylint: disable=missing-docstring - return mock_reddit_obj - - mock_reddit_obj = mocker.Mock() - reddit_obj = decorated_api_func(mock_reddit_obj) - assert reddit_obj.changed1 is True - assert reddit_obj.changed2 is True - assert reddit_obj == mock_reddit_obj - - -def test_index_new_post(mocker): - """ - Test that index_new_post calls the indexing task with the right parameters - """ - fake_serialized_data = {"serialized": "post"} - mock_post = mocker.Mock(post_id="abc") - mock_post_proxy = mocker.Mock(_self_post=mock_post) - patched_serialize_func = mocker.patch( - "search.search_index_helpers.OSPostSerializer.to_representation", - return_value=fake_serialized_data, - ) - patched_task = mocker.patch("search.search_index_helpers.create_post_document") - index_new_post(mock_post_proxy) - patched_serialize_func.assert_called_once_with(mock_post) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_post_id(mock_post.post_id), - fake_serialized_data, - ) - - -@pytest.mark.django_db -def test_index_new_comment(mocker): - """ - Test that index_new_comment calls indexing tasks with the right parameters - """ - fake_serialized_data = {"serialized": "comment"} - comment = CommentFactory.create() - mock_submission = mocker.Mock(id="123") - mock_comment = mocker.Mock(id=comment.comment_id, submission=mock_submission) - patched_serialize_func = mocker.patch( - "search.search_index_helpers.OSCommentSerializer.to_representation", - return_value=fake_serialized_data, - ) - patched_create_task = mocker.patch("search.search_index_helpers.create_document") - patched_increment_task = mocker.patch( - "search.search_index_helpers.increment_document_integer_field" - ) - index_new_comment(mock_comment) - patched_serialize_func.assert_called_once_with(comment) - assert patched_create_task.delay.called is True - assert patched_create_task.delay.call_args[0] == ( - gen_comment_id(mock_comment.id), - fake_serialized_data, - ) - assert patched_increment_task.delay.called is True - assert patched_increment_task.delay.call_args[0] == ( - gen_post_id(mock_submission.id), - ) - assert patched_increment_task.delay.call_args[1] == { - "field_name": "num_comments", - "incr_amount": 1, - "object_type": POST_TYPE, - } - - -def test_update_post_text(mocker, reddit_submission_obj): - """ - Test that update_post_text calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_document_with_partial" - ) - update_post_text(reddit_submission_obj) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_post_id(reddit_submission_obj.id), - { - "text": reddit_submission_obj.selftext, - "plain_text": render_article_text(reddit_submission_obj.article_content), - }, - POST_TYPE, - ) - - -def test_update_comment_text(mocker, reddit_comment_obj): - """ - Test that update_post_text calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_document_with_partial" - ) - update_comment_text(reddit_comment_obj) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_comment_id(reddit_comment_obj.id), - {"text": reddit_comment_obj.body}, - COMMENT_TYPE, - ) - - -@pytest.mark.parametrize( - "removal_status,expected_removed_arg", [(True, True), (False, False)] -) -def test_update_post_removal_status( - mocker, reddit_submission_obj, removal_status, expected_removed_arg -): - """ - Test that update_post_removal_status calls the indexing task with the right parameters and - calls an additional task to update child comment removal status - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_document_with_partial" - ) - patched_comment_update_func = mocker.patch( - "search.search_index_helpers.update_field_for_all_post_comments" - ) - patched_reddit_object_removed = mocker.patch( - "search.search_index_helpers.is_reddit_object_removed" - ) - patched_reddit_object_removed.return_value = removal_status - update_post_removal_status(reddit_submission_obj) - assert patched_reddit_object_removed.called is True - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_post_id(reddit_submission_obj.id), - {"removed": expected_removed_arg}, - POST_TYPE, - ) - patched_comment_update_func.assert_called_with( - reddit_submission_obj, - field_name="parent_post_removed", - field_value=expected_removed_arg, - ) - - -@pytest.mark.parametrize( - "removal_status,expected_removed_arg", [(True, True), (False, False)] -) -def test_update_comment_removal_status( - mocker, reddit_comment_obj, removal_status, expected_removed_arg -): - """ - Test that update_comment_removal_status calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_document_with_partial" - ) - patched_reddit_object_removed = mocker.patch( - "search.search_index_helpers.is_reddit_object_removed" - ) - patched_reddit_object_removed.return_value = removal_status - update_comment_removal_status(reddit_comment_obj) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_comment_id(reddit_comment_obj.id), - {"removed": expected_removed_arg}, - COMMENT_TYPE, - ) - - -def test_update_post_removal_for_comments(mocker, reddit_submission_obj): - """ - Test that update_post_removal_for_comments calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_field_values_by_query" - ) - field_name, field_value = ("field1", "value1") - update_field_for_all_post_comments( - reddit_submission_obj, field_name=field_name, field_value=field_value - ) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[1] == dict( - query={ - "query": { - "bool": { - "must": [ - {"match": {"object_type": COMMENT_TYPE}}, - {"match": {"post_id": reddit_submission_obj.id}}, - ] - } - } - }, - field_dict={field_name: field_value}, - object_types=[COMMENT_TYPE], - ) - - -@pytest.mark.parametrize( - "update_comment_count_func,expected_increment", - [ - (increment_parent_post_comment_count, 1), - (decrement_parent_post_comment_count, -1), - ], -) -def test_update_post_comment_count( - mocker, reddit_comment_obj, update_comment_count_func, expected_increment -): - """ - Test that update_post_removal_status calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.increment_document_integer_field" - ) - update_comment_count_func(reddit_comment_obj) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == ( - gen_post_id(reddit_comment_obj.submission.id), - ) - assert patched_task.delay.call_args[1] == { - "field_name": "num_comments", - "incr_amount": expected_increment, - "object_type": POST_TYPE, - } - - -def test_set_comment_to_deleted(mocker, reddit_comment_obj): - """ - Test that set_comment_to_deleted calls the indexing task to update a comment's deleted property - and calls another task to decrement the parent post's comment count - """ - patched_partial_update_task = mocker.patch( - "search.search_index_helpers.update_document_with_partial" - ) - patched_increment_task = mocker.patch( - "search.search_index_helpers.increment_document_integer_field" - ) - set_comment_to_deleted(reddit_comment_obj) - assert patched_partial_update_task.delay.called is True - assert patched_partial_update_task.delay.call_args[0] == ( - gen_comment_id(reddit_comment_obj.id), - {"deleted": True}, - COMMENT_TYPE, - ) - assert patched_increment_task.delay.called is True - assert patched_increment_task.delay.call_args[0] == ( - gen_post_id(reddit_comment_obj.submission.id), - ) - assert patched_increment_task.delay.call_args[1] == { - "field_name": "num_comments", - "incr_amount": -1, - "object_type": POST_TYPE, - } - - -@pytest.mark.parametrize( - "vote_action,expected_increment", - [ - (VoteActions.UPVOTE, 1), - (VoteActions.CLEAR_DOWNVOTE, 1), - (VoteActions.DOWNVOTE, -1), - (VoteActions.CLEAR_UPVOTE, -1), - ], -) -def test_update_indexed_score( - mocker, reddit_submission_obj, vote_action, expected_increment -): - """ - Test that update_indexed_score calls the indexing task with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.increment_document_integer_field" - ) - update_indexed_score(reddit_submission_obj, POST_TYPE, vote_action=vote_action) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[0] == (gen_post_id(reddit_submission_obj.id),) - assert patched_task.delay.call_args[1] == { - "field_name": "score", - "incr_amount": expected_increment, - "object_type": POST_TYPE, - } - - def test_upsert_profile(mocker, mock_es_profile_serializer, user): """ Tests that upsert_profile calls the task with the right parameters @@ -392,55 +85,6 @@ def test_upsert_profile(mocker, mock_es_profile_serializer, user): patched_task.assert_called_once_with(user.profile.id) -def test_update_author_posts_comments(mocker, mock_es_profile_serializer, user): - """ - Tests that update_author_posts_comments calls update_field_values_by_query with the right parameters - """ - patched_task = mocker.patch("search.indexing_api.update_field_values_by_query") - call_data = { - key: val - for key, val in es_profile_serializer_data.items() - if key in {"author_name", "author_avatar_small", "author_headline"} - } - update_author_posts_comments(user.profile.id) - patched_task.assert_called_once_with( - query={"query": {"bool": {"must": [{"match": {"author_id": user.username}}]}}}, - field_dict=call_data, - object_types=[POST_TYPE, COMMENT_TYPE], - ) - - -def test_update_channel_index(mocker): - """ - Tests that update_channel_index calls update_field_values_by_query with the right parameters - """ - patched_task = mocker.patch( - "search.search_index_helpers.update_field_values_by_query" - ) - channel = mocker.Mock( - display_name="name", - title="title", - subreddit_type="public", - description="description", - public_description="public_description", - submission_type="link", - ) - update_channel_index(channel) - assert patched_task.delay.called is True - assert patched_task.delay.call_args[1] == dict( - query={ - "query": { - "bool": {"must": [{"match": {"channel_name": channel.display_name}}]} - } - }, - field_dict={ - "channel_title": channel.title, - "channel_type": channel.subreddit_type, - }, - object_types=[COMMENT_TYPE, POST_TYPE], - ) - - @pytest.mark.django_db def test_upsert_course(mocker): """ diff --git a/search/serializers.py b/search/serializers.py index d5051c0e1d..3ecfddda97 100644 --- a/search/serializers.py +++ b/search/serializers.py @@ -7,11 +7,8 @@ from django.conf import settings from django.db.models import Prefetch -from prawcore import NotFound from rest_framework import serializers -from channels.constants import COMMENT_TYPE, POST_TYPE -from channels.models import Comment, Post from course_catalog.constants import OCW_DEPARTMENTS, PlatformType from course_catalog.models import ( ContentFile, @@ -27,14 +24,11 @@ ) from open_discussions.utils import filter_dict_keys, filter_dict_with_renamed_keys from profiles.models import Profile -from profiles.utils import image_uri from search.api import ( - gen_comment_id, gen_content_file_id, gen_course_id, gen_podcast_episode_id, gen_podcast_id, - gen_post_id, gen_profile_id, gen_program_id, gen_staff_list_id, @@ -77,7 +71,7 @@ class OSProxySerializer: Serializer class for opensearch objects that proxy to another serializer for serialization Attributes: - object_type (str): String indicating the type of reddit/django object + object_type (str): String indicating the type of django object use_keys (list[str]): A list of keys from the base serializer results to use in the final serialized object rename_keys (dict(str, str)): @@ -102,7 +96,7 @@ def postprocess_fields( def serialize(self, discussions_obj): """ - Serializes a reddit or django model object by modifying the results from a base serializer class + Serializes a django model object by modifying the results from a base serializer class """ base_serialized = self.base_serializer(discussions_obj).data serialized = { @@ -135,161 +129,6 @@ def base_serializer(self): return ProfileSerializer - def postprocess_fields(self, discussions_obj, serialized_data): - from profiles import api as channel_api - - join_data = channel_api.get_channel_join_dates(discussions_obj.user) - return { - "author_channel_membership": sorted( - channel_api.get_channels(discussions_obj.user) - ), - "author_channel_join_data": [ - {"name": name, "joined": created_on} for name, created_on in join_data - ], - } - - -class OSPostSerializer(OSModelSerializer): - """opensearch serializer class for posts""" - - object_type = POST_TYPE - - post_id = serializers.CharField(read_only=True) - post_title = serializers.CharField(source="title", read_only=True) - post_link_url = serializers.CharField(source="url", read_only=True) - post_link_thumbnail = serializers.CharField(source="thumbnail_url", read_only=True) - post_slug = serializers.CharField(source="slug", read_only=True) - plain_text = serializers.CharField(read_only=True) - - author_avatar_small = serializers.SerializerMethodField() - author_id = serializers.CharField( - source="author.username", read_only=True, default=None - ) - author_name = serializers.CharField( - source="author.profile.name", read_only=True, default=None - ) - author_headline = serializers.CharField( - source="author.profile.headline", read_only=True, default=None - ) - - channel_name = serializers.CharField(source="channel.name", read_only=True) - channel_title = serializers.CharField(source="channel.title", read_only=True) - channel_type = serializers.CharField(source="channel.channel_type", read_only=True) - - article_content = serializers.JSONField( - source="article.content", default=None, read_only=True - ) - - created = serializers.DateTimeField(source="created_on", read_only=True) - - def get_author_avatar_small(self, instance): - """Returns the small profile image of the author""" - profile = ( - instance.author.profile - if instance.author and instance.author.profile - else None - ) - return image_uri(profile) - - class Meta: - model = Post - fields = ( - "post_type", - "post_slug", - "post_id", - "post_title", - "post_link_url", - "post_link_thumbnail", - "author_avatar_small", - "author_id", - "author_name", - "author_headline", - "channel_name", - "channel_title", - "channel_type", - "article_content", - "plain_text", - "text", - "score", - "num_comments", - "removed", - "deleted", - "created", - ) - read_only_fields = ( - "post_type", - "text", - "score", - "num_comments", - "created", - "removed", - "deleted", - ) - - -class OSCommentSerializer(OSModelSerializer): - """opensearch serializer class for comments""" - - object_type = COMMENT_TYPE - - post_id = serializers.CharField(source="post.post_id", read_only=True) - post_title = serializers.CharField(source="post.title", read_only=True) - post_slug = serializers.CharField(source="post.slug", read_only=True) - - comment_id = serializers.CharField(read_only=True) - parent_comment_id = serializers.CharField(source="parent_id", read_only=True) - - author_avatar_small = serializers.SerializerMethodField() - author_id = serializers.CharField( - source="author.username", read_only=True, default=None - ) - author_name = serializers.CharField( - source="author.profile.name", read_only=True, default=None - ) - author_headline = serializers.CharField( - source="author.profile.headline", read_only=True, default=None - ) - - channel_name = serializers.CharField(source="post.channel.name", read_only=True) - channel_title = serializers.CharField(source="post.channel.title", read_only=True) - channel_type = serializers.CharField( - source="post.channel.channel_type", read_only=True - ) - - created = serializers.DateTimeField(source="created_on", read_only=True) - - def get_author_avatar_small(self, instance): - """Returns the small profile image of the author""" - profile = ( - instance.author.profile - if instance.author and instance.author.profile - else None - ) - return image_uri(profile) - - class Meta: - model = Comment - fields = ( - "post_title", - "post_id", - "post_slug", - "comment_id", - "parent_comment_id", - "author_avatar_small", - "author_id", - "author_name", - "author_headline", - "channel_name", - "channel_title", - "channel_type", - "text", - "score", - "removed", - "deleted", - "created", - ) - read_only_fields = ("text", "score", "created", "removed", "deleted") - class OSCoursePriceSerializer(serializers.ModelSerializer): """opensearch serializer for course prices""" @@ -864,38 +703,6 @@ class Meta: read_only_fields = fields -def serialize_bulk_posts(post_ids): - """ - Index a list of Post.ids - - Args: - post_ids (list of int): a list of Post.id values to serialize - - Yields: - iter of dict: yields an iterable of serialized posts - """ - for post in Post.objects.filter(id__in=post_ids).prefetch_related( - "article", "link_meta", "author", "author__profile" - ): - yield serialize_post_for_bulk(post) - - -def serialize_bulk_comments(comment_ids): - """ - Index a list of Comment.ids - - Args: - comment_ids (list of int): a list of Comment.ids to serialize - - Yields: - iter of dict: yields an iterable of serialized comments - """ - for comment in Comment.objects.filter(id__in=comment_ids).prefetch_related( - "post", "author", "author__profile" - ): - yield serialize_comment_for_bulk(comment) - - def serialize_bulk_profiles(ids): """ Serialize profiles for bulk indexing @@ -953,46 +760,6 @@ def serialize_for_deletion(opensearch_object_id): return {"_id": opensearch_object_id, "_op_type": "delete"} -def serialize_post_for_bulk(post_obj): - """ - Serialize a reddit Submission for a bulk API request - - Args: - post (channels.models.Post): A Post object - - Returns: - dict: the serialized post - """ - try: - return { - "_id": gen_post_id(post_obj.post_id), - **OSPostSerializer(instance=post_obj).data, - } - except NotFound: - log.exception("Reddit post not found: %s", post_obj.id) - raise - - -def serialize_comment_for_bulk(comment_obj): - """ - Serialize a comment for a bulk API request - - Args: - comment_obj (channels.models.Comment): A Comment object - - Returns: - dict: the serialized comment - """ - try: - return { - "_id": gen_comment_id(comment_obj.comment_id), - **OSCommentSerializer(instance=comment_obj).data, - } - except NotFound: - log.exception("Reddit comment not found: %s", comment_obj.id) - raise - - def serialize_bulk_courses(ids): """ Serialize courses for bulk indexing diff --git a/search/serializers_bulk_test.py b/search/serializers_bulk_test.py index d83a5f0ec4..ee7378838a 100644 --- a/search/serializers_bulk_test.py +++ b/search/serializers_bulk_test.py @@ -11,36 +11,6 @@ from search import api, serializers -def test_serialize_post_for_bulk(mocker): - """ - Test that serialize_post_for_bulk correctly serializes a post/submission object - """ - post_id = "post1" - base_serialized_post = {"serialized": "post"} - mocker.patch( - "search.serializers.OSPostSerializer.to_representation", - return_value=base_serialized_post, - ) - serialized = serializers.serialize_post_for_bulk(mocker.Mock(post_id=post_id)) - assert serialized == {"_id": f"p_{post_id}", **base_serialized_post} - - -def test_serialize_comment_for_bulk(mocker): - """ - Test that serialize_comment_for_bulk correctly serializes a comment object - """ - comment_id = "456" - base_serialized_comment = {"serialized": "comment"} - mocker.patch( - "search.serializers.OSCommentSerializer.to_representation", - return_value=base_serialized_comment, - ) - serialized = serializers.serialize_comment_for_bulk( - mocker.Mock(comment_id=comment_id) - ) - assert serialized == {"_id": f"c_{comment_id}", **base_serialized_comment} - - @pytest.mark.django_db def test_serialize_bulk_profiles(mocker): """ diff --git a/search/serializers_test.py b/search/serializers_test.py index e018b7faf4..41454df0e9 100644 --- a/search/serializers_test.py +++ b/search/serializers_test.py @@ -1,15 +1,11 @@ """Tests for opensearch serializers""" import json -from datetime import datetime # pylint: disable=redefined-outer-name,unused-argument from functools import reduce import pytest -from channels.constants import COMMENT_TYPE, LINK_TYPE_SELF, POST_TYPE -from channels.factories.models import CommentFactory, PostFactory -from channels.utils import render_article_text from course_catalog import factories from course_catalog.constants import ( AvailabilityType, @@ -43,147 +39,10 @@ def minimum_price(learning_resource): return f"{minimum:.2f}" -@pytest.fixture -def patched_base_post_serializer(mocker): - """Fixture that patches the base serializer class for OSPostSerializer""" - article_content = {"text": "hello world"} - base_serialized_data = { - "author_id": 1, - "author_name": "Author Name", - "author_headline": "Author Headline", - "article_content": article_content, - "plain_text": render_article_text(article_content), - "profile_image": "/media/profile/1/208c7d959608417eb13bc87392cb5f77-2018-09-21T163449_small.jpg", - "channel_title": "channel 1", - "channel_name": "channel_1", - "channel_type": "restricted", - "post_type": LINK_TYPE_SELF, - "text": "Post Text", - "score": 1, - "created": 123, - "num_comments": 0, - "removed": False, - "deleted": False, - "id": 1, - "title": "post_title", - "url": None, - "thumbnail": None, - "slug": "post-title", - } - yield mocker.patch( - "search.serializers.OSPostSerializer.base_serializer", - return_value=mocker.Mock(data=base_serialized_data, _get_user=mocker.Mock()), - ) - - -@pytest.fixture -def patched_base_comment_serializer(mocker): - """Fixture that patches the base serializer class for OSCommentSerializer""" - base_serialized_data = { - "author_id": 1, - "author_name": "Author Name", - "author_headline": "Author Headline", - "profile_image": "/media/profile/1/208c7d959608417eb13bc87392cb5f77-2018-09-21T163449_small.jpg", - "text": "Comment Text", - "score": 1, - "created": 456, - "removed": False, - "deleted": False, - "id": 1, - "parent_id": 2, - } - yield mocker.patch( - "search.serializers.OSCommentSerializer.base_serializer", - return_value=mocker.Mock(data=base_serialized_data, _get_user=mocker.Mock()), - ) - - -@pytest.mark.django_db -@pytest.mark.parametrize( - "factory_kwargs", - [{"is_article": True}, {"is_text": True}, {"is_link": True}, {"author": None}], -) -def test_es_post_serializer(factory_kwargs): - """ - Test that OSPostSerializer correctly serializes a post object - """ - post = PostFactory.create(**factory_kwargs) - serialized = serializers.OSPostSerializer(instance=post).data - assert serialized == { - "object_type": POST_TYPE, - "article_content": post.article.content - if getattr(post, "article", None) is not None - else None, - "plain_text": post.plain_text, - "author_id": post.author.username if post.author is not None else None, - "author_name": post.author.profile.name if post.author is not None else None, - "author_headline": post.author.profile.headline - if post.author is not None - else None, - "author_avatar_small": image_uri( - post.author.profile if post.author is not None else None - ), - "channel_name": post.channel.name, - "channel_title": post.channel.title, - "channel_type": post.channel.channel_type, - "text": post.text, - "score": post.score, - "removed": post.removed, - "created": drf_datetime(post.created_on), - "deleted": post.deleted, - "num_comments": post.num_comments, - "post_id": post.post_id, - "post_title": post.title, - "post_link_url": post.url, - "post_link_thumbnail": post.thumbnail_url, - "post_slug": post.slug, - "post_type": post.post_type, - } - - -@pytest.mark.django_db -@pytest.mark.parametrize("has_author", [True, False]) -def test_es_comment_serializer(has_author): - """ - Test that OSCommentSerializer correctly serializes a comment object - """ - comment = CommentFactory.create() - serialized = serializers.OSCommentSerializer(instance=comment).data - assert serialized == { - "object_type": COMMENT_TYPE, - "author_id": comment.author.username if comment.author is not None else None, - "author_name": comment.author.profile.name - if comment.author is not None - else None, - "author_headline": comment.author.profile.headline - if comment.author is not None - else None, - "author_avatar_small": image_uri( - comment.author.profile if comment.author is not None else None - ), - "text": comment.text, - "score": comment.score, - "removed": comment.removed, - "created": drf_datetime(comment.created_on), - "deleted": comment.deleted, - "comment_id": comment.comment_id, - "parent_comment_id": comment.parent_id, - "channel_name": comment.post.channel.name, - "channel_title": comment.post.channel.title, - "channel_type": comment.post.channel.channel_type, - "post_id": comment.post.post_id, - "post_title": comment.post.title, - "post_slug": comment.post.slug, - } - - -def test_es_profile_serializer(mocker, user): +def test_es_profile_serializer(user): """ Test that OSProfileSerializer correctly serializes a profile object """ - mocker.patch("profiles.api.get_channels", return_value={"channel01", "channel02"}) - return_value = [("channel01", datetime.now()), ("channel02", datetime.now())] - mocker.patch("profiles.api.get_channel_join_dates", return_value=return_value) serialized = serializers.OSProfileSerializer().serialize(user.profile) assert serialized == { "object_type": constants.PROFILE_TYPE, @@ -193,23 +52,9 @@ def test_es_profile_serializer(mocker, user): "author_avatar_medium": image_uri(user.profile, IMAGE_MEDIUM), "author_bio": user.profile.bio, "author_headline": user.profile.headline, - "author_channel_membership": ["channel01", "channel02"], - "author_channel_join_data": [ - {"name": name, "joined": created_on} for name, created_on in return_value - ], } -@pytest.mark.usefixtures("indexing_user") -@pytest.mark.django_db -def test_serialize_bulk_comments(): - """serialize_bulk_comments should index all comments it is passed""" - comments = CommentFactory.create_batch(10) - assert len( - list(serializers.serialize_bulk_comments([comment.id for comment in comments])) - ) == len(comments) - - @pytest.mark.django_db def test_es_course_price_serializer(): """Test that the course price serializer serializes a price""" @@ -480,7 +325,7 @@ def test_es_content_file_serializer( # pylint:disable=too-many-arguments ], ) def test_es_content_file_serializer_truncate( # pylint:disable=too-many-arguments - settings, mocker, content_end, expected_end + settings, content_end, expected_end ): """Verify that the OSContentFileSerializer has the correct data""" settings.OPENSEARCH_MAX_REQUEST_SIZE = 5000 diff --git a/search/tasks.py b/search/tasks.py index 48caab29d3..935be0c0fd 100644 --- a/search/tasks.py +++ b/search/tasks.py @@ -10,10 +10,7 @@ from django.contrib.auth import get_user_model from django.db.models import Q from opensearchpy.exceptions import NotFoundError, RequestError -from prawcore.exceptions import NotFound -from channels.constants import COMMENT_TYPE, LINK_TYPE_LINK, POST_TYPE -from channels.models import Comment, Post from course_catalog.constants import RESOURCE_FILE_PLATFORMS, PrivacyLevel from course_catalog.models import ( ContentFile, @@ -26,9 +23,8 @@ Video, ) from course_catalog.utils import load_course_blocklist -from embedly.api import get_embedly_content from open_discussions.celery import app -from open_discussions.utils import chunks, html_to_plain_text, merge_strings +from open_discussions.utils import chunks, merge_strings from profiles.models import Profile from search import indexing_api as api from search.api import gen_content_file_id, gen_course_id @@ -38,7 +34,6 @@ PODCAST_TYPE, PROFILE_TYPE, PROGRAM_TYPE, - REDDIT_EXCEPTIONS, RESOURCE_FILE_TYPE, SEARCH_CONN_EXCEPTIONS, STAFF_LIST_TYPE, @@ -84,12 +79,6 @@ def wrap_retry_exception(*exception_classes): try: yield except Exception as ex: # pylint:disable=bare-except - if isinstance(ex, NotFound): - # No corresponding reddit post/comment found for django model object. Log error and continue indexing. - log.exception( - "No corresponding reddit post/comment found for django model object" - ) - return # Celery is confused by exceptions which don't take a string as an argument, so we need to wrap before raising if isinstance(ex, exception_classes): raise RetryException(str(ex)) from ex @@ -119,76 +108,6 @@ def upsert_profile(profile_id): ) -def _update_fields_by_username(username, field_dict, object_types): - """ - Runs a task to update a field value for all docs associated with a given user. - - Args: - username (str): The username to query by - field_dict (dict): Dictionary of fields to update - object_types (list of str): The object types to update - """ - api.update_field_values_by_query( - query={"query": {"bool": {"must": [{"match": {"author_id": username}}]}}}, - field_dict=field_dict, - object_types=object_types, - ) - - -@app.task -def update_author_posts_comments(profile_id): - """Update author name and avatar in all associated post and comment docs""" - profile_obj = Profile.objects.get(id=profile_id) - profile_data = OSProfileSerializer().serialize(profile_obj) - update_keys = { - key: value - for key, value in profile_data.items() - if key in ["author_name", "author_headline", "author_avatar_small"] - } - _update_fields_by_username( - profile_obj.user.username, update_keys, [POST_TYPE, COMMENT_TYPE] - ) - - -@app.task -def update_link_post_with_preview(doc_id, data): - """ - Task that fetches Embedly preview data for a link post and updates the corresponding - database and OpenSearch objects - - Args: - doc_id (str): ES document ID - data (dict): Dict of serialized post data produced by OSPostSerializer - """ - if not data["post_link_url"]: - return None - response = get_embedly_content(data["post_link_url"]).json() - # Parse the embedly response to produce the link preview text - preview_text = ( - html_to_plain_text(response["content"]).strip() - if response.get("content") - else response["description"] - ) - # Update the post in the database - post = Post.objects.get(post_id=data["post_id"]) - post.preview_text = preview_text - post.save() - # Update the post in ES - return api.update_post(doc_id, post) - - -@app.task -def create_post_document(doc_id, data): - """ - Task that makes a request to create an ES document for a post, and if it's a link-type - post, updates the newly-created post with preview text - """ - tasks = [create_document.si(doc_id, data)] - if data.get("post_type") == LINK_TYPE_LINK and data.get("post_link_url"): - tasks.append(update_link_post_with_preview.si(doc_id, data)) - return celery.chain(tasks)() - - @app.task(**PARTIAL_UPDATE_TASK_SETTINGS) def update_document_with_partial( doc_id, partial_data, object_type, retry_on_conflict=0 @@ -370,7 +289,7 @@ def bulk_deindex_profiles(ids): """ try: - with wrap_retry_exception(*REDDIT_EXCEPTIONS, *SEARCH_CONN_EXCEPTIONS): + with wrap_retry_exception(*SEARCH_CONN_EXCEPTIONS): api.deindex_profiles(ids) except (RetryException, Ignore): raise @@ -380,48 +299,6 @@ def bulk_deindex_profiles(ids): return error -@app.task(autoretry_for=(RetryException,), retry_backoff=True, rate_limit="600/m") -def index_posts(post_ids, update_only=False): - """ - Index a list of posts by a list of Post.id - - Args: - post_ids (list of int): list of Post.id to index - update_only (bool): update existing index only - - """ - try: - with wrap_retry_exception(*REDDIT_EXCEPTIONS, *SEARCH_CONN_EXCEPTIONS): - api.index_posts(post_ids, update_only) - except (RetryException, Ignore): - raise - except: # pylint: disable=bare-except - error = "index_posts threw an error" - log.exception(error) - return error - - -@app.task(autoretry_for=(RetryException,), retry_backoff=True, rate_limit="600/m") -def index_comments(comment_ids, update_only=False): - """ - Index a list of comments by a list of Comment.id - - Args: - comment_ids (list of int): list of Comment.id to index - update_only (bool): update existing index only - - """ - try: - with wrap_retry_exception(*REDDIT_EXCEPTIONS, *SEARCH_CONN_EXCEPTIONS): - api.index_comments(comment_ids, update_only) - except (RetryException, Ignore): - raise - except: # pylint: disable=bare-except - error = "index_comments threw an error" - log.exception(error) - return error - - @app.task(autoretry_for=(RetryException,), retry_backoff=True, rate_limit="600/m") def index_courses(ids, update_only=False): """ @@ -787,24 +664,6 @@ def start_recreate_index(self, indexes): index_tasks = [] - if POST_TYPE in indexes: - index_tasks = index_tasks + [ - index_posts.si(post_ids) - for post_ids in chunks( - Post.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - - if COMMENT_TYPE in indexes: - index_tasks = index_tasks + [ - index_comments.si(comment_ids) - for comment_ids in chunks( - Comment.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - if PROFILE_TYPE in indexes: index_tasks = index_tasks + [ index_profiles.si(ids) @@ -939,12 +798,6 @@ def start_update_index(self, indexes, platform): if COURSE_TYPE in indexes or RESOURCE_FILE_TYPE in indexes: blocklisted_ids = load_course_blocklist() - if POST_TYPE in indexes: - index_tasks = index_tasks + get_update_posts_tasks() - - if COMMENT_TYPE in indexes: - index_tasks = index_tasks + get_update_comments_tasks() - if PROFILE_TYPE in indexes: index_tasks = index_tasks + get_update_profiles_tasks() @@ -985,28 +838,6 @@ def start_update_index(self, indexes, platform): raise self.replace(index_tasks) -def get_update_posts_tasks(): - """Get list of tasks to update posts""" - return [ - index_posts.si(post_ids, True) - for post_ids in chunks( - Post.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - - -def get_update_comments_tasks(): - """Get list of tasks to update comments""" - return [ - index_comments.si(comment_ids, True) - for comment_ids in chunks( - Comment.objects.order_by("id").values_list("id", flat=True), - chunk_size=settings.OPENSEARCH_INDEXING_CHUNK_SIZE, - ) - ] - - def get_update_profiles_tasks(): """Get list of tasks to update profiles""" index_tasks = [ diff --git a/search/tasks_test.py b/search/tasks_test.py index cf6524895a..b4c006366e 100644 --- a/search/tasks_test.py +++ b/search/tasks_test.py @@ -6,11 +6,7 @@ from django.conf import settings from opensearchpy.exceptions import ConnectionError as ESConnectionError from opensearchpy.exceptions import ConnectionTimeout, RequestError -from prawcore.exceptions import NotFound -from channels.constants import LINK_TYPE_LINK, LINK_TYPE_SELF -from channels.factories.models import CommentFactory, PostFactory -from channels.models import Post from course_catalog.constants import RESOURCE_FILE_PLATFORMS, PlatformType, PrivacyLevel from course_catalog.factories import ( ContentFileFactory, @@ -40,11 +36,9 @@ gen_video_id, ) from search.constants import ( - COMMENT_TYPE, COURSE_TYPE, PODCAST_EPISODE_TYPE, PODCAST_TYPE, - POST_TYPE, PROFILE_TYPE, PROGRAM_TYPE, RESOURCE_FILE_TYPE, @@ -68,23 +62,16 @@ from search.tasks import ( bulk_deindex_staff_lists, create_document, - create_post_document, deindex_document, deindex_run_content_files, finish_recreate_index, - increment_document_integer_field, - index_comments, index_course_content_files, index_courses, - index_posts, index_run_content_files, index_staff_lists, index_videos, start_recreate_index, start_update_index, - update_document_with_partial, - update_field_values_by_query, - update_link_post_with_preview, upsert_content_file, upsert_course, upsert_podcast, @@ -125,14 +112,6 @@ def test_create_document_task(mocked_api): assert mocked_api.create_document.call_args[0] == indexing_api_args -def test_update_document_with_partial_task(mocked_api): - """Test that the create_document task calls the indexing API function with the right args""" - indexing_api_args = ("doc_id", {"test": "data"}, COMMENT_TYPE) - update_document_with_partial(*indexing_api_args) - assert mocked_api.update_document_with_partial.call_count == 1 - assert mocked_api.update_document_with_partial.call_args[0] == indexing_api_args - - def test_upsert_course_task(mocked_api): """Test that upsert_course will serialize the course data and upsert it to the ES index""" course = CourseFactory.create() @@ -224,80 +203,7 @@ def test_upsert_podcast_episode_task(mocked_api): ) -def test_increment_document_integer_field_task(mocked_api): - """ - Test that the increment_document_integer_field task calls the indexing - API function with the right args - """ - indexing_api_args = ("doc_id", {"test": "data"}, 1, POST_TYPE) - increment_document_integer_field(*indexing_api_args) - assert mocked_api.increment_document_integer_field.call_count == 1 - assert mocked_api.increment_document_integer_field.call_args[0] == indexing_api_args - - -def test_update_field_values_by_query(mocked_api): - """ - Test that the update_field_values_by_query task calls the indexing - API function with the right args - """ - indexing_api_args = ({"query": {}}, {"field1": "value1"}, [POST_TYPE]) - update_field_values_by_query(*indexing_api_args) - assert mocked_api.update_field_values_by_query.call_count == 1 - assert mocked_api.update_field_values_by_query.call_args[0] == indexing_api_args - - -@pytest.mark.parametrize( - "post_type,post_url,exp_update_link_post", - [[LINK_TYPE_LINK, "example.com", True], [LINK_TYPE_SELF, None, False]], -) -def test_create_post_document(mocker, post_type, post_url, exp_update_link_post): - """ - Test that the create_post_document task calls the API method to create a post document, and for link posts, - also calls the API method to fetch preview data and update the post - """ - create_document_mock = mocker.patch("search.tasks.create_document") - update_link_post_mock = mocker.patch("search.tasks.update_link_post_with_preview") - indexing_api_args = ( - "doc_id", - {"post_id": "a", "post_type": post_type, "post_link_url": post_url}, - ) - create_post_document(*indexing_api_args) - assert create_document_mock.si.call_count == 1 - assert create_document_mock.si.call_args[0] == indexing_api_args - assert update_link_post_mock.si.called is exp_update_link_post - - -@pytest.mark.parametrize( - "resp_content,resp_description,exp_preview_text", - [ - [" content", None, "content"], - ["", "description", "description"], - [None, "description", "description"], - ], -) -def test_update_link_post_with_preview( - mocker, mocked_api, resp_content, resp_description, exp_preview_text -): - """ - Test that update_link_post_with_preview fetches embedly content and updates the given post in the - database and in ES - """ - get_embedly_content_mock = mocker.patch("search.tasks.get_embedly_content") - get_embedly_content_mock.return_value.json.return_value = { - "content": resp_content, - "description": resp_description, - } - post_data = {"post_id": "a", "post_link_url": "example.com"} - post = PostFactory.create(post_id=post_data["post_id"]) - - update_link_post_with_preview("abc", post_data) - - assert get_embedly_content_mock.call_args[0][0] == post_data["post_link_url"] - assert Post.objects.get(id=post.id).preview_text == exp_preview_text - assert mocked_api.update_post.call_count == 1 - - -@pytest.mark.parametrize("error", [KeyError, NotFound]) +@pytest.mark.parametrize("error", [KeyError]) def test_wrap_retry_exception(error): """wrap_retry_exception should raise RetryException when other exceptions are raised""" with assert_not_raises(): @@ -323,38 +229,6 @@ def raise_thing(): raise_thing() -@pytest.mark.parametrize("with_error", [True, False]) -@pytest.mark.parametrize("update_only", [True, False]) -def test_index_posts( - mocker, wrap_retry_mock, with_error, update_only -): # pylint: disable=unused-argument - """index_post should call the api function of the same name""" - index_post_mock = mocker.patch("search.indexing_api.index_posts") - if with_error: - index_post_mock.side_effect = TabError - post_ids = [1, 2, 3] - result = index_posts.delay(post_ids, update_only).get() - assert result == ("index_posts threw an error" if with_error else None) - - index_post_mock.assert_called_once_with(post_ids, update_only) - - -@pytest.mark.parametrize("with_error", [True, False]) -@pytest.mark.parametrize("update_only", [True, False]) -def test_index_comments( - mocker, wrap_retry_mock, with_error, update_only -): # pylint: disable=unused-argument - """index_comments should call the api function of the same name""" - index_comments_mock = mocker.patch("search.indexing_api.index_comments") - if with_error: - index_comments_mock.side_effect = TabError - post_ids = [1, 2, 3] - result = index_comments.delay(post_ids, update_only).get() - assert result == ("index_comments threw an error" if with_error else None) - - index_comments_mock.assert_called_once_with(post_ids, update_only) - - @pytest.mark.parametrize("with_error", [True, False]) @pytest.mark.parametrize("update_only", [True, False]) def test_index_videos( @@ -402,7 +276,7 @@ def test_bulk_deindex_staff_lists( @pytest.mark.parametrize( "indexes", [ - ["post", "comment", "profile"], + ["profile"], ["course", "program"], ["userlist", "stafflist"], ["video"], @@ -421,9 +295,7 @@ def test_start_recreate_index( UserFactory.create_batch( 4, is_active=False ) # these should not show up in the indexing - comments = sorted(CommentFactory.create_batch(4), key=lambda comment: comment.id) - posts = sorted([comment.post for comment in comments], key=lambda post: post.id) - users = sorted([item.author for item in posts + comments], key=lambda user: user.id) + users = UserFactory.create_batch(4) platforms = [ PlatformType.ocw, PlatformType.mitx, @@ -454,8 +326,6 @@ def test_start_recreate_index( ) for stafflist in stafflists: StaffListItemFactory.create(staff_list=stafflist) - index_posts_mock = mocker.patch("search.tasks.index_posts", autospec=True) - index_comments_mock = mocker.patch("search.tasks.index_comments", autospec=True) index_profiles_mock = mocker.patch("search.tasks.index_profiles", autospec=True) index_courses_mock = mocker.patch("search.tasks.index_courses", autospec=True) index_videos_mock = mocker.patch("search.tasks.index_videos", autospec=True) @@ -497,19 +367,9 @@ def test_start_recreate_index( # in that generator, 'list' is being called to force iteration through all of those items. list(mocked_celery.group.call_args[0][0]) - if POST_TYPE in indexes: - assert index_posts_mock.si.call_count == 2 - index_posts_mock.si.assert_any_call([posts[0].id, posts[1].id]) - index_posts_mock.si.assert_any_call([posts[2].id, posts[3].id]) - - if COMMENT_TYPE in indexes: - assert index_comments_mock.si.call_count == 2 - index_comments_mock.si.assert_any_call([comments[0].id, comments[1].id]) - index_comments_mock.si.assert_any_call([comments[2].id, comments[3].id]) - if PROFILE_TYPE in indexes: - assert index_profiles_mock.si.call_count == 4 - for offset in range(4): + assert index_profiles_mock.si.call_count == 2 + for offset in range(2): index_profiles_mock.si.assert_any_call( [users[offset * 2].profile.id, users[offset * 2 + 1].profile.id] ) @@ -590,7 +450,7 @@ def test_finish_recreate_index(mocker, with_error): """ finish_recreate_index should attach the backing index to the default alias """ - backing_indices = {"post": "backing", "comment": "backing", "profile": "backing"} + backing_indices = {"profile": "backing"} results = ["error"] if with_error else [] switch_indices_mock = mocker.patch( "search.indexing_api.switch_indices", autospec=True @@ -604,8 +464,6 @@ def test_finish_recreate_index(mocker, with_error): mock_delete_orphans.assert_called_once() else: finish_recreate_index.delay(results, backing_indices) - switch_indices_mock.assert_any_call("backing", POST_TYPE) - switch_indices_mock.assert_any_call("backing", COMMENT_TYPE) mock_delete_orphans.assert_not_called() @@ -614,7 +472,7 @@ def test_finish_recreate_index_retry_exceptions(mocker, with_error): """ finish_recreate_index should be retried on RequestErrors """ - backing_indices = {"post": "backing", "comment": "backing", "profile": "backing"} + backing_indices = {"profile": "backing"} results = ["error"] if with_error else [] mock_error = RequestError(429, "oops", {}) switch_indices_mock = mocker.patch( @@ -782,8 +640,6 @@ def test_bulk_deletion_tasks( [ ( [ - "post", - "comment", "profile", "program", "video", @@ -808,10 +664,8 @@ def test_start_update_index( settings.OPENSEARCH_INDEXING_CHUNK_SIZE = 2 mock_blocklist = mocker.patch("search.tasks.load_course_blocklist", return_value=[]) inactive_users = UserFactory.create_batch(4, is_active=False) - comments = sorted(CommentFactory.create_batch(4), key=lambda comment: comment.id) - - posts = sorted([comment.post for comment in comments], key=lambda post: post.id) - users = sorted([item.author for item in posts + comments], key=lambda user: user.id) + active_users = UserFactory.create_batch(4) + users = sorted(active_users, key=lambda user: user.id) platforms = [ PlatformType.ocw, @@ -847,9 +701,6 @@ def test_start_update_index( unpublished_podcast_episode = PodcastEpisodeFactory.create(published=False) - index_posts_mock = mocker.patch("search.tasks.index_posts", autospec=True) - index_comments_mock = mocker.patch("search.tasks.index_comments", autospec=True) - index_profiles_mock = mocker.patch("search.tasks.index_profiles", autospec=True) deindex_profiles_mock = mocker.patch( "search.tasks.bulk_deindex_profiles", autospec=True @@ -890,19 +741,9 @@ def test_start_update_index( # in that generator, 'list' is being called to force iteration through all of those items. list(mocked_celery.group.call_args[0][0]) - if POST_TYPE in indexes: - assert index_posts_mock.si.call_count == 2 - index_posts_mock.si.assert_any_call([posts[0].id, posts[1].id], True) - index_posts_mock.si.assert_any_call([posts[2].id, posts[3].id], True) - - if COMMENT_TYPE in indexes: - assert index_comments_mock.si.call_count == 2 - index_comments_mock.si.assert_any_call([comments[0].id, comments[1].id], True) - index_comments_mock.si.assert_any_call([comments[2].id, comments[3].id], True) - if PROFILE_TYPE in indexes: - assert index_profiles_mock.si.call_count == 4 - for offset in range(4): + assert index_profiles_mock.si.call_count == 2 + for offset in range(2): index_profiles_mock.si.assert_any_call( [users[offset * 2].profile.id, users[offset * 2 + 1].profile.id], True ) diff --git a/search/urls.py b/search/urls.py index 6dbfc94f34..2fba4e7c29 100644 --- a/search/urls.py +++ b/search/urls.py @@ -1,15 +1,10 @@ """URLs for search""" from django.urls import re_path -from search.views import RelatedPostsView, SearchView, SimilarResourcesView +from search.views import SearchView, SimilarResourcesView urlpatterns = [ re_path(r"api/v0/search/", SearchView.as_view(), name="search"), - re_path( - r"api/v0/related/(?P[A-Za-z0-9_]+)/$", - RelatedPostsView.as_view(), - name="related-posts", - ), re_path( r"api/v0/similar/$", SimilarResourcesView.as_view(), name="similar-resources" ), diff --git a/search/views.py b/search/views.py index 9cd683cfa8..bb9082f489 100644 --- a/search/views.py +++ b/search/views.py @@ -4,15 +4,12 @@ from django.utils.decorators import method_decorator from opensearchpy.exceptions import TransportError from rest_framework.response import Response -from rest_framework.status import HTTP_405_METHOD_NOT_ALLOWED from rest_framework.views import APIView from authentication.decorators import blocked_ip_exempt -from open_discussions import features from search.api import ( execute_learn_search, execute_search, - find_related_documents, find_similar_resources, is_learning_query, ) @@ -36,7 +33,7 @@ def handle_exception(self, exc): @method_decorator(blocked_ip_exempt, name="dispatch") class SearchView(ESView): """ - View for executing searches of posts, comments, profiles, learning resources + View for executing searches of profiles, learning resources """ permission_classes = () @@ -47,25 +44,7 @@ def post(self, request, *args, **kwargs): if is_learning_query(query): response = execute_learn_search(user=request.user, query=request.data) else: - response = execute_search(user=request.user, query=request.data) - return Response(response) - - -@method_decorator(blocked_ip_exempt, name="dispatch") -class RelatedPostsView(ESView): - """ - View for retrieving related posts - """ - - permission_classes = () - - def post(self, request, *args, **kwargs): - """Execute a related posts search""" - if not features.is_enabled(features.RELATED_POSTS_UI): - return Response(status=HTTP_405_METHOD_NOT_ALLOWED) - response = find_related_documents( - user=request.user, post_id=self.kwargs["post_id"] - ) + response = execute_search(query=request.data) return Response(response) diff --git a/search/views_test.py b/search/views_test.py index e58b933831..0b2c0f65a8 100644 --- a/search/views_test.py +++ b/search/views_test.py @@ -6,7 +6,6 @@ from django.contrib.auth.models import AnonymousUser from django.urls import reverse from opensearchpy.exceptions import TransportError -from rest_framework.status import HTTP_405_METHOD_NOT_ALLOWED from course_catalog.factories import CourseFactory from search.constants import COURSE_TYPE @@ -18,53 +17,7 @@ "hits": { "total": 20, "max_score": 1.0, - "hits": [ - { - "_index": "discussions_local_comment_0acffefbb1984d10b73afddee53830b7", - "_type": "_doc", - "_id": "c_9", - "_score": 1.0, - "_source": { - "author_id": "01CH3ZD02DMXGQ19Q9JJAGPW3C", - "author_name": "Leah Meowmeow", - "text": "comment", - "score": 1, - "created": "2018-10-12T21:09:16+00:00", - "removed": False, - "deleted": False, - "comment_id": "9", - "parent_comment_id": None, - "object_type": "comment", - "channel_title": "my_mod", - "channel_name": "text", - "post_id": "1i", - "post_title": "a new post with title in the name", - }, - }, - { - "_index": "discussions_local_post_8d59996f4d594c12b1ed34b7a44024c2", - "_type": "_doc", - "_id": "p_1g", - "_score": 1.0, - "_source": { - "author_id": "01CMG7CXTPXVP5NQ0RDAZZMRVP", - "author_name": "Name", - "channel_name": "xaviers", - "channel_title": "No channel for xaviers", - "text": "", - "score": 1, - "created": "2018-09-11T18:58:16+00:00", - "num_comments": 1, - "removed": False, - "deleted": False, - "post_id": "1g", - "post_title": "new post for reporting", - "post_link_url": None, - "post_link_thumbnail": None, - "object_type": "post", - }, - }, - ], + "hits": [], }, } @@ -75,16 +28,6 @@ def search_view(): return SimpleNamespace(url=reverse("search")) -@pytest.fixture() -def related_posts_view(settings): - """Fixture with relevant properties for testing the related posts view""" - settings.FEATURES["RELATED_POSTS_UI"] = True - post_id = "abc" - return SimpleNamespace( - url=reverse("related-posts", kwargs={"post_id": post_id}), post_id=post_id - ) - - @pytest.mark.parametrize( "status_code, raise_error", [[418, False], [503, True], ["N/A", True]] ) @@ -100,28 +43,13 @@ def test_search_es_exception(mocker, client, search_view, status_code, raise_err if not raise_error: resp = client.post(search_view.url, query) assert resp.status_code == status_code - search_mock.assert_called_once_with(user=AnonymousUser(), query=query) + search_mock.assert_called_once_with(query=query) log_mock.assert_called_once_with("Received a 4xx error from OpenSearch") else: with pytest.raises(TransportError): client.post(search_view.url, query) -def test_related_posts_es_exception(mocker, client, related_posts_view): - """If a 4xx status is returned from OpenSearch it should be returned from the API""" - status_code = 418 - related_documents_mock = mocker.patch( - "search.views.find_related_documents", - autospec=True, - side_effect=TransportError(status_code), - ) - resp = client.post(related_posts_view.url) - assert resp.status_code == status_code - related_documents_mock.assert_called_once_with( - user=AnonymousUser(), post_id=related_posts_view.post_id - ) - - def test_search(mocker, client, search_view): """The query should be passed from the front end to execute_search to run the search""" search_mock = mocker.patch( @@ -130,7 +58,7 @@ def test_search(mocker, client, search_view): query = {"query": {"match": {"title": "Search"}}} resp = client.post(search_view.url, query) assert resp.json() == FAKE_SEARCH_RESPONSE - search_mock.assert_called_once_with(user=AnonymousUser(), query=query) + search_mock.assert_called_once_with(query=query) def test_learn_search(mocker, client, search_view): @@ -146,26 +74,6 @@ def test_learn_search(mocker, client, search_view): search_mock.assert_called_once_with(user=AnonymousUser(), query=query) -def test_find_related_documents(mocker, client, related_posts_view): - """The view should return the results of the API method for finding related posts""" - fake_response = {"related": "posts"} - related_documents_mock = mocker.patch( - "search.views.find_related_documents", autospec=True, return_value=fake_response - ) - resp = client.post(related_posts_view.url) - assert resp.json() == fake_response - related_documents_mock.assert_called_once_with( - user=AnonymousUser(), post_id=related_posts_view.post_id - ) - - -def test_find_related_documents_feature_flag(settings, client, related_posts_view): - """If the feature flag is off the url should not exist""" - settings.FEATURES["RELATED_POSTS_UI"] = False - resp = client.post(related_posts_view.url) - assert resp.status_code == HTTP_405_METHOD_NOT_ALLOWED - - def test_find_similar_resources(mocker, client): """The view should return the results of the API method for finding similar resources""" course = CourseFactory.create() diff --git a/static/images/downvote_arrow.png b/static/images/downvote_arrow.png deleted file mode 100644 index fdb6ac5df1..0000000000 Binary files a/static/images/downvote_arrow.png and /dev/null differ diff --git a/static/images/downvote_arrow_on.png b/static/images/downvote_arrow_on.png deleted file mode 100644 index f997dff455..0000000000 Binary files a/static/images/downvote_arrow_on.png and /dev/null differ diff --git a/static/images/lawn_and_river_banner.png b/static/images/lawn_and_river_banner.png deleted file mode 100644 index 0000079a09..0000000000 Binary files a/static/images/lawn_and_river_banner.png and /dev/null differ diff --git a/static/images/pinnned-post-icon.svg b/static/images/pinnned-post-icon.svg deleted file mode 100644 index 8a13fa8c84..0000000000 --- a/static/images/pinnned-post-icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/static/images/star_selected.png b/static/images/star_selected.png deleted file mode 100644 index 2f284a12b8..0000000000 Binary files a/static/images/star_selected.png and /dev/null differ diff --git a/static/images/star_unselected.png b/static/images/star_unselected.png deleted file mode 100644 index 0cbc01b390..0000000000 Binary files a/static/images/star_unselected.png and /dev/null differ diff --git a/static/images/upvote_arrow.png b/static/images/upvote_arrow.png deleted file mode 100644 index 74ebd6c47b..0000000000 Binary files a/static/images/upvote_arrow.png and /dev/null differ diff --git a/static/images/upvote_arrow_on.png b/static/images/upvote_arrow_on.png deleted file mode 100644 index e57dd9f051..0000000000 Binary files a/static/images/upvote_arrow_on.png and /dev/null differ
- {% block footer %} - {% if moderator_email %} - You are receiving this email because you are a moderator for - {{ post.channel_name }} -

- If you don't want to receive these emails in the future, you can edit your channel's - notification settings. -

- {% else %} - You are receiving this email because you signed up for {{ site_name }}. -

- {% if anon_token %} - If you don't want to receive these emails in the future, you can - edit your settings - or - unsubscribe. -

- {% endif %} - {% endif %} - {% endblock %} MIT Office of Digital Learning, 600 Technology Square, 2nd Floor, Cambridge, MA 02139
© {% now "Y" %} {{ site_name }}, All Rights Reserved. Terms and Conditions and Privacy Policy diff --git a/mail/templates/frontpage/body.html b/mail/templates/frontpage/body.html deleted file mode 100644 index 894c709e55..0000000000 --- a/mail/templates/frontpage/body.html +++ /dev/null @@ -1,126 +0,0 @@ -{% extends "email_base.html" %} -{% load humanize %} -{% load timeago %} - -{% block content %} - - -{% if posts %} -
- - - - -
-

Top Stories for You

-
-
- - - - -
- - -

- - {{ post.title }} {% if post.url_domain %}({{ post.url_domain }}){% endif %} - -

-

{# NOTE: this next line is intentionally long so it renders correctly in plaintext #} - {{ post.author_name }}{% if post.author_headline %} — {{ post.author_headline }}{% endif %} -
- {{ post.created|parse_iso|naturaltime }} in {{ post.channel_title }} -

-
-
- - - - - -
- More Stories -
- -
-

-
- - - - -
-

Recent Podcast Episodes

-
-
- - - - -
- - -

- {{ episode.title }} -

-

{# NOTE: this next line is intentionally long so it renders correctly in plaintext #} - {{ episode.last_modified|parse_iso|date:"M j, Y" }} - {{ episode.podcast_title }} -

-
-
- - - - - -
- More Episodes -
- -
-

-
- - - - - - - - -
-

- {{ invite.inviter.profile.name }} invited you to become a member of the {{ site_name }} channel {{ invite.channel.title }} -

-

{{ site_name }} is a place where learners, teachers and researchers worldwide meet with MIT.

-

To be part of the channel you’ll need to create an {{ site_name }} account first.

-
- - - - - -
- Join {{ site_name }} -
- -
-
- - - - -
-

New Post in {{ post.channel_title }}

-
-
- - - - -
- - -

- - {{ post.title }} {% if post.url_domain %}({{ post.url_domain }}){% endif %} - -

-

{# NOTE: this next line is intentionally long so it renders correctly in plaintext #} - {{ post.author_name }}{% if post.author_headline %} — {{ post.author_headline }}{% endif %} -
- {{ post.created|parse_iso|naturaltime }} in {{ post.channel_title }} -

-
-