Commit Graph

1997 Commits

Author SHA1 Message Date
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
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
mgabdev 5600c94f5a Fixed issue with active icons in action bar for like, repost if no active user
• Fixed:
- issue with active icons in action bar for like, repost if no active user
2021-01-25 16:01:55 -05:00
mgabdev 48ecd800cf Removed chat counters in admin account dashboard
• Removed:
- chat counters in admin account dashboard
2021-01-25 16:00:49 -05:00
mgabdev 154aaecc5f Updated StatusFilter private scope functions
• Updated:
- StatusFilter private scope functions
2021-01-25 15:58:52 -05:00
mgabdev b4ba3c70ef Revert streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11
• Revert:
- streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11
2021-01-25 15:52:52 -05:00
mgabdev e8a436f865 Fix issue with first return value of FetchLinkCardService.html method
7f1c56954b
2021-01-25 15:50:10 -05:00
mgabdev ba4fb61712 Fixed issue in account StatusesController pagination for cached timelines
• Fixed:
- issue in account StatusesController pagination for cached timelines
2021-01-25 15:45:11 -05:00
mgabdev 4f3df89911 Removed unused chat_messages route from Navigation for admin dashboard
• Removed:
- unused chat_messages route from Navigation for admin dashboard
2021-01-25 13:52:52 -05:00
mgabdev bda2f6b60f Removed Chat link from HomePage
• Removed:
- Chat link from HomePage
2021-01-25 13:02:26 -05:00
mgabdev fdef75a4f5 Removed chat buttons from ProfileHeader, DeckSidebar
• Removed:
- chat buttons from ProfileHeader, DeckSidebar
2021-01-25 12:42:46 -05:00
mgabdev 081f59c872 Removing Chat/Dms for now
• Removing:
- Chat/Dms for now
2021-01-25 12:23:17 -05:00
Fosco Marotto 01d736c6b2 [group] Change group sorting default back to newest. 2021-01-25 10:53:11 -05:00
Fosco Marotto 81489b7a17 [explore] Remove group posts from explore page. 2021-01-25 02:35:10 -05:00
rubic0n 2952c9f59d Simplify db config 2021-01-24 23:57:30 -06:00
rubic0n 1b9349bc52 Remove unnecessary queries from requested conversations count 2021-01-24 23:19:20 -06:00
Fosco Marotto 4adbadddaa [home] Refactor the home timeline query 2021-01-24 20:11:21 -05:00
Fosco Marotto 3f6e8a62fd [groups] Change default sorts for groups and groups collection 2021-01-24 15:21:09 -05:00
Fosco Marotto 1c647b0b06 [reset] cleanup 2021-01-24 13:50:51 -05:00
admin 553ca5afa2 Revert "user master for oauth"
This reverts commit 07b9acc347
2021-01-24 16:36:00 +00:00
admin 5d13162204 Revert "Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop"
This reverts commit ccf98d2002
2021-01-24 16:29:57 +00:00
admin1 ccf98d2002 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-01-24 11:20:23 -05:00
admin1 07b9acc347 user master for oauth 2021-01-24 11:18:02 -05:00
Fosco Marotto d8230aeaa0 Revert "[home] refactor the home timeline query"
This reverts commit d39664b827.
2021-01-23 23:35:52 -05:00
Fosco Marotto d39664b827 [home] refactor the home timeline query 2021-01-23 23:23:55 -05:00