Commit Graph

50 Commits

Author SHA1 Message Date
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
admin
5d9750fa25 forgot to push these changes 2021-02-16 13:35:19 -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
590dfc97e1 Run pending migrations 2021-01-22 22:53:38 -06:00
Fosco Marotto
775439f194 [index] Add index on polls id and lock_version 2021-01-17 21:26:56 -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
c1213f4137 [index] add index on reports.action_taken 2021-01-08 12:36:49 -05:00
mgabdev
2fcc99cccf merge resolving 2021-01-05 11:35:23 -05:00
Fosco Marotto
7a58d0fa58 [index] Add index on status_stats.created_at 2021-01-03 15:02:40 -05:00
Fosco Marotto
ecb5c6554c [index] add index on status_revisions.status_id 2021-01-02 23:12:32 -05:00
mgabdev
6fbea0a59e Progress on little important things
removing .mov for now until we can figure out solution with videojs, added model to track username changes, got chat creation flow down, progress on bookmark collections, albums, filtering blocks/mutes from group, explore, collection timelines
2020-12-22 01:36:38 -05:00
mgabdev
47cd60f851 Progress
added composer query string functionality for url, text. fixed issue with no user in base_controller, cleaned up video component, albums starting
2020-12-17 23:46:37 -05:00
mgabdev
5a37a7090e Progress
accounts approved, video player testing, bookmark collections
2020-12-17 01:34:00 -05:00
mgabdev
8f94ffad9c Progress 2020-12-16 02:39:07 -05:00
mgabdev
75d52c841e Progress 2020-12-15 19:31:30 -05:00
mgabdev
586935f07f Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk 2020-12-09 00:00:35 -05:00
mgabdev
c18991f174 Added LinkBlock functionality in admin
• Added:
- LinkBlock functionality in admin
2020-12-08 23:19:10 -05:00
mgabdev
137a36b810 Progress with DMs
Progress with DMs
2020-12-03 17:13:11 -05:00
mgabdev
9a43c51085 Progress on dms, code cleanup
Progress on dms, code cleanup
2020-12-02 23:22:51 -05:00
mgabdev
fb612f60c8 Commiting 2020-11-15 12:48:32 -06:00
mgabdev
6e17b7c17b Updated GroupCategory functionality with Groups
• Updated:
- GroupCategory functionality with Groups
2020-09-10 17:12:43 -05:00
mgabdev
cc224d7659 Added password field to Group model
• Added:
- password field to Group model
2020-09-02 17:56:16 -05:00
mgabdev
4a8cd0b585 Updates to groups sorting
• Updates to groups sorting
2020-08-08 13:08:48 -05:00
mgabdev
421ca77587 Added new migrations
• Added:
- new migrations
2020-08-06 23:19:34 -05:00
mgabdev
0c2b6fb112 Added migration for CreateGroupPinnedStatuses
• Added:
- migration for CreateGroupPinnedStatuses
2020-08-06 00:24:12 -05:00
mgabdev
86c1b3c75d Added expires_at to Status
• Added:
- expires_at key to Status
2020-07-24 18:49:00 -05:00
mgabdev
405ace09da Added migration for creating Shortcuts
• Added:
- migration for creating Shortcuts
2020-07-21 22:17:20 -05:00
mgabdev
504c08ecf7 Updated db/schema.rb
• Updated:
- db/schema.rb
2020-07-14 00:21:20 -05:00
mgabdev
5c36a30b69 Added new migrations for adding indexes
• Added:
- new migrations for adding indexes
2020-07-07 17:25:47 -05:00
mgabdev
42644a136b fix conflict 2020-05-12 21:46:04 -04:00
mgabdev
bb0182c1e1 pull 2020-05-11 23:34:18 -04:00
mgabdev
055b5a430f progress 2020-05-03 01:22:49 -04:00
mgabdev
dbe5461df2 Non-follows allowed in lists 2020-04-30 12:34:13 -04:00
mgabdev
fed036be08 Progress 2020-04-22 01:00:11 -04:00
Alex Gleason
4052329ca4
Add unique_email field 2020-03-10 17:44:32 -05:00
mgabdev
f7037644f0 Don't use ForeignKey for User.last_read_notification
dc7bc17267
2020-01-16 18:25:25 -05:00
mgabdev
7fb0b462e2 Fix notifications
https://gitlab.com/soapbox-pub/soapbox/merge_requests/120/diffs#diff-content-917c7fb80cf426cfae1e7baaa21b3d90ccb2b29c
2020-01-16 18:24:10 -05:00
Rob Colbert
4de30bd8d0 Merge branch 'feature/revision-history' of https://code.gab.com/gab/social/gab-social into develop 2019-09-18 11:08:04 -04:00
2458773093
cdc0b8dd2f new revision migrations 2019-09-17 17:21:45 +03:00
Rob Colbert
fbed38c508 promotions migration 2019-09-03 19:07:13 -04:00
2458773093
044e9695fe model/migration for promoted statuses 2019-09-04 00:14:50 +03:00
Rob Colbert
c8ce87e4f9 migration 2019-08-07 15:53:28 -04:00
2458773093
3e5b9a994f migration for quote schema update 2019-08-04 15:24:37 +03:00
Rob Colbert
b1e6b63d1f migration 2019-07-21 23:50:09 -04:00
2458773093
bf2d54201b group member count optimization 2019-07-22 03:46:00 +03:00
2458773093
7bd832c9bd better migrations for unread count field on group accounts table 2019-07-22 02:50:01 +03:00
2458773093
a6f09dc0c7 group unread count 2019-07-22 01:06:32 +03:00
2458773093
520c125e21 group_removed_users table to forbid users joining once removed 2019-07-16 20:46:03 +03:00
robcolbert
bd0b5afc92 Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00