Skip to content
Snippets Groups Projects
  1. Oct 21, 2021
    • Claire's avatar
      Fix some link previews being incorrectly generated from other prior links (#16885) · ec059317
      Claire authored
      * Add tests
      
      * Fix some link previews being incorrectly generated from different prior links
      
      PR #12403 added a cache to avoid redundant queries when the OEmbed endpoint can
      be guessed from the URL. This caching mechanism is not perfectly correct as
      there is no guarantee that all pages from a given domain share the same
      OEmbed provider endpoint.
      
      This PR prevents the FetchOEmbedService from caching OEmbed endpoint that
      cannot be generalized by replacing a fully-qualified URL from the endpoint's
      parameters, greatly reducing the number of incorrect cached generalizations.
      ec059317
  2. Sep 29, 2021
    • Claire's avatar
      Switch from unmaintained paperclip to kt-paperclip (#16724) · fc3ae134
      Claire authored
      * Switch from unmaintained paperclip to kt-paperclip
      
      * Drop some compatibility monkey-patches not required by kt-paperclip
      
      * Drop media spoof check monkey-patching
      
      It's broken with kt-paperclip and hopefully it won't be needed anymore
      
      * Fix regression introduced by paperclip 6.1.0
      
      * Do not rely on pathname to call FastImage
      
      * Add test for ogg vorbis file with cover art
      
      * Add audio/vorbis to the accepted content-types
      
      This seems erroneous as this would be the content-type for a vorbis stream
      without an ogg container, but that's what the `marcel` gem outputs, so…
      
      * Restore missing for_as_default method
      
      * Refactor Attachmentable concern and delay Paperclip's content-type spoof check
      
      Check for content-type spoofing *after* setting the extension ourselves, this
      fixes a regression with kt-paperclip's validations being more strict than
      paperclip 6.0.0 and rejecting some Pleroma uploads because of unknown
      extensions.
      
      * Please CodeClimate
      
      * Add audio/vorbis to the unreliable set
      
      It doesn't correspond to a file format and thus has no extension associated.
      fc3ae134
  3. Jul 13, 2021
  4. Nov 19, 2020
  5. Oct 24, 2019
  6. Jul 06, 2019
  7. Apr 08, 2019
  8. Apr 03, 2019
  9. Jan 14, 2019
    • Renato "Lond" Cerqueira's avatar
      Fix undefined method error in sidekiq (#9807) · 5c5e14c8
      Renato "Lond" Cerqueira authored
      * Fix undefined method error in sidekiq
      
      Body can be not nil but still be empty, which causes a
      `NoMethodError: undefined method `[]' for nil:NilClass` further in the
      code. This checks for an empty body to avoid the issue.
      
      * Fix codeclimate issue
      5c5e14c8
  10. Dec 17, 2018
  11. Dec 14, 2018
    • Sumit Khanna's avatar
      Error message for avatar image that's too large. #9204 (#9518) · 769c2d26
      Sumit Khanna authored
      * Error message for avatar image that's too large. #9204
      
      * Code climate/formatting
      
      * Removed avatar error message
      
      * Moved valid image dimentions check to update service
      
      * removed unnescessary begin block
      
      * code climate formatting
      
      * code climate indent fix
      769c2d26
  12. May 02, 2018
    • Eugen Rochko's avatar
      Slightly reduce RAM usage (#7301) · cb5b5cb5
      Eugen Rochko authored
      * No need to re-require sidekiq plugins, they are required via Gemfile
      
      * Add derailed_benchmarks tool, no need to require TTY gems in Gemfile
      
      * Replace ruby-oembed with FetchOEmbedService
      
      Reduce startup by 45382 allocated objects
      
      * Remove preloaded JSON-LD in favour of caching HTTP responses
      
      Reduce boot RAM by about 6 MiB
      
      * Fix tests
      
      * Fix test suite by stubbing out JSON-LD contexts
      cb5b5cb5
    • Surinna Curtis's avatar
      Support Actors/Statuses with multiple types (#7305) · dc786c0c
      Surinna Curtis authored
      * Add equals_or_includes_any? helper in JsonLdHelper
      
      * Support arrays in JSON-LD type fields for actors/tags/objects.
      
      * Spec for resolving accounts with extension types
      
      * Style tweaks for codeclimate
      dc786c0c
  13. Apr 25, 2018
  14. Feb 10, 2018
  15. Dec 27, 2017
  16. Nov 17, 2017
  17. Oct 26, 2017
  18. Sep 19, 2017
    • Eugen Rochko's avatar
      Custom emoji (#4988) · 81cec35d
      Eugen Rochko authored
      * Custom emoji
      
      - In OStatus: `<link rel="emoji" name="coolcat" href="http://..." />`
      - In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }`
      - In REST API: Status object includes `emojis` array (`shortcode`, `url`)
      - Domain blocks with reject media stop emojis
      - Emoji file up to 50KB
      - Web UI handles custom emojis
      - Static pages render custom emojis as `<img />` tags
      
      Side effects:
      
      - Undo #4500 optimization, as I needed to modify it to restore
        shortcode handling in emojify()
      - Formatter#plaintext should now make sure stripped out line-breaks
        and paragraphs are replaced with newlines
      
      * Fix emoji at the start not being converted
      81cec35d
  19. Sep 17, 2017
  20. Jul 08, 2017
  21. Jul 05, 2017
  22. Jun 04, 2017
  23. May 03, 2017
  24. May 02, 2017
  25. Apr 25, 2017
    • Eugen's avatar
      Punycode URI normalization (#2370) · 17c591ff
      Eugen 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
  26. Apr 19, 2017
  27. Apr 11, 2017
  28. Apr 10, 2017
    • Eugen's avatar
      When avatar/header are GIF, generate static versions (#1428) · 12f72e17
      Eugen authored
      * When avatar/header are GIF, generate static versions.
      Account API returns "avatar"/"avatar_static", "header"/"header_static"
      Static version is the same as original for other cases
      Web UI de-animates avatars in toots, lists of users
      
      Fix #441, fix #596, prerequisite for #1064
      
      * Fix JS test
      
      * Add rake task to generate static avatars/headers from GIF ones, add test
      12f72e17
  29. Jan 11, 2017
  30. Oct 10, 2016
  31. Sep 12, 2016
  32. Sep 05, 2016
  33. Sep 04, 2016
  34. Mar 20, 2016
Loading