Skip to content
Extraits de code Groupes Projets
  1. nov. 05, 2021
  2. mai 04, 2021
  3. avr. 24, 2021
  4. avr. 17, 2021
  5. mars 19, 2021
    • Claire's avatar
      Bypass MX validation for explicitly allowed domains (#15930) · 051efed5
      Claire a rédigé
      * Bypass MX validation for explicitly allowed domains
      
      This spares some lookups and prevent issues in some edge cases with
      local domains.
      
      * Add tests
      
      * Fix test
      051efed5
    • Claire's avatar
      Prepare Mastodon for zeitwerk autoloader (#15917) · a4dcaef5
      Claire a rédigé
      * Prepare Mastodon for zeitwerk autoloader (Rails 6)
      
      Add inflections and rename/move a few classes.
      
      In particular, app/lib/exceptions.rb and app/lib/sanitize_config.rb
      were manually loaded while still in autoload paths.
      
      * Add inflection for Url → URL
      a4dcaef5
  6. mars 03, 2021
  7. mars 02, 2021
  8. mars 01, 2021
  9. jan. 22, 2021
  10. jan. 09, 2021
  11. déc. 18, 2020
  12. déc. 10, 2020
    • ThibG's avatar
      Add honeypot fields and minimum fill-out time for sign-up form (#15276) · 49eb4d4d
      ThibG a rédigé
      
      * Add honeypot fields to limit non-specialized spam
      
      Add two honeypot fields: a fake website input and a fake password confirmation
      one. The label/placeholder/aria-label tells not to fill them, and they are
      hidden in CSS, so legitimate users should not fall into these.
      
      This should cut down on some non-Mastodon-specific spambots.
      
      * Require a 3 seconds delay before submitting the registration form
      
      * Fix tests
      
      * Move registration form time check to model validation
      
      * Give people a chance to clear the honeypot fields
      
      * Refactor honeypot translation strings
      
      Co-authored-by: default avatarClaire <claire.github-309c@sitedethib.com>
      49eb4d4d
  13. août 12, 2020
    • ThibG's avatar
      Improve email address validation (#14565) · 8d217d72
      ThibG a rédigé
      * Increase DNS timeout from 1 second to 5 seconds for MX check
      
      1 seconds is rather short when using a recursive DNS resolver which
      hasn't got a cached result already available. Use 5 seconds instead,
      which is the timeout value we use for outgoing HTTP queries.
      
      * Add more precise error messages for invalid e-mail addresses
      8d217d72
  14. juin 02, 2020
  15. avr. 02, 2020
    • Sasha Sorokin's avatar
      Improve polls: option lengths & redesign (#13257) · 37b3985b
      Sasha Sorokin a rédigé
      This commit redesign the polls and increases characters limit for the
      options from 25 to 50 characters, giving pollsters more freedom.
      
      Summarizing, the redesign is making the polls more adaptive for upcoming
      changes to the options characters limit: the bar, or a "chart", is now
      displayed separately from the option itself; vote check mark is moved
      next to the option text, making the percentages take less space. Option
      lengths are taken into account and text is wrapped to multiple lines
      if necessary to avoid overflow.
      37b3985b
  16. fév. 01, 2020
  17. jan. 25, 2020
  18. jan. 23, 2020
    • Eugen Rochko's avatar
      Add announcements (#12662) · f52c988e
      Eugen Rochko a rédigé
      * Add announcements
      
      Fix #11006
      
      * Add reactions to announcements
      
      * Add admin UI for announcements
      
      * Add unit tests
      
      * Fix issues
      
      - Add `with_dismissed` param to announcements API
      - Fix end date not being formatted when time range is given
      - Fix announcement delete causing reactions to send streaming updates
      - Fix announcements container growing too wide and mascot too small
      - Fix `all_day` being settable when no time range is given
      - Change text "Update" to "Announcement"
      
      * Fix scheduler unpublishing announcements before they are due
      
      * Fix filter params not being passed to announcements filter
      f52c988e
  19. jan. 12, 2020
    • ThibG's avatar
      Fix invalid votes from the API being accepted (#12601) · d386d891
      ThibG a rédigé
      * Fix invalid votes from the API being accepted
      
      Fixes #12556
      
      - Ensure `choice` is an integer instead of silently converting to 0
      - Ensure `choice` corresponds to an actual choice of the poll
      
      * Please CodeClimate
      d386d891
  20. août 30, 2019
  21. août 29, 2019
  22. août 08, 2019
  23. août 05, 2019
    • Eugen Rochko's avatar
      Change admin UI for hashtags and add back whitelisted trends (#11490) · 115dab78
      Eugen Rochko a rédigé
      Fix #271
      
      Add back the `GET /api/v1/trends` API with the caveat that it does
      not return tags that have not been allowed to trend by the staff.
      
      When a hashtag begins to trend (internally) and that hashtag has
      not been previously reviewed by the staff, the staff is notified.
      
      The new admin UI for hashtags allows filtering hashtags by where
      they are used (e.g. in the profile directory), whether they have
      been reviewed or are pending reviewal, they show by how many people
      the hashtag is used in the directory, how many people used it
      today, how many statuses with it have been created today, and it
      allows fixing the name of the hashtag to make it more readable.
      
      The disallowed hashtags feature has been reworked. It is now
      controlled from the admin UI for hashtags instead of from
      the file `config/settings.yml`
      115dab78
  24. juil. 24, 2019
    • Rey Tucker's avatar
      Don't delete periods when validating username uniqueness (#11392) (#11400) · 94f5c714
      Rey Tucker a rédigé
      * Check to make sure usernames with '.' cannot be created
      
      * Add test for instance actor account name conflicts
      
      This makes sure that migration 20190715164535_add_instance_actor
      won't fail if there's already an account that is named the same
      as the domain (minus the .)
      
      * Put the test into the correct context...
      
      * Add another test to split this into two validations
      
      * Don't delete periods when validating username uniqueness (#11392)
      
      The 20190715164535_add_instance_actor migration fails if there's
      already a username similar to the domain name, e.g. if you are
      'vulpine.club' and have a user named 'vulpineclub', validation
      fails.
      
      Upon further review, usernames with periods are dropped by the
      regular expression in the Account class, so we don't need to
      worry about it here.
      
      Fixes #11392
      94f5c714
  25. mai 19, 2019
  26. mai 03, 2019
  27. avr. 10, 2019
  28. avr. 09, 2019
  29. avr. 06, 2019
  30. mars 26, 2019
  31. mars 23, 2019
    • Eugen Rochko's avatar
      Add validations to admin settings (#10348) · 555c4e11
      Eugen Rochko a rédigé
      * Add validations to admin settings
      
      - Validate correct HTML markup
      - Validate presence of contact username & e-mail
      - Validate that all usernames are valid
      - Validate that enums have expected values
      
      * Fix code style issue
      
      * Fix tests
      555c4e11
  32. mars 06, 2019
  33. mars 04, 2019
  34. mars 03, 2019
  35. fév. 12, 2019
  36. jan. 05, 2019
  37. jan. 03, 2019
Chargement en cours