Commit Graph

4277 Commits

Author SHA1 Message Date
5b74355046 Collapse post form by default on index page.
This reduces wasted space as making threads is a relatively rare operation, and dissuades people from mistakenly making a thread instead of a reply.
2023-01-14 05:50:41 -01:00
6645a8f989 Add meaningful error codes for captchas 2023-01-14 05:50:41 -01:00
175022f519 Move PHP session into captcha code to prevent unnecessary cookies. 2023-01-14 05:50:41 -01:00
0afbeac7bd Remove captcha JavaScript call for local captchas, add automatic and manual reloading of captchas 2023-01-14 05:50:41 -01:00
58d719c7f9 Allow local securimage captcha to be run without cURL library 2023-01-14 05:50:40 -01:00
070ae35161 Remove redundant subject check in catalog-search.js
The comment selection included it.
2023-01-14 05:50:40 -01:00
88c25af7cf Fix bumplock not appearing on threads and catalog
Ideally they would all say bumplock instead of sage, but that's how it is in the database so we can fix that later if we ever care.
2023-01-14 05:50:40 -01:00
288f09c1f9 Remove unused functions from inc/function.php
strategy_first was left in as I suspect it's a userful example.
2023-01-14 05:50:40 -01:00
e1eb910ef4 Add required include for mod_board_log in log.php 2023-01-14 05:50:40 -01:00
8cd2ad7b10 Drop remaining MySQL <5.5.3 support (utf8 without multibyte)
It's over 10 years out-of-date and EOL and the version code isn't failsafe which causes issues with some MariaDB versions, resulting in broken multibyte character behaviors.
2023-01-14 05:50:40 -01:00
a8115d2e53 Remove wizchan remnants
Put me in the screencap
2023-01-14 05:50:40 -01:00
6fb529e745 Add option to force a subject when posting threads 2023-01-14 05:50:40 -01:00
17ed5819f6 Add maximum text length to ban appeals. 2023-01-14 05:50:40 -01:00
d5284f3a34 Limit maximum email length to 30 to prevent database error 2023-01-14 05:50:40 -01:00
321c742124 Prevent raw HTML editing a post with tinyboard modifiers (e.g. user flags) from inserting them into the visible post body 2023-01-14 05:50:40 -01:00
6bcf20804b Solve dynamically loaded threads not being filtered. Possibly a hack-fix.
This seems like the most appropriate simple fix, hopefully not too wasteful.
2023-01-14 05:50:40 -01:00
8d3b5c86ab Update jQuery libraries
Mainly for security purposes. Removed on('ready') function has been replace, most of deprecated ':' selectors have been removed (some :first selectors remain insted find() functions since I was unsure of the correct way to deal with them)
2023-01-14 05:50:40 -01:00
f6b4eb9040 Fix multiple issues with anti_bump_flood
- bumplocked thread with one reply, delete the reply and no post matches the query
- saged posts aren't ignored when finding last bump
- bumplocked threads should be ignored
2023-01-14 05:50:40 -01:00
354f70fa97 Improve telegrams + refactor rebuilding after posts, finish reply requests before rebuilding index
This provides massive improvements to perceived post times on large boards as it doesn't wait for the entire board to rebuild index before confirming to the user that the post was made

Telegrams now send a response ajax.js can understand, redirecting them.
2023-01-14 05:50:40 -01:00
8dcdf00d18 Allow users to disable and clear (You)s
Credit to based anon https://leftypol.org/tech/res/6724.html#12776
2023-01-14 05:50:40 -01:00
341729abff Add IP address link to ban appeals 2023-01-14 05:50:40 -01:00
e0be553970 Quick hack to prevent oversized PDF thumbnails. 2023-01-14 05:50:40 -01:00
20a86fd50e Only add drag-drop handlers to dropzone, not the entire document
This enables dragging text into the textbox.
2023-01-14 05:50:40 -01:00
e3ee4b0ce9 Add default ban length of 1 hour instead of permanent ban 2023-01-14 05:50:40 -01:00
a13330a77a Make bans default to board of offending post 2023-01-14 05:50:40 -01:00
5df46e0c77 Improve page titles and social media cards 2023-01-14 05:50:40 -01:00
tmp-server
7876df0a50 Fix new thread notifications title, fix thread body breaking script
Tried to access invalid child.
2023-01-14 05:50:40 -01:00
5fb6acf047 Use stored title instead of document.title in notifications
Prevents number of unreads being added to notification thread name
2023-01-14 05:50:40 -01:00
7535aad664 Make all notifications show, not just the first unread
Removal of unused varable
2023-01-14 05:50:40 -01:00
4cf0c59eee Separate mod auto-update settings from normal settings 2023-01-14 05:50:40 -01:00
bd120bbda7 Clean up duplicate code for IPv6 2023-01-14 05:50:40 -01:00
d606deba0e Add IPv6 support for DNSBL
Should have used the library but didn't want to experiement and posiibly break the includes
2023-01-14 05:50:40 -01:00
Your Name
74ecc4fe17 Automatically embeds with Tor if on the hidden site. Adds clearnet and onion invidious embed. 2023-01-14 05:50:40 -01:00
485c077187 Minor flag javascript fixes 2023-01-14 05:50:40 -01:00
92d7181932 Enable filtering by flag name 2023-01-14 05:50:40 -01:00
81bc9d23dd Enable posting from catalog without JS
Thank you based lewdposter
2023-01-14 05:50:40 -01:00
d3d3e2e969 Add catalog thumbnails for file placeholder, handle the first of multiple OP images being deleted
Thank you based lewdposter
2023-01-14 05:50:40 -01:00
b1004367b0 Add noindex meta tag to 'Last 50 posts' thread pages 2023-01-14 05:50:40 -01:00
ea6f004022 Adjust board search on index page
Don't show on non-boards (like overboards)
Show inline, not as a new line
Remove useless comment
2023-01-14 05:50:40 -01:00
151261fa80 Fix post-filter.js row highlighting making text ineligible 2023-01-14 05:50:40 -01:00
39d2ad5212 Improve citing in replies 2023-01-14 05:50:40 -01:00
f7478bc840 Remove newlines and modifiers from thread title 2023-01-14 05:50:40 -01:00
98cfb3ad2b Add mod recents auto-reload 2023-01-14 05:50:40 -01:00
ec917def7c Block D+ and D++ on special IP addresses 2023-01-14 05:50:40 -01:00
0ac2b7ec70 Show ban appeal count on mod dashboard 2023-01-14 05:50:40 -01:00
49b5fb75a6 Fix 387ebe9c0c for reports, extract limit to variable, give more descriptive error name 2023-01-14 05:50:40 -01:00
1f155498b0 Fix combining character set, allow limit for combining characters 2023-01-14 05:50:40 -01:00
b91d8694a9 Prevent double-encoding of HTML entities in [code] 2023-01-14 05:50:40 -01:00
617a924826 Recalculate filesize after stripping metadata 2023-01-14 05:50:40 -01:00
Pietro Carrara
43cc3fd465 Check if file fields are set on the API 2023-01-14 05:50:40 -01:00