]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoFix compose_form.js for #2904 (#2960)
AA4ch1 [Wed, 10 May 2017 12:41:39 +0000 (21:41 +0900)]
Fix compose_form.js for #2904 (#2960)

8 years agoUpdate cld3 to 3.1.1 (#2958)
Akihiko Odaki [Wed, 10 May 2017 12:39:28 +0000 (21:39 +0900)]
Update cld3 to 3.1.1 (#2958)

According to the release message:
> Fix for macOS and minor improvements

8 years agoHandle hashtags in spoiler_texts (partial fix for #699) (#2683)
R Tucker [Wed, 10 May 2017 02:47:25 +0000 (22:47 -0400)]
Handle hashtags in spoiler_texts (partial fix for #699) (#2683)

* services: scan spoiler_text for hashtags (#699)

* views: link hashtags from spoiler_texts

This covers linking hashtags from within the spoiler
text on the server-generated pages.

* services: fix string concat going into hashtag RE

Cleaner Ruby syntax, may handle immutable strings better

8 years agoAdd spec for Pubsubhubbub::DistributionWorker. PuSH-deliver public items (#2954)
Eugen Rochko [Wed, 10 May 2017 00:55:43 +0000 (02:55 +0200)]
Add spec for Pubsubhubbub::DistributionWorker. PuSH-deliver public items (#2954)

to all subscribers. IDN-normalize callback URLs for subscriptions on insert.

8 years agoDisabled auto focus on toot form when search results are shown. (#2942)
fusshi- [Wed, 10 May 2017 00:51:43 +0000 (09:51 +0900)]
Disabled auto focus on toot form when search results are shown. (#2942)

8 years agoSpecs for pubsub subscribe service (#2951)
Matt Jankowski [Tue, 9 May 2017 18:48:30 +0000 (14:48 -0400)]
Specs for pubsub subscribe service (#2951)

* Add spec for pubsubhubbub/subscribe

* Refactor pubsubhubbub/subscribe service

8 years agoSpec and refactor for pubsubhubbub/unsubscribe service (#2946)
Matt Jankowski [Tue, 9 May 2017 17:58:18 +0000 (13:58 -0400)]
Spec and refactor for pubsubhubbub/unsubscribe service (#2946)

* Add coverage for pubsub unsubscribe service

* Refactor pubsub unsubscribe service

8 years agoUse CLD3 (#2949)
Akihiko Odaki [Tue, 9 May 2017 17:58:03 +0000 (02:58 +0900)]
Use CLD3 (#2949)

Compact Language Detector v3 (CLD3) is the successor of CLD2, which was
used in the previous implementation. CLD3 includes improvements since CLD2,
and supports newer compilers. On the other hand, it has additional
requirements and cld3-ruby, the FFI of CLD3 for Ruby, is still new and may
be still inmature.

Though CLD3 is named after CLD2, it is implemented with a neural network
model, different from the old implementation, which is based on a Naïve
Bayesian classifier.

CLD3 supports newer compilers, such as GCC 6. CLD2 is not compatible with
GCC 6 because it assigns negative values to varibales typed unsigned.
(see internal/cld_generated_cjk_uni_prop_80.cc) The support for GCC 6 and
newer compilers are essential today, when some server operating system
such as Ubuntu Server 16.10 has GCC 6 by default.

On the one hand, CLD3 requires C++11 support. Environments with old
compilers such as Ubuntu Server 14.04 needs to update the system or install
a newer compiler.

CLD3 needs protocol buffers as a new dependency. However,it is not
considered problematic because major server operating systems, CentOS and
Ubuntu Server provide them.

The FFI cld3-ruby was written by me (Akihiko Odaki) for use in Mastodon.
It is still new and may be inmature, but confirmed to pass existing tests.

8 years agoUse RegExp for require.context to filter custom stylesheets (#2950)
Akihiko Odaki [Tue, 9 May 2017 17:51:45 +0000 (02:51 +0900)]
Use RegExp for require.context to filter custom stylesheets (#2950)

ExtractTextWebpackPlugin extracts the content of loaded files, which means
it loads files loaded by require.context but not required after that.
However the former implementation is not aware of that.

require.context can have a RegExp to filter files to load. This change
gives a RegExp which matches with SCSSes with 'custom' prefix to
require.context to take advantage of the feature.

8 years agoFixed bug that timeline can not be displayed by InvalidURIError (#2947)
abcang [Tue, 9 May 2017 16:17:41 +0000 (01:17 +0900)]
Fixed bug that timeline can not be displayed by InvalidURIError (#2947)

8 years agoadd content-type in pubsubhubhub request header (#2943)
haoyayoi [Tue, 9 May 2017 14:34:47 +0000 (23:34 +0900)]
add content-type in pubsubhubhub request header (#2943)

* add content-type in pubsubhubhub request header

* fix type

8 years agoFix missing or not gender neutral strings. (#2944)
Alda Marteau-Hardi [Tue, 9 May 2017 14:14:44 +0000 (16:14 +0200)]
Fix missing or not gender neutral strings. (#2944)

8 years agoRemove jquery-ujs (#2939)
Yamagishi Kazutoshi [Tue, 9 May 2017 12:50:43 +0000 (21:50 +0900)]
Remove jquery-ujs (#2939)

* Remove jquery-ujs

* fix for eslint

8 years agoFix duplicated values in nl.json (#2931)
Yamagishi Kazutoshi [Tue, 9 May 2017 12:12:35 +0000 (21:12 +0900)]
Fix duplicated values in nl.json (#2931)

8 years agoUpdate Norwegian translations (#2937)
Koala Yeung [Tue, 9 May 2017 12:01:45 +0000 (20:01 +0800)]
Update Norwegian translations (#2937)

* Update Norwegian translations

* Updated no.json
* Updated activerecord.no.yml
* Updated no.yml
* Updated simple_form.no.yml

* i18n: fix Unicode character error in no.yml

* Javascript escaping code "\uD83D\uDC18" should be "\U0001f418" in
Ruby / yml

* i18n: remove unused keys in Norwegian translation

* Remove unused keys in no.yml and activerecord.no.yml
  by running: `bundle exec i18n-tasks remove-unused no`

* Add missing keys in activerecord.no.yml and no.yml by
  running: `bundle exec i18n-tasks add-missing no`

* i18n: escape the key 'no' in activerecord.no.yml

8 years agoFix snackbar notification stacking order (#2935)
Soshi Kato [Tue, 9 May 2017 12:01:29 +0000 (21:01 +0900)]
Fix snackbar notification stacking order (#2935)

8 years agoRemove rails_12factor (#2901)
alpaca-tc [Tue, 9 May 2017 03:15:54 +0000 (12:15 +0900)]
Remove rails_12factor (#2901)

8 years agoAdd cursor property to toot user avatar. (#2933)
HANATANI Takuma [Tue, 9 May 2017 01:48:15 +0000 (10:48 +0900)]
Add cursor property to toot user avatar. (#2933)

8 years agoServices specs for subscribe and unsubscribe (#2928)
Matt Jankowski [Mon, 8 May 2017 22:45:02 +0000 (18:45 -0400)]
Services specs for subscribe and unsubscribe (#2928)

* Add specs for unsubscribe service

* Fix non existent methods in unsubscribe service

* Clean up status handling in subscribe service

8 years agoSpecs for API push controller, with refactor (#2926)
Matt Jankowski [Mon, 8 May 2017 22:44:30 +0000 (18:44 -0400)]
Specs for API push controller, with refactor (#2926)

* Coverage for api push controller

* Refactor the api/push controller

8 years agoi18n mailer files for Occitan language (#2924)
Quent-in [Mon, 8 May 2017 21:15:03 +0000 (23:15 +0200)]
i18n mailer files for Occitan language (#2924)

* Create reset_password_instructions.oc.html.erb

* Create reset_password_instructions.oc.text.erb

* Create password_change.oc.html.erb

* Create password_change.oc.text.erb

* Create confirmation_instructions.oc.html.erb

* Create confirmation_instructions.oc.text.erb

8 years agoUpdating and extending Dutch strings (#2930)
jeroenpraat [Mon, 8 May 2017 21:11:12 +0000 (23:11 +0200)]
Updating and extending Dutch strings (#2930)

* Update nl

* Update nl

* Update nl

* Create confirmation_instructions.nl.html.erb

* Create confirmation_instructions.nl.text.erb

* Create password_change.nl.html.erb

* Create password_change.nl.text.erb

* Create reset_password_instructions.nl.html.erb

* Create reset_password_instructions.nl.text.erb

8 years agoDelegate Account#user_locale method and allow nil (#2927)
Matt Jankowski [Mon, 8 May 2017 21:10:50 +0000 (17:10 -0400)]
Delegate Account#user_locale method and allow nil (#2927)

8 years agoImprove error message for non-existent user being made an admin (#2929)
Matt Jankowski [Mon, 8 May 2017 21:08:55 +0000 (17:08 -0400)]
Improve error message for non-existent user being made an admin (#2929)

8 years agoMisc gem bumps (#2919)
Matt Jankowski [Mon, 8 May 2017 16:55:42 +0000 (12:55 -0400)]
Misc gem bumps (#2919)

* Update bundler-audit to version 0.5.0

* Update oj to version 3.0.6

* Update http-form_data to version 1.0.2

* Update parallel to version 1.11.2

* Update rails-i18n to version 5.0.4

* Update rack-protection to version 2.0.0

* Update haml to version 5.0.1

* Update scss_lint to version 0.53.0

* Relax requirement on i18n-tasks

* Remove haml and haml_lint gem requirement

8 years agoUpdate fr.json (#2915)
ButterflyOfFire [Mon, 8 May 2017 16:24:55 +0000 (17:24 +0100)]
Update fr.json (#2915)

* Update fr.json

Updating some missing french translations.

* Update fr.json

Fix repetition in line 41.

* Update fr.json

Fix : adding space between {name} and ? question mark.

8 years agoPrevent selection of unacceptable Content-Type files (#2910)
Yamagishi Kazutoshi [Mon, 8 May 2017 14:49:53 +0000 (23:49 +0900)]
Prevent selection of unacceptable Content-Type files (#2910)

* Prevent selection of unacceptable Content-Type files

* replace hard code

* media_attachments accept content-types in initial state

8 years agoUpdate simple_form.ar.yml (#2908)
ButterflyOfFire [Mon, 8 May 2017 13:58:38 +0000 (14:58 +0100)]
Update simple_form.ar.yml (#2908)

* Update simple_form.ar.yml

Added missing strings that were introduced to simple_form.ar.yml and completing translation.

* Create confirmation_instructions.ar.html.erb

* Create confirmation_instructions.ar.text.erb

* Create password_change.ar.html.erb

* Create password_change.ar.text.erb

* Create reset_password_instructions.ar.text.erb

* Create reset_password_instructions.ar.html.erb

8 years agoImprove scss color variables (#2912)
Matt Jankowski [Mon, 8 May 2017 13:57:49 +0000 (09:57 -0400)]
Improve scss color variables (#2912)

- Updates scss variables file to use better-named variables for black/white/etc
- Arranges the "mastodon classic" colors into variables
- Remove all references to `$color-*` naming, replacing with new

This does not in itself introduce "theme" support, but:

- It would probably be easier to start working on theme support after this
  change and others
- Even without the goal of themes, these changes make it more clear how the
  colors are being used.

There is almost definitely some edge case in here where I've guessed the
intent/context of some color usage incorrectly, but it still seems like a net
improvement.

8 years agoAdd Thai langauge (#2903)
Koala Yeung [Mon, 8 May 2017 13:56:00 +0000 (21:56 +0800)]
Add Thai langauge (#2903)

* Updated Thai language

* locale: remove unused translation in Thai

* locale: add Thai to settings menu and application

* locale: fix activerecord.th.yml format

8 years agoFix broken features list in RTL languages (#2909)
Yamagishi Kazutoshi [Mon, 8 May 2017 13:52:51 +0000 (22:52 +0900)]
Fix broken features list in RTL languages (#2909)

Fixes #2905

8 years agoFix small typo in ru.json (#2906)
ster [Mon, 8 May 2017 13:03:17 +0000 (17:03 +0400)]
Fix small typo in ru.json (#2906)

8 years agoRemove unnecessary keep file. (#2902)
HANATANI Takuma [Mon, 8 May 2017 13:01:19 +0000 (22:01 +0900)]
Remove unnecessary keep file. (#2902)

8 years agoRender sidekiq scheduler (#2898)
alpaca-tc [Mon, 8 May 2017 01:52:57 +0000 (10:52 +0900)]
Render sidekiq scheduler (#2898)

8 years agoAdded haml-lint and fix warnings (#2773)
yhirano [Mon, 8 May 2017 01:35:25 +0000 (10:35 +0900)]
Added haml-lint and fix warnings (#2773)

* add haml_lint to Gemfile

* add .haml-lint.yml

* fix warnings of haml_lint

8 years agoImprove example env file for local Postfix relay (#2892)
Jarek Lipski [Mon, 8 May 2017 01:34:11 +0000 (03:34 +0200)]
Improve example env file for local Postfix relay (#2892)

8 years agoImprove allowed language handling (#2897)
Matt Jankowski [Mon, 8 May 2017 01:32:52 +0000 (21:32 -0400)]
Improve allowed language handling (#2897)

* Dont allow empty value in user allowed languages

* Sanitize language input to reject blank values in array

8 years agoFix Ukrainian malformed locale submitted in #2893, i18n-tasks normalize (#2896)
Eugen Rochko [Sun, 7 May 2017 23:46:36 +0000 (01:46 +0200)]
Fix Ukrainian malformed locale submitted in #2893, i18n-tasks normalize (#2896)

8 years agosmall ui change so that the settings buttons at the top of each column are actually...
Jessica K. Litwin [Sun, 7 May 2017 21:47:55 +0000 (17:47 -0400)]
small ui change so that the settings buttons at the top of each column are actually aligned properly (#2894)

8 years agoUpdate Ukrainian, Russian translations (#2893)
ster [Sun, 7 May 2017 21:47:19 +0000 (01:47 +0400)]
Update Ukrainian, Russian translations (#2893)

* Update Ukrainian translation (rebased off Russian translation)

* Update Ukrainian, Russian translations

8 years agoEnable CodeClimate SCSS Lint checks (#2886)
yhirano [Sun, 7 May 2017 18:47:31 +0000 (03:47 +0900)]
Enable CodeClimate SCSS Lint checks (#2886)

* add scss_lint to Gemfile

* add .scss-lint.yml

* fix warnings of scss-lint

* chmod -x styles/variables.scss

* Enable CodeClimate SCSS Lint checks

8 years agoUpdate Russian translation (#2891)
Ratmir Karabut [Sun, 7 May 2017 18:47:19 +0000 (21:47 +0300)]
Update Russian translation (#2891)

* Add Russian translation (ru)

* Fix a missing comma

* Fix the wording for better consistency

* Update Russian translation

* Arrange Russian setting alphabetically

* Fix syntax error

* Update Russian translation

* Fix formatting error

* Update Russian translation

* Update Russian translation

* Update ru.jsx

* Fix syntax error

* Remove two_factor_auth.warning (appears obsolete)

* Add missing strings in ru.yml

A lot of new strings translated, especially for the newly added admin section

* Fix translation consistency

* Update Russian translation

* Update Russian translation (pluralizations)

* Update Russian translation

8 years agoAdd final newline to locale files (#2890)
Yamagishi Kazutoshi [Sun, 7 May 2017 17:55:47 +0000 (02:55 +0900)]
Add final newline to locale files (#2890)

8 years agonamespace redis usage (#2869)
beatrix [Sun, 7 May 2017 17:42:32 +0000 (13:42 -0400)]
namespace redis usage (#2869)

* add redis-namespace gem

* namespace redis usage

* refactor redis namespace code to be less intrusive

previously : would be prepended to keys when the
REDIS_NAMESPACE env var was not set

now if it is not set the namespacing functions are
not used at all, which should prevent disruptions
when instances update.

* fix redis namespace variable style in streaming js

* remove trailing space

* final redis namespace style fix

8 years agoUpdate ar.json (#2888)
ButterflyOfFire [Sun, 7 May 2017 17:37:32 +0000 (19:37 +0200)]
Update ar.json (#2888)

* Update ar.json

Adding more translations (updating the missing non translated strings) and some little minimal corrections.

* Update ar.json

Deleting final new line as suggested in the review.

* Update ar.json

* Update ar.json

8 years agoraise-when-oembed-not-found (#2882)
masarakki [Sun, 7 May 2017 17:00:40 +0000 (02:00 +0900)]
raise-when-oembed-not-found (#2882)

8 years agoAdd effective index to subscriptions (#2885)
alpaca-tc [Sun, 7 May 2017 17:00:20 +0000 (02:00 +0900)]
Add effective index to subscriptions (#2885)

8 years agoRefactor account.rb (#2881)
alpaca-tc [Sun, 7 May 2017 14:40:57 +0000 (23:40 +0900)]
Refactor account.rb (#2881)

* Call simple query

* Refactor Account#keypair

* Replace escaped single quote

* Extract similar behavior to method

* Gather the same condition to one block

* Remove not needed receiver

8 years agolocale: add Occitan locale-data for js (#2845)
Koala Yeung [Sun, 7 May 2017 14:39:37 +0000 (22:39 +0800)]
locale: add Occitan locale-data for js (#2845)

Translation works by @Quent-in.

8 years agoAdd Turkish yml file (#2878)
Özcan Zafer AYAN [Sun, 7 May 2017 14:20:53 +0000 (17:20 +0300)]
Add Turkish yml file (#2878)

* Add Turkish yml file

* Add translation files for Turkish

* Deleted click_to_edit key and val

Deleted click_to_edit: Düzenlemek için ilgili ayara tıklayınız line

8 years agoFix local fonts and change font-face values (#2877)
Ram Lmn [Sun, 7 May 2017 13:23:06 +0000 (18:53 +0530)]
Fix local fonts and change font-face values (#2877)

* Fix local fonts and change font-face values

* Remove eot font files

8 years agoRemove local_time gem, and add similar (#2875)
Yamagishi Kazutoshi [Sun, 7 May 2017 13:22:54 +0000 (22:22 +0900)]
Remove local_time gem, and add similar (#2875)

8 years agoupgrade emojione-picker (#2874)
Nolan Lawson [Sun, 7 May 2017 13:22:42 +0000 (06:22 -0700)]
upgrade emojione-picker (#2874)

8 years agoadd source maps for dev/production (#2873)
Nolan Lawson [Sun, 7 May 2017 13:22:30 +0000 (06:22 -0700)]
add source maps for dev/production (#2873)

8 years agoFix a aspect ratio for the embedded video (#2872)
Yamagishi Kazutoshi [Sun, 7 May 2017 13:21:46 +0000 (22:21 +0900)]
Fix a aspect ratio for the embedded video (#2872)

8 years agoFix redirect path for admin (#2871)
Yamagishi Kazutoshi [Sun, 7 May 2017 13:21:31 +0000 (22:21 +0900)]
Fix redirect path for admin (#2871)

8 years agoi18n: Update Hebrew interface translation. (#2880)
Ira [Sun, 7 May 2017 13:20:34 +0000 (16:20 +0300)]
i18n: Update Hebrew interface translation. (#2880)

* follow the instructions for registering the language as stated on the Tootsuite's docs.

* Added translation strings from latest master

Adding ‏ characters to many strings that are misdirected in the interface.

A tiny grammar fix

Updates of Hebrew strings to v1.3.1

Hebrew translation of the mailer templates.

Fix strings and a missing comma.

Just discovered two string keys were updated. this should lay Travis' mind to rest at last.

Remove mentions before counting characters to decide RTL ratio

Fixes for PR #2573

updated strings for latest master

Undo RTL counting, moved out to another branch for future consideration...

8 years agoUnblock domain service specs/refactor (#2867)
Matt Jankowski [Sun, 7 May 2017 12:44:28 +0000 (08:44 -0400)]
Unblock domain service specs/refactor (#2867)

* Add spec for unblock domain service

* Refactor UnblockDomainService

8 years agoFix unused key issue in zh-HK (#2870)
Koala Yeung [Sun, 7 May 2017 12:29:01 +0000 (20:29 +0800)]
Fix unused key issue in zh-HK (#2870)

* locale: remove unused keys in zh-HK

* locale: update json translations

* handled the untranslated strings.
* removed unused keys.

8 years agoFix locale key for account card (#2866)
Yamagishi Kazutoshi [Sun, 7 May 2017 01:09:58 +0000 (10:09 +0900)]
Fix locale key for account card (#2866)

8 years agoEnable CodeClimate Brakeman checks (#2861)
yhirano [Sun, 7 May 2017 00:45:34 +0000 (09:45 +0900)]
Enable CodeClimate Brakeman checks (#2861)

* add brakeman to Gemfile

* Enable CodeClimate brakeman checks

* add config/brakeman.ignore

8 years agoadd asynchronous emojione-picker (code-splitting) (#2863)
Nolan Lawson [Sun, 7 May 2017 00:42:38 +0000 (17:42 -0700)]
add asynchronous emojione-picker (code-splitting) (#2863)

8 years agoEnable CodeClimate Bundler-Audit checks (#2862)
yhirano [Sun, 7 May 2017 00:41:12 +0000 (09:41 +0900)]
Enable CodeClimate Bundler-Audit checks (#2862)

* add bundler-audit to Gemfile

* Enable CodeClimate bundler-audit checks

8 years agoHotfix convert string from symbol (#2856)
alpaca-tc [Sat, 6 May 2017 21:06:52 +0000 (06:06 +0900)]
Hotfix convert string from symbol (#2856)

* Convert key to string from symbol

* Prefer :public_send instead of

8 years agoFixes slow query in notifications api (#2851)
alpaca-tc [Sat, 6 May 2017 19:55:40 +0000 (04:55 +0900)]
Fixes slow query in notifications api (#2851)

* Add inclusion validation for activity_type

* When excluding all types with `WHERE NOT IN`, the query search all rows.

8 years agoEslintrc fix (#2850)
Koala Yeung [Sat, 6 May 2017 19:26:54 +0000 (03:26 +0800)]
Eslintrc fix (#2850)

* eslintrc: adapt changes in eslint-plugin-jsx-a11y

* Replace 'jsx-a11y/img-has-alt' with 'jsx-a11y/alt-text'.
  Reference: evcohen/eslint-plugin-jsx-a11y@24b6193

* Replace 'jsx-a11y/onclick-has-focus' with 'jsx-a11y/interactive-supports-focus'
  Reference: evcohen/eslint-plugin-jsx-a11y@cbdfeb8

* Replace 'jsx-a11y/onclick-has-role' with 'jsx-a11y/no-noninteractive-element-interactions'
  Reference: evcohen/eslint-plugin-jsx-a11y@18c9b71

* Update eslint-plugin-jsx-a11y to 5.0.0

Follow the change in Code Climate. Make sure the same eslintrc
can be executed locally and in Code Climate.

* Convert .eslintrc.json to equivlant .eslintrc.yml

* Less quotes and commas, more readability, allow comment.

8 years agoremove preset-es2015 from babel config (#2849)
Nolan Lawson [Sat, 6 May 2017 19:25:26 +0000 (12:25 -0700)]
remove preset-es2015 from babel config (#2849)

8 years agoswitch uglify to compress:true,mangle:true (#2852)
Nolan Lawson [Sat, 6 May 2017 19:24:59 +0000 (12:24 -0700)]
switch uglify to compress:true,mangle:true (#2852)

8 years agoFix Croatian localedata issues in mastodon.js (#2844)
Koala Yeung [Sat, 6 May 2017 15:30:48 +0000 (23:30 +0800)]
Fix Croatian localedata issues in mastodon.js (#2844)

* locale: added hr and oc react-intl locale data

* adds Croatian locale data in mastodon.js
* adds Occitan locale data in mastodon.js

Resolves #2667

* locale: sort locale data imports in mastodon.js

* locale: remove oc reference

* [react-intl](https://github.com/yahoo/react-intl) does not provide
  default locale data for Occitan. Hence removed from reference.

8 years agoReplace ws with uws (#2807)
Eshin Kunishima [Sat, 6 May 2017 15:05:38 +0000 (00:05 +0900)]
Replace ws with uws (#2807)

* Replace ws with uws

* fix indent

* Adjust indentation

* remove trailing space

8 years agoRemove final newline in generated locale files (#2840)
Yamagishi Kazutoshi [Sat, 6 May 2017 15:05:25 +0000 (00:05 +0900)]
Remove final newline in generated locale files (#2840)

8 years agotranslateionRunner: improve minimalist options (#2835)
Koala Yeung [Sat, 6 May 2017 15:05:13 +0000 (23:05 +0800)]
translateionRunner: improve minimalist options (#2835)

* translateionRunner: improve minimalist options

* Properly added flags.
* Added alias: -h, -f

* translationRunner: improve logic and flow

* Show all error messages instead of validate availability / name
  format separately.

* translationRunner: check messageDirectory existance

* translationRunner: changed throw string to Error

* translationRunner: use short cut for boolean

8 years agoAdd Japanese tranlsation for getting started, and run manage:tranlation (#2839)
Yamagishi Kazutoshi [Sat, 6 May 2017 15:04:53 +0000 (00:04 +0900)]
Add Japanese tranlsation for getting started, and run manage:tranlation (#2839)

* Add Japanese tranlsation for getting started, and run manage:tranlation

* remove unnecessary {apps}

8 years agoRefactor domain_blocks_controller (#2843)
alpaca-tc [Sat, 6 May 2017 15:03:34 +0000 (00:03 +0900)]
Refactor domain_blocks_controller (#2843)

* Set domain_block by before_action

* Cast value with ActiveRecord::Type

* Batch update

8 years agoi18n: corrected Polish translation (#2841)
m4sk1n [Sat, 6 May 2017 14:41:46 +0000 (16:41 +0200)]
i18n: corrected Polish translation (#2841)

8 years agoUse null as default oEmbed height (#2842)
rch850 [Sat, 6 May 2017 14:31:43 +0000 (23:31 +0900)]
Use null as default oEmbed height (#2842)

Height 640 is too big for most toots.
Twitter use null value to support flexible height.

8 years agoOptimize MuteService and AfterBlockService (#2836)
alpaca-tc [Sat, 6 May 2017 14:31:07 +0000 (23:31 +0900)]
Optimize MuteService and AfterBlockService (#2836)

8 years agoAdded support options to the bottom right (#2769)
jeroenpraat [Sat, 6 May 2017 11:43:43 +0000 (13:43 +0200)]
Added support options to the bottom right (#2769)

* Added support options to the bottom right

I don't know if this is actually wanted, but I made these changes on my instance, so why not share it. Not wanted? No problem! BTW: Maybe the Mastodon image should leave here, cause there is no space left cause of the increased height of the getting started column.

* 2 paragraphs looks cleaner

* Update

* Good morning

8 years agoVersion bumps for gems (#2838)
Matt Jankowski [Sat, 6 May 2017 11:37:07 +0000 (07:37 -0400)]
Version bumps for gems (#2838)

* Update aws-sdk to version 2.9.15

* Update ox to version 2.5.0

* Update sidekiq-unique-jobs to version 5.0.8

* Update rspec-rails to version 3.6.0

8 years agoFix Scheduler::SubscriptionsScheduler (#2834)
Eugen Rochko [Sat, 6 May 2017 11:05:03 +0000 (13:05 +0200)]
Fix Scheduler::SubscriptionsScheduler (#2834)

* Fix Scheduler::SubscriptionsScheduler, add worker test for it

* Change production log level of Sidekiq to "warn" instead of "info"

8 years agoHandling failed http response (#2823)
alpaca-tc [Sat, 6 May 2017 10:55:59 +0000 (19:55 +0900)]
Handling failed http response (#2823)

8 years agoi18n: Updated Polish translation (#2832)
m4sk1n [Sat, 6 May 2017 09:06:55 +0000 (11:06 +0200)]
i18n: Updated Polish translation (#2832)

* i18n: updated Polish translation

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>
* i18n: completed Polish translation

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>
8 years agoremove legacy decorators, use lodash.debounce (#2830)
Nolan Lawson [Sat, 6 May 2017 09:05:32 +0000 (02:05 -0700)]
remove legacy decorators, use lodash.debounce (#2830)

8 years agoMove babel-plugin-lodash to dependencies from devDependencies (#2831)
Yamagishi Kazutoshi [Sat, 6 May 2017 09:04:55 +0000 (18:04 +0900)]
Move babel-plugin-lodash to dependencies from devDependencies (#2831)

8 years agoremove unnecessary buffer polyfill (#2833)
Nolan Lawson [Sat, 6 May 2017 09:02:19 +0000 (02:02 -0700)]
remove unnecessary buffer polyfill (#2833)

8 years agoseparate .babelrc for prod/dev, add babel-plugin-lodash (#2829)
Nolan Lawson [Sat, 6 May 2017 02:18:23 +0000 (19:18 -0700)]
separate .babelrc for prod/dev, add babel-plugin-lodash (#2829)

8 years agoStreamline javascript translation by improving translationRunner (#2808)
Koala Yeung [Sat, 6 May 2017 02:05:38 +0000 (10:05 +0800)]
Streamline javascript translation by improving translationRunner (#2808)

* package.json: Add "build:*" targets

* Improve react-intl-translations-manager workflow.
  * Added "build:production" to build production bundle.
  * Added "build:development" to build development bundle.

* Fix json translation files

* Run `yarn manage:translations` to fix translation files.
* Fix `pl.json` for syntax error.

* translationRunner: auto detect existing languages

* Auto detect existing rfc5646 language tag in *.json filenames
  in `app/javascript/mastodon/locale` folder. No need to manually
  define every new language in the languages array here.

* translationRunner: add more functionality

* Allow script user to specify language code to check.
* Added available language check.
* Added --force flag to force creation of unexists language.
* Added --help flag and help messages.

* gitignore: ignore npm-debug.log

* Fix webpack error if NODE_ENV is not defined

Default to use 'development' in config/webpack/configuration.js

8 years agoOptimize follower_accounts and following_accounts (#2820)
alpaca-tc [Sat, 6 May 2017 02:03:07 +0000 (11:03 +0900)]
Optimize follower_accounts and following_accounts (#2820)

8 years agoStream entry specs and refactor to use delegate (#2827)
Matt Jankowski [Sat, 6 May 2017 02:00:21 +0000 (22:00 -0400)]
Stream entry specs and refactor to use delegate (#2827)

* Add coverage for stream entry delegated methods

* Use delegate with allow_nil to clean up stream entry

8 years agoAdded japanese version of terms of service and privacy policy (#2703)
gentaro [Sat, 6 May 2017 00:23:22 +0000 (09:23 +0900)]
Added japanese version of terms of service and privacy policy (#2703)

* Added japanese version of terms of service and privacy policy

* Fix typo

* Add trasnlation for title.

* Improve translation and update the date.

8 years agoadd docker-compose.override to gitignore (#2809)
haoyayoi [Fri, 5 May 2017 21:52:35 +0000 (06:52 +0900)]
add docker-compose.override to gitignore (#2809)

8 years agoMove account header and avatar methods to a concern (#2825)
Matt Jankowski [Fri, 5 May 2017 19:37:02 +0000 (15:37 -0400)]
Move account header and avatar methods to a concern (#2825)

8 years agoFixes unknown mime type (#2822)
alpaca-tc [Fri, 5 May 2017 19:32:14 +0000 (04:32 +0900)]
Fixes unknown mime type (#2822)

8 years agoFixes propTypes warning introduced by #2774 (#2824)
alpaca-tc [Fri, 5 May 2017 19:31:20 +0000 (04:31 +0900)]
Fixes propTypes warning introduced by #2774 (#2824)

8 years agoMisc spec coverage improvements (#2821)
Matt Jankowski [Fri, 5 May 2017 18:56:00 +0000 (14:56 -0400)]
Misc spec coverage improvements (#2821)

* Dont use raise_error by itself (avoids warning)

* Add coverage for AccountFilter

* Improve coverage and refactor for Subscription#lease_seconds

* Improve coverage and refactor for NotificationMailer

* Simplify assignment of min/max threshold on subscription

8 years agouse Twitter::Extractor for creating links (#2502)
masarakki [Fri, 5 May 2017 17:48:22 +0000 (02:48 +0900)]
use Twitter::Extractor for creating links (#2502)

8 years agoMinor fix in Travis config with bundler call (#2806)
Koala Yeung [Fri, 5 May 2017 16:52:15 +0000 (00:52 +0800)]
Minor fix in Travis config with bundler call (#2806)

* Travis: Fix bundler_args

`bundler_args` is not functional if using custom install script
in `.travis.yml`. Directly attach the argument to the install script.

* Travis: Run i18n-tasks through bundle exec

Parallel to similar scripts in the same travis config.
More resiliant to changes in configuration.

* Travis: bundler vendor directory

Travis + rvm seems to ignore `.bundle/config` and hence use rvm
global vendor directory by default. Adding `--path` will fix this
and hence make `cache.bundler = true` really functional.

* Travis: disable bundler cache

No significant change in build time. Huge cache. Best disabled.

8 years agoUpdate Locale zh-HK (#2818)
Koala Yeung [Fri, 5 May 2017 16:48:54 +0000 (00:48 +0800)]
Update Locale zh-HK (#2818)

* locale: Add missing translation in zh-HK.yml

* locale: fix consistancy in zh-HK.yml translation

* locale: Improve zh-HK yml translations

* Use "PuSH" in all "PubSubHubBub" occurances.
* Simplify text on front page.
* Improve doorkeeper authorization table translations.
* Simplify setting form text for better layout.
* Improve "Business Email" translation.

* locale: Update zh-HK.json

* Fix untranslated text.
* Improve translations.

8 years agoRun manage:translations (#2816)
Yamagishi Kazutoshi [Fri, 5 May 2017 16:46:51 +0000 (01:46 +0900)]
Run manage:translations (#2816)

8 years agoAdd specs (and refactor) of FetchRemoteResourceService and SearchService (#2812)
Matt Jankowski [Fri, 5 May 2017 15:26:04 +0000 (11:26 -0400)]
Add specs (and refactor) of FetchRemoteResourceService and SearchService (#2812)

* Coverage for fetch remote resource service

* Refactor fetch remote resource service

* Coverage for search service

* Refactor search service