Skip to content
Snippets Groups Projects
  1. Sep 22, 2017
  2. Sep 21, 2017
  3. Sep 20, 2017
    • Nolan Lawson's avatar
      Reduce wasted renders for column_loading.js (#5021) · 798b0fc5
      Nolan Lawson authored
      * Reduce wasted renders for column_loading.js
      
      * Use defaultProps
      798b0fc5
    • Lynx Kotoura's avatar
      8fcfcddc
    • Eugen Rochko's avatar
    • unarist's avatar
      Use file extensions in addition to MIME types for file picker (#5029) · c8580eb8
      unarist authored
      Currently we're using a list of MIME types for `accept` attribute on `input[type="file"]` for filter options of file picker, and actual file extensions will be infered by browsers. However, infered extensions may not include our expected items. For example, "image/jpeg" seems to be infered to
      only ".jfif" extension in Firefox.
      
      To ensure common file extensions are in the list, this PR adds file extensions in addition to MIME types. Also having items in both format is encouraged by HTML5 spec.
      
      https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)
      c8580eb8
    • Lynx Kotoura's avatar
      Better Japanese translations (#5030) · f41e70ca
      Lynx Kotoura authored
      f41e70ca
    • mayaeh's avatar
      Add Japanese translations for multiple themes, custom emoji (#5026) · 7b8ecde3
      mayaeh authored
      * Add Japanese translations for multiple themes
      
      * Change Japanese translation for custom emoji's created_msg.
      7b8ecde3
    • TomoyaShibata's avatar
      Remove unnecessary css property (#5025) · 8cb45611
      TomoyaShibata authored
      8cb45611
    • JeanGauthier's avatar
      l10n Occitan: theme site, custom emoji, Oauth, newcomers follow admins, ... (#5023) · 1607bb44
      JeanGauthier authored
      * Oauto code string
      
      * Theme, custom emoji and more
      
      * Site theme
      
      * added two spaces wierdly gone away
      
      * Update oc.yml
      
      Changes adviced
      1607bb44
    • mayaeh's avatar
      Add japanese translations for custom emoji. (#5007) · 33c39784
      mayaeh authored
      * Add japanese translations for custom emoji.
      
      * Remove spaces.
      
      * Change destroyed_msg.
      
      * Revert "Change destroyed_msg."
      33c39784
    • aschmitz's avatar
      Change IDs to strings rather than numbers in API JSON output (#5019) · 669fe9ee
      aschmitz authored
      * Fix JavaScript interface with long IDs
      
      Somewhat predictably, the JS interface handled IDs as numbers, which in
      JS are IEEE double-precision floats. This loses some precision when
      working with numbers as large as those generated by the new ID scheme,
      so we instead handle them here as strings. This is relatively simple,
      and doesn't appear to have caused any problems, but should definitely
      be tested more thoroughly than the built-in tests. Several days of use
      appear to support this working properly.
      
      BREAKING CHANGE:
      
      The major(!) change here is that IDs are now returned as strings by the
      REST endpoints, rather than as integers. In practice, relatively few
      changes were required to make the existing JS UI work with this change,
      but it will likely hit API clients pretty hard: it's an entirely
      different type to consume. (The one API client I tested, Tusky, handles
      this with no problems, however.)
      
      Twitter ran into this issue when introducing Snowflake IDs, and decided
      to instead introduce an `id_str` field in JSON responses. I have opted
      to *not* do that, and instead force all IDs to 64-bit integers
      represented by strings in one go. (I believe Twitter exacerbated their
      problem by rolling out the changes three times: once for statuses, once
      for DMs, and once for user IDs, as well as by leaving an integer ID
      value in JSON. As they said, "If you’re using the `id` field with JSON
      in a Javascript-related language, there is a very high likelihood that
      the integers will be silently munged by Javascript interpreters. In most
      cases, this will result in behavior such as being unable to load or
      delete a specific direct message, because the ID you're sending to the
      API is different than the actual identifier associated with the
      message." [1]) However, given that this is a significant change for API
      users, alternatives or a transition time may be appropriate.
      
      1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html
      
      * Additional fixes for stringified IDs in JSON
      
      These should be the last two. These were identified using eslint to try
      to identify any plain casts to JavaScript numbers. (Some such casts are
      legitimate, but these were not.)
      
      Adding the following to .eslintrc.yml will identify casts to numbers:
      
      ~~~
        no-restricted-syntax:
        - warn
        - selector: UnaryExpression[operator='+'] > :not(Literal)
          message: Avoid the use of unary +
        - selector: CallExpression[callee.name='Number']
          message: Casting with Number() may coerce string IDs to numbers
      ~~~
      
      The remaining three casts appear legitimate: two casts to array indices,
      one in a server to turn an environment variable into a number.
      
      * Back out RelationshipsController Change
      
      This was made to make a test a bit less flakey, but has nothing to
      do with this branch.
      
      * Change internal streaming payloads to stringified IDs as well
      
      Per
      https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452
      we need these changes to send deleted status IDs as strings, not
      integers.
      669fe9ee
    • Eugen Rochko's avatar
  4. Sep 19, 2017
  5. Sep 18, 2017
Loading