Skip to content
Extraits de code Groupes Projets
  1. mai 03, 2018
    • ThibG's avatar
      Fixes/do not override timestamps (#7336) · a2460596
      ThibG a rédigé
      * Revert "Fixes/do not override timestamps (#7331)"
      
      This reverts commit 581a5c9d.
      
      * Document Snowflake ID corner-case a bit more
      
      Snowflake IDs are used for two purposes: making object identifiers harder to
      guess and ensuring they are in chronological order. For this reason, they
      are based on the `created_at` attribute of the object.
      
      Unfortunately, inserting items with older snowflakes IDs will break the
      assumption of consumers of the paging APIs that new items will always have
      a greater identifier than the last seen one.
      
      * Add `override_timestamps` virtual attribute to not correlate snowflake ID with created_at
      a2460596
    • ThibG's avatar
      Fixes/do not override timestamps (#7331) · 581a5c9d
      ThibG a rédigé
      * Do not override timestamps for incoming toots
      
      * Remove every reference to override_timestamps
      
      Statuses are now created with the announced publishing date
      and are only pushed to timelines if that date is at most
      6 hours earlier than the time at which it is processed.
      581a5c9d
    • Eugen Rochko's avatar
  2. mai 02, 2018
  3. avr. 30, 2018
  4. avr. 26, 2018
    • Eugen Rochko's avatar
      Add entity cache (#7271) · a872392c
      Eugen Rochko a rédigé
      * Add entity cache
      
      Use a caching layer for mentions and custom emojis that are
      dynamically extracted from text.
      
      Reduce duplicate text extractions
      
      * Fix code style issue
      Non vérifiée
      a872392c
  5. avr. 25, 2018
  6. avr. 23, 2018
  7. avr. 22, 2018
  8. avr. 14, 2018
    • Eugen Rochko's avatar
      Add bio fields (#6645) · 78ed4ab7
      Eugen Rochko a rédigé
      * 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
      Non vérifiée
      78ed4ab7
  9. avr. 08, 2018
    • Levi Bard's avatar
      Enable updating additional account information from user preferences via rest api (#6789) · cd0eaa34
      Levi Bard a rédigé
      * Enable updating additional account information from user preferences via rest api
      Resolves #6553
      
      * Pacify rubocop
      
      * Decoerce incoming settings in UserSettingsDecorator
      
      * Create user preferences hash directly from incoming credentials instead of going through ActionController::Parameters
      
      * Clean up user preferences update
      
      * Use ActiveModel::Type::Boolean instead of manually checking stringified number equivalence
      cd0eaa34
  10. avr. 07, 2018
  11. avr. 01, 2018
  12. mars 30, 2018
  13. mars 28, 2018
  14. mars 26, 2018
    • Akihiko Odaki's avatar
      Validate HTTP response length while receiving (#6891) · 40e5d230
      Akihiko Odaki a rédigé
      to_s method of HTTP::Response keeps blocking while it receives the whole
      content, no matter how it is big. This means it may waste time to receive
      unacceptably large files. It may also consume memory and disk in the
      process. This solves the inefficency by checking response length while
      receiving.
      40e5d230
  15. mars 24, 2018
  16. mars 20, 2018
    • Rey Tucker's avatar
      request: in the event of failure, try other IPs (#6761) (#6813) · 36b57037
      Rey Tucker a rédigé
      * request: in the event of failure, try other IPs (#6761)
      
      In the case where a name has multiple A/AAAA records, we should
      try subsequent records instead of immediately failing when we have a
      failure on the first IP address.
      
      This significantly improves delivery success when there are network
      connectivity problems affecting only IPv4 or IPv6.
      
      * fix method call style
      
      * request_spec: adjust test case to use Addrinfo
      
      * request: Request/open: move private addr check to within begin/rescue
      
      * request_spec: add case to test failover, fix exception check
      
      * Double Addrinfo.foreach so that it correctly yields instances
      36b57037
  17. mars 19, 2018
  18. mars 08, 2018
    • MitarashiDango's avatar
      fix validation error (media only status) (#6684) · 6dcf9627
      MitarashiDango a rédigé
      * fix validation error (media only status)
      
      * Incorporating review suggestions
      
      * Reflect similar fix to OStatus side
      
      * Fix not to include media in transaction
      
      * Restore the limit of the number of media
      
      * Fix not to return nil
      6dcf9627
  19. mars 07, 2018
  20. mars 04, 2018
  21. fév. 28, 2018
  22. fév. 24, 2018
  23. fév. 21, 2018
    • Eugen Rochko's avatar
      Focal points (#6520) · 90f12f2e
      Eugen Rochko a rédigé
      * Add focus param to media API, center thumbnails on focus point
      
      * Add UI for setting a focal point
      
      * Improve focal point icon on upload item
      
      * Use focal point in upload preview
      
      * Add focalPoint property to ActivityPub
      
      * Don't show focal point button for non-image attachments
      Non vérifiée
      90f12f2e
    • Eugen Rochko's avatar
      Fix avatar and header issues by using custom geometry detector (#6515) · a7171af0
      Eugen Rochko a rédigé
      * 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
      Non vérifiée
      a7171af0
  24. fév. 17, 2018
  25. fév. 09, 2018
    • Eugen Rochko's avatar
      Full-text search for authorized statuses (#6423) · 3ebc0ad4
      Eugen Rochko a rédigé
      * 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
      Non vérifiée
      3ebc0ad4
  26. fév. 08, 2018
  27. fév. 02, 2018
Chargement en cours