Commit Graph

2144 Commits

Author SHA1 Message Date
Fosco Marotto
645def5f96 SessionActivation and groups query change 2021-01-23 18:21:31 -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
admin
4fe747baf7 Merge branch 'rails_6' into 'gab_provision'
Upgrade to Rails 6

See merge request gab/social/gab-social!49
2021-01-23 20:18:28 +00:00
Fosco Marotto
588894e2c2 [replication] Try master if replica is missing status. 2021-01-23 14:43:01 -05:00
Fosco Marotto
41790e4894 Temporarily disable inefficient filter in statuses controller. 2021-01-23 13:13:05 -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
rubic0n
70c29c6cbd Fix "ERR! error: password authentication failed for user "vagrant"" 2021-01-23 09:00:35 -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
940b6eb392 [group_collection] reduce date limit 2021-01-23 03:16:57 -05:00
Fosco Marotto
958e8aad3a [group_collection] Change to -my groups- timeline 2021-01-23 03:13:47 -05:00
mgabdev
3719a6cfd7 Added checks to suspension to for pro, verified, donor, investor accounts
• Added:
- checks to suspension to for pro, verified, donor, investor accounts
2021-01-23 01:41:35 -05:00
rubic0n
590dfc97e1 Run pending migrations 2021-01-22 22:53:38 -06:00
rubic0n
4f4f248fa1 postgresql_makara adapter is Postgres, not MySQL 2021-01-22 22:53:38 -06:00
rubic0n
194971da19 Install Redis 4+ since Sidekiq 5 needs that 2021-01-22 22:53:38 -06:00
Fosco Marotto
1e5d12497c [group collection] default to hot posts 2021-01-22 00:46:51 -05:00
Fosco Marotto
d35550e535 [home] Show a status if you posted a filtered word 2021-01-22 00:17:25 -05:00
Fosco Marotto
bd3fb4994a [home feed] Still chipping away. 2021-01-22 00:09:26 -05:00
Fosco Marotto
8cc3f549e6 [home feed] Another fix. 2021-01-22 00:06:14 -05:00
Fosco Marotto
94a04d3b54 [home timeline] Fix query condition 2021-01-21 23:56:31 -05:00
Fosco Marotto
fb3b754570 [home time] Alternative method for querying the home timeline 2021-01-21 23:34:14 -05:00
Fosco Marotto
e9cf46b4bc Reverting home timeline changes 2021-01-21 18:05:24 -05:00
Fosco Marotto
0369a1b9fb Fix 2021-01-21 17:43:05 -05:00
Fosco Marotto
852d2f78e9 [sorting query builder] Adjust filtering 2021-01-21 17:37:12 -05:00
Fosco Marotto
5b4b633702 [home feed] Fix for previous update. 2021-01-21 17:19:15 -05:00
Fosco Marotto
8413ca93a4 [home feed] Changes to reduce database use. 2021-01-21 17:09:46 -05:00
Rob Colbert
88fc6cb48a minified share button 2021-01-19 20:20:26 -05:00
Rob Colbert
f5039962ac Update example-share-button.html 2021-01-20 01:11:56 +00:00
Rob Colbert
e689a5a9fd Update example-share-button.html 2021-01-20 01:10:00 +00:00
admin
12353c7c9b Add example share button to this public repo 2021-01-20 00:51:00 +00:00
mgabdev
406cbbe747 Updated statuses route in admin Navigation to be viewable only by admins
• Updated:
- statuses route in admin Navigation to be viewable only by admins
2021-01-19 01:28:38 -05:00
mgabdev
96b154831d Added missing group_removed_accounts in AccountInteractions
• Added:
- missing group_removed_accounts in AccountInteractions
2021-01-19 01:26:28 -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
mgabdev
24fa2d3a74 Updated StatusOptionsPopover group actions to be allowed for staff
• Updated:
- StatusOptionsPopover group actions to be allowed for staff
2021-01-19 00:38:37 -05:00
mgabdev
6354007875 Fixed issue with FA icon in ApplicationHelper
• Fixed:
- issue with FA icon in ApplicationHelper
2021-01-19 00:35:51 -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
775439f194 [index] Add index on polls id and lock_version 2021-01-17 21:26:56 -05:00
Fosco Marotto
002441af1f [redis] More connection pooling changes 2021-01-17 17:36:20 -05:00
Fosco Marotto
d2d381eb90 Raise profile photo size limit to 5mb 2021-01-17 13:15:53 -05:00
Fosco Marotto
bde7172ba4 [index] Add 2 indexes on accounts table 2021-01-17 12:51:15 -05:00
Fosco Marotto
e29925e534 [index] index on users.remember_token 2021-01-17 11:13:39 -05:00
Fosco Marotto
adf0e7ae72 Logging out takes you to the home page. 2021-01-17 00:57:21 -05:00
Fosco Marotto
addfa1f8e0 Change funding bar text. 2021-01-16 15:23:33 -05:00
Fosco Marotto
e44e83a857 Redis fixes 2021-01-16 14:46:48 -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
admin
8a3ed8d921 Update fetch_groups_service.rb redis 2021-01-16 18:50:11 +00:00
admin
3344afbb3d Update tag.rb redis 2021-01-16 18:47:38 +00:00