Skip to content

Commit

Permalink
made board frontend nicer, updated docs
Browse files Browse the repository at this point in the history
zaiteki committed May 30, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f0edf77 commit 56a9708
Showing 4 changed files with 4 additions and 14 deletions.
3 changes: 0 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -71,9 +71,6 @@ keywords, and then executing `python3 tags.py` and/or `python3 refresh.py`.

# Planned features
* Anti-spam
* Multiple permitted external media hosts
* Web admin panel
* User owned "boards" (like 8chan)
* Textboard archive --> Multich relay
* "chan" style board view
* "tree" style board view (usenet, reddit, ayashii)
10 changes: 2 additions & 8 deletions _dox/TO-DOS.txt
Original file line number Diff line number Diff line change
@@ -7,11 +7,6 @@ Spam reduction:
3. Limit how many duplicate comments IP can make in X seconds
4. Limit how many tags can be in a new thread

Tag owner:
--------
1. Allow tag owner to untag, delete, and ban
2. Allow "tag namespaces" (group of tags in controlled creation space)

Federated moderation:
--------
1. Share bans and deletes publicly
@@ -25,9 +20,8 @@ Maintenance:

Markup expansion:
--------
1. Allow multiple image hosts
2. Youtube embed
3. < backwards quote (8chan style)
1. Youtube embed
2. < backwards quote (8chan style)

Alternate backend:
--------
3 changes: 1 addition & 2 deletions _dox/boards.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
./boards/
./boards/list.txt
local meta h.V5DKiTQWmc
meta h.V5DKiTQWmc
./boards/meta/
/meta/info.txt
/meta/mod.txt host thread @ mode
@@ -10,7 +10,6 @@
/b/meta/password edit info, hide, mod, password
/b/meta/list regular multichan list of trhreads


# 0 - hide thread
# 1 - normal
# 2 - sticky
2 changes: 1 addition & 1 deletion boards.py
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ def browse(board):
page.append(f"<p><hr><a href='/create/{board}'>[+] Create a new thread on /{board}/</a>")
with open(f"./boards/{board}/ihosts.txt", "r") as ihosts:
ihosts = ihosts.read().strip().splitlines()
page.append("<p><b>Approved URLs:</b><ul><li>" + "\n<li> ".join(ihosts))
page.append("<p><b>Approved image hosts:</b><ul><li>" + "\n<li> ".join(ihosts))
page.append("</ul>")
page.append("<hr><ul>")
threads = board_index(board)

0 comments on commit 56a9708

Please sign in to comment.