kawa-kokosowa / bubblebbs

Text BBS 🗣️ with authenticated 🔒🆔 posts 🗨️ and no registration 🚫✍️
http://bubblebbs.cafe
MIT License
17 stars 3 forks source link

WIP: fix reference_links(), clean everything! #127

Closed kawa-kokosowa closed 6 years ago

kawa-kokosowa commented 6 years ago

Flagged as WIP because tests are currently broken due to BeautifulSoup messing with formatting.

Update README.md to fix an erroneous Docker command.

Update travis to reflect removal of Docker scripts/new recommended commands.

add create_app(): change code to use this flask app factory. Implement flask blueprint. Modify runserver.py to reflect this. Had to change url_for to reference the blueprint name, e.g., manage_cookie -> app.manage_cookie.

Change the flask import line in app.py to be multi-line since there's about 1000 imports. :p

Fix reference_links() issue where it would add a reference link inside a link, e.g., see u @3:30 would get turned into something like <a href="http://example.org/events/234">see u <a href="/threads/3">@3:30.

Move make_tripcode() to postutils.

Use a more elegant way of trimming the html5lib fat.

Add more verbosity to pytest mode (docker entrypoint.sh).

Implement real model tests. Work in progress. Tests currently broken because BeautifulSoup is messing with formatting too much. Start testing postutils.

Summary of changes

Why you think this addition is needed/good

Does this address any issues? Please reference them like this: #1