Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mod_adminban/mod_janitor show user which post they were banned/warned for #159

Open
kaguy4 opened this issue Oct 22, 2024 · 3 comments
Labels
enhancement For stuff that needs to be improved

Comments

@kaguy4
Copy link
Member

kaguy4 commented Oct 22, 2024

And the post in ban/warn screen should be visible even if it's deleted from the board

@kaguy4 kaguy4 added the enhancement For stuff that needs to be improved label Oct 22, 2024
@anonwaha
Copy link
Collaborator

Would be convenient to have on the mod side too, i.e. a column on the ban management table

@kaguy4
Copy link
Member Author

kaguy4 commented Mar 1, 2025

If bans became a table, for inspiration, these are columns Vichan has:

  • id
  • ipstart
  • ipend (not sure what is the difference)
  • created (unix time)
  • expires (unix time)
  • board ("NULL" for all boards)
  • creator (staff ID)
  • reason
  • seen (0 if not seen, 1 if seen. Visible on mod end)
  • post (JSON object)

random post example:
{"id":"439912","thread":"439890","subject":null,"email":null,"name":"Anon","trip":null,"capcode":null,"body":"<a onclick=\"highlightReply('439894', event);\" href=\"\/b\/res\/439890.html#439894\">&gt;&gt;439894<\/a><br\/><a onclick=\"highlightReply('439890', event);\" href=\"\/b\/res\/439890.html#439890\">&gt;&gt;439890<\/a><br\/>g\u00fczel yiyor penalt\u0131saray normie vaxx","body_nomarkup":">>439894\r\n>>439890\r\ng\u00fczel yiyor penalt\u0131saray normie vaxx\n<tinyboard proxy>179.43.159.196<\/tinyboard>","time":"1740738736","bump":"1740738736","files":"[{\"name\":\"240_F_95491279_gOck7k7TrgTUQzteBXirrOK6OtXKM1it.jpg\",\"tmp_name\":\"\\\/tmp\\\/urlGyVQ33\",\"file_tmp\":true,\"error\":0,\"size\":22681,\"filename\":\"240_F_95491279_gOck7k7TrgTUQzteBXirrOK6OtXKM1it.jpg\",\"extension\":\"jpg\",\"file_id\":\"1740738736931\",\"file\":\"1740738736931.jpg\",\"thumb\":\"1740738736931.jpg\",\"is_an_image\":true,\"hash\":\"beb1a941ae99bf9fc3d956c04a0950a4\",\"width\":362,\"height\":240,\"thumbwidth\":255,\"thumbheight\":169,\"file_path\":\"b\\\/src\\\/1740738736931.jpg\",\"thumb_path\":\"b\\\/thumb\\\/1740738736931.jpg\"}]","num_files":"1","filehash":"beb1a941ae99bf9fc3d956c04a0950a4","password":"%dbrt}bg","ip":"123.45.678.900","sticky":"0","locked":"0","cycle":"0","sage":"0","embed":null,"slug":null,"khash":"lolololol","fpjs":"undefined","board":"b"}

@hachikuji-san
Copy link
Collaborator

hachikuji-san commented Mar 1, 2025

ipstart
ipend (not sure what is the difference)

might be for range b&? e.g
range banning the last octet corresponds to:
ipstart = 127.0.0.0
ipend = 127.0.0.255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For stuff that needs to be improved
Projects
None yet
Development

No branches or pull requests

3 participants