Commit Graph

2120 Commits

Author SHA1 Message Date
admin
fa9f0ce6f3 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-02-03 11:56:36 -05:00
admin
d20330f391 deleted unneccessary looping queries in EntityCache 2021-02-03 11:56:22 -05:00
Fosco Marotto
584482f325 Fix explore page correctly. 2021-02-03 11:55:57 -05:00
Fosco Marotto
4e0605165d Fix explore page. 2021-02-03 11:32:25 -05:00
admin
7d8ecac125 Update elastic_apm.yml 2021-02-03 15:17:38 +00:00
admin
6a620f388e Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-02-03 10:13:04 -05:00
admin
80297c4d21 added elastic-apm to gemfile 2021-02-03 10:12:57 -05:00
admin
82bdbbcb5f added elastic apm and fixed session updated_at bug 2021-02-03 10:12:05 -05:00
mgabdev
dd8531237d Added filter in account moderation to for spam
• Added:
- filter in account moderation to for spam
2021-02-03 00:58:58 -05:00
mgabdev
33f4bc4650 Added button to reset a spam bool on an account
• Added:
- button to reset a spam bool on an account in admin dashboard
2021-02-02 21:11:48 -05:00
mgabdev
e047a50967 Fixed issue with statuses moderation interface
• Fixed:
- issue with statuses moderation interface
2021-02-02 20:49:01 -05:00
Fosco Marotto
b06afbcd4a [spam] Hide statuses from accounts marked as spam. 2021-02-02 15:17:04 -05:00
mgabdev
496f624c3a Updated IP in captcha
• Updated:
- IP in captcha
2021-02-02 14:20:27 -05:00
mgabdev
6b6cd76bb2 Merge branch 'feature/adding_sign_up_captcha' of https://code.gab.com/gab/social/gab-social into develop 2021-02-02 12:01:15 -05:00
Fosco Marotto
e4527e5210 Remove scout apm 2021-02-01 15:04:16 -05:00
Fosco Marotto
440a1ce6ff Minor changes to workers. 2021-02-01 03:43:56 -05:00
rubic0n
02bbe4304b Upgrade to Puma 5.2.0 (from 5.1.1)
Most notable change:
10x latency improvement for MRI on ssl connections by reducing overhead

https://github.com/puma/puma/releases/tag/v5.2.0
2021-02-01 00:00:43 -06:00
rubic0n
87c41ede7a Load Rails 6.0 defaults and remove 6.0 migration initializer 2021-01-31 17:39:13 -06:00
rubic0n
8c018b8088 Don't autoload in initializers: SidekiqErrorHandler
DEPRECATION WARNING: Initialization autoloaded the constant
SidekiqErrorHandler.
2021-01-31 17:39:13 -06:00
rubic0n
497ec0c1db Teach Zeitwerk that REST is the class name, not Rest
Also add a comment about the inflector settings.

NameError: uninitialized constant InitialStateSerializer::REST
Did you mean?  Rest
/vagrant/app/serializers/initial_state_serializer.rb:7:in `<class:InitialStateSerializer>'
/vagrant/app/serializers/initial_state_serializer.rb:3:in `<main>'
2021-01-31 17:39:13 -06:00
rubic0n
bee832d4ef Fix Zeitwerk load error for SanitizeConfig
"expected file app/lib/sanitize_config.rb to define constant
SanitizeConfig"
2021-01-31 17:39:13 -06:00
rubic0n
2b9144d50c Fix "NameError: uninitialized constant Exceptions"
Zeitwerk operates on files in the autoload paths. Since the
entire "app" directory is autoloaded, all files inside need to
play by Zeitwerk's rules. Zeitwerk expects that a file named
"exceptions.rb" would define a constant named "Exceptions".

The exceptions file doesn't follow Zeitwerk's conventions.
The easiest way to solve this is to move the execptions out of
app/lib and into lib, where `require_relative` doesn't have
Zeitwerk taken into account.
2021-01-31 17:39:13 -06:00
rubic0n
f77fa3ca4a Fix autoloading in initialization
DEPRECATION WARNING: Initialization autoloaded the constants
ActionText::ContentHelper and ActionText::TagHelper.

https://github.com/rails/rails/issues/36546

Rails has a Railtie that will take the config setting out of Rails
config, and put it onto ActionController when ActionController is
loaded. Calling ActionController in the initializer forces it to
autoload right now. Referencing the setting through the config allows
it to autoload in when it needs to.
2021-01-31 17:04:58 -06:00
rubic0n
2f95b0d67e Enable remaining settings
- use_cookies_with_metadata
  Provided extra options for cookies. Existing cookies will work fine.
  https://github.com/rails/rails/issues/36546
- return_only_media_type_on_content_type
  Include the charset in the content type. Looking at the headers that
  are being returned, it already did this.
- Use Zeitwerk as the autoloader
  https://github.com/fxn/zeitwerk
2021-01-31 17:04:58 -06:00
azuregc7
48ba509234 Merge branch 'feature/homefeed_cte' of https://code.gab.com/gab/social/gab-social into feature/homefeed_cte 2021-01-30 21:50:18 -08:00
azuregc7
738584c1b1 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/homefeed_cte 2021-01-30 21:48:13 -08:00
azuregc7
b793f5f908 [home] Remove duplicate reposts from timeline feed, improve query performance, and increase batch size 2021-01-30 21:45:35 -08:00
azuregc7
0b03e79889 [home] Remove duplicate reposts from timeline feed, improve query performance, and increase batch size 2021-01-30 20:24:57 -08:00
Fosco Marotto
58cc000b0f [scout] Monitor is off by default. 2021-01-30 22:45:23 -05:00
Fosco Marotto
8b8e8ec8e5 [scout_apm] Add scout apm to Gemfile, add config file 2021-01-30 21:19:12 -05:00
Fosco Marotto
3196dfbda9 Fix and re-enable user activity update 2021-01-30 01:49:22 -05:00
Fosco Marotto
8b701c11e3 Re-enable session activity update 2021-01-30 01:38:43 -05:00
Fosco Marotto
0587875a75 Fix current_resource_owner caching implementation 2021-01-30 01:27:11 -05:00
Fosco Marotto
c84e7e3451 [mark_read] first pass at quickly re-enabling this endpoint 2021-01-29 20:20:52 -05:00
Free Speech Forever
75d041af77 Merge branch 'requested_messages_unnecessary_queries' into 'develop'
Remove unnecessary queries from requested conversations count

See merge request gab/social/gab-social!50
2021-01-29 05:09:04 +00:00
Fosco Marotto
7a3cbe60ec [temp] Disable mark_read and some failing updates until they can be fixed. 2021-01-28 20:51:05 -05:00
admin
cf691f491c Update application_controller.rb 2021-01-28 21:12:29 +00:00
admin
d0b1f28430 Merge branch 'feature/rails_6' into 'develop'
Upgrade to Rails 6

See merge request gab/social/gab-social!52
2021-01-28 17:01:42 +00:00
admin
ef20054f47 Revert "merging rails_6 with develop"
This reverts commit a417cdcde6
2021-01-27 21:29:55 +00:00
admin
a417cdcde6 merging rails_6 with develop 2021-01-27 16:17:08 -05:00
admin
87138932a0 Merge branch 'gab_provision' of https://code.gab.com/gab/social/gab-social into develop 2021-01-27 16:16:48 -05:00
Fosco Marotto
05e95cf090 [session_activations] Stop needless updated_at changes 2021-01-27 16:08:39 -05:00
Fosco Marotto
2b99918b26 Group admins can't leave by clicking 'member' button 2021-01-27 12:16:49 -05:00
Fosco Marotto
3d06e94595 [fix] Logged out user session issue. 2021-01-27 00:24:54 -05:00
admin
0120a2b361 Merge branch 'feature/session-cache' into 'develop'
Session and user caching

See merge request gab/social/gab-social!51
2021-01-26 23:33:22 +00:00
admin
132c46ac9a Session and user caching 2021-01-26 23:33:22 +00:00
mgabdev
e9cc73857b Removed extra sign up button on registrations page
• Removed:
- extra sign up button on registrations page
2021-01-26 15:21:11 -05:00
mgabdev
a3ef16bc8c Added captcha for sign up form
• Added:
- captcha for sign up form
- empty ENV variables for: GAB_CAPTCHA_SECRET_KEY, GAB_CAPTCHA_CLIENT_KEY to be configured within captcha.gab.com
- Script insertion within registrations/new.html.haml containing instantiation for captcha.gab.com with our client key and challenge buster
- Div within registration form for #gab-captcha for the challenge to get inserted within
- Checks in RegistrationsController for captcha verification using server token (automatically generated in form), secret [server] key before checking if username/password/email is valid
2021-01-26 15:04:05 -05:00
Fosco Marotto
21096c523d [streaming] disable chat endpoints. 2021-01-25 16:53:58 -05:00
mgabdev
dcbbd51d2a Removing chat messages stream for now
• Removing:
- chat messages stream for now
2021-01-25 16:38:22 -05:00