]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoLanguage improvements, replace whatlanguage with CLD (#2753)
Matt Jankowski [Wed, 3 May 2017 14:59:31 +0000 (10:59 -0400)]
Language improvements, replace whatlanguage with CLD (#2753)

* add failing en specs

* add cld2 gem

* Replace WhatLanguage with CLD

8 years agoUpdate of simple_forum_oc (#2745)
Quent-in [Wed, 3 May 2017 12:23:17 +0000 (14:23 +0200)]
Update of simple_forum_oc (#2745)

* Update of simple_forum_oc

* Update simple_form.oc.yml

8 years agoi18n: Update zh-CN [ Chinese (China) ] translations. (#2699)
ヨイツの賢狼ホロ | 3rd style [Wed, 3 May 2017 12:03:16 +0000 (20:03 +0800)]
i18n: Update zh-CN [ Chinese (China) ] translations. (#2699)

* Update zh-CN translations.

* Update doorkeeper.zh-CN.yml

* Follow @Artoria2e5 's change advices.

* forget mail for text format ......

* fix some changes

* mail's html version ......

* https://github.com/tootsuite/mastodon/pull/2699#pullrequestreview-35982283

* a space.....

* delete some unused keys

8 years agoAdd styles for small devices to .onboarding-modal (#2748)
unarist [Wed, 3 May 2017 12:02:15 +0000 (21:02 +0900)]
Add styles for small devices to .onboarding-modal (#2748)

8 years agoAdded support parallel_tests (#2740)
Keiji Matsuzaki [Wed, 3 May 2017 10:20:38 +0000 (19:20 +0900)]
Added support parallel_tests (#2740)

- Added new gem the `parallel_tests`.
- Updated .travis.yml.
  - Improved scripts and environment variable.

8 years agoAdd Thai Language (#2598)
jirayudech [Wed, 3 May 2017 10:18:00 +0000 (17:18 +0700)]
Add Thai Language (#2598)

* Create th.yml

* Update th.yml

* Update thai translation

* update thai translation.

* Update Thai translation

* Update thai translation

* Update thai thanslation

* Update thai translation

* Update th.yml

* Update th.yml

8 years agoremove capistrano/faster_assets from Capfile (#2737)
esetomo [Wed, 3 May 2017 10:14:52 +0000 (19:14 +0900)]
remove capistrano/faster_assets from Capfile (#2737)

8 years agoShow boosted user's avatar (#2518)
kawax [Wed, 3 May 2017 09:43:37 +0000 (18:43 +0900)]
Show boosted user's avatar (#2518)

* Show boosted user's avatar

* add .status__avatar-boost

* margin

* apply to notifications too.

* account__avatar-boost

* Add inline prop to Avatar component

* Add AvatarOverlay component

* rename mixins.scss

* move files for latest master

* fixed for webpack

8 years agoi18n: updated Polish translation (#2729)
m4sk1n [Wed, 3 May 2017 09:40:09 +0000 (11:40 +0200)]
i18n: updated Polish translation (#2729)

* i18n: updated Polish translation

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

* i18n: updated Polish translation

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>
8 years agoUpdate simple_form.ja.yml (#2746)
Masafumi Otsune [Wed, 3 May 2017 09:39:30 +0000 (18:39 +0900)]
Update simple_form.ja.yml (#2746)

"サーバー" in Japanese is "Server", so I modified it to instance according to English.

8 years agoFix width of .confirmation-modal on narrow screens (#2743)
unarist [Wed, 3 May 2017 09:39:14 +0000 (18:39 +0900)]
Fix width of .confirmation-modal on narrow screens (#2743)

8 years agoAdd Japanese translation for allowed languages (#2738)
Yamagishi Kazutoshi [Wed, 3 May 2017 09:37:44 +0000 (18:37 +0900)]
Add Japanese translation for allowed languages (#2738)

* Add Japanese translation for allowed languages

* Remove duplicate expression words

8 years agoUse URI.join for generate asset URL (#2741)
Yamagishi Kazutoshi [Wed, 3 May 2017 09:31:21 +0000 (18:31 +0900)]
Use URI.join for generate asset URL (#2741)

* Use URI.join for generate asset URL

* to String

8 years agoUse puma config for Procfile.dev (#2735)
Matt Jankowski [Wed, 3 May 2017 00:28:47 +0000 (20:28 -0400)]
Use puma config for Procfile.dev (#2735)

8 years agoReplace sprockets/browserify with Webpack (#2617)
Eugen Rochko [Wed, 3 May 2017 00:04:16 +0000 (02:04 +0200)]
Replace sprockets/browserify with Webpack (#2617)

* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time

8 years agoAllow to set CA file for SMTP (#2713)
Akihiko Odaki [Tue, 2 May 2017 23:03:12 +0000 (08:03 +0900)]
Allow to set CA file for SMTP (#2713)

8 years agoAuth sign out (#2511)
Matt Jankowski [Tue, 2 May 2017 21:37:58 +0000 (17:37 -0400)]
Auth sign out (#2511)

* Add a spec for signing out

* Add spec showing that suspended user gets a 403 forbidden on sign out

* Allow suspended account users to sign out

8 years agoAdd rspec to further specify FollowRemoteAccountService (#2414)
ThibG [Tue, 2 May 2017 21:37:26 +0000 (23:37 +0200)]
Add rspec to further specify FollowRemoteAccountService (#2414)

8 years agoi18n: updated Polish translation (#2727)
m4sk1n [Tue, 2 May 2017 21:04:41 +0000 (23:04 +0200)]
i18n: updated Polish translation (#2727)

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>
8 years agoAdd option to disable two factor auth in admin accounts panel. (#2584)
Kaylee [Tue, 2 May 2017 19:07:12 +0000 (20:07 +0100)]
Add option to disable two factor auth in admin accounts panel. (#2584)

* Add option to disable two factor auth in admin accounts panel.
Closes #2578

* Add @mjankowski's suggestions.
* Moves destroy actions behind User#disable_two_factor!
* Adds spec coverage for Admin:TwoFactorAuthenticationsController and User#disable_two_factor!

8 years agoAdd admin area view partials for each record type (#2700)
Matt Jankowski [Tue, 2 May 2017 18:56:28 +0000 (14:56 -0400)]
Add admin area view partials for each record type (#2700)

8 years agoCreation of activerecord for OC (#2721)
Quent-in [Tue, 2 May 2017 18:55:14 +0000 (20:55 +0200)]
Creation of activerecord for OC (#2721)

* Creation of activerecord for OC

* Update activerecord.oc.yml

8 years agoNorwegian translation for email notifications (#2673)
Audun Larsen [Tue, 2 May 2017 18:18:43 +0000 (20:18 +0200)]
Norwegian translation for email notifications (#2673)

* Create confirmation_instructions.no.html.erb

* Create confirmation_instructions.no.text.erb

* Create password_change.no.html.erb

* Create password_change.no.text.erb

* Create reset_password_instructions.no.html.erb

* Create reset_password_instructions.no.text.erb

* Translates html welcome email

* Translates welcome email

* Translates html password changed email

* Translates password changed email

* Translates html reset password email

* Translates reset password email

* Fixes typo in translation

* Fixes typo in translation

8 years agoDarkens colour on stream entries meta. (#2616)
Ash Furrow [Tue, 2 May 2017 18:10:55 +0000 (20:10 +0200)]
Darkens colour on stream entries meta. (#2616)

8 years agoi18n: Updated Polish translation (#2686)
m4sk1n [Tue, 2 May 2017 18:08:44 +0000 (20:08 +0200)]
i18n: Updated Polish translation (#2686)

#807

8 years agoReset textarea height when press submit key (#2681)
Yamagishi Kazutoshi [Tue, 2 May 2017 18:08:21 +0000 (03:08 +0900)]
Reset textarea height when press submit key (#2681)

* Reset textarea height when press submit key

* dry

* DON'T NEED props

8 years agoLanguage: update pt-BR (#2687)
Eduardo Elias [Tue, 2 May 2017 18:05:21 +0000 (19:05 +0100)]
Language: update pt-BR (#2687)

8 years agoFix to completely hide NSFW-tagged images (#2724)
hakoai [Tue, 2 May 2017 18:03:00 +0000 (03:03 +0900)]
Fix to completely hide NSFW-tagged images (#2724)

8 years agoFix subscription expiration condition (#2715)
Yamagishi Kazutoshi [Tue, 2 May 2017 16:21:22 +0000 (01:21 +0900)]
Fix subscription expiration condition (#2715)

* Fix subscription expiration condition

* dry and add spec

8 years agoMake it possible to check Subscription that has expired (#2712)
Yamagishi Kazutoshi [Tue, 2 May 2017 13:52:30 +0000 (22:52 +0900)]
Make it possible to check Subscription that has expired (#2712)

8 years agoAdd Hebrew interface translation. (#2573)
Ira [Tue, 2 May 2017 12:54:35 +0000 (15:54 +0300)]
Add Hebrew interface translation. (#2573)

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

* Added translation strings from latest master

Adding &rlm; 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 agogrammar fixes (#2695)
Drew Gates [Tue, 2 May 2017 00:21:19 +0000 (20:21 -0400)]
grammar fixes (#2695)

“such as” should be used instead of “like” under imports->preface.

Reworded imports->preface and recovery_instructions for better flow.

8 years agofix(boost-icon): Align center for Firefox (#2690)
Stephen Burgess [Tue, 2 May 2017 00:15:14 +0000 (20:15 -0400)]
fix(boost-icon): Align center for Firefox (#2690)

8 years agoannotate models (#2697)
yhirano [Tue, 2 May 2017 00:14:47 +0000 (09:14 +0900)]
annotate models (#2697)

* add annotate to Gemfile

* rails g annotate:install

* configure annotate_models

* add schema info to models

* fix rubocop to add frozen_string_literal

8 years agoCoverage for remote follows (#2694)
Matt Jankowski [Mon, 1 May 2017 22:44:23 +0000 (18:44 -0400)]
Coverage for remote follows (#2694)

* Add coverage for create with empty acct value

* Add coverage for create with webfinger failure

* Add coverage for create with webfinger providing bad values

* Add coverage for create when webfinger is good

* Add coverage for session[:remote_follow] having data

* Simplify how remote follow pulls acct from session

* Remote follow behaves more like model

* Move the discovery portions of remote follow out of controller

* Check for suspended accounts

8 years agoError responses cleanup (#2692)
Matt Jankowski [Mon, 1 May 2017 20:24:36 +0000 (16:24 -0400)]
Error responses cleanup (#2692)

* Use respond_with_error for forbidden errors

* Wrap up common error code into single method

8 years agoItalian translation (#2654)
Giuseppe Pignataro [Mon, 1 May 2017 16:14:51 +0000 (18:14 +0200)]
Italian translation (#2654)

* Added Italian Translation of the following files:
Changes to be committed:
new file:   app/views/user_mailer/confirmation_instructions.it.html.erb
new file:   app/views/user_mailer/confirmation_instructions.it.text.erb
new file:   app/views/user_mailer/password_change.it.html.erb
new file:   app/views/user_mailer/password_change.it.text.erb
new file:   app/views/user_mailer/reset_password_instructions.it.html.erb
new file:   app/views/user_mailer/reset_password_instructions.it.text.erb

* Added italian translation
Changes to be committed:
new file:   config/locales/activerecord.it.yml

8 years agofix(scrolling): Center for large screen w/o breaking horiz scroll (#2682)
Stephen Burgess [Mon, 1 May 2017 16:14:26 +0000 (12:14 -0400)]
fix(scrolling): Center for large screen w/o breaking horiz scroll (#2682)

8 years agofix(dropdowns): Allow for dropdowns to fill full column (#2684)
Stephen Burgess [Mon, 1 May 2017 16:13:10 +0000 (12:13 -0400)]
fix(dropdowns): Allow for dropdowns to fill full column (#2684)

* fix(dropdowns): Allow for dropdowns to fill full column

When the text inside a dropdown is longer than it is for English, the text is truncated which can result in a less-than-usable experience for languages such as German with longer words. This commit addresses the following:

* Allow the dropdown to expand to the entire width of the column based on the length of the text in the dropdown
* Align active dropdown arrow in relation to the trigger rather than the dropdown
* Show the right hand side of the dropdown which was previously hidden (could not see border radius)
* Ensure the three places dropdowns of status, account, and emoji appear well in Chrome, Firefox, Safari

* fix(emoji-dropdown): Restore emoji dropdown caret

8 years agoFilter on allowed user language preferences (#2361)
Matt Jankowski [Mon, 1 May 2017 15:42:13 +0000 (11:42 -0400)]
Filter on allowed user language preferences (#2361)

* Naive approached to timeline filtering

* Convert allowed_languages into a db column

* Allow users to choose languages to see statuses in

* Style list items as two columns

* Add a hint to explain language filtering preference

8 years agoFix Rubocop offences (#2630)
yhirano [Mon, 1 May 2017 14:31:02 +0000 (23:31 +0900)]
Fix Rubocop offences (#2630)

* disable Bundler/OrderedGems

* fix rubocop Lint/UselessAssignment

* fix rubocop Style/BlockDelimiters

* fix rubocop Style/AlignHash

* fix rubocop Style/AlignParameters, Style/EachWithObject

* fix rubocop Style/SpaceInLambdaLiteral

8 years agoDetect extension for preview card (#2679)
Yamagishi Kazutoshi [Mon, 1 May 2017 14:20:57 +0000 (23:20 +0900)]
Detect extension for preview card (#2679)

* Detect extension for preview card

* next

8 years agoReports spec for media attachments, clean up method (#2660)
Matt Jankowski [Sun, 30 Apr 2017 16:15:49 +0000 (12:15 -0400)]
Reports spec for media attachments, clean up method (#2660)

* Add coverage for Report#media_attachments

* Direct query on media attachment

8 years agoAdd postgres/redis folder to .dockerignore (#2659)
mecab [Sun, 30 Apr 2017 16:15:27 +0000 (01:15 +0900)]
Add postgres/redis folder to .dockerignore (#2659)

8 years agoUpdating Indonesian locale (#2644)
Alvina Putri [Sun, 30 Apr 2017 15:35:15 +0000 (22:35 +0700)]
Updating Indonesian locale (#2644)

* update id.jsx file

* update id.yml for new strings and improvements

* add activerecord.id.yml

* improve translation that out of context

* fix another ooc string

* fix main key

8 years agoAdditional key checks for browser compatibility (#2539)
Noëlle Anthony [Sun, 30 Apr 2017 13:12:14 +0000 (09:12 -0400)]
Additional key checks for browser compatibility (#2539)

Not all browsers recognize e.key === 'Escape'; some use 'Esc' and some only respond to the keyCode.

8 years agoCenter web app on larger windows sizes (#2021)
Hugo Gameiro [Sun, 30 Apr 2017 13:01:09 +0000 (14:01 +0100)]
Center web app on larger windows sizes (#2021)

* center web app for larger screen sizes

* move center app to components.scss

* center app on larger window sizes

* center .columns-area

8 years agoFix character_counter.jsx (#2653)
AA4ch1 [Sun, 30 Apr 2017 12:58:33 +0000 (21:58 +0900)]
Fix character_counter.jsx (#2653)

This commit fixes #2576

8 years agoNorwegian locale: Translates missing 2FA strings (#2655)
Audun Larsen [Sun, 30 Apr 2017 12:56:07 +0000 (14:56 +0200)]
Norwegian locale: Translates missing 2FA strings (#2655)

* Adds missing strings to Norwegian locale

* Translates missing strings.

* Changes "tofaktorautentisering" to "to-faktor autentisering"

According to the Norwegian National Security Authority this is the correct way to spell it.
https://www.nsm.stat.no/blogg/veiledning-i-to-faktor-autentisering/

8 years agoMinor fixes in the French translation (#2607)
Sylvhem [Sun, 30 Apr 2017 12:51:32 +0000 (14:51 +0200)]
Minor fixes in the French translation (#2607)

* Changement de « muets » en « silencés »

Utiliser le mot « muet » donne la fausse impression que ces comptes ne diffusent juste rien. Utiliser le mot « silencé » met l’accent sur le fait que ceci résulte d’une action de l’utilisateur·rice.

By using tho word "muet" (mute), we give the false impression that this accounts don't publish anything. Using the "silencé" (muted) put emphasis on the fact that this is the result of one of the user's action.

* Remplacement de « ' » par « ’ »

En français, l’apostrophe utilisée est une apostrophe courbe « ’ » (U+2019) et non pas une apostrophe droite « ' » (U+0027). La plupart des chaînes utilisaient une apostrophe droite. Ce commit harmonise le type d’apostrophe utilisé en remplaçant toutes les apostrophes droites par des apostrophes courbes.

In French, the apostrophe used is the curly one (U+2019) and not the vertical one (U+0027). Almost all the strings used a vertical apostrophe. This commit harmonize the kind of apostrophe used in the French localization by replacing all the vertical apostrophes by curly apostrophes.

* Remplacement de « ... » par « … »

Certaines chaînes utilisaient trois points d’affilié afin de représenter les points de suspension au lieu d’utiliser le caractère dédié « … » (U+2026). Ce commit harmonise la façon de représenter des points en remplaçant toutes les séries de trois points par le caractère dédié.

Some chains used a series of three dots to show the ellipsis instead of using the dedicated character "…" (U+2026). This commit harmonize how the ellipsis is shown in the French localization by replacing all the series of three dots by the dedicated character.

* Ajout d’un point final

Il manque un point à la fin de la dernière phrase de la chaîne « compose_form.privacy_disclaimer ». Ce commit le rajoute.

The last sentence of the "compose_form.privacy_disclaimer" string is missing a final dot. This commit will add it.

* Retrait d’un « s » final à « Mastodon »

Suite à la remarque de @wxcafe, retrait du « s » final à « Mastodon ».

Following @wxcafe comment, this commit remove the final "s" in the word "Mastodon".

8 years agoUpdate ar.jsx (#2647)
ButterflyOfFire [Sun, 30 Apr 2017 12:51:12 +0000 (14:51 +0200)]
Update ar.jsx (#2647)

* Update ar.jsx

Updating some (ar) translation.

* Update ar.yml

Pushing some missing translation strings on ar.yml

8 years agoMinor changes to Norwegian locale (#2652)
Audun Larsen [Sun, 30 Apr 2017 12:50:49 +0000 (14:50 +0200)]
Minor changes to Norwegian locale (#2652)

8 years agoRevert "Use PostgreSQL inheritance for blocks and mutes (#2520)" (#2634)
Akihiko Odaki [Sun, 30 Apr 2017 12:49:24 +0000 (21:49 +0900)]
Revert "Use PostgreSQL inheritance for blocks and mutes (#2520)" (#2634)

This reverts commit 5135d609b774b177d3d3894b176a822d86b73d3c.

8 years agoAdd target=_blank to user note (#2622)
Yamagishi Kazutoshi [Sat, 29 Apr 2017 22:28:41 +0000 (07:28 +0900)]
Add target=_blank to user note (#2622)

* Add target=_blank to user note

Open new window when click link from user profile in remote instance.

* fix rubocop

8 years agoExtract user tracking into concern (#2600)
Matt Jankowski [Sat, 29 Apr 2017 22:28:16 +0000 (18:28 -0400)]
Extract user tracking into concern (#2600)

8 years agoallow localhost to bypass the ratelimit (#2554)
Tristan Mahé [Sat, 29 Apr 2017 22:27:49 +0000 (15:27 -0700)]
allow localhost to bypass the ratelimit (#2554)

8 years agoUse PostgreSQL inheritance for blocks and mutes (#2520)
Akihiko Odaki [Sat, 29 Apr 2017 22:27:31 +0000 (07:27 +0900)]
Use PostgreSQL inheritance for blocks and mutes (#2520)

8 years agoMore coverage yes more even more (#2627)
Matt Jankowski [Sat, 29 Apr 2017 22:25:38 +0000 (18:25 -0400)]
More coverage yes more even more (#2627)

* Add coverage for admin/confirmations controller

* Coverage for statuses controller show action

* Add coverage for admin/domain_blocks controller

* Add coverage for settings/profiles#update

8 years agoDowngrade rubocop 0.48.1 => 0.46.0 (#2628)
yhirano [Sat, 29 Apr 2017 22:23:45 +0000 (07:23 +0900)]
Downgrade rubocop 0.48.1 => 0.46.0 (#2628)

* downgrade rubocop 0.48.1 => 0.46.0

* exclude vendor/**/* from rubocop target files

* add frozen_string_literal comment line

* fix percent literal delimited by ( and )

* fix alignment

* remove comment disabling unknown cop

8 years agoBump version to 1.3.2 (#2623)
Eugen Rochko [Sat, 29 Apr 2017 17:26:32 +0000 (19:26 +0200)]
Bump version to 1.3.2 (#2623)

8 years agofix(video): Position of play icon (#2608)
Stephen Burgess [Sat, 29 Apr 2017 13:23:27 +0000 (09:23 -0400)]
fix(video): Position of play icon (#2608)

* fix(video): Position of play icon

#2601

* fix(overlay-button): Positioning

* fix(expand): Bottom align expand icon

* feat(video): Fit landscape videos into preview area

8 years agoUpdate index.js (#2612)
YOU [Sat, 29 Apr 2017 12:35:16 +0000 (21:35 +0900)]
Update index.js (#2612)

8 years agoExpand uploaded thumbnail (#2611)
alpaca-tc [Sat, 29 Apr 2017 12:29:13 +0000 (21:29 +0900)]
Expand uploaded thumbnail (#2611)

8 years agoRemove uneeded `ORDER BY` query (#2615)
alpaca-tc [Sat, 29 Apr 2017 08:50:10 +0000 (17:50 +0900)]
Remove uneeded `ORDER BY` query (#2615)

8 years agoSet unknown attachment type when adding domain blocks (#2605)
Patrick Figel [Sat, 29 Apr 2017 00:44:03 +0000 (02:44 +0200)]
Set unknown attachment type when adding domain blocks (#2605)

Follow-up to #2599. When a domain block with `reject_media` is
added or `rake mastodon:media:remove_remote` is invoked, mastodon
deletes the locally cached attachments and avatars but does not
reflect that change in the database, causing the `file` fields to
still have values. This change persists the deletion in the
database and sets the attachment type to unknown.

This also introduces a one-off rake task that sets all attachments
without a local file to the "unknown" type. The upgrade notes for
the next release should contain a post-upgrade step with
`rake mastodon:media:set_unknown`.

8 years agoAdd tests to the Feed model (#2594)
Joël Quenneville [Fri, 28 Apr 2017 22:21:35 +0000 (18:21 -0400)]
Add tests to the Feed model (#2594)

This adds a test for the `Feed#get` method. While the data
transformations in `Feed#get` may seem redundant, they are important to
maintain the order from Redis. The tests I wrote will fail if someone
tries to refactor away this "redundancy" (as I tried to do in the first
iteration of this change).

8 years agoSet correct attachment type for rejected media (#2599)
Patrick Figel [Fri, 28 Apr 2017 22:18:32 +0000 (00:18 +0200)]
Set correct attachment type for rejected media (#2599)

In #2110, a new attachment type "unknown" was introduced for
attachments that were rejected due to a domain being blocked using
reject_media. However, the "type" field was never set to "unknown"
because a default value of "0" (image) is set for that column,
causing the `type.blank?` expression to always equal false.

This version uses type_changed? instead, causing the type to be set
to "unknown" unless a type has been explicitly set. This introduces
a small change in behaviour causing the type to be set to unknown
before paperclip calls `before_post_process`. Presumably this
behaviour is more appropriate than the current one because the
attachment type has not been determined by that point.

Included are new tests for `ProcessFeedService` and
`UpdateRemoteProfileService` which now check that remote media is
downloaded for non-blocked domains and is rejected for others.

8 years agoFix broken view spec for about/links (#2591)
Matt Jankowski [Fri, 28 Apr 2017 15:54:03 +0000 (11:54 -0400)]
Fix broken view spec for about/links (#2591)

8 years agoFix API for Mastodon version (#2590)
Yamagishi Kazutoshi [Fri, 28 Apr 2017 15:53:37 +0000 (00:53 +0900)]
Fix API for Mastodon version (#2590)

Fix #2589

8 years agoMinor updates to zh-CN JS translation (#2557)
Mingye Wang [Fri, 28 Apr 2017 14:45:41 +0000 (10:45 -0400)]
Minor updates to zh-CN JS translation (#2557)

* Minor updates to zh-CN JS translation

* removed "!" from "toot" per #2549 (it's a privacy indicator)
* ellipsis work (from ... to some U+2026 horizontal ellipsis unicode stuff)

* Spillcheck for zh-CN js translations (squash this)

部 [份→分]

8 years agoFix broken spec for about/links view partial (#2586)
Matt Jankowski [Fri, 28 Apr 2017 14:45:24 +0000 (10:45 -0400)]
Fix broken spec for about/links view partial (#2586)

8 years agoFix spec for hide get started (#2585)
Yamagishi Kazutoshi [Fri, 28 Apr 2017 14:44:57 +0000 (23:44 +0900)]
Fix spec for hide get started (#2585)

8 years agoHide get started link when register closed (#2583)
Yamagishi Kazutoshi [Fri, 28 Apr 2017 13:45:37 +0000 (22:45 +0900)]
Hide get started link when register closed (#2583)

8 years agoMore controller specs (#2561)
Matt Jankowski [Fri, 28 Apr 2017 13:12:37 +0000 (09:12 -0400)]
More controller specs (#2561)

* Add render_views in more places

* Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user

* Use actual account instances in authorize follow controller spec

8 years agoUpdate en locale federation description (#2558)
Wonderfall [Fri, 28 Apr 2017 13:11:54 +0000 (15:11 +0200)]
Update en locale federation description (#2558)

8 years agoUpdate Russian translation (pluralizations) (#2565)
Ratmir Karabut [Fri, 28 Apr 2017 13:11:36 +0000 (16:11 +0300)]
Update Russian translation (pluralizations) (#2565)

* 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)

8 years agoReturn missing page when tag does not exist (#2563)
Matt Jankowski [Fri, 28 Apr 2017 13:11:21 +0000 (09:11 -0400)]
Return missing page when tag does not exist (#2563)

8 years agoGem version updates (#2566)
Matt Jankowski [Fri, 28 Apr 2017 13:10:58 +0000 (09:10 -0400)]
Gem version updates (#2566)

* Update autoprefixer-rails to version 6.7.7.2

* Update aws-sdk to version 2.9.12

* Update http to version 2.2.2

* Update mail to version 2.6.5

* Update pghero to version 1.6.5

* Update ox to version 2.4.13

* Update json to version 2.1.0

* Update capistrano-rbenv to version 2.1.1

* Update httplog to version 0.99.3

* Update rainbow to version 2.2.2

* Update pkg-config to version 1.2.0

* Update globalid to version 0.4.0

* Update redis-rack to version 2.0.2

* Update webmock to version 3.0.1

* Update oj to version 3.0.2

8 years agoMore status specs (#2564)
Matt Jankowski [Fri, 28 Apr 2017 13:10:41 +0000 (09:10 -0400)]
More status specs (#2564)

* Add rough outline of coverage needed for public timeline

* Specs for visibility, replies, boosts

* Specs for silenced account

* Specs for local_only option

* Specs for blocks and mutes

* Add tentative spec around including other silenced account statuses

* Add with_public_visibility scope

* Add simple coverage for tag_timeline

* Tag timeline includes replies

* Replace tag.statuses with a tagged_with scope in tag timeline method

* Use with_public_visibility in tag timeline

* Extract common scope between public and tag timelines to method

* Extract local domain check to local_only scope

* Extract local_only check to starting scope method

* Move list of excluded from timeline account ids to account model

* Simplify excluded accounts list on account model

* Only join accounts when needed

* Rename method for account specific filtering

* Extract method for account exclusions

* Fix bug where silenced accounts were not including statuses from other silenced accounts

* DRY up filter application from account or no account

* timeline_scope can be private

* Add spec showing that account can find its excluded accounts ids

* Add spec which fails if local_only does not have a left outer join

* rubocop

8 years agoUpdate Russian translation (#2570)
Ratmir Karabut [Fri, 28 Apr 2017 13:08:23 +0000 (16:08 +0300)]
Update Russian translation (#2570)

New column subheadings

8 years agoUpdate version to 1.3.1 (#2571)
Ash Furrow [Fri, 28 Apr 2017 13:07:48 +0000 (15:07 +0200)]
Update version to 1.3.1 (#2571)

8 years agoUse the new Ruby 1.9 hash syntax (#2577)
y-temp4 [Fri, 28 Apr 2017 13:07:16 +0000 (22:07 +0900)]
Use the new Ruby 1.9 hash syntax (#2577)

8 years agoUpdate settings_helper.rb (#2556)
ButterflyOfFire [Thu, 27 Apr 2017 23:59:19 +0000 (00:59 +0100)]
Update settings_helper.rb (#2556)

Correcting language name arabic = العربية

8 years agoUpdate onboard federation description (#2555)
Wonderfall [Thu, 27 Apr 2017 23:58:45 +0000 (01:58 +0200)]
Update onboard federation description (#2555)

8 years agoAdd render_views to admin/reports controller spec (#2548)
Matt Jankowski [Thu, 27 Apr 2017 23:21:38 +0000 (19:21 -0400)]
Add render_views to admin/reports controller spec (#2548)

8 years agoCopy edits to reflect changes in post privacy (#2552)
Shel Raphen [Thu, 27 Apr 2017 23:21:26 +0000 (19:21 -0400)]
Copy edits to reflect changes in post privacy (#2552)

There was still a reference to "private posts" and the phrasing of unlisted in contrast to the others now made it seem strangely more private.

8 years agoFix remote follow (#2547)
Matt Jankowski [Thu, 27 Apr 2017 22:16:44 +0000 (18:16 -0400)]
Fix remote follow (#2547)

* Add coverage for remote_follow#new

* Fix reference to authorize_follows/card partial

8 years agoFix typo and wording in follower auth settings (#2544)
Ratmir Karabut [Thu, 27 Apr 2017 22:16:31 +0000 (01:16 +0300)]
Fix typo and wording in follower auth settings (#2544)

8 years agofix partial path in admin/reports (#2546)
Patrick Figel [Thu, 27 Apr 2017 22:09:25 +0000 (00:09 +0200)]
fix partial path in admin/reports (#2546)

In #2505, the authorize_follow views were renamed to
authorize_follows. This change was not applied in the show view
of admin/reports, which causes a 500 when reports are viewed.

8 years agoHotfix remote status formatting (#2543)
Eugen Rochko [Thu, 27 Apr 2017 21:37:22 +0000 (23:37 +0200)]
Hotfix remote status formatting (#2543)

8 years agoLanguage: Missing keys for pt-BR (#2540)
Eduardo Elias [Thu, 27 Apr 2017 20:32:38 +0000 (21:32 +0100)]
Language: Missing keys for  pt-BR (#2540)

8 years agoUpdate Japanese translation (and English translation file) for JavaScript (#2538)
unarist [Thu, 27 Apr 2017 18:41:25 +0000 (03:41 +0900)]
Update Japanese translation (and English translation file) for JavaScript (#2538)

* Update English translation file for JavaScript

* Update Japanese translation for JavaScript

8 years agoChange permission from 0755 to 0644 (#2536)
yhirano [Thu, 27 Apr 2017 17:29:41 +0000 (02:29 +0900)]
Change permission from 0755 to 0644 (#2536)

* chmod -x assets.rb

* chmod -x assets/fonts

* raname extname from jpeg to jpg

8 years agoFix broken oEmbed provider (#2537)
Yamagishi Kazutoshi [Thu, 27 Apr 2017 17:29:11 +0000 (02:29 +0900)]
Fix broken oEmbed provider (#2537)

8 years agoFix Doorkeeper error (#2534)
Yamagishi Kazutoshi [Thu, 27 Apr 2017 16:04:28 +0000 (01:04 +0900)]
Fix Doorkeeper error (#2534)

* Fix Doorkeeper error

* use Doorkeeper::OAuth::Scopes.from_string

8 years agoAnother (less urgent) Dutch string update (#2533)
jeroenpraat [Thu, 27 Apr 2017 15:54:34 +0000 (17:54 +0200)]
Another (less urgent) Dutch string update (#2533)

* Another (less urgent) update

* Another (less urgent) update

* Dutch strings: consistency:  let's use 'voorkeuren' as a subset of 'instellingen'

8 years agoCache Status#ancestors recursive query results (#2527)
Eugen Rochko [Thu, 27 Apr 2017 15:07:15 +0000 (17:07 +0200)]
Cache Status#ancestors recursive query results (#2527)

8 years agoImprove shared status verification (#2525)
Eugen Rochko [Thu, 27 Apr 2017 15:06:47 +0000 (17:06 +0200)]
Improve shared status verification (#2525)

* Instead of parsing shared status contents verbatim, make roundtrip
to purported original URL. Confirm that the "original" URL is from the
same domain as the author it claims to be from.

* Fix obvious typo, add comment

* Use URI look-up first

* Add test, update Goldfinger dependency to make less useless HTTP requests per Webfinger lookup

8 years agoLast minute Dutch update and fix (after checking on live 1.3RC) (#2529)
jeroenpraat [Thu, 27 Apr 2017 15:00:03 +0000 (17:00 +0200)]
Last minute Dutch update and fix (after checking on live 1.3RC) (#2529)

* Update and fix

* Update and fix Dutch strings

8 years agoBump version, improve how version is stored for better commit history (#2526)
Eugen Rochko [Thu, 27 Apr 2017 13:22:19 +0000 (15:22 +0200)]
Bump version, improve how version is stored for better commit history (#2526)