]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoCoever Admin::SilencesController more (#3356)
Akihiko Odaki [Mon, 29 May 2017 16:08:42 +0000 (01:08 +0900)]
Coever Admin::SilencesController more (#3356)

8 years agoCover Settings::ExportsController more (#3358)
Akihiko Odaki [Mon, 29 May 2017 16:08:26 +0000 (01:08 +0900)]
Cover Settings::ExportsController more (#3358)

8 years agoCover Oauth::AuthorizedApplicationsController (#3359)
Akihiko Odaki [Mon, 29 May 2017 16:08:05 +0000 (01:08 +0900)]
Cover Oauth::AuthorizedApplicationsController (#3359)

8 years agoCover Oauth::AuthorizationsController more (#3361)
Akihiko Odaki [Mon, 29 May 2017 16:07:39 +0000 (01:07 +0900)]
Cover Oauth::AuthorizationsController more (#3361)

8 years agoCover Settings::TwoFactorAuthenticationsController more (#3376)
Akihiko Odaki [Mon, 29 May 2017 16:07:07 +0000 (01:07 +0900)]
Cover Settings::TwoFactorAuthenticationsController more (#3376)

8 years agoCover WellKnown::HostMetaController more (#3382)
Akihiko Odaki [Mon, 29 May 2017 16:05:30 +0000 (01:05 +0900)]
Cover WellKnown::HostMetaController more (#3382)

8 years agoCover Settings::TwoFactorAuthentication::RecoveryCodesController more (#3383)
Akihiko Odaki [Mon, 29 May 2017 16:05:20 +0000 (01:05 +0900)]
Cover Settings::TwoFactorAuthentication::RecoveryCodesController more (#3383)

8 years agoSpec Settings::Exports (#3384)
Akihiko Odaki [Mon, 29 May 2017 16:05:01 +0000 (01:05 +0900)]
Spec Settings::Exports (#3384)

* Spec output of Settings::Exports::BlockedAccountsController

* Spec output of Settings::Exports::FollowingAccountsController

* Spec output of Settings::Exports::MutedAccountsController

* Spec Settings::Exports::BaseController

This commit removes duplicate specs in classes inheriting
Settings::Exports::BaseController as well.

8 years agoCover WellKnown::WebfingerController more (#3385)
Akihiko Odaki [Mon, 29 May 2017 16:04:37 +0000 (01:04 +0900)]
Cover WellKnown::WebfingerController more (#3385)

8 years agoCover Settings::TwoFactorAuthentication::ConfirmationsController more (#3386)
Akihiko Odaki [Mon, 29 May 2017 16:04:00 +0000 (01:04 +0900)]
Cover Settings::TwoFactorAuthentication::ConfirmationsController more (#3386)

8 years agoCover ApplicationHelper more (#3412)
Akihiko Odaki [Mon, 29 May 2017 16:03:37 +0000 (01:03 +0900)]
Cover ApplicationHelper more (#3412)

8 years agoSpec Activitystreams2BuilderHelper (#3413)
Akihiko Odaki [Mon, 29 May 2017 16:03:15 +0000 (01:03 +0900)]
Spec Activitystreams2BuilderHelper (#3413)

8 years agoSpec FlashesHelper (#3414)
Akihiko Odaki [Mon, 29 May 2017 16:03:02 +0000 (01:03 +0900)]
Spec FlashesHelper (#3414)

8 years agoSpec HomeHelper (#3415)
Akihiko Odaki [Mon, 29 May 2017 16:02:44 +0000 (01:02 +0900)]
Spec HomeHelper (#3415)

8 years agoSpec HttpHelper (#3416)
Akihiko Odaki [Mon, 29 May 2017 16:02:32 +0000 (01:02 +0900)]
Spec HttpHelper (#3416)

8 years agoCover Admin::PubSubHubHubController more (#3343)
Akihiko Odaki [Mon, 29 May 2017 16:01:37 +0000 (01:01 +0900)]
Cover Admin::PubSubHubHubController more (#3343)

8 years agoDon't stream toots from users who have blocked the recipient user (#3300)
unarist [Mon, 29 May 2017 16:01:08 +0000 (01:01 +0900)]
Don't stream toots from users who have blocked the recipient user (#3300)

* Don't stream toots from users who have blocked the recipient user

This filter was already applied on the `/api/v1/timelines/public` API, but
not yet for the Streaming API.

* Boosted status' account_id doesn't need for filtering in streaming/index.js

This filtering is only for public/hashtag timelines, but boosts already filtered on FanOutOnWriteService because those timelines don't show boosts.

8 years ago[nanobox] Adjustments for Nanobox development (#3295)
Daniel Hunsaker [Mon, 29 May 2017 15:59:18 +0000 (09:59 -0600)]
[nanobox] Adjustments for Nanobox development (#3295)

Because Nanobox doesn't run data components in the same container as the code, there are a few tweaks that need to be made in the configuration to get WebPack to work properly in development mode.

The same differences lead to needing to use `DATABASE_URL` by default in the `.env` file for Rails to work correctly.

Limitations of our `.env` loader for Node.js mean the `.env` file needs to be compiled everywhere in order to work, so we compile it in development, now, too. Also, all the `.env.production` tweaks have been consolidated into a single command.

Finally, since Nanobox actually creates the database when it sets up the database server, using the existence of the database alone to determine whether to migrate or setup is insufficient. So we add a condition to `rake db:migrate:setup` to check whether any migrations have run - if the database doesn't exist yet, `db:setup` will be called; if it does, but no migrations have been run, `db:migrate` and `db:seed` are called instead (the same basic idea as what `db:setup` does, but it skips `db:create`, which will only cause problems with an existing DB); otherwise, only `db:migrate` is called.

None of these changes should affect development, and all are designed not to interfere with existing behaviors in other environments.

8 years agoAdd preference setting for delete toot modal (#3368)
Atsushi Yamamoto [Mon, 29 May 2017 15:56:13 +0000 (11:56 -0400)]
Add preference setting for delete toot modal (#3368)

* Set delete_modal preference to true by default
* Does not show confirmation modal if delete_modal is false
* Add ja translation for preference setting page

8 years agoPrevent wasted render in load_more.js (#3402)
Nolan Lawson [Mon, 29 May 2017 15:52:45 +0000 (08:52 -0700)]
Prevent wasted render in load_more.js (#3402)

8 years agofix-rails-minor-version (#3403)
masarakki [Mon, 29 May 2017 15:52:26 +0000 (00:52 +0900)]
fix-rails-minor-version (#3403)

8 years agol10n: Fix Japanese translation (#3410)
lindwurm [Mon, 29 May 2017 15:52:02 +0000 (00:52 +0900)]
l10n: Fix Japanese translation (#3410)

* "メデイア" -> "メディア"

Signed-off-by: lindwurm <lindwurm.q@gmail.com>
8 years agoUse travis_retry to reduce spurious test failures (#3418)
Nolan Lawson [Mon, 29 May 2017 15:49:54 +0000 (08:49 -0700)]
Use travis_retry to reduce spurious test failures (#3418)

8 years agoBump version to 1.4.1
Eugen Rochko [Sun, 28 May 2017 17:30:38 +0000 (19:30 +0200)]
Bump version to 1.4.1

8 years agoUse immutable list in UploadButton to avoid wasteful re-render (#3394)
Nolan Lawson [Sun, 28 May 2017 17:15:35 +0000 (10:15 -0700)]
Use immutable list in UploadButton to avoid wasteful re-render (#3394)

8 years agoRe-add stream end log for WebSocket (#3397)
Clworld [Sun, 28 May 2017 17:14:44 +0000 (02:14 +0900)]
Re-add stream end log for WebSocket (#3397)

8 years agoFix video having black border on top due to regression from #2608 (#3392)
Eugen Rochko [Sun, 28 May 2017 17:11:47 +0000 (19:11 +0200)]
Fix video having black border on top due to regression from #2608 (#3392)

The combination of object-fit, relative position 50% from top and translating it
back upwards 50% is what allows us to crop the video properly, so it needs to
be +50%-50%

8 years agoUkrainian translation: fix typo (#3393)
ster [Sun, 28 May 2017 17:11:29 +0000 (21:11 +0400)]
Ukrainian translation: fix typo (#3393)

8 years agoFix IntersectionObserver isIntersecting in Edge (#3365)
Nolan Lawson [Sun, 28 May 2017 14:45:42 +0000 (07:45 -0700)]
Fix IntersectionObserver isIntersecting in Edge (#3365)

8 years agoBump version to 1.4.0.6
Eugen Rochko [Sun, 28 May 2017 14:32:53 +0000 (16:32 +0200)]
Bump version to 1.4.0.6

8 years agoUpdate bootsnap to 0.3.0 (fix xattr.h error) (#3390)
Eugen Rochko [Sun, 28 May 2017 14:32:29 +0000 (16:32 +0200)]
Update bootsnap to 0.3.0 (fix xattr.h error) (#3390)

8 years agoSimplify isIntersecting in status_list.js (#3371)
Nolan Lawson [Sun, 28 May 2017 14:26:35 +0000 (07:26 -0700)]
Simplify isIntersecting in status_list.js (#3371)

8 years agoFix Webpack Bundle Analyzer output for Webpacker (#3374)
Akihiko Odaki [Sun, 28 May 2017 14:26:16 +0000 (23:26 +0900)]
Fix Webpack Bundle Analyzer output for Webpacker (#3374)

Webpacker failed to parse output of Webpack when a module requires
non-existent module or has similar errors. This commit fixes the bug.

8 years agoi18n: Add some tags for Chinese translation (#3379)
vidarlee [Sun, 28 May 2017 14:25:54 +0000 (23:25 +0900)]
i18n: Add some tags for Chinese translation (#3379)

* Enhance for the Chinese translation

* Add filtered_languages for Chinese Translation include CN/HK/TW for PR #3175

* i18n: Add some tags for Chinese translation

* i18n: Add some tags for Chinese translation

8 years agoPersian translation fixes and updates (#3380)
Masoud Abkenar [Sun, 28 May 2017 14:25:45 +0000 (16:25 +0200)]
Persian translation fixes and updates (#3380)

* Persian translation fix

* Persian translation of new strings

8 years agoImprove streaming API cluster logging (#3370)
Eugen Rochko [Sun, 28 May 2017 14:25:26 +0000 (16:25 +0200)]
Improve streaming API cluster logging (#3370)

* Improve streaming API cluster logging

* Less verbose error middleware logging (stack trace useless there)

* Fix error logging

* Prevent potential issue

* Add missing "done()" in catch of Promise.all, websocket heartbeat re-implemented like in example

* I actually forgot a done(), the absolute madman

8 years agoReject revoked access_token on Streaming API. (#3367)
Clworld [Sat, 27 May 2017 21:27:54 +0000 (06:27 +0900)]
Reject revoked access_token on Streaming API. (#3367)

8 years agoBump version to 1.4.0.5
Eugen Rochko [Sat, 27 May 2017 14:56:47 +0000 (16:56 +0200)]
Bump version to 1.4.0.5

8 years agoFix #2922 - Load stylesheet from "custom.css" entrypoint when present (#3332)
Eugen Rochko [Sat, 27 May 2017 14:55:09 +0000 (16:55 +0200)]
Fix #2922 - Load stylesheet from "custom.css" entrypoint when present (#3332)

* Fix #2922 - Load stylesheet from "custom.css" entrypoint when present

This is pretty much the same way it worked as before, albeit with
having to create app/javascript/packs/custom.js with
require('../styles/custom.scss') (or whatever you want really), which
will be a blank slate for you to import whatever you want

* Remove old assets directory

* Extract font-awesome into common.css and always load it

8 years agoUpdate Dutch strings for 1.4 (#3363)
jeroenpraat [Sat, 27 May 2017 14:28:32 +0000 (16:28 +0200)]
Update Dutch strings for 1.4 (#3363)

* Update nl strings for 1.4

* Update nl strings for 1.4

* Update nl strings for 1.4

* nl strings (+1)

More new OTP strings will be translated another time

8 years agoi18n update for Occitan language (#3362)
Quent-in [Sat, 27 May 2017 13:50:40 +0000 (15:50 +0200)]
i18n update for Occitan language (#3362)

* Update simple_form.oc.yml

* Added check spam folder

* Update oc.json

abonats => seguidors

* Update oc.yml

* Update oc.json

Added translations + corrections

* Update confirmation_instructions.oc.html.erb

* Update confirmation_instructions.oc.text.erb

* i18n mailer

* Update reset_password_instructions.oc.html.erb

8 years agoi18n: pl: pluralized (#3344)
m4sk1n [Sat, 27 May 2017 11:04:42 +0000 (13:04 +0200)]
i18n: pl: pluralized (#3344)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoFix empty flash message on the settings page (#3345)
unarist [Sat, 27 May 2017 11:04:28 +0000 (20:04 +0900)]
Fix empty flash message on the settings page (#3345)

8 years agoAvoid comparing domains when looking for an exact match of a local account (#3336)
happycoloredbanana [Fri, 26 May 2017 22:55:08 +0000 (01:55 +0300)]
Avoid comparing domains when looking for an exact match of a local account (#3336)

8 years agoAdd missing background center on public profile headers (#3340)
Eugen Rochko [Fri, 26 May 2017 22:54:00 +0000 (00:54 +0200)]
Add missing background center on public profile headers (#3340)

8 years agoLanguage filtering in streaming API (#3339)
Eugen Rochko [Fri, 26 May 2017 22:53:48 +0000 (00:53 +0200)]
Language filtering in streaming API (#3339)

8 years agoFix some nil errors (#3338)
Eugen Rochko [Fri, 26 May 2017 22:53:38 +0000 (00:53 +0200)]
Fix some nil errors (#3338)

* Fix nil input not handled well in AuthorExtractor concern

* Fix hard error in ProcessFeedService when replied-to status has been deleted

* Fix nil errors in ProcessInteractionService when favourited status
cannot be found

8 years agoReplace onboarding elephant with friendlier graphic, shorter animation (#3337)
Eugen Rochko [Fri, 26 May 2017 22:53:25 +0000 (00:53 +0200)]
Replace onboarding elephant with friendlier graphic, shorter animation (#3337)

on status fade-in, fix buttons not having pointer cursor

8 years agoUpdated Polish translation (#3335)
m4sk1n [Fri, 26 May 2017 17:59:46 +0000 (19:59 +0200)]
Updated Polish translation (#3335)

* 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>
* i18n: corrected Polish translation

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

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
* Update simple_form.pl.yml

* Update simple_form.pl.yml

* updated Polish translation

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
* Update pl.yml

8 years agoAdd "meta" attribute to return of POST /api/v1/media method as well (#3333)
Eugen Rochko [Fri, 26 May 2017 16:22:30 +0000 (18:22 +0200)]
Add "meta" attribute to return of POST /api/v1/media method as well (#3333)

8 years agoIntroduce react-textarea-autosize instead of using style.height side effects (#3334)
Eugen Rochko [Fri, 26 May 2017 16:22:23 +0000 (18:22 +0200)]
Introduce react-textarea-autosize instead of using style.height side effects (#3334)

8 years agoRemove redundant call of recent scope in AccountsController (#3330)
Akihiko Odaki [Fri, 26 May 2017 14:35:25 +0000 (23:35 +0900)]
Remove redundant call of recent scope in AccountsController (#3330)

recent is included in paginate_by_max_id.

8 years agoRemove status context construction in the React side (#3331)
unarist [Fri, 26 May 2017 14:34:08 +0000 (23:34 +0900)]
Remove status context construction in the React side (#3331)

because it may causes flicker on the conversation when it contains blocked/muted user's status.

We use `/api/v1/statuses/{id}/context` to obtain status ids in the
conversation which filters blocked/muted user, but also uses internal
cache constructed from `in_reply_to_id` by `normalizeStatus()` in
`reducers/timelines.js` on each status loading which doesn't filter.

So statuses appears in conversation if those are cached, even those
statuses are from blocked/muted user. Then context cache will be updated
with the result of the context API and those statuses will be removed.

I have left the `normalizeStatus()` function itself which is called many
functions in the file as a placeholder for now, but maybe it should be
removed completely.

8 years agoBump version to 1.4.0.4
Eugen Rochko [Fri, 26 May 2017 12:16:04 +0000 (14:16 +0200)]
Bump version to 1.4.0.4

8 years agoGo to root after login in single user mode (#3289)
Akinori MUSHA [Fri, 26 May 2017 12:14:03 +0000 (21:14 +0900)]
Go to root after login in single user mode (#3289)

In single user mode, visitors are redirected to the single user's
profile page.  So, if you are the owner without a session, you start
from that page, click the login button and authenticate yourself
expecting you'll soon get started with the home page, but in reality
you'll get redirected back to where you started from -- your own
profile page.

This fixes the behavior by redirecting you home after login if you
have started from your own profile page.

8 years agoSpec Admin::BaseController (#3328)
Akihiko Odaki [Fri, 26 May 2017 12:13:26 +0000 (21:13 +0900)]
Spec Admin::BaseController (#3328)

8 years agoChange anchor to button element (#3321)
Yamagishi Kazutoshi [Fri, 26 May 2017 12:10:37 +0000 (21:10 +0900)]
Change anchor to button element (#3321)

Fix warning for ESLint (jsx-a11y/href-no-hash).

8 years agoReplace onWheel listener with onScroll (#3324)
Nolan Lawson [Fri, 26 May 2017 12:09:13 +0000 (05:09 -0700)]
Replace onWheel listener with onScroll (#3324)

* Replace onWheel listener with onScroll

* Update column.js

8 years agoFix "Cannot read property" on missing status (#3322)
unarist [Fri, 26 May 2017 12:07:48 +0000 (21:07 +0900)]
Fix "Cannot read property" on missing status (#3322)

I've found this issue when I clicked replies to muted user on the timeline.

Properties I've removed in here were added with lazy loading using
IntersectionObserver (8e4d1cba), but those statuses are not need to be
tracked anyway because it will be rendered as only empty div.

8 years agoImprove shouldComponentUpdate for status and status_action_bar (#3323)
Nolan Lawson [Fri, 26 May 2017 12:05:52 +0000 (05:05 -0700)]
Improve shouldComponentUpdate for status and status_action_bar (#3323)

8 years agoimplement shouldComponentUpdate for relative_timestamp (#3320)
Nolan Lawson [Fri, 26 May 2017 01:25:41 +0000 (18:25 -0700)]
implement shouldComponentUpdate for relative_timestamp (#3320)

8 years agoFix style regression of buttons not inheriting document font by default (#3310)
Eugen Rochko [Thu, 25 May 2017 19:15:41 +0000 (21:15 +0200)]
Fix style regression of buttons not inheriting document font by default (#3310)

8 years agoDisable the Rubocop Style/GuardClause cop (#3316)
Matt Jankowski [Thu, 25 May 2017 19:15:14 +0000 (15:15 -0400)]
Disable the Rubocop Style/GuardClause cop (#3316)

There are many spots throughout the codebase which are showing as covered by
specs in the simplecov output -- but which are not actually run, because they
are on the same line as a guard clause.

I plan on fixing some of these issues, but don't want to keep triggering this
rubocop style violation.

My preference would be that we use the PR review process to identify places
where a guard clause might be appropriate, but that we leave this cop turned off
by default.

8 years agoFix "contains" CSS for Chromium <57 (#3317)
Nolan Lawson [Thu, 25 May 2017 19:14:56 +0000 (12:14 -0700)]
Fix "contains" CSS for Chromium <57 (#3317)

Fixes #3277. I've tested in QupZilla on Mac and can confirm it fixes the issue, and that Chrome 58 is not affected (because it has Grid).

8 years agoAttach ReactPerf to window for easier debugging (#3318)
Nolan Lawson [Thu, 25 May 2017 19:14:40 +0000 (12:14 -0700)]
Attach ReactPerf to window for easier debugging (#3318)

8 years agoAdd `flex: 0 0 auto` to some components to avoid bugs on iOS9 (#3313)
unarist [Thu, 25 May 2017 16:59:55 +0000 (01:59 +0900)]
Add `flex: 0 0 auto` to some components to avoid bugs on iOS9 (#3313)

8 years agoFix Firefox issue with performance marks (#3315)
Nolan Lawson [Thu, 25 May 2017 16:59:18 +0000 (09:59 -0700)]
Fix Firefox issue with performance marks (#3315)

8 years agoMore use of next link header on account (media) timelines (#3311)
unarist [Thu, 25 May 2017 15:09:13 +0000 (00:09 +0900)]
More use of next link header on account (media) timelines (#3311)

This will reduce requests on who have only few statuses.

- Use next link header to detect more items from first request
- Omit next link header if result items are fewer than requested count
(It had omit it only if result was empty before)

8 years agoi18n: New strings translated to Hebrew (#3282)
Ira [Thu, 25 May 2017 14:38:02 +0000 (17:38 +0300)]
i18n: New strings translated to Hebrew (#3282)

8 years agoRemove arguments in association reader (#3305)
Yamagishi Kazutoshi [Thu, 25 May 2017 14:28:14 +0000 (23:28 +0900)]
Remove arguments in association reader (#3305)

8 years agoFix an error on dragging into status_content component (#3308)
unarist [Thu, 25 May 2017 14:27:44 +0000 (23:27 +0900)]
Fix an error on dragging into status_content component (#3308)

8 years agoCover TagsController more (#3306)
Akihiko Odaki [Thu, 25 May 2017 14:07:38 +0000 (23:07 +0900)]
Cover TagsController more (#3306)

8 years agoRemove unnecessary action bar wrapper divs (#3299)
Nolan Lawson [Thu, 25 May 2017 12:15:12 +0000 (05:15 -0700)]
Remove unnecessary action bar wrapper divs (#3299)

8 years agoRefactor Setting (#3302)
alpaca-tc [Thu, 25 May 2017 12:14:36 +0000 (21:14 +0900)]
Refactor Setting (#3302)

* @object is not needed

* Remove unneeded dependencies

* Do not call private method

* Prefer #respond_to_missing? over #respond_to?

`#respond_to?` doesn't support `User.settings.method(:method_name)`

* Use find_or_initialize_by instead of

8 years agoAdd improved performance marks for development mode (#3297)
Nolan Lawson [Thu, 25 May 2017 12:09:55 +0000 (05:09 -0700)]
Add improved performance marks for development mode (#3297)

8 years agoAdd localization of datetime in public page (#3296)
Yamagishi Kazutoshi [Thu, 25 May 2017 12:09:25 +0000 (21:09 +0900)]
Add localization of datetime in public page (#3296)

8 years agoNorwegian translation of the onboarding page (#3303)
Audun Larsen [Thu, 25 May 2017 12:06:10 +0000 (14:06 +0200)]
Norwegian translation of the onboarding page (#3303)

* Fixes translation placeholder

* Translates onboarding page

8 years agoReplace \u2014 with &mdash; (#3301)
Daigo 3 Dango [Thu, 25 May 2017 12:05:54 +0000 (12:05 +0000)]
Replace \u2014 with &mdash; (#3301)

8 years agofix storybook (#3292)
Yamagishi Kazutoshi [Thu, 25 May 2017 03:23:14 +0000 (12:23 +0900)]
fix storybook (#3292)

8 years agoFix load more feature on the Account media gallery (#3293)
unarist [Thu, 25 May 2017 03:22:46 +0000 (12:22 +0900)]
Fix load more feature on the Account media gallery (#3293)

* Add load more button for large screens
* Fix `next` state value on the first loading
* Don't load if `isLoading || !hasMore`
* Start load on near the bottom

8 years agofix-cache-returns-nil (#3213)
masarakki [Thu, 25 May 2017 03:18:08 +0000 (12:18 +0900)]
fix-cache-returns-nil (#3213)

8 years agoName the Webpack chunks (#3291)
Nolan Lawson [Thu, 25 May 2017 01:30:29 +0000 (18:30 -0700)]
Name the Webpack chunks (#3291)

8 years agoFix hovering default value for avatar component (#3290)
Yamagishi Kazutoshi [Thu, 25 May 2017 01:08:05 +0000 (10:08 +0900)]
Fix hovering default value for avatar component (#3290)

8 years agoPrevent contents of the status placeholder from overflowing (#3287)
unarist [Thu, 25 May 2017 00:23:54 +0000 (09:23 +0900)]
Prevent contents of the status placeholder from overflowing (#3287)

Since long lines may overflow and cause the status-list horizontally scrollable,
I added `overflow: hidden` to placeholder contents to prevent it.

8 years agoAdd ffmpeg and dependent packages as well as LD_LIBRARY_PATHs (#3276)
Daigo 3 Dango [Wed, 24 May 2017 15:57:33 +0000 (15:57 +0000)]
Add ffmpeg and dependent packages as well as LD_LIBRARY_PATHs (#3276)

This change adds mp4 support confirmed on Heroku-16 stack.

8 years agoRemove unnecessary constructors (#3280)
Yamagishi Kazutoshi [Wed, 24 May 2017 15:55:16 +0000 (00:55 +0900)]
Remove unnecessary constructors (#3280)

8 years agoLazy load toots using IntersectionObserver (#3191)
Sorin Davidoi [Wed, 24 May 2017 15:55:00 +0000 (17:55 +0200)]
Lazy load toots using IntersectionObserver (#3191)

* refactor(components/status_list): Lazy load using IntersectionObserver

* refactor(components/status_list): Avoid setState bottleneck

* refactor(components/status_list): Update state correctly

* fix(components/status): Render if isIntersecting is undefined

* refactor(components/status): Recycle timeout

* refactor(components/status): Reduce animation duration

* refactor(components/status): Use requestIdleCallback

* chore: Split polyfill bundles

* refactor(components/status_list): Increase rootMargin to 300%

* fix(components/status): Check if onRef is not defined

* chore: Add note about polyfill bundle splitting

* fix(components/status): Reduce animation duration to 0.3 seconds

8 years agoShow error message to suspended user (#3281)
Yamagishi Kazutoshi [Wed, 24 May 2017 14:39:09 +0000 (23:39 +0900)]
Show error message to suspended user (#3281)

8 years agoAdd test when hashtag and URL are concatenated (#3279)
abcang [Wed, 24 May 2017 13:36:10 +0000 (22:36 +0900)]
Add test when hashtag and URL are concatenated (#3279)

8 years agoSkip formatting for cashtag in status text (#3275)
Yamagishi Kazutoshi [Wed, 24 May 2017 12:32:53 +0000 (21:32 +0900)]
Skip formatting for cashtag in status text (#3275)

Resolve #3270

8 years agoFix DM being highlighted when it's inside a favourite notification (#3267)
Eugen Rochko [Wed, 24 May 2017 02:22:46 +0000 (04:22 +0200)]
Fix DM being highlighted when it's inside a favourite notification (#3267)

8 years agoUse node instead of babel-node for streaming (#3269)
Nolan Lawson [Tue, 23 May 2017 22:45:05 +0000 (15:45 -0700)]
Use node instead of babel-node for streaming (#3269)

8 years agoCover HomeController more (#3258)
Akihiko Odaki [Tue, 23 May 2017 21:37:24 +0000 (06:37 +0900)]
Cover HomeController more (#3258)

8 years agoFix following/followers API to return correct link headers (#3268)
unarist [Tue, 23 May 2017 21:26:23 +0000 (06:26 +0900)]
Fix following/followers API to return correct link headers (#3268)

Link headers in following/followers API should include follow_id as max_id/since_id.

However, these API use current_user's account_id instead of follow_id from #3167.
This causes irrelevant result on loading more users.

8 years agoFix Devise destroy method being available to delete user record (#3266)
Eugen Rochko [Tue, 23 May 2017 19:32:42 +0000 (21:32 +0200)]
Fix Devise destroy method being available to delete user record (#3266)

(You may think that we need account deletions, but this way would've just orphaned the db records)

8 years agodon't notify me when my toot is faved by someone i muted (#3245)
beatrix [Tue, 23 May 2017 18:05:53 +0000 (14:05 -0400)]
don't notify me when my toot is faved by someone i muted (#3245)

8 years agoToggle sensitive from admin page (#3261)
alpaca-tc [Tue, 23 May 2017 17:45:43 +0000 (02:45 +0900)]
Toggle sensitive from admin page (#3261)

8 years agoRefactor of API timeline actions (#3263)
Matt Jankowski [Tue, 23 May 2017 16:11:39 +0000 (12:11 -0400)]
Refactor of API timeline actions (#3263)

- Increase coverage to exercise all parts of each action
- Move into namespace to share common code
- Misc refactor of each action for smaller methods, simpler code

8 years agoAdd Support for Nanobox (#1709)
Daniel Hunsaker [Tue, 23 May 2017 14:54:44 +0000 (08:54 -0600)]
Add Support for Nanobox (#1709)

* Nanobox Support

- Added support for running Mastodon using Nanobox, both for local development, and for deployment to production
- Dev mode tested and is working properly
- Deployment is undergoing test as of this writing. If it works, this line will be amended to state success; if not, one or more subsequent commits will provide fixes.

* [nanobox] Resolve Deploy Issues

Everything seems to work except routing to the streaming API. Will investigate with the Nanobox staff and make fix commits if needed.

Changes made:
- Also need `NODE_ENV` in production
- Node runs on `:4000`
- Use `envsubst` to commit `.env.production` values, since `dotEnv` packages don't always support referencing other variables
- Can't precompile assets after `transform` hook, but do this locally so it only has to be done once.
- Rails won't create `production.log` on its own, so we do this ourselves.
- Some `start` commands run from `/data/` for some reason, so use absolute paths in command arguments

* [nanobox] Update Ruby version

* [nanobox] Fix db.rake Ruby code style issues

* [nanobox] Minor Fixes

Some minor adjustments to improve functionality:

- Fixed routing to `web.stream` instances
- Adjust `.env.nanobox` to properly generate a default `SMTP_FROM_ADDRESS` via `envsubst`
- Update Nginx configs to properly support the needed HTTP version and headers for proper functionality (the streaming API doesn't work without some of these settings in place)

* [nanobox] Move usage info to docs repo

* [nanobox] Updates for 1.2.x

- Need to leave out `pkg-config` since Nanobox deploys without Ruby's headers - create a gem group to exclude the gem during Nanobox installs, but allow it to remain part of the default set otherwise
- Update cron jobs to cover new/updated Rake tasks
- Update `.env.nanobox` to include latest defaults and additions

* [nanobox] Fix for nokogumbo, added in 1.3.x

Apparently, nokogumbo (pulled in by sanitize, added with `OEmbed Support for PreviewCard` (#2337) - 88725d6) tries to install before nokogiri, despite needing nokogiri available to build properly. Instruct it to use the same settings as nokogiri does when building nokogiri directly, instead of via bundler.

* [nanobox] Set NODE_ENV during asset compile

The switch to WebPack will rely on the local value of the NODE_ENV evar, so set it to production during asset compilation.

* [nanobox] Rebase on master; update Nginx configs

- `pkg-config` Gem no longer causes issues in Nanobox, so revert the Gemfile change which allowed excluding it
- Update Nginx configuration files with latest recommendations from production documentation
- Rebase on master to Get This Merged™

Everything should be golden!

8 years agoCover StatusesController more (#3259)
Akihiko Odaki [Tue, 23 May 2017 14:34:28 +0000 (23:34 +0900)]
Cover StatusesController more (#3259)