Commit Graph

2155 Commits

Author SHA1 Message Date
Developer f1cc618fdd Updated reports page to be more mobile friendly
• Updated:
- reports page to be more mobile friendly

• Added:
- Helper for account elements in AccountModerationNotesHelper
2021-02-26 13:14:06 -05: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 4d43158fe2 Updated NotificationsPage to reset to 'all' every time page loads
• Updated:
- NotificationsPage to reset to 'all' every time page loads
2021-02-25 11:06:42 -05:00
Developer 573fdbc981 Fixed issue with MediaModal causing page to scroll to top on open
• Fixed:
- issue with MediaModal causing page to scroll to top on open

The code in this removal was used to enable a back-btn to close the media modal. But unintended scrolling is more important than a third option to close a dialog. (Click X, press escape)
2021-02-25 11:02:45 -05:00
Developer 444263a8b2 Updated Notification timestamp to link to status/mention/comment
• Updated:
- Notification timestamp to link to status/mention/comment
2021-02-25 10:40:52 -05:00
Developer 0c1d84262f Add missing uri attribute in StatusSerializer
• Add:
- missing uri attribute in StatusSerializer
2021-02-25 10:37:50 -05:00
Fosco Marotto c7b17c5bde Add missing icons 2021-02-25 10:13:19 -05:00
Fosco Marotto a72be3b45b Add missing apple icons 2021-02-25 10:09:36 -05:00
Developer 71b428e348 Added checks in emails regarding GabPRO if email is confirmed and allows GabPRO emails
• Added:
- checks in emails regarding GabPRO if email is confirmed and allows GabPRO emails
2021-02-23 13:31:00 -05:00
Developer 4b8df32371 Added opt-out/unsubscribe links at bottom of all emails
• Added:
- opt-out/unsubscribe links at bottom of all emails in layout
2021-02-23 13:30:28 -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
admin 16b053b72d Update list_controller.rb 2021-02-21 04:40:32 +00:00
Fosco Marotto a2793f04d6 Revert "Updated BaseController to return false if doorkeeper_token nil for superapp"
This reverts commit e5ea8fb487.
2021-02-20 22:25:59 -05:00
Free Speech Forever fde3821450 Merge branch 'feature/Username_Search_Case' into 'develop'
Feature/username search case

See merge request gab/social/gab-social!65
2021-02-20 13:11:47 +00:00
azuregc7 4fcae80457 Feature/username search case 2021-02-20 13:11:47 +00:00
Fosco Marotto 1a7c34724e Merge branch 'fix/confirmations' of https://code.gab.com/gab/social/gab-social into develop 2021-02-19 22:58:23 -05:00
Developer 285cccdb83 Removed unused AppsController, apps routes
• Removed:
- unused AppsController, apps routes
2021-02-19 22:32:20 -05:00
Developer e5ea8fb487 Updated BaseController to return false if doorkeeper_token nil for superapp
• Updated:
- BaseController to return false if doorkeeper_token nil for superapp
2021-02-19 22:23:36 -05:00
Developer 58a8a17bfe Updated ConfirmationsController to set new email after confirmation to unconfirmed email only
• Updated:
- ConfirmationsController to set new email after confirmation to unconfirmed email only
2021-02-19 21:57:09 -05:00
Fosco Marotto c01328c8a0 Add require_unconfirmed to the confirmations controller 2021-02-19 21:29:07 -05:00
Developer f1a857a7b4 Added created date to reports page for each report
• Added:
- created date to reports page for each report in admind moderation dashboard
2021-02-19 12:38:13 -05:00
Developer 32ac987ef0 Updated SuspendAccountService to resolve outstanding reports on suspend
• Updated:
- SuspendAccountService to resolve outstanding reports on suspend
2021-02-19 12:31:52 -05: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 187eb5ae78 Updated elapsed registration_form_time to 5 seconds
• Updated:
- elapsed registration_form_time to 5 seconds
2021-02-19 12:30:46 -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
Fosco Marotto 4acf7f0bce Limit the user and session tracking concerns to the home timeline 2021-02-19 09:50:59 -05:00
Developer da522f8841 Added check in PostStatusService for limited posting functionality to users with unconfirmed emails
• Added:
- check in PostStatusService for limited posting functionality to users with unconfirmed emails
- users with unconfirmed emails can not post mentions that are not a reply
- users with unconfirmed emails can not post to a group that is not the introduce yourself group
2021-02-19 00:08:23 -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
Developer bf1d00b5f8 Added new follow limit for unconfirmed accounts to 10
• Added:
- new follow limit for unconfirmed accounts to 10
2021-02-18 23:18:16 -05:00
Developer c18bcf2b21 Added check to RegistrationsController for checking if form was submitted too quickly
• Added:
- check to RegistrationsController for checking if form was submitted too quickly
2021-02-18 21:35:09 -05:00
Developer 5149c613f2 Added StatusSimilarityService to check against spamming same statuses over and over
• Added:
- StatusSimilarityService to check against spamming same statuses over and over
- StatusSimilarityService check to PostStatusService and EditStatusService
2021-02-18 20:12:40 -05:00
Developer a955c51eb6 Added similar_text gem
• Added:
- similar_text gem
2021-02-18 20:11:39 -05:00
Developer 00e6d799e8 Fixed AddIsFlaggedAsSpamToAccounts migration down removal value 2021-02-18 23:21:09 +00:00
Developer bec3360b66 Added checks in ModalBase, PopoverBase if page goes back/forward to dismiss
• Added:
- checks in ModalBase, PopoverBase if page goes back/forward (popstate) to dismiss the modal, popover
2021-02-18 17:22:11 -05:00
Developer 7000902ecb Added check for if node exists before handleKeyDown on PopoverBase
• Added:
- check for if node exists before handleKeyDown on PopoverBase
2021-02-18 17:21:02 -05:00
Developer c85ad3e92a Updated account_flags_block to only be visible for staff
• Updated:
- account_flags_block to only be visible for staff
2021-02-18 17:01:25 -05:00
Fosco Marotto fea1b9389b Add a writing role to the shortcuts controller 2021-02-18 16:57:34 -05:00
Developer be5fc25544 Added missing account flags in admin group moderator list
• Added:
- missing account flags in admin group moderator list
2021-02-18 16:50:17 -05:00
Developer fa74c34095 Added account_flags_block partial to admin pages
• Added:
- account_flags_block partial to admin pages (groups, accounts, reports) so admin/moderators can easily see pro, verified, investor, donor, spam flags of an account
2021-02-18 16:49:14 -05:00
Developer c7df309df5 Added total report count to admin reports page
• Added:
- total report count to admin reports page
2021-02-18 16:44:49 -05:00
Developer 84ba247982 Added (temporary) fix for spam bots statuses to be hidden from timelines, comments
• Added:
- (temporary) fix for spam bots statuses to be hidden from timelines, comments

• Todo:
- Implement a new "spam" structure to allow for accounts to be safe from being (re) marked as spam.
2021-02-18 16:25:07 -05:00
Developer e8f50b7ad5 Added check in Comment to see if data exists before rendering
• Added:
- check in Comment to see if data exists before rendering
2021-02-18 16:24:06 -05:00
Fosco Marotto 4696307cc9 Use a writing role for some sidekiq worker reads 2021-02-18 15:02:16 -05:00
Developer de7d71e0ee Updated SignUpLogInPanel login/signup buttons to match nav and injection auth buttons
• Updated:
- SignUpLogInPanel login/signup buttons to match nav and injection auth buttons
2021-02-18 13:41:37 -05:00
Developer 6421b632b0 Updated LoggedOutNavigationBar log in button background color
• Updated:
- LoggedOutNavigationBar log in button background color to match themes
2021-02-18 13:39:16 -05:00
Developer 65949c7e71 Removed ImageProxyController API route
• Removed:
- ImageProxyController API route
- removed from news reducer for trends.

• Todo:
- Devise solution for integrating cross site images from trends -> social
2021-02-18 13:34:08 -05:00
Free Speech Forever 559ccc7e51 Merge branch 'performance_boosts' into 'develop'
Performance boosts

See merge request gab/social/gab-social!64
2021-02-18 07:09:28 +00:00
rubic0n 44fd00bdc0 Remove an unnecessary `if` 2021-02-18 00:54:51 -06:00
rubic0n 9b17b0a553 Reduce array allocations by using a constant 2021-02-18 00:54:29 -06:00
rubic0n b1445d09b6 Remove 40KB of allocations (4,100 objects) from home feed
(When using dummy data)

* to_s(16) allocates a string per character
  Instead of converting the ord to hex and determining if the hex
  is over 2 characters long, just see if the ord is over 255.
* .match allocates a MatchData instance and sets all sorts of backrefs
  ($1, $2, etc). match? just returns a boolean.
2021-02-18 00:45:21 -06:00