Commit graph

7799 commits

Author SHA1 Message Date
rch850 453fb84c9c Use null as default oEmbed height ()
Height 640 is too big for most toots.
Twitter use null value to support flexible height.
2017-05-06 16:31:43 +02:00
alpaca-tc 59804abc3d Optimize MuteService and AfterBlockService () 2017-05-06 16:31:07 +02:00
jeroenpraat 496f466d73 Added support options to the bottom right ()
* 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
2017-05-06 13:43:43 +02:00
Matt Jankowski fa033c4d5f Version bumps for gems ()
* 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
2017-05-06 13:37:07 +02:00
Eugen Rochko b8e166894b Fix Scheduler::SubscriptionsScheduler ()
* Fix Scheduler::SubscriptionsScheduler, add worker test for it

* Change production log level of Sidekiq to "warn" instead of "info"
2017-05-06 13:05:03 +02:00
alpaca-tc 1f15a15621 Handling failed http response () 2017-05-06 12:55:59 +02:00
m4sk1n fd1e29c3f8 i18n: Updated Polish translation ()
* 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>
2017-05-06 11:06:55 +02:00
Nolan Lawson 553e13144f remove legacy decorators, use lodash.debounce () 2017-05-06 11:05:32 +02:00
Yamagishi Kazutoshi 494945ff4f Move babel-plugin-lodash to dependencies from devDependencies () 2017-05-06 11:04:55 +02:00
Nolan Lawson 7c0cd2597a remove unnecessary buffer polyfill () 2017-05-06 11:02:19 +02:00
Nolan Lawson 37caf0b36e separate .babelrc for prod/dev, add babel-plugin-lodash () 2017-05-06 04:18:23 +02:00
Koala Yeung cf0b753209 Streamline javascript translation by improving translationRunner ()
* 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
2017-05-06 04:05:38 +02:00
alpaca-tc ddc34feb58 Optimize follower_accounts and following_accounts () 2017-05-06 04:03:07 +02:00
Matt Jankowski 3f5b994ff0 Stream entry specs and refactor to use delegate ()
* Add coverage for stream entry delegated methods

* Use delegate with allow_nil to clean up stream entry
2017-05-06 04:00:21 +02:00
gentaro dacdfec973 Added japanese version of terms of service and privacy policy ()
* Added japanese version of terms of service and privacy policy

* Fix typo

* Add trasnlation for title.

* Improve translation and update the date.
2017-05-06 02:23:22 +02:00
haoyayoi 72c30f8393 add docker-compose.override to gitignore () 2017-05-05 23:52:35 +02:00
Matt Jankowski 4e05751346 Move account header and avatar methods to a concern () 2017-05-05 21:37:02 +02:00
alpaca-tc ee3e0a93f4 Fixes unknown mime type () 2017-05-05 21:32:14 +02:00
alpaca-tc d1290fbd8f Fixes propTypes warning introduced by () 2017-05-05 21:31:20 +02:00
Matt Jankowski 484c9709b6 Misc spec coverage improvements ()
* 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
2017-05-05 14:56:00 -04:00
masarakki d08f1112d5 use Twitter::Extractor for creating links () 2017-05-05 19:48:22 +02:00
Koala Yeung bcfd9a2f8e Minor fix in Travis config with bundler call ()
* 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.
2017-05-05 18:52:15 +02:00
Koala Yeung 886176f854 Update Locale zh-HK ()
* 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.
2017-05-05 18:48:54 +02:00
Yamagishi Kazutoshi d397d0d681 Run manage:translations () 2017-05-05 18:46:51 +02:00
Matt Jankowski 20c37ed0f9 Add specs (and refactor) of FetchRemoteResourceService and SearchService ()
* Coverage for fetch remote resource service

* Refactor fetch remote resource service

* Coverage for search service

* Refactor search service
2017-05-05 17:26:04 +02:00
Yamagishi Kazutoshi 9501a87704 Add Japanese translate to home column when inactive () 2017-05-05 17:25:42 +02:00
ButterflyOfFire 8f0f4a861a Update ar.json ()
Adding more arabic translated strings.
2017-05-05 17:25:17 +02:00
Milan* 8c9ea9b849 Correct typo in german locale () 2017-05-05 09:59:16 -04:00
ThibG 4d22d03fab Add additional documentation and warnings to the WEB_DOMAIN setting. ()
* Add additional documentation and warnings to the WEB_DOMAIN setting.

This feature is largely undocumented, and quite a number of users have
shot them in the feet already despite the warning. Added a bit of documentation
and expanded the warning until we have a mechanism for dealing with conflicting
user URIs.

* Change WEB_DOMAIN comments to point to the extensive online documentation
2017-05-05 04:56:28 +02:00
Eugen Rochko 81584779cb More robust PuSH subscription refreshes ()
* Fix  - Use sidekiq scheduler to refresh PuSH subscriptions instead of cron

Fix an issue where / in domain would raise exception in TagManager#normalize_domain

PuSH subscriptions refresh done in a round-robin way to avoid hammering a single
server's hub in sequence. Correct handling of failures/retries through Sidekiq (see
also ). Optimize Account#with_followers scope. Also, since subscriptions
are now delegated to Sidekiq jobs, an uncaught exception will not stop the entire
refreshing operation halfway through

Fix  - Correct user agent header on outgoing http requests

* Add test for SubscribeService

* Extract #expiring_accounts into method

* Make mastodon:push:refresh no-op

* Queues are now defined in sidekiq.yml

* Queues are now in sidekiq.yml
2017-05-05 02:23:01 +02:00
R Tucker 61c33652ad ui: check spoiler_text against regex filter () ()
* ui: check spoiler_text against regex filter ()

When filtering by regex, also check the spoiler_text if
present.

* ui: concatenate spoiler and content in reducer

Simplifies aa5b03c, clarifies intent of the field
2017-05-04 23:48:48 +02:00
Matt Jankowski f9d398e8fb Remove the react-rails gem ()
* Remove react-rails gem

* Fix broken view spec
2017-05-04 23:45:18 +02:00
alpaca-tc 74c8ca699c Delete records in smaller transaction () 2017-05-04 23:44:39 +02:00
Eugen Rochko eddb95b012 When streaming API is disconnected, poll home/notifications ()
* When streaming API is disconnected, poll home/notifications
Display slightly different empty home timeline message if user is following others
Cull notifications to 20 items when over 40 get added in real-time
Run manage:translations

* Optimize <HomeTimeline /> a little
2017-05-04 23:41:34 +02:00
Matt Jankowski 84eb425f38 Remove redis clear from before in spec () 2017-05-04 20:53:39 +02:00
AA4ch1 a50a87457e Fix language selector on preferences page () 2017-05-04 14:39:25 -04:00
Yamagishi Kazutoshi 566e0a772d Improve style for form in site settings () 2017-05-04 14:37:57 -04:00
Masoud Abkenar 11077af52f Persian translation update ()
* Persian translation update

* fix newline typo
2017-05-04 18:32:05 +02:00
Wonderfall 0fc73a6e47 about page : use slightly more space () 2017-05-04 18:16:00 +02:00
Matt Jankowski 2bd132d458 Replace best_in_place editor on admin settings page ()
* Remove best_in_place

* Replace best_in_place usage with rails helpers

* Move admin/settings#index to #edit action

* Remove click_to__edit from i18n
2017-05-04 18:12:44 +02:00
abcang 91ddd345f2 Enable disableHostCheck option of webpack-dev-server () 2017-05-04 17:49:05 +02:00
Valentin Ouvrard 75bd141e22 Switch docker-compose to version 3. ()
* Switch docker-compose to version 3.

It allow possibility to Deploy Mastodon in a Swarm cluster directly from the compose file.

* switch to compose v3 without depend.
2017-05-04 15:56:05 +02:00
Akihiko Odaki 0cdcf32865 Use ws protocol in streaming API base URL () 2017-05-04 15:55:13 +02:00
abcang 629a4d0fca fix DB_URL () 2017-05-04 15:53:44 +02:00
Yamagishi Kazutoshi e95983f5df Decode IDNA in PreviewCard () 2017-05-04 15:52:08 +02:00
Brian Mock e37e84d210 Fixes adds link to development guide () 2017-05-04 15:50:36 +02:00
unarist e57e6f509d Show emoji shortname by a tooltip () 2017-05-04 15:50:09 +02:00
abcang bea117a4b6 changed to run foreman with vagrant ()
* changed to run foreman with vagrant

* change port specification method and database setting

* delete changes of environment variable related code

* hard coated the port
2017-05-04 04:39:50 +02:00
Colin Mitchell 908b96a370 Make vagrant HTTP port configurable () 2017-05-04 04:36:36 +02:00
Eugen Rochko 13c16b4e95 Likely fix , fix - handle out-of-order deletes for statuses ()
* Likely fix , fix  - handle out-of-order deletes for statuses

If a delete arrives before the original status, cache that information
for 6h, and if the original status arrives in that window, ignore it

* Add test case
2017-05-04 04:34:57 +02:00