Commit Graph

1881 Commits

Author SHA1 Message Date
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
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
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
5df46e0c77 Improve page titles and social media cards 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
f7478bc840 Remove newlines and modifiers from thread title 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
Pietro Carrara
43cc3fd465 Check if file fields are set on the API 2023-01-14 05:50:40 -01:00
Pietro Carrara
cb8c7ddd2e Load board config while generating json 2023-01-14 05:50:40 -01:00
Pietro Carrara
68dc6bb495 Check fields, use config paths 2023-01-14 05:50:40 -01:00
Pietro Carrara
3b9494e362 Use thumb, not thumb_path 2023-01-14 05:50:40 -01:00
Pietro Carrara
2b914f6145 Modify api image fields 2023-01-14 05:50:40 -01:00
b1629a33e9 Fix thumb_ext being ignored
When using ImageMagick's convert tool, the output defaults to the input format if no file extension or format is specified.
The temp file currently has no extension, so a $config['thumb_ext'] value has no effect on the image.
By appending the thumb_ext to the temp output file, it will convert the image to the intended format.
2023-01-14 05:50:40 -01:00
towards-a-new-leftypol
19e216b924 Display YouTube video thumbnail (with local url) in embeds 2023-01-14 05:50:40 -01:00
towards-a-new-leftypol
146f7a341a Improve robustness when moving / merging posts and threads.
Co-Authored-By: Discomrade <nice@try.fbi>
2023-01-14 05:50:40 -01:00
95fc4a1f42 Adds the proposed ffmpeg.php changes 2023-01-14 05:50:40 -01:00
c3de0f1feb Removes rebuilds after each deleted post when deleting by IP. 2023-01-14 05:50:40 -01:00
Dedushka
d55dd98e68 Protect IPv6 IPs in public moderation logs.
As reported, IPv6 addresses were not properly hidden in the public
facing moderation logs. This commit filters both IPv4 and IPv6
addresses.
2023-01-14 05:50:40 -01:00
Pietro Carrara
38065ff02c Add unique_ips field to the API 2023-01-14 05:50:40 -01:00
Pietro Carrara
7002bc7698 Add warning and ban messages to the API 2023-01-14 05:50:40 -01:00
Pietro Carrara
f60b4ea6b3 Enable API flags for user_flag and country_flags 2023-01-14 05:50:40 -01:00
Pietro Carrara
0b8c4b49b1 Enable non-country flags on the JSON api 2023-01-14 05:50:40 -01:00
Couchy
2a1d99a4bb Fix rejected images not being deleted
$file['thumb_path'] and $file['thumb_path'] need to be set before calling undoImage($file).
2023-01-14 05:50:40 -01:00
Benjamin Southall
d63a54cf7f Add apple touch icon support and configuration option 2023-01-14 05:50:40 -01:00
Benjamin Southall
768fd905fe Add support for gopher url:// markup as hyperlinks 2023-01-14 05:50:40 -01:00
Benjamin Southall
3c89b30861 Allow user to set the boardlist to point to catalog links instead of regular index page in Options.
Edited to only affect local board links, not external index.html links.
2023-01-14 05:50:40 -01:00
H1K1CH4N
6906318d4e Fixed deletion of mod archive thread.
This should remove the 'Page or post not found' error when trying to deleted a thread from the mod archive.
2023-01-14 05:50:40 -01:00
PupperWoff
6d80285513 Add image spoiler flag to JSON API 2023-01-14 05:50:40 -01:00
PupperWoff
e754a6fead Added: Archive moves json files to archive too 2023-01-14 05:50:40 -01:00
PupperWoff
9406a72d7d Bugfix : If you moved a reply to same board it deleted the image. 2023-01-14 05:50:40 -01:00
PupperWoff
37b37f0e04 BugFix: Removed markup that was shown in title of thread. 2023-01-14 05:50:40 -01:00
PupperWoff
d568e5a311 BugFix - Shadow Delete - if spoilered image getting "extension" index error 2023-01-14 05:50:40 -01:00
PupperWoff
060ae1e547 Added option for mods to send threads directly to archive (removing them from catalog) 2023-01-14 05:50:40 -01:00
PupperWoff
b72b335f3e Added function: Option to disable GETs on boards 2023-01-14 05:50:40 -01:00
PupperWoff
81bdcfdf6d Added multiple file select dialog for post form
Completely revamped, code by Discomrade
Moved filepaths processing loops into a function for easier maintainance
2023-01-14 05:50:40 -01:00
PupperWoff
9083090c46 Changed archive list to order by thread ID and not archive time (added option to change it via function call) 2023-01-14 05:50:40 -01:00
PupperWoff
787fa11309 Small fix to config for - auto send to feature archive 2023-01-14 05:50:40 -01:00
PupperWoff
c76a1bd3ef Added multiple dice roll. Automatic feature archive if op uses configured trip. Increaced post char limit 2023-01-14 05:50:40 -01:00
PupperWoff
2b05fd12f4 Added Feature - Statistics 2023-01-14 05:50:40 -01:00
PupperWoff
fca78a3a04 BugFix - Small BugFix to Archive and Voting (adding line of text) 2023-01-14 05:50:40 -01:00
PupperWoff
dd0847b751 Added Archive Feature - Added feature allowing Users to vote for threads they want Featured in the Archive 2023-01-14 05:50:40 -01:00
Arvo Huru
4989762458 Added Feature - Different wait-time for OP and reply deletion. 2023-01-14 05:50:40 -01:00
Arvo Huru
008273f707 Small BugFix - Small fix to Shadow Delete 2023-01-14 05:50:40 -01:00
Arvo Huru
371d87e840 Bugfix - Small bugfix to Shadow Delete 2023-01-14 05:50:40 -01:00
Arvo Huru
ce750b8a20 Added Function - Mod can shadow delete if they are unsure 2023-01-14 05:50:40 -01:00
PupperWoff
7ffa8a00f9 Added Feature - Seperate Archive Mods can put posts in - only mods can see this archive 2023-01-14 05:50:40 -01:00
PupperWoff
0778052ef7 Small Update - Updated Rebuild to archive threads/running cleanup before building index, Also added php_timeout to update scripts. 2023-01-14 05:50:39 -01:00
PupperWoff
b359d89de5 BugFix - Bugfix to Archive Code 2023-01-14 05:50:39 -01:00
PupperWoff
73a0547fe6 Added Function to Shadow Delete - You can set a mod level for automatically permanently delete posts that mod deletes 2023-01-14 05:50:39 -01:00
PupperWoff
45b00c76b5 Update to Shadow Delete - Option to view deleted threads, and view recent shadow deleted posts and threads (threads are listed first - posts in these threads are not shown in recent list - to see these posts you need to view whole shadow deleted thread) 2023-01-14 05:50:39 -01:00
PupperWoff
93d316f0fc BugFix - More stupid errors in code I had to fix 2023-01-14 05:50:39 -01:00
PupperWoff
c353e1284d Added Feature - Shadow Delete of Posts and Threads (can be restored if deleted by mod) - Still need a way to see and restore deleted threads 2023-01-14 05:50:39 -01:00
PupperWoff
e74c54601e BugFix - Small bugfix to Archive Code 2023-01-14 05:50:39 -01:00
PupperWoff
932b0b9e63 Bugfix - Bugfix to Archive code 2023-01-14 05:50:39 -01:00
PupperWoff
16c4f2719a Added Feature - Cutoff for deletion of threads by OP if they have a certain number of replies. 2023-01-14 05:50:39 -01:00
PupperWoff
e712b12ad9 Added Feature - Warn and Delete [W&D] function 2023-01-14 05:50:39 -01:00
PupperWoff
8544714057 Update and BugFix - Added Links to Archive and Featured Archive and Reload to Thread Pages and Catalog - Added Announcements to Catalog - And Small Bugfix to Announcements where link to [Show all] was wrong 2023-01-14 05:50:36 -01:00
PupperWoff
0b0440b0f3 Bugfix - Small Bugfix for Archive Code (featured archive) 2023-01-14 01:26:50 -01:00
PupperWoff
c015c4a8b4 Update - Updated Archive Code so it can be run in Cron Job 2023-01-14 01:26:50 -01:00
PupperWoff
0ba32d3b1a Added Feature - Added Archive Feature - Archive and Featured Archive 2023-01-14 01:26:46 -01:00
Benjamin Southall
060bbf3040 Add missing post_control template and configuration values for thread merge functionality 2023-01-13 20:55:31 -01:00
PupperWoff
4017822218 Added Feature - Announcements - Create announcements that is displayed on "top" of the site (last n entries) and in a full list in seperate page
Re-written to not require JavaScript or cookies to view or edit.

Co-Authored-By: Discomrade <nice@try.fbi>
2023-01-13 20:55:31 -01:00
Equus
91a6ea2d27 Fix bugs with post cite links
Fixes parentheses around cites (post quotes) - "(>>1)"
Uses lookaheads to prevent regex consuming the space after a post quote, instead of merely checking that it's there. As a result textually consecutive cites could not be separated by a single space.
2023-01-13 20:55:31 -01:00
PupperWoff
b62260d5e4 Added Feature - Premade Ban Reasons (might need some visual tinkering) 2023-01-13 20:55:31 -01:00
Benjamin Southall
73820cd5b4 Add merge thread functionality as a moderator feature (shadow threading and leaving OP is not yet supported) 2023-01-13 20:55:31 -01:00
Benjamin Southall
f458f08989 Add board filter functionality to Recent Posts interface 2023-01-13 20:55:31 -01:00
PupperWoff
f34d25caf2 Quick and dirty fix for - Last 50 post page links - Might not be 100% but some testing will determine that
Also includes "Small fix to noko50"
2023-01-13 20:55:31 -01:00
Benjamin Southall
a6e2485afb Add new fields for pdf_file_thumbail and autotagging / IP note generation of deleted posts to config.php for Deleting posts as mod does not work #104 2022-03-01 09:50:24 -01:00
PupperWoff
5419f49259 Added Functionality - Users can now post from catalog page
Fix multi-image.js is a few commits later
2022-03-01 09:50:24 -01:00
PupperWoff
fcd7976881 Bugfix - Move thread now works with update to handle multiple fileshashes 2022-03-01 09:50:24 -01:00
fallenPineapple
7d8432d5f0 Implementing Warning System to Issue Warnings for Posts
Auto-tagging was omitted as warnings are visible anyway.
Co-Authored-By: Discomrade <nice@try.fbi>
2022-03-01 09:50:24 -01:00
Equus
d5e132b899 Add option for minimum required OP length
(Conflicts with lainchan and clean-up by Discomrade)
2022-03-01 09:50:24 -01:00
fallenPineapple
8b8828ae3b Show ban appeal count
Thank you PupperWof
2022-03-01 09:50:24 -01:00
fallenPineapple
c8821a3dec Add moderation tools for file banning
Thank you PupperWof
2022-03-01 09:50:24 -01:00
fallenPineapple
83f40a7e4b Hide referrer. 2022-03-01 09:50:24 -01:00
Benjamin Southall
b54d414bc4 Implemented mods can't access random from dashboard #88. Please note this doesn't use mod custom_pages functionality provided by vichan (because the that only works if your overboard has name that doesn't look like other boards), and requires ['overboards'] to be set as an array of board uri's which are overboards, with the correct values for type (theme type e.g. ukko, rand or semirand) title, subtitle, thread_limit and exclude in array of for each board uri 2022-03-01 09:48:01 -01:00
Benjamin Southall
e3c2f0ef71 Add additional valid inputs for multi-url file upload for ['spam']['valid_inputs'] 2022-03-01 09:48:01 -01:00
Benjamin Southall
fb66ff58d4 Add support for multiurl file upload fields to valid input whitelist for spam filter. 2022-03-01 09:48:01 -01:00
Benjamin Southall
96aaab0e6d [autotagging] Deleting all posts by IP (D++) doesn't seem to work properly #87 Changing query inside the while loop to query2 in order to delete all posts, not just the first post. 2022-03-01 09:48:01 -01:00
Benjamin Southall
59d83ab7de Thumbnails for PDFs / other things #6 When locale fails to be loaded fallback on C.UTF-8 instead of C, so that boards with unicode characters in the name are not stripped by escape_shell_args 2022-03-01 09:48:01 -01:00
Benjamin Southall
f4cb143945 Add JSON interface to Recents Posts functionality, e.g. mod_recent_posts 2022-03-01 09:48:01 -01:00
Benjamin Southall
b9152ceea6 #87 Attempt to change the error message associated when using deletebyip e.g D++ with autotagging of deletions enabled. 2022-03-01 09:48:01 -01:00
Benjamin Southall
79575c84cb Added check for post time being empty string, in order to handle the case that occurs when a deleted post is deleted a second time. 2022-03-01 09:48:01 -01:00
Benjamin Southall
0d4197da85 Add autotagging feature for deletion. E.g. automatically generate an IP note when a post is deleted by moderator action. 2022-03-01 09:48:01 -01:00
Benjamin Southall
6a2ffda7e0 Add min_body configuration option for post too short check 2022-03-01 09:48:01 -01:00
Benjamin Southall
5efe6d272d Added support for anonymous name generator to be a function in addition to being an array of names 2022-03-01 09:48:01 -01:00
Benjamin Southall
81720b3364 Add support for ignoring URLs when using word filters 2022-03-01 09:48:01 -01:00
Benjamin Southall
32007237f6 Changing wording of post filtering when action is not set from throttled to blocked at user request. 2022-03-01 09:48:01 -01:00
jove
bd19433776 Fixes two bugs preventing replies from being moved. 2022-03-01 09:48:01 -01:00
jove
72382a07f9 Fixes an error reporting typo. 2022-03-01 09:48:01 -01:00
Michael Walker
81aed5f42f Trim leading newlines and trailing whitespace from code blocks. 2022-03-01 09:48:01 -01:00
8512321669 Fix redis 'delete' deprecation error
Redis deprecated the 'delete' alias for 'del'. Posting while using redis cache would return an error, the post would still be posted.
2022-01-16 23:50:25 -05:00