Commit Graph
23 Commits
Author SHA1 Message Date
Macil Tech 1d4fced75a pm_snippet() should probably use mb_substr if it's using mb_strlen. 2013-06-18 11:12:31 -05:00
Macil Tech 3bcc87caf2 Fix PM count caching.
cache::get() returns null if the key wasn't found (at least when using
the Redis cache backend).
2013-06-18 11:02:45 -05:00
Macil Tech 879f20ec72 Reworked index() slightly to make caching simpler and only use one key. 2013-01-27 21:32:22 -06:00
Macil Tech 970b6e8376 Add Redis caching support.
Compatible with the phpredis extension:
https://github.com/nicolasff/phpredis
2013-01-22 20:22:16 -06:00
Macil Tech 0da1c18a7f Add field_disable_subject and field_disable_reply_subject config options. 2013-01-19 01:37:48 -06:00
Macil Tech f01813d95b Remove now redundant single-column thread key from posts_* tables. 2013-01-19 01:20:55 -06:00
Macil Tech 3a9ed90c58 Incorrect parameter type.
The parameter was bound with the wrong type. I guess the type isn't
enforced judging by how the code still seemed to work, but it probably
should be fixed.
2013-01-19 00:39:30 -06:00
Macil Tech 7eef94e04e Fix transforming links to mod links in OP posts.
Similar regexes are called for threads and posts, but they differed
needlessly, and the thread regex would drop anything between the `<a`
and `href="` parts. This makes them both the same and functional.
2013-01-19 00:39:30 -06:00
Macil Tech 90ada24ddc Insert into posts table using named columns.
Makes it easier to update the posts table schema.
2013-01-19 00:39:29 -06:00
Macil Tech 5628f78970 Made deleting posts by IP more efficient.
No longer rebuilds same thread multiple times.
2013-01-19 00:39:29 -06:00
Macil Tech 0092fc62ab Extend timelimit when rebuilding from mod interface.
The rebuild_timelimit config option was not used anywhere since the mod
interface rewrite.
2013-01-19 00:39:29 -06:00
Macil Tech 67ab3760ba Removed redundant code in image processing.
Both paths of the code here did the same thing.
2013-01-19 00:39:29 -06:00
Macil Tech f2d3e45fd3 Handle posts without filenames.
If a post doesn't have a filename (such as because of a post event
changing it), then don't show an empty filename with the post.
2013-01-19 00:39:29 -06:00
Macil Tech 322b902c8a Fix incorrect log message when bumplocking and stickying threads. 2013-01-19 00:39:29 -06:00
Macil Tech fda99305ae Global missing from mod_logout 2013-01-19 00:39:29 -06:00
Macil Tech 9007640e88 Don't do anything if a mod link is middle-clicked.
This lets Chrome users open mod actions in a new tab by middle-clicking,
as Chrome still calls the onclick event when middle-clicking unlike
Firefox.
2013-01-19 00:38:44 -06:00
Macil Tech 91e8547b04 Add image_reject_repost_in_thread option 2013-01-19 00:25:24 -06:00
Macil Tech b1c1a25c26 Add (thread, id) multi-column key to optimize rebuilding index pages.
This SQL command can be used to add the key to existing board tables:
create index `thread_id` on posts_%s (`thread`, `id`);
2013-01-19 00:13:01 -06:00
Macil Tech 00bd5e8d20 Remove buildThread() call from mod_deletefile because deleteFile()
already calls it.
2013-01-18 23:13:08 -06:00
Macil Tech b63d94838d Do truncation by actual character count.
Using substr can cut a multi-byte character in half.

Also, if a long post with many multi-byte characters was reported, then
the mod interface would temporarily extend the body_truncate_char
setting to be sure to cover all of the *characters* in the report, but
this function would interpret body_truncate_char as a number of *bytes*,
so sometimes the end of the report's appended html would be cut off.
2013-01-18 18:26:25 -06:00
Macil Tech 948dfe8555 Don't truncate inside an HTML comment! 2013-01-18 18:26:25 -06:00
Macil Tech 46f50248f0 Don't require closing tag for tags that don't need it. 2013-01-18 18:26:25 -06:00
Macil Tech bec9f21787 Antibot make_confusing fix 2012-08-25 07:52:37 -06:00