1. 12 Nov, 2017 1 commit
  2. 29 Sep, 2017 1 commit
  3. 28 Sep, 2017 1 commit
    • Eugen Rochko's avatar
      Add ability to specify alternative text for media attachments (#5123) · 4ec17711
      Eugen Rochko authored
      * Fix #117 - Add ability to specify alternative text for media attachments
      
      - POST /api/v1/media accepts `description` straight away
      - PUT /api/v1/media/:id to update `description` (only for unattached ones)
      - Serialized as `name` of Document object in ActivityPub
      - Uploads form adjusted for better performance and description input
      
      * Add tests
      
      * Change undo button blend mode to difference
      4ec17711
  4. 20 Sep, 2017 1 commit
  5. 16 Sep, 2017 1 commit
  6. 01 Sep, 2017 1 commit
    • Eugen Rochko's avatar
      Make PreviewCard records reuseable between statuses (#4642) · 7dc50350
      Eugen Rochko authored
      * Make PreviewCard records reuseable between statuses
      
      **Warning!** Migration truncates preview_cards tablec
      
      * Allow a wider thumbnail for link preview, display it in horizontal layout (#4648)
      
      * Delete preview cards files before truncating
      
      * Rename old table instead of truncating it
      
      * Add mastodon:maintenance:remove_deprecated_preview_cards
      
      * Ignore deprecated_preview_cards in schema definition
      
      * Fix null behaviour
      7dc50350
  7. 05 Jul, 2017 1 commit
  8. 12 Jun, 2017 1 commit
  9. 22 May, 2017 1 commit
    • Matt Jankowski's avatar
      Specs for cleanup workers (#3235) · ec34ec63
      Matt Jankowski authored
      * Add spec files for feed and media cleanup workers
      
      * Add coverage for feed and media cleanup schedulers
      
      * Clean up feed and media cleanup workers
      ec34ec63
  10. 18 May, 2017 1 commit
  11. 16 May, 2017 1 commit
  12. 05 May, 2017 1 commit
  13. 02 May, 2017 1 commit
    • yhirano's avatar
      annotate models (#2697) · 298796cc
      yhirano authored
      * add annotate to Gemfile
      
      * rails g annotate:install
      
      * configure annotate_models
      
      * add schema info to models
      
      * fix rubocop to add frozen_string_literal
      298796cc
  14. 28 Apr, 2017 1 commit
    • Patrick Figel's avatar
      Set correct attachment type for rejected media (#2599) · 8ac7fca5
      Patrick Figel authored
      In #2110, a new attachment type "unknown" was introduced for
      attachments that were rejected due to a domain being blocked using
      reject_media. However, the "type" field was never set to "unknown"
      because a default value of "0" (image) is set for that column,
      causing the `type.blank?` expression to always equal false.
      
      This version uses type_changed? instead, causing the type to be set
      to "unknown" unless a type has been explicitly set. This introduces
      a small change in behaviour causing the type to be set to unknown
      before paperclip calls `before_post_process`. Presumably this
      behaviour is more appropriate than the current one because the
      attachment type has not been determined by that point.
      
      Included are new tests for `ProcessFeedService` and
      `UpdateRemoteProfileService` which now check that remote media is
      downloaded for non-blocked domains and is rejected for others.
      8ac7fca5
  15. 26 Apr, 2017 1 commit
    • Francis Chong's avatar
      Add media dimensions (#2448) · 193dddb4
      Francis Chong authored
      * Fixes #1985
      
      - add migration AddMediaAttachmentMeta, which add meta field to media_attachments
      - before saving attachment, set file meta if needed
      - add meta in api
      
      * add spec
      
      * align the “size” format for image and video
      
      * fix code climate
      
      * fixes media_attachment_spec.rb
      193dddb4
  16. 25 Apr, 2017 1 commit
    • Eugen Rochko's avatar
      Punycode URI normalization (#2370) · 17c591ff
      Eugen Rochko authored
      * Fix #2119 - Whenever about to send a HTTP request, normalize the URI
      
      * Add test for IDN request in FetchLinkCardService
      
      * Perform IDN normalization on domains before they are stored in the DB
      17c591ff
  17. 19 Apr, 2017 2 commits
  18. 18 Apr, 2017 1 commit
  19. 17 Apr, 2017 1 commit
  20. 06 Mar, 2017 1 commit
  21. 05 Mar, 2017 5 commits
  22. 04 Mar, 2017 1 commit
  23. 27 Jan, 2017 1 commit
  24. 05 Jan, 2017 1 commit
  25. 18 Dec, 2016 1 commit
  26. 07 Dec, 2016 1 commit
  27. 05 Dec, 2016 1 commit
  28. 04 Dec, 2016 1 commit
  29. 28 Nov, 2016 1 commit
  30. 18 Nov, 2016 1 commit
  31. 15 Nov, 2016 1 commit
  32. 01 Nov, 2016 1 commit
  33. 23 Oct, 2016 1 commit
  34. 22 Oct, 2016 1 commit
  35. 18 Oct, 2016 1 commit