Commit Graph

215 Commits

Author SHA1 Message Date
admin 74b3700f58 Merge branch 'improve_home_feed_query' into 'develop'
Improve home feed query

See merge request gab/social/gab-social!68
2021-03-01 01:58:36 +00:00
rubic0n 3b704cec7d Use a constant 2021-02-28 19:50:01 -06:00
rubic0n 6e42e3b1ec Improve home feed query 2021-02-28 19:45:44 -06:00
Developer fa8b6a3377 Removed account search_for in Account.rb model
• Removed:
- account search_for in Account.rb model
2021-02-28 20:19:58 -05:00
Developer 35276edde1 Merge branch 'fix_preview_card_search' into 'develop'
Fix preview card search

See merge request gab/social/gab-social!67
2021-03-01 00:26:46 +00:00
Developer 444f9a156b Partial revert 3f90b0be
Partial revert 3f90b0be
2021-02-28 18:09:36 -05:00
rubic0n 8a329b67a5 Fix preview card search 2021-02-28 15:33:38 -06:00
Developer 3f90b0be69 Updated all instances of request.remote_ip to use new ip headers
• Updated:
- all instances of request.remote_ip to use new ip headers
2021-02-26 12:50:25 -05:00
Developer 8deb255593 Added new email opt out for GabPRO reminders/introducing
• Added:
- new email opt out for GabPRO reminders/introducing
2021-02-23 13:30:04 -05:00
azuregc7 4fcae80457 Feature/username search case 2021-02-20 13:11:47 +00:00
Developer b7d6d5f18c Removed validation on spam_field for int in Account model
• Removed:
- validation on spam_field for int in Account model
2021-02-19 12:31:06 -05:00
Developer d7271b899f Fixed issue with account.rb for spam_flag to include nil by default
• Fixed:
- issue with account.rb for spam_flag to include nil by default

Was causing failure to account sign up where new values are nil and the validation failed because it expected 0,1,2 values.
2021-02-19 11:05:30 -05:00
Developer 2a8ca2cd56 Added new spam_flag to Accounts, replacing is_flagged_as_spam
• Added:
- new spam_flag to Accounts, replacing is_flagged_as_spam
- null/0: no spam, 1: spam, 2: safe from spam

• Updated:
- Comment, Status to reflect changes

• Todo:
- Fully remove is_flagged_as_spam
- Update SortingQueryBuilder
2021-02-18 23:46:53 -05:00
Fosco Marotto 8d3d7efe34 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-02-16 16:04:25 -05:00
Fosco Marotto 9666472105 Wrap user confirm method with writing role 2021-02-16 16:04:11 -05:00
admin 5d9750fa25 forgot to push these changes 2021-02-16 13:35:19 -05:00
Free Speech Forever 92c9092abd Avoid redundant OAuth queries when not signed in
If you aren't signed in, you don't have an auth token.
When you don't have an auth token, React was sending the headers

"Authorization: Bearer null"

This caused 5 Doorkeeper token lookups using
WHERE "oauth_access_tokens"."token" = 'null'
on the Explore page (the root of the app when not signed in).
2021-02-15 23:26:00 +00:00
Fosco Marotto 5e7cec5345 Change logout deletion method. 2021-02-14 21:26:48 -05:00
Fosco Marotto 0d5acfc3fb Update push subscription writing role 2021-02-14 14:10:25 -05:00
Fosco Marotto 09ba5c9be8 Fix settings application controller writing role 2021-02-14 14:05:03 -05:00
Fosco Marotto 7a2594e105 Add writing role for some moderation classes, update verification method. 2021-02-11 18:34:04 -05:00
mgabdev e3af1b4a26 Updated LinkBlock checks for if status text contains blocked domain
• Updated:
- LinkBlock checks for if status text contains blocked domain
- normalize_link to use domain instead of normalized_host

• Added:
- normalize_link_domain to check for if entire domains are blocked or not for spam
2021-02-11 00:01:45 -05:00
Developer 30c05a6e96 Added new flags to admin dashboard account search
• Added:
- new flags to admin dashboard account search for PRO, investor, donor, verified
- moved spam to the flags column instead of next to username

• Removed:
- IP Address in account list

• Updated:
- Title for flags in account moderation header
2021-02-10 12:24:09 -05:00
Fosco Marotto 729c00a5a9 Bundle of corrections and one doorkeeper writing role change 2021-02-09 22:32:24 -05:00
Free Speech Forever 473c48b2aa Replace Makara with an initial Rails 6 role based splitting method. 2021-02-09 19:38:10 +00:00
azuregc7 e1a8d158d6 [home] Changed sort back to created_ad after adding new index to accounts 2021-02-06 09:48:18 -08:00
azuregc7 2baebbab18 [home] Changed sort back to created_ad after adding new index to accounts 2021-02-06 09:45:34 -08:00
azuregc7 5f939abfbe [home] Home feed optimizations, sorting 2021-02-04 12:02:51 -08: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
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
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
mgabdev b4ba3c70ef Revert streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11
• Revert:
- streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11
2021-01-25 15:52:52 -05:00
Fosco Marotto 4adbadddaa [home] Refactor the home timeline query 2021-01-24 20:11:21 -05:00
Fosco Marotto 1c647b0b06 [reset] cleanup 2021-01-24 13:50:51 -05: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
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 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 41790e4894 Temporarily disable inefficient filter in statuses controller. 2021-01-23 13:13:05 -05:00
Fosco Marotto 958e8aad3a [group_collection] Change to -my groups- timeline 2021-01-23 03:13:47 -05:00
rubic0n 590dfc97e1 Run pending migrations 2021-01-22 22:53:38 -06: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