Skip to content
Snippets Groups Projects
  1. Feb 21, 2018
    • Eugen Rochko's avatar
      Fix avatar and header issues by using custom geometry detector (#6515) · a7171af0
      Eugen Rochko authored
      * Fix avatar and header issues by using custom geometry detector
      
      Revert a part of #6508. The file passed to dynamic styles method
      was not actually a file, but an instance of Paperclip::Attachment,
      which broke all styles by always returning {} from the method.
      
      One problem with GIF avatars was that Paperclip::GeometryDetector
      reported wrong dimensions for them, e.g. 120x120 GIF avatar would
      for some reason be detected as 120x53. By writing our own geometry
      parser, we can use FastImage, which also happens to be faster than
      ImageMagick, to detect image dimensions, which are also correct.
      
      Unfortunately, this PR does not implement skipping a `convert`
      entirely if the dimensions are already correct, as I found no easy
      way to write that behaviour into Paperclip without rewriting the
      Paperclip::Thumbnail class.
      
      * Only invoke convert if dimension or format needs to be changed
  2. Feb 16, 2018
  3. Feb 11, 2018
  4. Feb 09, 2018
    • Eugen Rochko's avatar
      Full-text search for authorized statuses (#6423) · 3ebc0ad4
      Eugen Rochko authored
      * Add full-text search for authorized statuses
      
      - Search API will return statuses that match the query
      - Only for logged in users
      - Only if you are author of the status,
      - Or you were mentioned in it
      - Or you favourited or reblogged it
      - Configuration over `ES_ENABLED`, `ES_HOST`, `ES_PORT`, `ES_PREFIX`
      - Run `rails chewy:deploy` to create & populate index
      
      Fix #5880
      Fix #4293
      Fix #1152
      
      * Add commented out docker-compose configuration for ES container
      
      * Optimize index import, filter search results
      
      * Add basic normalization to the index
      
      * Add better stemming and normalization to the index
      
      * Skip webfinger request if search query includes both @ and a space
      
      * Fix code style
      
      * Visually separate search result sections
      
      * Fix code style issues
  5. Feb 04, 2018
  6. 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
  7. Jan 23, 2018
  8. Jan 19, 2018
  9. Jan 16, 2018
  10. Jan 02, 2018
    • Patrick Figel's avatar
      Add confirmation step for email changes (#6071) · 04ecf44c
      Patrick Figel authored
      * Add confirmation step for email changes
      
      This adds a confirmation step for email changes of existing users.
      Like the initial account confirmation, a confirmation link is sent
      to the new address.
      
      Additionally, a notification is sent to the existing address when
      the change is initiated. This message includes instruction to reset
      the password immediately or to contact the instance admin if the
      change was not initiated by the account owner.
      
      Fixes #3871
      
      * Add review fixes
      04ecf44c
  11. Dec 26, 2017
  12. Dec 08, 2017
  13. Dec 06, 2017
  14. Nov 07, 2017
  15. Oct 31, 2017
    • Yamagishi Kazutoshi's avatar
      Update dependencies for Ruby (2017-10-30) (#5566) · a2a4bf4e
      Yamagishi Kazutoshi authored
      * Update better_errors to version 2.4.0
      
      * Update binding_of_caller to version 0.7.3
      
      * Update bootsnap to version 1.1.5
      
      * Update browser to version 2.5.2
      
      * Update capistrano to version 3.10.0
      
      * Update capistrano-bundler to version 1.3.0
      
      * Update capistrano-rbenv to version 2.1.2
      
      * Update capybara to version 2.15.4
      
      * Update cld3 to version 3.2.1
      
      * Update fabrication to version 2.18.0
      
      * Update fog-openstack to version 0.1.22
      
      * Update kaminari to version 1.1.1
      
      * Update lograge to version 0.7.1
      
      * Update nokogiri to version 1.8.1
      
      * Update oj to version 3.3.9
      
      * Update ox to version 2.8.1
      
      * Update parallel_tests to version 2.17.0
      
      * Update pkg-config to version 1.2.8
      
      * Update rspec-rails to version 3.7.1
      
      * Update rubocop to version 0.51.0
      
      * Update scss_lint to version 0.55.0
      
      * Update sidekiq to version 5.0.5
      
      * Update sidekiq-scheduler to version 2.1.10
      
      * Update tzinfo-data to version 1.2017.3
      
      * Update webpacker to version 3.0.2
      
      * bundle update
      a2a4bf4e
  16. Oct 06, 2017
  17. Sep 29, 2017
  18. Sep 27, 2017
  19. Sep 25, 2017
  20. Sep 16, 2017
  21. Sep 11, 2017
  22. Sep 08, 2017
    • Eugen Rochko's avatar
      Fix language filter codes (#4841) · 1caf11dd
      Eugen Rochko authored
      * Fix language filter codes
      
      CLD3 returns BCP-47 language identifier, filter settings expect
      identifiers in the ISO 639-1 format. Convert between formats,
      and exclude duplicate languages from filter choices (zh-CN->zh)
      
      * Fix zh name
      1caf11dd
  23. Sep 05, 2017
  24. Aug 26, 2017
  25. Aug 17, 2017
  26. Jul 21, 2017
  27. Jul 19, 2017
  28. Jul 15, 2017
    • ThibG's avatar
      Optimize uri normalization (#4212) · 05cd3709
      ThibG authored
      * Add dependency on idn-ruby to speed up URI normalization
      
      * Use normalized_host instead of normalize.host when applicable
      
      When we are only interested in the normalized host, calling normalized_host
      avoids normalizing the other components of the URI as well as creating a
      new object
      05cd3709
  29. Jul 14, 2017
  30. Jul 13, 2017
    • Sorin Davidoi's avatar
      Web Push Notifications (#3243) · 0c7c188c
      Sorin Davidoi authored
      * feat: Register push subscription
      
      * feat: Notify when mentioned
      
      * feat: Boost, favourite, reply, follow, follow request
      
      * feat: Notification interaction
      
      * feat: Handle change of public key
      
      * feat: Unsubscribe if things go wrong
      
      * feat: Do not send normal notifications if push is enabled
      
      * feat: Focus client if open
      
      * refactor: Move push logic to WebPushSubscription
      
      * feat: Better title and body
      
      * feat: Localize messages
      
      * chore: Fix lint errors
      
      * feat: Settings
      
      * refactor: Lazy load
      
      * fix: Check if push settings exist
      
      * feat: Device-based preferences
      
      * refactor: Simplify logic
      
      * refactor: Pull request feedback
      
      * refactor: Pull request feedback
      
      * refactor: Create /api/web/push_subscriptions endpoint
      
      * feat: Spec PushSubscriptionController
      
      * refactor: WebPushSubscription => Web::PushSubscription
      
      * feat: Spec Web::PushSubscription
      
      * feat: Display first media attachment
      
      * feat: Support direction
      
      * fix: Stuff broken while rebasing
      
      * refactor: Integration with session activations
      
      * refactor: Cleanup
      
      * refactor: Simplify implementation
      
      * feat: Set VAPID keys via environment
      
      * chore: Comments
      
      * fix: Crash when no alerts
      
      * fix: Set VAPID keys in testing environment
      
      * fix: Follow link
      
      * feat: Notification actions
      
      * fix: Delete previous subscription
      
      * chore: Temporary logs
      
      * refactor: Move migration to a later date
      
      * fix: Fetch the correct session activation and misc bugs
      
      * refactor: Move migration to a later date
      
      * fix: Remove follow request (no notifications)
      
      * feat: Send administrator contact to push service
      
      * feat: Set time-to-live
      
      * fix: Do not show sensitive images
      
      * fix: Reducer crash in error handling
      
      * feat: Add badge
      
      * chore: Fix lint error
      
      * fix: Checkbox label overlap
      
      * fix: Check for payload support
      
      * fix: Rename action "type" (crash in latest Chrome)
      
      * feat: Action to expand notification
      
      * fix: Lint errors
      
      * fix: Unescape notification body
      
      * fix: Do not allow boosting if the status is hidden
      
      * feat: Add VAPID keys to the production sample environment
      
      * fix: Strip HTML tags from status
      
      * refactor: Better error messages
      
      * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet)
      
      * fix: Error when target_status is nil
      
      * fix: Handle lack of image
      
      * fix: Delete reference to invalid subscriptions
      
      * feat: Better error handling
      
      * fix: Unescape HTML characters after tags are striped
      
      * refactor: Simpify code
      
      * fix: Modify to work with #4091
      
      * Sort strings alphabetically
      
      * i18n: Updated Polish translation
      
      it annoys me that it's not fully localized :P
      
      * refactor: Use current_session in PushSubscriptionController
      
      * fix: Rebase mistake
      
      * fix: Set cacheName to mastodon
      
      * refactor: Pull request feedback
      
      * refactor: Remove logging statements
      
      * chore(yarn): Fix conflicts with master
      
      * chore(yarn): Copy latest from master
      
      * chore(yarn): Readd offline-plugin
      
      * refactor: Use save! and update!
      
      * refactor: Send notifications async
      
      * fix: Allow retry when push fails
      
      * fix: Save track for failed pushes
      
      * fix: Minify sw.js
      
      * fix: Remove account_id from fabricator
      0c7c188c
  31. Jul 08, 2017
  32. Jul 07, 2017
  33. Jul 05, 2017
  34. Jun 25, 2017
    • Eugen Rochko's avatar
      Add overview of active sessions (#3929) · f7301bd5
      Eugen Rochko authored
      * Add overview of active sessions
      
      * Better display of browser/platform name
      
      * Improve how browser information is stored and displayed for sessions overview
      
      * Fix test
      f7301bd5
  35. Jun 18, 2017
Loading