Go to file
Snakes 47159f338d Fix exception when serializing comments JSON.
The JSON API endpoints that return comments, most notably `/comments`
returned 500s and created a stack trace with:

  TypeError: Object of type method is not JSON serializable

Further debugging revealed this was because json.encoder was being
given a <bound method lazy.<locals>.wrapper of <Comment(id=123)>> to
serialize.

The introduction of the bug was traced to 8ecb4582d0 where it was
discovered that the (seemingly inadvertent) removal of the @property
decorator on classes/comment.py:parent_fullname was the root cause.

In light of the fact that parent_fullname was unrelated to the changes
intended in 8ecb4582d0 and that no other refactoring around
parent_fullname was done, it was restored to being a @property rather
than its callers modified to invoke it as a method.
2022-06-24 15:26:18 -04:00
.github stole testing from mottechads 2022-05-17 23:09:36 +02:00
files Fix exception when serializing comments JSON. 2022-06-24 15:26:18 -04:00
.gitattributes mn 2022-05-05 01:09:46 +02:00
.gitignore Revert "use redis for site settings instead of a json file" 2022-06-10 23:52:32 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-01-31 15:29:51 -08:00
Dockerfile big ass commit 2022-05-23 00:15:29 +02:00
LICENSE mn 2022-05-05 01:09:46 +02:00
dependabot.yml mn 2022-05-05 01:09:46 +02:00
docker-compose.yml cxz 2022-05-28 00:58:01 +02:00
env support newer version of docker-compose 2022-06-09 23:48:29 +02:00
imei.sh nxcv 2022-02-18 15:47:17 +02:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md sdf 2022-05-27 23:34:01 +02:00
redis.conf mn 2022-05-05 01:09:46 +02:00
requirements.txt sfd 2022-05-26 22:32:06 +02:00
run_tests.py replace spaces with tabs 2022-06-13 20:33:25 +02:00
schema.sql sneed 2022-06-23 08:00:02 +00:00
seed-db.sql add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
site_settings.json sneed 2022-05-25 11:14:01 +00:00
snappy_PCM.txt reduce snappy's "!slots" chance 2022-06-19 23:23:13 +02:00
snappy_rDrama.txt Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-22 16:32:32 +00:00
supervisord.conf mn 2022-05-05 01:09:46 +02:00
ubuntu_setup make the new format for the env file work with ubuntu_setup 2022-06-10 15:44:52 +02:00

readme.md

Build status

This code runs https://rdrama.net, https://pcmemes.net, https://cringetopia.org, and https://watchpeopledie.co

Installation (Windows/Linux/MacOS)

1- Install Docker on your machine.

Docker installation

2- Run the following commands in the terminal:

git clone https://github.com/Aevann1/rDrama/

cd rDrama

docker-compose up

3- That's it! Visit localhost in your browser.

4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, please edit the variables in the env file and then restart the docker container.