]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoDelegate some methods of User to @settings (#5706)
ysksn [Wed, 15 Nov 2017 15:05:20 +0000 (00:05 +0900)]
Delegate some methods of User to @settings (#5706)

* Move some tests of User into Settings::ScopedSettings

* Add a test for User@settings

8 years agoAdd a test for Tag#to_param (#5705)
ysksn [Wed, 15 Nov 2017 15:04:41 +0000 (00:04 +0900)]
Add a test for Tag#to_param (#5705)

8 years agoreusable-streaming (#5709)
masarakki [Wed, 15 Nov 2017 15:04:15 +0000 (00:04 +0900)]
reusable-streaming (#5709)

8 years agoAdd Japanese translation for DM block option. (#5704)
mayaeh [Wed, 15 Nov 2017 02:57:09 +0000 (11:57 +0900)]
Add Japanese translation for DM block option. (#5704)

8 years agoOptional notification muting (#5087)
Surinna Curtis [Wed, 15 Nov 2017 02:56:41 +0000 (20:56 -0600)]
Optional notification muting (#5087)

* Add a hide_notifications column to mutes

* Add muting_notifications? and a notifications argument to mute!

* block notifications in notify_service from hard muted accounts

* Add specs for how mute! interacts with muting_notifications?

* specs testing that hide_notifications in mutes actually hides notifications

* Add support for muting notifications in MuteService

* API support for muting notifications (and specs)

* Less gross passing of notifications flag

* Break out a separate mute modal with a hide-notifications checkbox.

* Convert profile header mute to use mute modal

* Satisfy eslint.

* specs for MuteService notifications params

* add trailing newlines to files for Pork :)

* Put the label for the hide notifications checkbox in a label element.

* Add a /api/v1/mutes/details route that just returns the array of mutes.

* Define a serializer for /api/v1/mutes/details

* Add more specs for the /api/v1/mutes/details endpoint

* Expose whether a mute hides notifications in the api/v1/relationships endpoint

* Show whether muted users' notifications are muted in account lists

* Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint

* make the hide/unhide notifications buttons work

* satisfy eslint

* In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.

* fix a missing import

* add an explanatory comment to AccountInteractions

* Refactor handling of default params for muting to make code cleaner

* minor code style fixes oops

* Fixed a typo that was breaking the account mute API endpoint

* Apply white-space: nowrap to account relationships icons

* Fix code style issues

* Remove superfluous blank line

* Rename /api/v1/mutes/details -> /api/v2/mutes

* Don't serialize "account" in MuteSerializer

Doing so is somewhat unnecessary since it's always the current user's account.

* Fix wrong variable name in api/v2/mutes

* Use Toggle in place of checkbox in the mute modal.

* Make the Toggle in the mute modal look better

* Code style changes in specs and removed an extra space

* Code review suggestions from akihikodaki

Also fixed a syntax error in tests for AccountInteractions.

* Make AddHideNotificationsToMute Concurrent

It's not clear how much this will benefit instances in practice, as the
number of mutes tends to be pretty small, but this should prevent any
blocking migrations nonetheless.

* Fix up migration things

* Remove /api/v2/mutes

8 years agoAdd tests for StreamEntry (#5687)
ysksn [Wed, 15 Nov 2017 01:00:58 +0000 (10:00 +0900)]
Add tests for StreamEntry (#5687)

* Add tests for StreamEntry

- `#object_type`
- `#verb`
- `#mentions`

* Fix to test results instead of implementations

8 years agoFilter searched toots to be consistent with blocking behaviors (#5383)
ThibG [Wed, 15 Nov 2017 00:53:33 +0000 (01:53 +0100)]
Filter searched toots to be consistent with blocking behaviors (#5383)

8 years agoUse already-known remote user data if resolving temporarily fails in mentions (#5702)
ThibG [Wed, 15 Nov 2017 00:06:49 +0000 (01:06 +0100)]
Use already-known remote user data if resolving temporarily fails in mentions (#5702)

8 years agoAllow specifying STATSD_NAMESPACE (#5700)
Eugen Rochko [Tue, 14 Nov 2017 22:22:43 +0000 (23:22 +0100)]
Allow specifying STATSD_NAMESPACE (#5700)

8 years agoAdd option to block direct messages from people you don't follow (#5669)
Eugen Rochko [Tue, 14 Nov 2017 20:12:57 +0000 (21:12 +0100)]
Add option to block direct messages from people you don't follow (#5669)

* Add option to block direct messages from people you don't follow

Fix #5326

* If the DM responds to a toot by recipient, allow it through

* i18n: Update Polish translation (for #5669) (#5673)

8 years agoUpdating Chinese (Simplified) translations (#5643)
SerCom_KC [Tue, 14 Nov 2017 19:44:42 +0000 (03:44 +0800)]
Updating Chinese (Simplified) translations (#5643)

* i18n: (zh-CN) Bug fix for note-counter.

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add missing translations

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add support.array key for better wording

* Revert "i18n: (zh-CN) Add support.array key for better wording"

This reverts commit 27bf9a946e886213e827cd985d4f62419db57534.
Looks like this commit can't get pass the checks, revert it for now.

* i18n: (zh-CN) Change `客户端` to `应用`

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add missing translations (#5635)

* i18n: (zh-CN) Change `两步验证` to `双重认证`

* i18n: (zh-CN) Improve translations

8 years agoAdd a test for SiteUpload#cache_key (#5685)
ysksn [Tue, 14 Nov 2017 19:44:11 +0000 (04:44 +0900)]
Add a test for SiteUpload#cache_key (#5685)

8 years agoRefactor remote_follow_spec.rb (#5690)
Yamagishi Kazutoshi [Tue, 14 Nov 2017 19:41:17 +0000 (04:41 +0900)]
Refactor remote_follow_spec.rb (#5690)

8 years agoAdd uniqueness to block email domains (#5692)
Yamagishi Kazutoshi [Tue, 14 Nov 2017 19:37:17 +0000 (04:37 +0900)]
Add uniqueness to block email domains (#5692)

8 years agoi18n: Update Polish translation (#5699)
Marcin Mikołajczak [Tue, 14 Nov 2017 19:36:11 +0000 (20:36 +0100)]
i18n: Update Polish translation (#5699)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoAdd Japanese translations for moderator roles and its own admin actions. (#5689)
mayaeh [Tue, 14 Nov 2017 06:53:14 +0000 (15:53 +0900)]
Add Japanese translations for moderator roles and its own admin actions. (#5689)

8 years agoi18n: fix typo in Polish translation (#5688)
Marcin Mikołajczak [Tue, 14 Nov 2017 06:52:32 +0000 (07:52 +0100)]
i18n: fix typo in Polish translation (#5688)

8 years agoAdd tests for Setting (#5683)
ysksn [Tue, 14 Nov 2017 02:08:04 +0000 (11:08 +0900)]
Add tests for Setting (#5683)

8 years agol10n: PT-BR translation updated (#5681)
Anna e só [Tue, 14 Nov 2017 02:07:38 +0000 (00:07 -0200)]
l10n: PT-BR translation updated (#5681)

* Improved e-mail messages; delted repeated words

* pt-BR.json translations updated

* Revert "pt-BR.json translations updated"

This reverts commit 108c460531196fed6e6d14f93e8d8d047c835ffd.

* Updated pt-BR.json

* pt-BR.yml updated

8 years agoAdd code of conduct from GitHub generator (#5674)
Eugen Rochko [Mon, 13 Nov 2017 16:28:55 +0000 (17:28 +0100)]
Add code of conduct from GitHub generator (#5674)

8 years agofix Code Climate badge on README.md (#5671)
takayamaki [Mon, 13 Nov 2017 02:49:54 +0000 (11:49 +0900)]
fix Code Climate badge on README.md (#5671)

and change badge's URI to https

8 years agoAdd tests for SessionActivation (#5668)
ysksn [Mon, 13 Nov 2017 00:54:48 +0000 (09:54 +0900)]
Add tests for SessionActivation (#5668)

* Fabricate SessionActivation

not only user_id but user association.

* Add tests for SessionActivation

8 years agoUpdate model annotations to use BIGINT for IDs (#5461)
Daniel Hunsaker [Sun, 12 Nov 2017 15:18:50 +0000 (08:18 -0700)]
Update model annotations to use BIGINT for IDs (#5461)

All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.

8 years agoFix #5652 - Notify too short when abbrev in JA (#5664)
KEINOS [Sun, 12 Nov 2017 07:51:47 +0000 (16:51 +0900)]
Fix #5652 - Notify too short when abbrev in JA (#5664)

* Fix #5652 - Notify too short when abbrev in JA

Fix #5652 of the notification message to be understandable when abbreviated.

* Changed quotes as original

Double quote to single and single quote as none. But I am not convinced of this fix.

* Added a single quote as YAMLlint's suggestion

* `bundle exec i18n-tasks normalize`

8 years agoAdd tests for RemoteProfile (#5665)
ysksn [Sun, 12 Nov 2017 07:23:31 +0000 (16:23 +0900)]
Add tests for RemoteProfile (#5665)

8 years agoFix #5632 - Reset column loading status after fetch fail (#5659)
Eugen Rochko [Sun, 12 Nov 2017 03:51:07 +0000 (04:51 +0100)]
Fix #5632 - Reset column loading status after fetch fail (#5659)

8 years agoi18n: Update Polish translation (for #5635) (#5661)
Marcin Mikołajczak [Sat, 11 Nov 2017 21:31:20 +0000 (22:31 +0100)]
i18n: Update Polish translation (for #5635) (#5661)

* i18n: Update Polish translation (for #5635)

* 😑🔫

8 years agoAdd moderator role and add pundit policies for admin actions (#5635)
Eugen Rochko [Sat, 11 Nov 2017 19:23:33 +0000 (20:23 +0100)]
Add moderator role and add pundit policies for admin actions (#5635)

* Add moderator role and add pundit policies for admin actions

* Add rake task for turning user into mod and revoking it again

* Fix handling of unauthorized exception

* Deliver new report e-mails to staff, not just admins

* Add promote/demote to admin UI, hide some actions conditionally

* Fix unused i18n

8 years agoRetry thread resolving (#5599)
ThibG [Sat, 11 Nov 2017 15:49:04 +0000 (16:49 +0100)]
Retry thread resolving (#5599)

Thread resolving is one of the few tasks that isn't retried on failure.
One common cause for failure of this task is a well-connected user replying to
a toot from a little-connected user on a small instance: the small instance
will get many requests at once, and will often fail to answer requests within
the 10 seconds timeout used by Mastodon.

This changes makes the ThreadResolveWorker retry a few times, with a
rapidly-increasing time before retries and large random contribution in order
to spread the load over time.

8 years agoAdd tests for RemoteFollow (#5651)
ysksn [Fri, 10 Nov 2017 15:56:02 +0000 (00:56 +0900)]
Add tests for RemoteFollow (#5651)

* Add tests for RemoteFollow.initialize

* Add tests for RemoteFollow#valid?

* Add tests for RemoteFollow#subscribe_address_for

8 years agoUpdate en.yml (#5648)
Matt [Fri, 10 Nov 2017 01:58:33 +0000 (14:58 +1300)]
Update en.yml (#5648)

Changed "Toots with replies" to read "Toots and replies"

8 years agoFix focused background color of direct toots (#5642)
Lynx Kotoura [Thu, 9 Nov 2017 18:40:34 +0000 (03:40 +0900)]
Fix focused background color of direct toots (#5642)

8 years agoAdd tests for Notification (#5640)
ysksn [Thu, 9 Nov 2017 13:37:10 +0000 (22:37 +0900)]
Add tests for Notification (#5640)

* Add tests for Notification#target_status

* Add tests for Notification#browserable?

* Add tests for Notification.reload_stale_associations!

8 years agoAdd and Remove tests for FollowRequest (#5622)
ysksn [Thu, 9 Nov 2017 13:36:52 +0000 (22:36 +0900)]
Add and Remove tests for FollowRequest (#5622)

* Add a test for FollowRequest#authorize!

* Remove tests

There is no need to test
ActiveModel::Validations::ClassMethods#validates.

* Make an alias of destroy! as reject!

Instead of defining the method,
make an alias of destroy! as reject! because of reducing test.

8 years agoRewrite account_controller_spec (#5633)
Nanamachi [Thu, 9 Nov 2017 13:36:17 +0000 (22:36 +0900)]
Rewrite account_controller_spec (#5633)

* make accounts_controller_spec DRY

* Add blocked user spec

8 years agoShow confirmation dialog on leaving WebUI while composing (#5616)
unarist [Thu, 9 Nov 2017 13:34:41 +0000 (22:34 +0900)]
Show confirmation dialog on leaving WebUI while composing (#5616)

* Show confirmation dialog on leaving WebUI while composing

Currently, Back button and Back hotkey can cause leaving from WebUI, as well as browser's back button. Users may hit those buttons accidentally, and their composing text will be lost.

So this prevents it by showing confirmation dialog from `onbeforeunload` event.

* Fix message and comments

8 years agoi18n: Update Polish translation (#5639)
Marcin Mikołajczak [Thu, 9 Nov 2017 13:23:06 +0000 (14:23 +0100)]
i18n: Update Polish translation (#5639)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoTranslate ja (#5637)
nullkal [Thu, 9 Nov 2017 13:22:55 +0000 (22:22 +0900)]
Translate ja (#5637)

8 years agoi10n OC: Memorial (#5615) + #5467 (#5623)
Quenty31 [Wed, 8 Nov 2017 14:19:49 +0000 (15:19 +0100)]
i10n OC: Memorial (#5615) + #5467 (#5623)

* Changed ĩ => ï

* Changed ĩ => ï

* Add ability to disable login and mark accounts as memorial (#5615)

8 years agoIn remove_remote, exclude removed media attachments. (#5626)
Naoki Kosaka [Wed, 8 Nov 2017 14:19:22 +0000 (23:19 +0900)]
In remove_remote, exclude removed media attachments. (#5626)

8 years agoAdd tests for MediaAttachment (#5620)
ysksn [Wed, 8 Nov 2017 06:29:07 +0000 (15:29 +0900)]
Add tests for MediaAttachment (#5620)

- `#local?`
- `#needs_redownload?`
- `#to_param`

8 years agoAdd tests for CustomEmoji#local? and #object_type (#5621)
ysksn [Wed, 8 Nov 2017 06:28:17 +0000 (15:28 +0900)]
Add tests for CustomEmoji#local? and #object_type (#5621)

8 years agoFix process mentions for local users, as local users are considered to use OStatus...
ThibG [Tue, 7 Nov 2017 21:15:15 +0000 (22:15 +0100)]
Fix process mentions for local users, as local users are considered to use OStatus (#5618)

8 years agoEliminate space around emoji (#5474)
nullkal [Tue, 7 Nov 2017 18:09:53 +0000 (03:09 +0900)]
Eliminate space around emoji (#5474)

* Eliminate space around emoji

* More improve emoji style

* Make more compatible with Twemoji

* Make scss-lint happy

* Make not modify normal emoji's behavior

* Decrease status__action-bar's margin-top to 5px

* Make the test be passed

* Revert "Make the test be passed"

This reverts commit 54a8c60e5907ef20a5ceb5ab2c86a933e06f3ece.

* Revert "Make not modify normal emoji's behavior"

This reverts commit 6a5bdf0c11df16ebd190cb3ab9d2e8f1349f435a.

8 years agoTwidere mention workaround (#5552)
ThibG [Tue, 7 Nov 2017 18:08:14 +0000 (19:08 +0100)]
Twidere mention workaround (#5552)

* Work around Twidere and Tootdon bug

Tootdon and Twidere construct @user@domain handles from mentions in toots based
solely on the mention text and account URI's domain without performing any
webfinger call or retrieving account info from the Mastodon server.

As a result, when a remote user has WEB_DOMAIN ≠ LOCAL_DOMAIN, Twidere and
Tootdon will construct the mention as @user@WEB_DOMAIN. Now, this will usually
resolve to the correct account (since the recommended configuration is to have
WEB_DOMAIN perform webfinger redirections to LOCAL_DOMAIN) when processing
mentions, but won't do so when displaying them (as it does not go through the
whole account resolution at that time).

This change rewrites mentions to the resolved account, so that displaying the
mentions will work.

* Use lookbehind instead of non-capturing group in MENTION_RE

Indeed, substitutions with the previous regexp would erroneously eat any
preceding whitespace, which would lead to concatenated mentions in the
previous commit.

Note that users will “lose” up to one character space per mention for their
toots, as that regexp is also used to remove the domain-part of mentioned
users for character counting purposes, and it also erroneously removed the
preceding character if it was a space.

8 years agoAdd ability to disable login and mark accounts as memorial (#5615)
Eugen Rochko [Tue, 7 Nov 2017 18:06:44 +0000 (19:06 +0100)]
Add ability to disable login and mark accounts as memorial (#5615)

Fix #5597

8 years agoFix spell miss (SWIIFT_OBJECT_URL -> SWIFT_OBJECT_URL) (#5617)
MitarashiDango [Tue, 7 Nov 2017 18:06:30 +0000 (03:06 +0900)]
Fix spell miss (SWIIFT_OBJECT_URL -> SWIFT_OBJECT_URL) (#5617)

8 years agofix: slang to adequate word (#5453)
voidSatisfaction [Tue, 7 Nov 2017 13:49:50 +0000 (22:49 +0900)]
fix: slang to adequate word (#5453)

8 years ago Show the local couterpart of emoji when it exists in /admin/custom_emojis (#5467)
nullkal [Tue, 7 Nov 2017 13:49:32 +0000 (22:49 +0900)]
 Show the local couterpart of emoji when it exists in /admin/custom_emojis (#5467)

* Show the local couterpart of emoji when it exists in admin/custom_emojis

* Fix indentation

* Fix error

* Add class table-action-link to Overwrite link

* Make it enable to overwrite emojis

* Make Code Climate happy

8 years agoAvoid emojifying on invisible text (#5558)
MIYAGI Hikaru [Tue, 7 Nov 2017 13:48:13 +0000 (22:48 +0900)]
Avoid emojifying on invisible text (#5558)

8 years agoDo not process undeliverable mentions (#5598)
ThibG [Tue, 7 Nov 2017 13:47:39 +0000 (14:47 +0100)]
Do not process undeliverable mentions (#5598)

* Resolve remote accounts when mentioned even if they are already known

This commit reduces the risk of not having up-to-date public key or protocol
information for a remote account, which is required to deliver toots
(especially direct messages).

* Do not add mentions in private messages for remote users we cannot deliver to

Mastodon does not deliver private and direct toots to OStatus users, as there
is no guarantee the remote software understands the toot's privacy. However,
users currently do not get any feedback on it (Mastodon won't attempt delivery,
but the toot will be displayed exactly the same way to the user).

This change introduces *some* feedback by not processing mentions that are
not going to be delivered. A long-term solution is still needed to have
delivery receipts or at least some better indication of what is going on, but
at least an user can see *something* is up.

8 years agoResolve remote accounts when mentioned even if they are already known (#5539)
ThibG [Tue, 7 Nov 2017 13:31:57 +0000 (14:31 +0100)]
Resolve remote accounts when mentioned even if they are already known (#5539)

This commit reduces the risk of not having up-to-date public key or protocol
information for a remote account, which is required to deliver toots
(especially direct messages).

8 years agoUnify file upload to using fog (#5604)
Yamagishi Kazutoshi [Tue, 7 Nov 2017 13:30:31 +0000 (22:30 +0900)]
Unify file upload to using fog (#5604)

8 years agoMake fullscreen video in detailed status plays in fullscreen (Partly Fix #5160) ...
nullkal [Tue, 7 Nov 2017 13:24:55 +0000 (22:24 +0900)]
Make fullscreen video in detailed status plays in fullscreen (Partly Fix #5160) (#5611)

* Make fullscreen video in detailed status plays in fullscreen (Fix #5160)

* Directly assign the initial state

8 years agoHide disabled custom emojis from emoji picker and emoji auto suggestions. (#5613)
kedama [Tue, 7 Nov 2017 13:24:21 +0000 (22:24 +0900)]
Hide disabled custom emojis from emoji picker and emoji auto suggestions. (#5613)

Make the same behavior as /api/v1/custom_emojis.

8 years agoImplement tests for Account#refresh! (#5601)
ysksn [Mon, 6 Nov 2017 04:54:41 +0000 (13:54 +0900)]
Implement tests for Account#refresh! (#5601)

8 years agoAdd test for Account#save_with_optional_media! (#5603)
ysksn [Mon, 6 Nov 2017 04:54:12 +0000 (13:54 +0900)]
Add test for Account#save_with_optional_media! (#5603)

There was a test when some of the properties are invalid, but none when all
of them are valid.

8 years agoi18n: Improve Polish translation (#5596)
Marcin Mikołajczak [Sun, 5 Nov 2017 22:06:54 +0000 (23:06 +0100)]
i18n: Improve Polish translation (#5596)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoUpdate extract-text-webpack-plugin to version 3.0.2 (#5584)
Yamagishi Kazutoshi [Sun, 5 Nov 2017 12:07:59 +0000 (21:07 +0900)]
Update extract-text-webpack-plugin to version 3.0.2 (#5584)

8 years agodon't display any descendants of .invisible (#5567)
MIYAGI Hikaru [Sun, 5 Nov 2017 12:05:50 +0000 (21:05 +0900)]
don't display any descendants of .invisible (#5567)

* don't display any descendants of .invisible

* reduce the scope of selector

* remove some rules for image

* lint

8 years agoImplement tests for Account#possibly_stale? (#5591)
ysksn [Sun, 5 Nov 2017 08:20:05 +0000 (17:20 +0900)]
Implement tests for Account#possibly_stale? (#5591)

8 years agol10n Occitan (#5586)
Quenty31 [Fri, 3 Nov 2017 08:42:30 +0000 (09:42 +0100)]
l10n Occitan (#5586)

* Update OC: time format

Correction for time format according to: https://opinion.jornalet.com/conselh-linguistic-de-jornalet/blog/2379/la-notacion-oraria-en-occitan
Harmonisation words in menu and confirmation windows

* Update for unlisted custum emoji + #5577

* correction subjonctiu

It's either siasque or siague

* Corrections

Any : qual que, in two words, else it means "some".
And "siasque" with S even if I don't pronounce it at all.

* Update oc.json

8 years agoRemove babel-plugin-react-transform (#5582)
Yamagishi Kazutoshi [Wed, 1 Nov 2017 16:49:46 +0000 (01:49 +0900)]
Remove babel-plugin-react-transform (#5582)

8 years agoadd account search condition (instance domain) (#5577)
MitarashiDango [Wed, 1 Nov 2017 13:46:05 +0000 (22:46 +0900)]
add account search condition (instance domain) (#5577)

8 years agoUpgrade compression-webpack-plugin to version 1.0.1 (#5581)
Yamagishi Kazutoshi [Wed, 1 Nov 2017 13:42:19 +0000 (22:42 +0900)]
Upgrade compression-webpack-plugin to version 1.0.1 (#5581)

8 years agorefactor(features/ui): Avoid useless renders in WrappedSwitch (#5580)
Sorin Davidoi [Wed, 1 Nov 2017 11:17:53 +0000 (12:17 +0100)]
refactor(features/ui): Avoid useless renders in WrappedSwitch (#5580)

8 years agoReplace react-router-scroll to react-router-scroll-4 (#5568)
Yamagishi Kazutoshi [Tue, 31 Oct 2017 21:58:38 +0000 (06:58 +0900)]
Replace react-router-scroll to react-router-scroll-4 (#5568)

8 years agoRefactor initial state: auto_play_gif (#5576)
Nolan Lawson [Tue, 31 Oct 2017 21:58:07 +0000 (14:58 -0700)]
Refactor initial state: auto_play_gif (#5576)

8 years agoRevert ruby-jwt version (#5575)
K.SHIRAKASHI [Tue, 31 Oct 2017 15:47:35 +0000 (00:47 +0900)]
Revert ruby-jwt version (#5575)

jwt 2.1.0 still does not work well.
ref. https://github.com/zaru/webpush/issues/42

8 years agoAdd ServiceWorker caching for static assets (#5524)
Nolan Lawson [Tue, 31 Oct 2017 11:25:51 +0000 (04:25 -0700)]
Add ServiceWorker caching for static assets (#5524)

8 years agoUpdate dependencies for Node.js (2017-10-30) (#5565)
Yamagishi Kazutoshi [Tue, 31 Oct 2017 11:23:24 +0000 (20:23 +0900)]
Update dependencies for Node.js (2017-10-30) (#5565)

* Update autoprefixer to version 7.1.6

* Update babel-plugin-preval to version 1.6.1

* Update babel-plugin-transform-react-remove-prop-types to version 0.4.10

* Update babel-preset-env to version 1.6.1

* Update cross-env to version 5.1.1

* Update enzyme-adapter-react-16 to version 1.0.2

* Update eslint-plugin-import to version 2.8.0

* Update immutable to version 3.8.2

* Update express to 4.16.2

* Update intl-relativeformat to version 2.1.0

* Update postcss-loader to version 2.0.8

* Update react-immutable-pure-component to version 1.1.1

* Update react-motion to version 0.5.2

* Update react-notification to version 6.8.2

* Update react-overlays to version 0.8.3

* Update react-redux-loading-bar to version 2.9.3

* Update resolve-url-loader to version 2.2.0

* Update style-loader to version 0.19.0

* Update webpack to version 3.8.1

* Update webpack-dev-server to version 2.9.3

* yarn upgrade

8 years agoUpdate dependencies for Ruby (2017-10-30) (#5566)
Yamagishi Kazutoshi [Tue, 31 Oct 2017 11:22:32 +0000 (20:22 +0900)]
Update dependencies for Ruby (2017-10-30) (#5566)

* Update better_errors to version 2.4.0

* Update binding_of_caller to version 0.7.3

* Update bootsnap to version 1.1.5

* Update browser to version 2.5.2

* Update capistrano to version 3.10.0

* Update capistrano-bundler to version 1.3.0

* Update capistrano-rbenv to version 2.1.2

* Update capybara to version 2.15.4

* Update cld3 to version 3.2.1

* Update fabrication to version 2.18.0

* Update fog-openstack to version 0.1.22

* Update kaminari to version 1.1.1

* Update lograge to version 0.7.1

* Update nokogiri to version 1.8.1

* Update oj to version 3.3.9

* Update ox to version 2.8.1

* Update parallel_tests to version 2.17.0

* Update pkg-config to version 1.2.8

* Update rspec-rails to version 3.7.1

* Update rubocop to version 0.51.0

* Update scss_lint to version 0.55.0

* Update sidekiq to version 5.0.5

* Update sidekiq-scheduler to version 2.1.10

* Update tzinfo-data to version 1.2017.3

* Update webpacker to version 3.0.2

* bundle update

8 years agoRefactor initial state: "me" (#5563)
Nolan Lawson [Tue, 31 Oct 2017 02:27:48 +0000 (19:27 -0700)]
Refactor initial state: "me" (#5563)

* Refactor initial state: "me"

* remove "me" from reducers/meta.js

8 years agoUpdating Chinese (Simplified) translations (#5508)
SerCom_KC [Mon, 30 Oct 2017 03:34:58 +0000 (11:34 +0800)]
Updating Chinese (Simplified) translations (#5508)

* i18n: (zh-CN) fix punctuations and spaces
Spaces are fixed according to https://github.com/sparanoid/chinese-copywriting-guidelines

* i18n: (zh-CN) fix punctuation

* i18n: (zh-CN) Adapt official translation of Discourse Privacy Policy from GitHub, with minor fixes
https://github.com/discourse/discourse/blob/master/config/locales/server.zh_CN.yml#L2677

* i18n: (zh-CN) Update missing translations

* i18n: (zh-CN) Fixing errors

* i18n: (zh-CN) Fix indent error

* i18n: (zh-CN) Fix language tag

* i18n: (zh-CN) Remove quotes

* i18n: (zh-CN) Update translation (#5485)

* i18n: (zh-CN) Remove whitespaces, x -> ×

* i18n: (zh-CN) Rewording on time distance

* i18n: (zh-CN) Overall improvements

* i18n: (zh-CN) i18n-tasks normalization

* i18n: (zh-CN) Add missing translation

8 years agoUpdate remote ActivityPub users when fetching their toots (#5545)
ThibG [Sun, 29 Oct 2017 15:24:16 +0000 (16:24 +0100)]
Update remote ActivityPub users when fetching their toots (#5545)

8 years agoAvoid modifying emoji data inline (#5548)
Nolan Lawson [Sun, 29 Oct 2017 15:23:38 +0000 (08:23 -0700)]
Avoid modifying emoji data inline (#5548)

8 years agoAdd margin to account for Edge disappearing scrollbar (#5522)
Nolan Lawson [Sun, 29 Oct 2017 15:11:32 +0000 (08:11 -0700)]
Add margin to account for Edge disappearing scrollbar (#5522)

* Add margin to account for Edge disappearing scrollbar

* Fix 16px margin for DMs and horizontal line

8 years agoReactor unfollow_modal, boost_modal, delete_modal (#5505)
Nolan Lawson [Sun, 29 Oct 2017 15:10:15 +0000 (08:10 -0700)]
Reactor unfollow_modal, boost_modal, delete_modal (#5505)

8 years agoFix a grammatical error in the notifications. (#5555)
Alda Marteau-Hardi [Sat, 28 Oct 2017 17:08:37 +0000 (19:08 +0200)]
Fix a grammatical error in the notifications. (#5555)

8 years agoi18n: Update Polish translation (#5547)
Marcin Mikołajczak [Sat, 28 Oct 2017 03:43:20 +0000 (05:43 +0200)]
i18n: Update Polish translation (#5547)

8 years agoSeparate Follow/Unfollow and back buttons (#5496)
Herbert Kagumba [Fri, 27 Oct 2017 17:14:11 +0000 (20:14 +0300)]
Separate Follow/Unfollow and back buttons (#5496)

8 years agoInstantiate service classes for each call (fixes #5540) (#5543)
ThibG [Fri, 27 Oct 2017 17:08:30 +0000 (19:08 +0200)]
Instantiate service classes for each call (fixes #5540) (#5543)

8 years agoAvoid unnecessary Motion components in icon_button.js (#5544)
Nolan Lawson [Fri, 27 Oct 2017 17:08:07 +0000 (10:08 -0700)]
Avoid unnecessary Motion components in icon_button.js (#5544)

8 years agoDirectly use <Motion/> if not reducing motion (#5546)
Nolan Lawson [Fri, 27 Oct 2017 17:06:54 +0000 (10:06 -0700)]
Directly use <Motion/> if not reducing motion (#5546)

8 years agoAdd artist, title, and date metadata to boop.{mp3,ogg} (#5531)
David Yip [Fri, 27 Oct 2017 15:05:04 +0000 (10:05 -0500)]
Add artist, title, and date metadata to boop.{mp3,ogg} (#5531)

For boop.mp3, this commit adds both ID3v1 and ID3v2 tags.  For boop.ogg,
we use Vorbis metadata.

In the case of boop.mp3, this also adds a cover image. Interestingly, it
didn't seem to affect the size of boop.mp3 much, despite being ~8k.
boop.ogg seemed to be much more affected and so no cover image was added
to that version.

8 years agoRefactor initial state: reduce_motion and auto_play_gif (#5501)
Nolan Lawson [Fri, 27 Oct 2017 15:04:44 +0000 (08:04 -0700)]
Refactor initial state: reduce_motion and auto_play_gif (#5501)

8 years agoUse contenthash for ExtractTextWebpackPlugin (#5462)
Akihiko Odaki [Fri, 27 Oct 2017 14:54:20 +0000 (23:54 +0900)]
Use contenthash for ExtractTextWebpackPlugin (#5462)

[hash] is not documented.

8 years agoFeature: Unlisted custom emojis (#5485)
nullkal [Fri, 27 Oct 2017 14:11:30 +0000 (23:11 +0900)]
Feature: Unlisted custom emojis (#5485)

8 years agoAllow ActivityPub Note's tag and attachment to be single objects (#5534)
puckipedia [Fri, 27 Oct 2017 14:10:36 +0000 (16:10 +0200)]
Allow ActivityPub Note's tag and attachment to be single objects (#5534)

8 years agoOptimize FixReblogsInFeeds migration (#5538)
unarist [Fri, 27 Oct 2017 14:10:22 +0000 (23:10 +0900)]
Optimize FixReblogsInFeeds migration (#5538)

We have changed how we store reblogs in the redis for bigint IDs. This process is done by 1) scan all entries in users feed, and 2) re-store reblogs by 3 write commands.

However, this operation is really slow for large instances. e.g. 1hrs on friends.nico (w/ 50k users). So I have tried below tweaks.

* It checked non-reblogs by `entry[0] == entry[1]`, but this condition won't work because `entry[0]` is String while `entry[1]` is Float. Changing `entry[0].to_i == entry[1]` seems work.
  -> about 4-20x faster (feed with less reblogs will be faster)
* Write operations can be batched by pipeline
  -> about 6x faster
* Wrap operation by Lua script and execute by EVALSHA command. This really reduces packets between Ruby and Redis.
  -> about 3x faster

I've taken Lua script way, though doing other optimizations may be enough.

8 years agoFix copying emojos: redirect to the page you were on (#5509)
erin [Thu, 26 Oct 2017 14:44:24 +0000 (09:44 -0500)]
Fix copying emojos: redirect to the page you were on (#5509)

8 years agoFix column design broken with very long title (#5493)
りんすき [Thu, 26 Oct 2017 13:52:48 +0000 (22:52 +0900)]
Fix column design broken with very long title (#5493)

* Fix #5314

* fix not beautiful code

* fix broken design with mobile view

* remove no longer needed code

8 years agoFix Cocaine::ExitStatusError when upload small non-animated GIF (#5489)
unarist [Thu, 26 Oct 2017 13:48:35 +0000 (22:48 +0900)]
Fix Cocaine::ExitStatusError when upload small non-animated GIF (#5489)

Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.

8 years agoRemove translateZ(0) on modal overlay (#5478)
Nolan Lawson [Thu, 26 Oct 2017 13:46:50 +0000 (06:46 -0700)]
Remove translateZ(0) on modal overlay (#5478)

8 years agoUpdate Russian translation (#5517)
Ratmir Karabut [Wed, 25 Oct 2017 15:21:58 +0000 (18:21 +0300)]
Update Russian translation (#5517)

* 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

* Update Russian translation

* Update Russian translation (pin)

* Update Russian translation (account deletion)

* Fix extra line

* Update Russian translation (sessions)

* Update Russian translation

* Update Russian translation

* Fix merge conflicts (revert)

* Update Russian translation

* Update Russian translation (fix)

* Update Russian translation (fix quotes)

* Update Russian translation (fix quotes)

* Update Russian translation (fix)

* Update Russian translation

* Add quotes

* bundle exec i18n-tasks normalize

8 years agol10n: PT-BR translation updated (#5530)
Anna e só [Wed, 25 Oct 2017 14:11:03 +0000 (12:11 -0200)]
l10n: PT-BR translation updated (#5530)

8 years agoComplete Esperanto translation (#5520)
Olivier Nicole [Wed, 25 Oct 2017 13:38:37 +0000 (15:38 +0200)]
Complete Esperanto translation (#5520)

8 years agoi18n: Update Polish Translation (#5494)
Marcin Mikołajczak [Sat, 21 Oct 2017 23:34:40 +0000 (01:34 +0200)]
i18n: Update Polish Translation (#5494)

8 years agoRemove unnecessary translateZ(0) when doing scale() (#5473)
Nolan Lawson [Thu, 19 Oct 2017 16:27:55 +0000 (09:27 -0700)]
Remove unnecessary translateZ(0) when doing scale() (#5473)

8 years agoremove-duplicated-jest-config (#5465)
masarakki [Thu, 19 Oct 2017 11:51:38 +0000 (20:51 +0900)]
remove-duplicated-jest-config (#5465)