Commit Graph

570 Commits

Author SHA1 Message Date
Azareal 14b098bac2 Add DisableStdout config setting.
Add DisableStderr config setting.
Eliminate boilerplate in main.go
Increase the number of cached q strings.
Use the ErrLogger in LogError() and LogWarning()
Add the experimental LocalErrorf()
Add Err() log function.
2021-04-07 12:10:05 +10:00
Azareal 7b3cf6877f add basic support for ipns uris 2021-04-05 17:56:38 +10:00
Azareal ba1d68eea7 add basic support for ipfs links
shorten data variable names
add five parser tests
2021-04-05 16:03:53 +10:00
Azareal a4ba5a2470 Optimise part of fout with string builders in the template generator. 2021-03-29 06:57:49 +10:00
Azareal cb2efa0d31 Optimise template list generation.
Remove dead code.
2021-03-28 18:24:48 +10:00
Azareal 6b645f7b88 Add Config.DisableBadRouteLog setting.
Surface more errors in template_init.go
Dump unknown UAs properly when DisableSuspLog is enabled.
2021-03-26 09:06:35 +10:00
Azareal f6a94d39d6 Set the metadata for the last reply rather than the first in a topic when a reply is deleted.
Add tests to check the LastReplyID for a topic before and after a reply is deleted.
2021-03-25 19:04:02 +10:00
Azareal c1343136c6 Update Topic.LastReplyID properly. 2021-03-25 06:01:40 +10:00
Azareal 300defd460 Add TopicListIntTest interface.
Use inqbuild2 in DefaultTopicList.Tick.
Avoid doing a full paginator calculation in the topic list when the result is obvious.
Add defaultPagi and setForumList methods to DefaultTopicList.
Cache two more items in qcache.
Use a string builder in inqbuild and inqbuildstr.
Add the inqbuild2 function.
Reduce boilerplate in topic.go
2021-03-24 22:07:46 +10:00
Azareal 26e8bf32a7 Add GetForRenderRoute to DefaultAttachmentStore.
Use ErrCorruptAttachPath in DefaultAttachmentStore.
Consider the possibility that the requested attachment doesn't have a file extension.
Rename variables to reduce boilerplate.
Add TestThaw.
Avoid an allocation in hookgen.

Add route_attach_start hook.
Add route_attach_post_get hook.
2021-03-24 21:45:18 +10:00
Azareal d47540391a Add Config.LogDir and Config.DisableSuspLog settings.
Reduce default Config.PostIPCutoff from 120 to 90.
Add another startup log call.
2021-03-24 18:08:37 +10:00
Azareal f073f29a09 detect seostar, pandalytics, pagething user agents
detect kw iso code
fix suspicious req pre lines being mashed onto one line
2021-03-24 06:59:34 +10:00
Azareal 1fa6b3ff26 Optimise MemoryForumPermsStore by splitting recalcCanSeeAll out of Reload and only calling it once.
Reduce the amount of lock contention in recalcCanSeeAll by only loading each forum once.
Stop logging the group ID twice in recalcCanSeeAll.
Add the CacheAdd method to GroupCache and use it.
Reduce the amount of boilerplate.
2021-03-22 19:58:13 +10:00
Azareal 4126e8ed0c add qwant, xenforo, twingly, linkfluence, and new toutiao user agent.
add Users.CountSearch test cases.
add Users.SearchOffset test cases.
add more Users.Count test cases.
add more Users.BulkGetByName test cases.
reduce boilerplate in other tests.
fix bugs in Users.CountSearch and Users.BulkGetByName
2021-03-02 17:22:32 +10:00
Azareal f20b0bd936 Add BulkIsBlockedBy method to BlockStore.
Add TotalP to accCountBuilder.
Add EachP to AccSelectBuilder.
Add expectf.
Add more conversation test cases.
Refactor conversation tests.
Add block tests.
2021-02-27 16:13:03 +10:00
Azareal 9437561c76 Add BulkGetByName method to UserStore.
Add RawBulkGetByNameForConvo method to UserStore.
Add ErrSomeUsersNotFound error.
User Manager Search Experiment.
De-duplicate common user store scan logic.
Use inqbuild in BulkGetMap in UserStore.
2021-02-27 07:22:36 +10:00
Azareal 8decc0c1a8 add flif, heif, heic, bpg and opus to allowed file extensions
add flac web audio extension
eliminate aloocs with inqbuild and inqbuildstr
2021-02-19 13:28:20 +10:00
Azareal b66aeac966 fix some parser corner cases
add more parser test cases
2021-02-19 12:51:13 +10:00
Azareal 2176147dec fix parser tests
expand parser tests
2021-02-18 23:02:54 +10:00
Azareal f2adb7dfac add AutoLink permission
eliminate pointless arithmetic in the parser
possible fix for creating group promotions

add AutoLink phrase
2021-02-18 21:40:42 +10:00
Azareal f69e077347 user manager: search by group
UserStore:
modify SearchOffset method signature
modify CountSearch method signature

phrases:
add panel_users_search_group
add panel_users_search_group_none
add panel_users_search_title

add missing paginator_mod template x.x
eliminate bytes here and there
2021-01-20 09:47:08 +10:00
Azareal c9e99c075d basic user manager search
reduce template sizes
add PaginatorMod struct

UserStore:
add SearchOffset method
add CountSearch method

phrases:
add panel_users_search_head
add panel_users_search_name
add panel_users_search_name_placeholder
add panel_users_search_email
add panel_users_search_email_placeholder
add panel_users_search_button
2021-01-19 08:11:30 +10:00
Azareal 74193223ee log errors properly in ForumsOrderSubmit
fix tiff extensions in canResize check
reduce boilerplate
2021-01-06 16:41:08 +10:00
Azareal 74e0ce492d Weekly Views.
Add avif mime extension.
Optimise skipping watched files which haven't been changed.
Block zgrab to save resources.
Reduce text and boilerplate.

Add route_topic_list_weekviews_start hook.

Add topic_list.week_views_filter phrase.
Changed footer_powered_by phrase.

You will need to run the updater / patcher for this commit.
2021-01-03 07:46:24 +10:00
Azareal 43bace814d update .link_most_viewed properly on page transitions
reduce variable lengths
remove redundant thaw
2020-12-18 11:04:07 +10:00
Azareal f27d4a4c33 working on weekly views
fix forum topic list not being updated on new topic
2020-12-18 08:54:44 +10:00
Azareal ed201f1898 thaw the topic lists when a new topic is made 2020-12-18 08:26:29 +10:00
Azareal 08be6ca402 fix noavatar cap bug 2020-12-18 07:13:31 +10:00
Azareal 79055994bd imagine if travis actually worked 2020-12-18 06:38:30 +10:00
Azareal 1e3a2f4cd6 wrap noavatar uids at 10
fix noavatar uid loop
n5 pngcrush
2020-11-09 16:28:14 +10:00
Azareal b8c570c87e vscode bug 2020-11-09 16:18:03 +10:00
Azareal f95c4c12e6 double the number of cached noavatars 2020-11-09 16:12:08 +10:00
Azareal fb426bda4b add avif, flac, ac3, aac, f4v, xvid, mov, movie, qt, xpi, docx and pdf file extensions 2020-10-21 14:31:33 +10:00
Azareal 86f2b96ba0 flv file extension
delete lesbian spammy domain bit
2020-10-21 07:31:51 +10:00
Azareal e47c531e5a most viewed now works on dynamically loaded topic lists
show opts on empty forums
2020-08-21 08:18:54 +10:00
Azareal a1d5248b45 alt anti-spam experiment
add register_account_verify_image phrase
2020-08-15 12:44:08 +10:00
Azareal 7d3085ce90 long topics should render properly again
try to simplify TopicsRow
2020-08-15 12:37:56 +10:00
Azareal 40783f00da link forum list last topics to last pages 2020-08-13 13:26:02 +10:00
Azareal 9fd88bd6bc verify Site.URL on start-up 2020-08-13 09:46:10 +10:00
Azareal fbed07a8b4 add m4a file extension 2020-08-12 18:24:41 +10:00
Azareal e9819389af cover avatars with AvatarResBase config setting 2020-07-31 22:45:20 +10:00
Azareal 4606a49886 add tgz file extension 2020-07-31 15:58:17 +10:00
Azareal 4680aef783 set RefNoRef to true when using an external domain for StaticResBase 2020-07-31 15:53:33 +10:00
Azareal f502bf4f53 subresource integrity 2020-07-31 15:33:29 +10:00
Azareal 26ad61057a cover dynamically loaded static resources
cover default noavatars
2020-07-31 09:40:14 +10:00
Azareal 43d72e6f3b wip allow for more cdns
add res template function
add ExtraCSPOrigins config setting
add StaticResBase config setting
skip flush directives
2020-07-30 18:10:29 +10:00
Azareal ed64b8f29b eliminate allocs for getting static resources
optimise two char emoticons
add 30 parser tests
2020-07-26 14:36:40 +10:00
Azareal be609b47ce new modtools ux
- don't allow users to select things they shouldn't be able to
- hide mod options the user doesn't have access to
- highlight options which can be selected
- stop counting topics twice when they're clicked on multiple times

fix modtools not opening in some cases
fix command orders in batch files
fix global.js's getExt()
reduce boilerplate
2020-07-19 13:26:56 +10:00
Azareal 0c230e12ec add WSUser.WriteToPageBytesMulti 2020-07-16 20:51:34 +10:00
Azareal 96b61078c5 hide modtool options we don't have access to on forum and topics pages
use hookgen for route_topic_list_start hook
add route_topic_list_mostviewed_start hook
2020-07-15 18:27:36 +10:00