Skip to content
Snippets Groups Projects
  1. Jul 15, 2018
  2. Jul 13, 2018
  3. Jul 09, 2018
  4. Jun 29, 2018
    • Eugen Rochko's avatar
      Keyword/phrase filtering (#7905) · cdb10134
      Eugen Rochko authored
      * Add keyword filtering
      
          GET|POST       /api/v1/filters
          GET|PUT|DELETE /api/v1/filters/:id
      
      - Irreversible filters can drop toots from home or notifications
      - Other filters can hide toots through the client app
      - Filters use a phrase valid in particular contexts, expiration
      
      * Make sure expired filters don't get applied client-side
      
      * Add missing API methods
      
      * Remove "regex filter" from column settings
      
      * Add tests
      
      * Add test for FeedManager
      
      * Add CustomFilter test
      
      * Add UI for managing filters
      
      * Add streaming API event to allow syncing filters
      
      * Fix tests
      Unverified
      cdb10134
  5. Jun 21, 2018
  6. Jun 17, 2018
  7. Jun 15, 2018
  8. Jun 09, 2018
  9. May 31, 2018
  10. May 30, 2018
  11. May 14, 2018
    • Akihiko Odaki's avatar
    • Akihiko Odaki's avatar
      Improve index on statuses for api/v1/accounts account_id statuses (#7476) · 42a12312
      Akihiko Odaki authored
      Queries with the combination of account_id, id, and visibility can be
      categorized in three types:
      1. Querying for public and unlisted to enumerate statuses visible to
      anyone.
      2. Querying for public, unlisted, and private to enumerate statuses
      visible to follower.
      3. Querying for direct to enumerate own direct statuses.
      
      1 and 2 is covered by the index with condition 'visibility IN (0, 1, 2)'.
      It would bring better performance in case that there are many direct
      statuses.
      
      The index with condition 'visibility = 3' is just for 3. It would be much
      faster to query direct statuses thanks to this query.
      
      The total size of those two indexes are expected to be smaller than the
      deleted one because they are partial and does not have to cover all the
      table.
      42a12312
  12. May 11, 2018
  13. May 07, 2018
  14. May 04, 2018
  15. Apr 14, 2018
    • Eugen Rochko's avatar
      Add bio fields (#6645) · 78ed4ab7
      Eugen Rochko authored
      * Add bio fields
      
      - Fix #3211
      - Fix #232
      - Fix #121
      
      * Display bio fields in web UI
      
      * Fix output of links and missing fields
      
      * Federate bio fields over ActivityPub as PropertyValue
      
      * Improve how the fields are stored, add to Edit profile form
      
      * Add rel=me to links in fields
      
      Fix #121
      Unverified
      78ed4ab7
  16. Apr 12, 2018
  17. Apr 02, 2018
    • Emelia Smith's avatar
      Feature: Report improvements (#6967) (#7000) · e85cffb2
      Emelia Smith authored
      * Implement Assignment of Reports (#6967)
      
      * Change translation of admin.report.comment.label to "Report Comment" for clarity
      
      As we'll soon add the ability for reports to have comments on them, this clarification makes sense.
      
      * Implement notes for Reports
      
      This enables moderators to leave comments about a report whilst they work on it
      
      * Fix display of report moderation notes
      
      * Allow reports to be reopened / marked as unresolved
      
      * Redirect to reports listing upon resolution of report
      
      * Implement "resolve with note" functionality
      
      * Add inverse relationship for report notes
      
      * Remove additional database querying when loading report notes
      
      * Fix tests for reports
      
      * Fix localisations for report notes / reports
      e85cffb2
  18. Mar 24, 2018
  19. Mar 04, 2018
    • Eugen Rochko's avatar
      Federate pinned statuses over ActivityPub (#6610) · 9110db41
      Eugen Rochko authored
      * Federate pinned statuses over ActivityPub
      
      * Display pinned toots in web UI
      
      Fix #6117
      
      * Fix migration
      
      * Fix tests
      
      * Update outbox_serializer.rb
      
      * Update remove_serializer.rb
      
      * Update add_serializer.rb
      
      * Update fetch_featured_collection_service.rb
      Unverified
      9110db41
  20. Feb 28, 2018
  21. Feb 21, 2018
    • Eugen Rochko's avatar
      Account archive download (#6460) · 61ed133f
      Eugen Rochko authored
      * Fix #201: Account archive download
      
      * Export actor and private key in the archive
      
      * Optimize BackupService
      
      - Add conversation to cached associations of status, because
        somehow it was forgotten and is source of N+1 queries
      - Explicitly call GC between batches of records being fetched
        (Model class allocations are the worst offender)
      - Stream media files into the tar in 1MB chunks
        (Do not allocate media file (up to 8MB) as string into memory)
      - Use #bytesize instead of #size to calculate file size for JSON
        (Fix FileOverflow error)
      - Segment media into subfolders by status ID because apparently
        GIF-to-MP4 media are all named "media.mp4" for some reason
      
      * Keep uniquely generated filename in Paperclip::GifTranscoder
      
      * Ensure dumped files do not overwrite each other by maintaing directory partitions
      
      * Give tar archives a good name
      
      * Add scheduler to remove week-old backups
      
      * Fix code style issue
      Unverified
      61ed133f
  22. Feb 07, 2018
  23. Feb 04, 2018
    • Eugen Rochko's avatar
      CAS + SAML authentication feature (#6425) · 26f21fd5
      Eugen Rochko authored
      * Cas authentication feature
      
      * Config
      
      * Remove class_eval + Omniauth initializer
      
      * Codeclimate review
      
      * Codeclimate review 2
      
      * Codeclimate review 3
      
      * Remove uid/email reconciliation
      
      * SAML authentication
      
      * Clean up code
      
      * Improve login form
      
      * Fix code style issues
      
      * Add locales
      Unverified
      26f21fd5
  24. Feb 02, 2018
    • Alexander's avatar
      pam authentication (#5303) · 04fef7b8
      Alexander authored
      * add pam support, without extra column
      
      * bugfixes for pam login
      
      * document options
      
      * fix code style
      
      * fix codestyle
      
      * fix tests
      
      * don't call remember_me without password
      
      * fix codestyle
      
      * improve checks for pam usage (should fix tests)
      
      * fix remember_me part 1
      
      * add remember_token column because :rememberable requires either a password or this column.
      
      * migrate db for remember_token
      
      * move pam_authentication to the right place, fix logic bug in edit.html.haml
      
      * fix tests
      
      * fix pam authentication, improve username lookup, add comment
      
      * valid? is sometimes not honored, return nil instead trying to authenticate with pam
      
      * update devise_pam_authenticatable2 and adjust code. Fixes sideeffects observed in tests
      
      * update devise_pam_authenticatable gem, fixes for codeconventions, fix finding user
      
      * codeconvention fixes
      
      * code convention fixes
      
      * fix idention
      
      * update dependency, explicit conflict check
      
      * fix disabled password updates if in pam mode
      
      * fix check password if password is present, fix templates
      
      * block registration if account is maintained by pam
      
      * Revert "block registration if account is maintained by pam"
      
      This reverts commit 8e7a083d650240b6fac414926744b4b90b435f20.
      
      * fix identation error introduced by rebase
      
      * block usernames maintained by pam
      
      * document pam settings better
      
      * fix code style
      04fef7b8
  25. Jan 09, 2018
  26. Jan 04, 2018
  27. Dec 26, 2017
  28. Dec 12, 2017
  29. Dec 07, 2017
  30. Nov 30, 2017
  31. Nov 28, 2017
    • aschmitz's avatar
      Allow hiding of reblogs from followed users (#5762) · eeaec398
      aschmitz authored
      * Allow hiding of reblogs from followed users
      
      This adds a new entry to the account menu to allow users to hide
      future reblogs from a user (and then if they've done that, to show
      future reblogs instead).
      
      This does not remove or add historical reblogs from/to the user's
      timeline; it only affects new statuses.
      
      The API for this operates by sending a "reblogs" key to the follow
      endpoint. If this is sent when starting a new follow, it will be
      respected from the beginning of the follow relationship (even if
      the follow request must be approved by the followee). If this is
      sent when a follow relationship already exists, it will simply
      update the existing follow relationship. As with the notification
      muting, this will now return an object ({reblogs: [true|false]}) or
      false for each follow relationship when requesting relationship
      information for an account. This should cause few issues due to an
      object being truthy in many languages, but some modifications may
      need to be made in pickier languages.
      
      Database changes: adds a show_reblogs column (default true,
      non-nullable) to the follows and follow_requests tables. Because
      these are non-nullable, we use the existing MigrationHelpers to
      perform this change without locking those tables, although the
      tables are likely to be small anyway.
      
      Tests included.
      
      See also <https://github.com/glitch-soc/mastodon/pull/212>.
      
      * Rubocop fixes
      
      * Code review changes
      
      * Test fixes
      
      This patchset closes #648 and resolves #3271.
      
      * Rubocop fix
      
      * Revert reblogs defaulting in argument, fix tests
      
      It turns out we needed this for the same reason we needed it in muting:
      if nil gets passed in somehow (most usually by an API client not passing
      any value), we need to detect and handle it.
      
      We could specify a default in the parameter and then also catch nil, but
      there's no great reason to duplicate the default value.
      eeaec398
  32. Nov 27, 2017
    • unarist's avatar
      Merge indexes for reblog on statuses table (#5831) · 7fb850e9
      unarist authored
      We added an index for `[account_id, reblog_of_id]`, but we already have a similar index for `reblog_of_id`. Those index will be bigger according to statuses count. For example, `reblog_of_id` index uses 800MB for 10GB statuses table.
      
      So this patch swaps indexed columns like `[reblog_of_id, account_id]`, then it will covers both usage with single index.
      
      Since those index creation may take a while, I've also disabled previous index creation.
      7fb850e9
    • Eugen Rochko's avatar
      Add consumable invites (#5814) · 740f8a95
      Eugen Rochko authored
      * Add consumable invites
      
      * Add UI for generating invite codes
      
      * Add tests
      
      * Display max uses and expiration in invites table, delete invite
      
      * Remove unused column and redundant validator
      
      - Default follows not used, probably bad idea
      - InviteCodeValidator is redundant because RegistrationsController
        checks invite code validity
      
      * Add admin setting to disable invites
      
      * Add admin UI for invites, configurable role for invite creation
      
      - Admin UI that lists everyone's invites, always available
      - Admin setting min_invite_role to control who can invite people
      - Non-admin invite UI only visible if users are allowed to
      
      * Do not remove invites from database, expire them instantly
      Unverified
      740f8a95
Loading