Commit Graph

525 Commits

Author SHA1 Message Date
Azareal 01a692ab5b Added the word filter store and moved the word filter routes into the route package.
Added tests for the word filter store.
Added qgen.NewAcc() to reduce the amount of boilerplate needed for creating an accumulator.
Exposed the RecordError method on the accumulator.
Added an Add method to PluginList and removed AddPlugin() in favour of that.

More panel buttons on Nox should be styled now.
Added the panel_update_button_text phrase for future use.

More errors might be caught in the thumbnailer now.
Removed ls from .travis.yml, it was there for debugging Code Climate.
2018-08-04 21:46:36 +10:00
Azareal 8e81f922ea Added some new test cases to catch more things and to see if the statistics on Code Climate change.
Added more TODO ideas for changes.
Removed an unused field from LanguagePack.
2018-07-31 14:02:09 +10:00
Azareal d0e7b1c982 Apparently, it worked even though it spat out an error /shrug 2018-07-30 19:06:57 +10:00
Azareal 05e916ce2a Fixing up the user dashboard on Tempra Simple.
Missed a spot of CC.
2018-07-30 19:00:41 +10:00
Azareal 73e1f34257 Don't waste time with Code Climate Test Reporter anymore. Removed. 2018-07-30 18:43:48 +10:00
Azareal aefaa5ae1a Try chmod 777, if this doesn't work, I'm not sure what to do about CC tbh 2018-07-30 18:36:58 +10:00
Azareal 71361e3ca0 What is even in this folder at this point of execution 2018-07-30 18:31:13 +10:00
Azareal c5e6f69780 Yeah... I kinda give up 2018-07-30 18:23:39 +10:00
Azareal a1534498cd Grr... 2018-07-30 18:16:30 +10:00
Azareal 2b4ed1d70e Those tests were too thorough, even reaching into sections which aren't quite implemented.
Added new rules for commits which introduced database changes.
2018-07-30 18:09:08 +10:00
Azareal e46e8685a3 An official CC example says this... 2018-07-30 18:02:29 +10:00
Azareal 928121fe7c Bad SO answer, tweaked. 2018-07-30 17:53:11 +10:00
Azareal f55dc5f04f Did Code Climate not have read? 2018-07-30 17:49:27 +10:00
Azareal 91bfd334cc Added the build status to the README, people seem to like these badges, very fashionable. 2018-07-30 16:04:26 +10:00
Azareal 701d3f296b x.x 2018-07-30 14:21:30 +10:00
Azareal c42af97ec3 Let's try a slightly different approach to try to get CC to work 2018-07-30 14:18:36 +10:00
Azareal 26f8c3e50d Make sure gocov is setup on Travis, slightly dated coverage tool, but it seems to be the easiest one to setup. 2018-07-30 14:12:03 +10:00
Azareal 57787f94fa Maybe this? 2018-07-30 14:07:13 +10:00
Azareal 9c9ded171d Comment out some of the tests which aren't really meant to succeed. 2018-07-30 13:57:02 +10:00
Azareal 105448f2ba Experiment with Code Climate on Travis. 2018-07-30 13:48:30 +10:00
Azareal d73ece6445 Start phasing out Tempra Conflux. 2018-07-30 12:51:22 +10:00
Azareal 7691078ce5 Fixed a bug in AddHook where the indices of the hooks would be off by one.
RemoveHook now panics under conditions which should normally never happen, but which when it does, gives off a far more useful message.
Changed the order of the conditional after BypassActive in PluginsDeactivate, so the error message will show up now.
The deactivation handler is optional again for plugins.

Added more tests for the plugin system.
2018-07-29 23:02:48 +10:00
Azareal 50d5be6f32 Moved the plugin manager to the routes package.
Added many, many tests for the plugin system.
Refactored some of the plugin system queries.

Fixed a bug where prepared statements would build up and crash Gosora.
Removed the inline CSS from the plugin rows.
2018-07-29 20:54:12 +10:00
Azareal d74a221467 Move the thumbnailer task closure into thumbnailer.go 2018-07-29 14:34:28 +10:00
Azareal f9a579ae4d Move the tickloop logic into it's own file. 2018-07-29 14:17:17 +10:00
Azareal c25b289076 Moved the HTTP server initialisation logic into it's own function and made it a little more flexible for some upcoming changes. 2018-07-29 13:31:09 +10:00
Azareal 3aeee419c1 Added support for re-encoding GIFs, hopefully this'll work with animated avatars.
Fixed a bug where jpgs wouldn't get re-encoded.
2018-07-29 00:51:24 +10:00
Azareal 0a628f7201 PNG and JPG avatars are now encoded as JPG images leading to a dramatic drop in the amount of bandwidth used.
Did some work on image thumbnailing, but our dependencies are acting up delaying this from being released.

Fixed the positions of the topic list bits for Nox on mobile.
Removed APNG as an accepted image format, as we don't currently have a good way of optimising these images.
Added a comment regarding the constant time compare for sessions.
Added a warning about putting Gosora in www folders.
Noavatars can now take a width parameters.
Added a bit of missing validation for the avatar uploader.
Refactored the multiple file detector for the avatar uploader.

Added a Run method to accDeleteBuilder.
Added an EachInt method to AccSelectBuilder.
Added a Run method to accInsertBuilder.

Added the users_avatar_queue table, you will need to run the patcher / update script.
You might also want to update the Noavatar field in your config.json file with the new one.
2018-07-28 22:52:23 +10:00
Azareal cee027cc7f Added more information on hardening the database. 2018-07-26 16:44:04 +10:00
Azareal 2e77ef716d Go for the safer and faster curves for HTTPS. 2018-07-26 16:15:49 +10:00
Azareal 3b0b2485d7 Move some bits around and fix other bits. 2018-07-25 19:53:24 +10:00
Azareal a5761f1679 Added some new installation instructions, we might want to harden some of these guidelines, although we might create trouble in some environments where we don't have root, if we go too overboard. 2018-07-25 19:44:23 +10:00
Azareal 5dcfd2633b The systemd example service file should work now. 2018-07-24 18:45:01 +10:00
Azareal 35d0facf06 Reverted the changes to run-linux due to scoping issues breaking it. 2018-07-24 16:52:55 +10:00
Azareal affdf67273 Made progress on Nox, fixed a phrase, and added a couple of missing phrases.
Nox now supports bulk moderations.
Began work on mobile with Nox.
Made several visual improvements for Nox.
Updated the service example.
2018-07-24 15:41:08 +10:00
Azareal 17892ba906 Tweaked the phrases for the actions to make them flow better, we still need to localise these. 2018-07-20 18:00:17 +10:00
Azareal 60bf821f8a Do constant time compares for sessions for security reasons. 2018-07-20 17:58:59 +10:00
Azareal e62f6a4868 Added an experimental systemd service file. 2018-07-20 14:59:11 +10:00
Azareal 75a6ceca84 Added a missing bounds check in peekMatch. 2018-07-18 16:36:16 +10:00
Azareal e5ef86b59c Added user sharding to WsHubImpl to help reduce the amount of lock contention in the upcoming features which will rely heavily on it. 2018-07-18 16:32:48 +10:00
Azareal 101d4522fa Trying to reduce the number of duplicate commands in the shell files. 2018-07-16 16:27:34 +10:00
Azareal d0907134ef Database connection drops are handled better now. 2018-07-15 20:29:31 +10:00
Azareal 9c6af9dd01 Design update. I'm trying to break the commits into more chunks to get a better idea of what's going on
Moved the topic_closed and topic_sticky classes to the topic_row element to make things more flexible.
Tweaked the padding in the account manager for Nox.
Removed some text which is immediately overwritten anyway in mod_floater.

Began work on bulk moderation for Nox.
2018-07-15 15:00:48 +10:00
Azareal 2a5ab2969c Added Caire and pkg/errors as dependencies.
Made the initialisers and the task runner in main.go easier to debug.

Added form_button_row to a few forms.
Bumped up the attachment image size for Cosora.
Hid the formlabels for the setting editor for Cosora to make it cleaner.
Revamped the account manager with the same CSS as in the Control Panel for Nox.
Started adding the_form to more forms.
Removed the account_emails CSS class from the email editor.
Continued tweaking the Control Panel in Nox to make it look nicer.
Tweaked some of the headers in the Nox Theme.
Added the Create Topic and Moderate options to the topic list on the Nox Theme, although the bulk moderation tools aren't available yet.
Tweaked the padding and sticky shades on the topics on the topic list on the Nox Theme.
Closed topics are now somewhat styled on the topic list on the Nox Theme.
Continued work on the topic pages for Nox.

Renamed Admin Approval to Staff Approval in the English Language Pack.
Added more phrases for the Group Manager and Panel Menu in spots I overlooked.

Began work on the dyntmpl template function.
Be sure to run the patcher / update script to get the new setting.
2018-07-13 21:27:58 +10:00
Azareal 0f2503a20c Made it harder to parse the antispam script.
Used Unicode magic to make it harder to parse the antispam trap question.
Added more shady email substrings.
Tweaked the contributing guidelines, no more await allowed... For now.
Might already have Git, note that.
Added the the_form class to the login form, registration form and login mfa form.
Made the titles on the Control Panel Dashboard and Debug page a little softer on Cosora.

Added the quick topic form to Nox.
Made the topic pages somewhat usable on Nox.
2018-07-05 19:54:01 +10:00
Azareal 3043ce083d Basic proxy IP support.
Switched out a couple of <a>s in the Control Panel with <h1>s, we might want to use <h2> here instead.
Added graphs for Nox.
Tweaked header markup for Nox.
Added support for live topic list to Nox.
Added styling for stickies on Nox.
Fixed topic list text overflow on Nox.
2018-07-03 20:01:49 +10:00
Azareal 2319548e1f Added some heuristics for detecting suspicious emails. 2018-06-30 20:22:39 +10:00
Azareal c640a73afd Fixed a crash bug in the post preparser.
Moved tryStepForward out of PreparseMessage()
Added another test for PreparseMessage()
2018-06-30 14:34:07 +10:00
Azareal bf40d61474 Live Topic List should work properly now with replies too, not just new topics.
Tweaked the visuals for the live topic list on Cosora. More to come with this.
Nox Theme is now present on the theme selector, although it's still under construction.

Improved SEO for social media.
Added the topic_list tmpl phrase prefix.
Added the topic_list.changed_topics phrase.
Added a few more PreparseMessage tests.
Session cookies should now be deleted after you logout, not just blanked.
2018-06-30 13:40:50 +10:00
Azareal 5d810c1e3b We now use SameSite cookies for sessions #security 2018-06-29 14:14:51 +10:00