Commit Graph

1904 Commits

Author SHA1 Message Date
admin
69f3cf08c9 fixed app/controllers/concerns/signature_verification.rb 2021-02-16 13:41:49 -05:00
admin
5d9750fa25 forgot to push these changes 2021-02-16 13:35:19 -05:00
mgabdev
5d1a40d936 Added CharacterCounter to ComposeDestinationHeader
• Added:
- CharacterCounter to ComposeDestinationHeader
- Styles for stroke colors for CharacterCounter

• Updated:
- CharacterCounter styles, heights to fit in header
2021-02-15 21:47:56 -05:00
mgabdev
0456ccfb2a Added missing fillSecondary class
• Added:
- missing fillSecondary class
2021-02-15 21:00:43 -05:00
mgabdev
0edaaa95d7 Fixed issue with Following/Followers scrolling to top on infinite scroll pagination
• Fixed:
- issue with Following/Followers scrolling to top on infinite scroll pagination
2021-02-15 20:48:19 -05:00
Fosco Marotto
d91df58eb9 Remove stray } from api.js 2021-02-15 19:59:02 -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
7bfe6c7709 More writing role changes in sessions controller 2021-02-14 23:21:53 -05:00
Fosco Marotto
5e7cec5345 Change logout deletion method. 2021-02-14 21:26:48 -05:00
Fosco Marotto
0f85ba2f12 Change the oauth authorizations controller writing role method. 2021-02-14 15:52:38 -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
Developer
0341cd8572 Updated RegistrationsController captcha values
• Updated:
- RegistrationsController captcha values
2021-02-13 13:31:57 -05:00
Fosco Marotto
7a2594e105 Add writing role for some moderation classes, update verification method. 2021-02-11 18:34:04 -05:00
Developer
5a5150757e Added spam, other account flags to reports page table list items
• Added:
- spam, other account flags to reports page table list items

• Removed:
- Account moderation notes count in reports table list item
2021-02-11 14:38:41 -05:00
Developer
2548205487 Updated ReportService to not create new reports if account is already suspended
• Updated:
- ReportService to not create new reports if account is already suspended
2021-02-11 14:30:37 -05:00
Fosco Marotto
4bb2f1b745 Verification requests should use the writing role 2021-02-11 01:18:36 -05:00
Developer
538bcf21c9 Updated registration page username to disallow unallowed characters
• Updated:
- registration page username to disallow unallowed characters (special characters, spaces, etc.) and rewrite if is written in that field
2021-02-11 00:57:48 -05:00
Developer
8a2f34d815 Added check in RegistrationsController to ensure email and password don't match
• Added:
- check in RegistrationsController to ensure email and password don't match. If so, return back to registration form with alert
2021-02-11 00:33:28 -05:00
Developer
39a3d44bdd Updated all admin moderation links from app popover menus to open in new tab
• Updated:
- all admin moderation links from app popover menus to open in new tab
- GroupOptionsPopover group admin moderation link
- ProfileOptionsPopover account admin moderation link
- StatusOptionsPopover account and status admin moderation links
2021-02-11 00:23:20 -05:00
Developer
b636f36871 Added prop for openInNewTab in ListItem for Button links
• Added:
- prop for openInNewTab in ListItem for Button links
2021-02-11 00:21:44 -05:00
Developer
2fff6b3046 Fixed issue with empty featured group in FeaturedGroupsInjection
• Fixed:
- issue with empty featured group in FeaturedGroupsInjection

• Added:
- missing key in loop in FeaturedGroupsInjection render
2021-02-11 00:17:56 -05:00
Developer
f56d177b9b Added ability to copy g/ group link in GroupHeader to clipboard
• Added:
- ability to copy g/ group link in GroupHeader to clipboard on then show an alert on desktop
2021-02-11 00:16:43 -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
mgabdev
d73b4afa28 Updated random int function to use helper numbers util in ws stream.js
• Updated:
- random int function to use helper numbers util in ws stream.js
2021-02-10 23:21:35 -05:00
mgabdev
72162affcf Updated stream ws to close if backend api error
• Updated:
- stream ws to close if backend api error and not retry over and over again
2021-02-10 23:08:00 -05:00
Developer
a42b7797d8 Updated websocket.js to @gamestdio/websocket
• Updated:
- websocket.js (depreacated) to @gamestdio/websocket (latest)
2021-02-10 20:11:18 -05:00
Developer
488a362129 Updated labels and hints in user registration form
• Updated:
- labels and hints in user registration form
- Made clear requirements for usernames

• Removed:
- question of "Are you human?" in the captcha label as people were answering "yes" in the input instead of the captcha value
2021-02-10 13:48:13 -05:00
Developer
8b8f73deb1 Added back account autofill mention in composer
• Added:
- account autofill mention in composer after removing for performance reasons

• Updated:
- throttle for account search function
2021-02-10 13:29:48 -05:00
Developer
4490070aa2 Updated Verification Requests page to include account display name
• Updated:
- Verification Requests page to include account display name
- position of date and account column in table
2021-02-10 12:59:30 -05:00
Developer
59484da4dc Updated FetchGroupsService to fetch featured groups that are not private and visible
• Updated:
- FetchGroupsService to fetch featured groups that are not private and visible
2021-02-10 12:43:23 -05:00
Developer
3e9e32b276 Updated lists to make account search work
• Updated:
- lists to make account search work for adding new members
2021-02-10 12:41:41 -05:00
Developer
ab2521b880 Fixed issue with search icon in the search bar submitting the search
• Fixed:
- issue with search icon in the search bar submitting the search
2021-02-10 12:34:44 -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
65d8c7ee86 Possible fix for home timeline 2021-02-10 11:02:54 -05:00
Fosco Marotto
cacfb6e7ba Possible doorkeeper fix 2021-02-10 00:41:25 -05:00
Fosco Marotto
a1a97bb483 Revert "Merge branch 'features/null_bearer2' into 'develop'"
This reverts commit c14fc2fa9d109e3e895b742f83e50c4f7c9b845d, reversing
changes made to 22c3fa995d88b141249017c06dd76714123d2d7a.
2021-02-09 23:58:00 -05:00
Fosco Marotto
ad35c7fa72 Revert "Merge branch 'fix_null_bearer' into 'develop'"
This reverts commit 22c3fa995d88b141249017c06dd76714123d2d7a, reversing
changes made to 3931ba4f819302d0e215d41aa4b17dc2a5b182a7.
2021-02-09 23:57:16 -05:00
Free Speech Forever
c14fc2fa9d Merge branch 'features/null_bearer2' into 'develop'
Fix authorization header when no access token

See merge request gab/social/gab-social!58
2021-02-10 03:34:35 +00:00
Free Speech Forever
22c3fa995d Merge branch 'fix_null_bearer' into 'develop'
Avoid redundant Doorkeeper queries when not signed in

See merge request gab/social/gab-social!57
2021-02-10 03:33:16 +00:00
Free Speech Forever
3931ba4f81 Merge branch 'feature/worker-updates' into 'develop'
Some worker updates.

See merge request gab/social/gab-social!59
2021-02-10 03:32:48 +00: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
Fosco Marotto
ae036995bf Fix authorization header when no access token 2021-02-09 11:16:04 -05:00
rubic0n
57a88c5904 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-06 22:41:35 -06: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
dd6cbd0c17 Reduce home feed statuses per batch to 10 2021-02-05 15:58:01 -08:00
Fosco Marotto
a43a7af771 Some worker updates. 2021-02-05 13:25:46 -05:00
Fosco Marotto
c45d8adbf2 Another group collection controller sort change. 2021-02-05 00:12:51 -05:00
Fosco Marotto
5b89095a55 Switch group collection view back to newest sorting. 2021-02-04 23:57:03 -05:00
Fosco Marotto
fdca30cd97 Move Link Crawler to different queue 2021-02-04 18:09:04 -05:00
azuregc7
5f939abfbe [home] Home feed optimizations, sorting 2021-02-04 12:02:51 -08:00
Fosco Marotto
22b7b2ab8b Disable unused DistributionWorker and activity:interactions 2021-02-04 13:48:50 -05:00
Fosco Marotto
34a888ca10 Change weighting for top_order 2021-02-04 12:37:01 -05:00
Fosco Marotto
b705c82304 Update mention_html formatter again. 2021-02-03 13:26:32 -05:00
Fosco Marotto
8d9db14121 Revert "Remove local checks from formatter"
This reverts commit c30f600f0969108a9a6902a5a116a4c6d7441e62.
2021-02-03 13:14:22 -05:00
Fosco Marotto
e4a214a0c4 Revert "deleted unneccessary looping queries in EntityCache"
This reverts commit d20330f39133bcc4571ffdc1c518a3dcba93baff.
2021-02-03 13:13:29 -05:00
Fosco Marotto
c30f600f09 Remove local checks from formatter 2021-02-03 13:07:37 -05:00
admin
fa9f0ce6f3 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-02-03 11:56:36 -05:00
admin
d20330f391 deleted unneccessary looping queries in EntityCache 2021-02-03 11:56:22 -05:00
Fosco Marotto
584482f325 Fix explore page correctly. 2021-02-03 11:55:57 -05:00
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
rubic0n
bee832d4ef Fix Zeitwerk load error for SanitizeConfig
"expected file app/lib/sanitize_config.rb to define constant
SanitizeConfig"
2021-01-31 17:39:13 -06:00
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
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