bastodon/app
CommanderRoot 0ec695e036
Replace deprecated String.prototype.substr() (#17949)
* Replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

* Change String.prototype.substring() to String.prototype.slice()

.substring() and .slice() work very similary but .slice() is a bit faster and stricter

* Add ESLint rule to forbid usage of .substr and .substring

.substr() is deprecated and .substring() is very similar to .slice() so better to use .slice() at all times

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-04-04 12:19:45 -04:00
..
chewy Fix error MethodError in Chewy::Strategy::Sidekiq::Worker (#17912) 2022-03-31 00:49:24 +02:00
controllers Fix /api/v1/admin/accounts (#17887) 2022-03-28 23:57:38 +02:00
helpers Fix unusual number formatting in some locales (#17929) 2022-04-01 23:59:13 +02:00
javascript Replace deprecated String.prototype.substr() (#17949) 2022-04-04 12:19:45 -04:00
lib Fix error MethodError in Chewy::Strategy::Sidekiq::Worker (#17912) 2022-03-31 00:49:24 +02:00
mailers Refactor formatter (#17828) 2022-03-26 02:53:34 +01:00
models Fix error MethodError in Chewy::Strategy::Sidekiq::Worker (#17912) 2022-03-31 00:49:24 +02:00
policies Spelling (#17705) 2022-03-06 22:51:40 +01:00
presenters Add /api/v1/accounts/familiar_followers to REST API (#17700) 2022-03-07 09:36:47 +01:00
serializers fix: PWA web manifest not changed to new routes (#17921) 2022-03-31 11:20:26 +02:00
services Refactor response_to_recipient? CTE (#17899) 2022-03-30 10:26:51 +02:00
validators Fix being able to post URLs longer than 4096 characters (#17908) 2022-03-30 14:46:03 +02:00
views Refactor account and status formatting (#17877) 2022-03-28 01:17:17 +02:00
workers Fix clean_discarded_statuses (#17822) 2022-03-19 09:24:08 +01:00