Commit Graph

1840 Commits

Author SHA1 Message Date
Fosco Marotto 4e0605165d Fix explore page. 2021-02-03 11:32:25 -05: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 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 440a1ce6ff Minor changes to workers. 2021-02-01 03:43:56 -05: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
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 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 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
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 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 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
Fosco Marotto 59b1752797 [groups collection] disable custom phrase muting temporarily 2021-01-23 21:38:17 -05:00
Fosco Marotto 2e9562e2fc [home] Reduce following fanout to recent users 2021-01-23 21:36:17 -05:00
Fosco Marotto acea03da38 Disable mute phrases on the home timeline 2021-01-23 20:31:27 -05:00
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
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
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
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
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 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 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 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
admin 29cfe511d1 Update push_update_worker.rb redis 2021-01-16 18:43:24 +00:00
Fosco Marotto 8b0f566e4f [redis] Example change to redis pooling code. 2021-01-16 13:36:19 -05:00
Fosco Marotto 919eb87d47 [temp] Remove associations from suspend account service 2021-01-16 12:59:54 -05:00
mgabdev 2c8b4f7fb4 TEST Removing all streaming for now 3
TEST

• Removing:
- all streaming for now 3 from post status
2021-01-15 20:43:07 -05:00
mgabdev 574b45e04b TEST Removing all streaming for now 2
TEST

• Removing:
- all streaming for now 2 (from server side)
2021-01-15 20:42:04 -05:00
mgabdev 8313f4b11d TEST Removing all streaming for now
TEST
• Removing:
- all streaming for now
2021-01-15 20:35:28 -05:00
mgabdev eb8ab7c4eb Removed error line for fa_icon in ApplicationHelper
• Removed:
- error line for fa_icon in ApplicationHelper
2021-01-15 16:50:45 -05:00
mgabdev 33e758a80f Updated StatusPolicy for private group posts
• Updated:
- StatusPolicy for private group posts
- check if owner or staff first if so, show
2021-01-15 16:23:05 -05:00
mgabdev 8c14983e19 Partial revert a703b5cb7 2021-01-15 15:51:38 -05:00
mgabdev 2790408a5e Removed unused values from InitialStateSerializer
• Removed:
- unused values from InitialStateSerializer that used redis and now are in own cached api controllers for monthly_expenses_complete, trending_hashtags
2021-01-15 15:36:51 -05:00
mgabdev 2cd09a8e72 Added trending_hashtags to redux to fetch on isXS in SearchLayout
• Added:
- trending_hashtags to redux to fetch on isXS in SearchLayout

• Removed:
- trending_hashtags from initial state
2021-01-15 15:36:14 -05:00
mgabdev f7b061845e Updated expenses action in redux to not call more than once
• Updated:
- expenses action in redux to not call more than once
2021-01-15 15:21:31 -05:00