Commit Graph

284 Commits

Author SHA1 Message Date
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 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 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 132c46ac9a Session and user caching 2021-01-26 23:33:22 +00: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
Fosco Marotto 81489b7a17 [explore] Remove group posts from explore page. 2021-01-25 02:35:10 -05:00
rubic0n 1b9349bc52 Remove unnecessary queries from requested conversations count 2021-01-24 23:19:20 -06: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 63ad3a1590 [doorkeeper] Attempt to fix oauth connect issues. 2021-01-23 16:33:48 -05:00
Fosco Marotto 8d09044ee4 [doorkeeper] Attempt to fix oauth connect issues. 2021-01-23 16:18:15 -05:00
Fosco Marotto 588894e2c2 [replication] Try master if replica is missing status. 2021-01-23 14:43:01 -05:00
rubic0n 28beb28a78 Upgrade to Rails 6
- Added listen gem because rails app:update failed without it
- Removes nsa gem because it requires activesupport < 6
  Oddly, there's a newer version per GitHub that's not on RubyGems
  that raises the requirement to < 7. But, we need a new release
  before we can use that.
- Upgrade rails-i18n to v6, for Rails 6 compatibility
- Remove redis-rails since it requires Rails < 6, but we can just use
  the regular Rails :redis_cache_store that was introduced in 5.2.
- Run `rails app:update`
  - Had to weed through the `config/environments` changes to pick up
    newly added settings, while not losing settings that were
    intentionally configured
  - This generated config/initializers/new_framework_defaults_6_0.rb.
    The goal is to uncomment all of the settings in that file. Once
    they're all uncommented, delete the file and edit
    config/application.rb's load_defaults to be 6.0.
  - force_ssl controller method is deprecated in favor of a Rails
    config setting.
  - bin/setup was generated by Rails
  - Verbose query logging in development is really helpful. It shows
    you what line of code caused a query to execute.
  - Calling establish_connection after worker boot isn't necessary
    with ActiveRecord anymore. ActiveRecord handles it gracefully.
  - Rails generated a migration to add a foreign key for ActiveStorage.
    Gab currently doesn't use ActiveStorage, and instead uses Paperclip
    (since ActiveStorage didn't exist when Mastadon started). So, this
    change isn't relevant to Gab.
- Added ` || ''` in the profiles controller, because I was unable
  to save a change to a newly created profile. (This probably
  explains the 500 error I received on prod Gab recently.)
2021-01-23 09:01:31 -06:00
Fosco Marotto 6c2a60b378 Fix previous commit. 2021-01-23 04:30:20 -05:00
Fosco Marotto b33c16b131 Add a date limit on accounts-statusescontroller without auth 2021-01-23 04:27:48 -05:00
Fosco Marotto 958e8aad3a [group_collection] Change to -my groups- timeline 2021-01-23 03:13:47 -05:00
Fosco Marotto 1e5d12497c [group collection] default to hot posts 2021-01-22 00:46:51 -05:00
Fosco Marotto e9cf46b4bc Reverting home timeline changes 2021-01-21 18:05:24 -05:00
Fosco Marotto 852d2f78e9 [sorting query builder] Adjust filtering 2021-01-21 17:37:12 -05:00
mgabdev 51fa8f2eb4 Added/Updated admin dashboard tables
• Added:
- New Account filtering
- PreviewCard viewing/sorting/filtering deleting (todo)
- DeletePreviewCardWorker, Service
- Status viewing/sorting/filtering deleting
- ChatMessage viewing/sorting/filtering deleting (todo)
- Account > Follows view

• Updated:
- LinkBlock to sort alphabetically
- Groups to be under "Moderation" instead of "Admin" in navigation.rb
- Status in admin to have group name/link
- Reports reset button
- Group filtering/sorting
- LinkBlock filtering/sorting
- Account now has bio and few more data points in dashboard
2021-01-19 01:25:25 -05:00
admin 90b752c91d Update statuses_controller.rb CONTEXT_LIMIT to 512 to fix terrible comment performance 2021-01-19 04:58:52 +00:00
Fosco Marotto adf0e7ae72 Logging out takes you to the home page. 2021-01-17 00:57:21 -05:00
Fosco Marotto 2cdce808a3 redis fixes 2021-01-16 14:43:11 -05:00
Fosco Marotto 1214b0664c Redis fixes 2021-01-16 14:38:01 -05:00
Fosco Marotto 8d48c3ce3d Redis connection pooling updates 2021-01-16 13:52:11 -05:00
Fosco Marotto 8b0f566e4f [redis] Example change to redis pooling code. 2021-01-16 13:36:19 -05:00
mgabdev 2a83400d84 Removed unncessary set_data_for_meta before_action in ReactController react route
• Removed:
- unncessary set_data_for_meta before_action in ReactController react route
2021-01-15 15:02:24 -05:00
mgabdev 17af74140e Fixed issue with double render when landing on account or status page
• Fixed:
- issue with double render when landing on account or status page when using "process". Instead now just rendering the page
2021-01-15 15:01:15 -05:00
mgabdev 7bc93ff98f Removed all occurances of "theme" from backend, settings
• Removed:
- all occurances of "theme" from backend, settings

Theme is set in WebSettings through client. And set in <Display />.
2021-01-15 14:35:50 -05:00
mgabdev c33013cccf Added routes for trending_hashtags, expenses
• Added:
- routes for trending_hashtags, expenses
2021-01-15 14:28:52 -05:00
Fosco Marotto 0269c7e107 [cache] Update cache control header 2021-01-14 17:22:41 -05:00
mgabdev 285aa17024 Added search to admin reports page
• Added:
- search to admin reports page
2021-01-14 14:17:05 -05:00
mgabdev 7c6ef8bb9d Removed some Rack configs and moved RackAttack rate limits, headers
• Removed:
- some Rack configs and moved RackAttack rate limits, headers
2021-01-14 13:37:38 -05:00
mgabdev feea5a65bc Fixed issue with account StatusesController
• Fixed:
- issue with account StatusesController
2021-01-14 00:10:00 -05:00
mgabdev fb75f33b12 Updated account, groups relationships routes to post data instead of get
• Updated:
- account, groups relationships routes to post data instead of get
2021-01-13 23:51:44 -05:00
mgabdev 25118d260e Updated account StatusesController
• Updated:
- account StatusesController
2021-01-13 23:10:32 -05:00
mgabdev 129a97c1ee Updated Status comments/context to be visible to logged in users
• Updated:
- Status comments/context to be visible to logged in users
2021-01-13 22:28:09 -05:00
mgabdev 25297df30f Updated Group/Collection,Pins controllers to require user for API
• Updated:
- Group/Collection,Pins controllers to require user for API
2021-01-13 21:45:03 -05:00
mgabdev 6e475f66cb Updated MIN_UNAUTHENTICATED_PAGES to 1
• Updated:
- MIN_UNAUTHENTICATED_PAGES to 1
2021-01-13 21:43:55 -05:00
mgabdev 89a16b101f Updated admin dashboard for ChatConversationAccounts
• Updated:
- admin dashboard for ChatConversationAccounts
2021-01-13 19:12:57 -05:00
mgabdev 6234cde19c Added shortcuts back to sidebar (visible to PRO only for now)
• Added:
- shortcuts back to sidebar (visible to PRO only for now)
2021-01-13 18:46:28 -05:00