mastodon/app
aschmitz fdca411888 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.
2017-09-19 21:27:43 -05:00
..
controllers Fix JavaScript interface with long IDs 2017-09-19 21:27:38 -05:00
helpers Fix filterable_languages method of SettingsHelper (#4966) 2017-09-16 14:59:41 +02:00
javascript Additional fixes for stringified IDs in JSON 2017-09-19 21:27:43 -05:00
lib Define emoji context for ActivityPub (#5004) 2017-09-19 05:05:48 +02:00
mailers Set default From address in config (#3756) 2017-07-07 00:12:12 +02:00
models Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
policies Add status destroy authorization to policy (#3453) 2017-05-30 22:56:31 +02:00
presenters Use Account.local.sum(statuses_count) instead of Status.local.count (#4996) 2017-09-18 14:59:57 +02:00
serializers Fix JavaScript interface with long IDs 2017-09-19 21:27:38 -05:00
services Admin interface for listing, adding and removing custom emojis (#5002) 2017-09-19 03:52:38 +02:00
validators Fix #4918 - Limit pinned toots to 5 (#4923) 2017-09-13 11:04:32 +02:00
views Admin interface for listing, adding and removing custom emojis (#5002) 2017-09-19 03:52:38 +02:00
workers Fix an error in ReplyDistributionWorker when replied status was deleted (#4974) 2017-09-16 18:18:00 +02:00