]> cat aescling's git repositories - mastodon.git/log
mastodon.git
7 years agoi18n: Update Polish translation (#7131)
Marcin Mikołajczak [Sun, 15 Apr 2018 05:12:41 +0000 (07:12 +0200)]
i18n: Update Polish translation (#7131)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoAdd bio fields (#6645)
Eugen Rochko [Sat, 14 Apr 2018 10:41:08 +0000 (12:41 +0200)]
Add bio fields (#6645)

* Add bio fields

- Fix #3211
- Fix #232
- Fix #121

* Display bio fields in web UI

* Fix output of links and missing fields

* Federate bio fields over ActivityPub as PropertyValue

* Improve how the fields are stored, add to Edit profile form

* Add rel=me to links in fields

Fix #121

7 years agoi18n: Add Japanese translations for privacy policy and more (#7049)
mayaeh [Fri, 13 Apr 2018 11:11:26 +0000 (20:11 +0900)]
i18n: Add Japanese translations for privacy policy and more (#7049)

* Update Japanese translations.

* Update Japanese translations.

* Update Japanese translations.

* Update Japanese translations.

* Add Japanese translations for #6984, #7040, #7072.
Update Japanese translations for privacy policy.

* Add Japanese translations for #7032, #7074, #7089.

* Proofreading Japanese translations for privacy policy.

7 years agoEnsure SynchronizeFeaturedCollectionWorker is unique and clean up (#7043)
Eugen Rochko [Thu, 12 Apr 2018 23:27:22 +0000 (01:27 +0200)]
Ensure SynchronizeFeaturedCollectionWorker is unique and clean up (#7043)

* Ensure SynchronizeFeaturedCollectionWorker is unique and clean up

Fix #7041

* Fix code style issue

7 years agoWhen notification type filtered, ignore live updates for it (#7101)
Eugen Rochko [Thu, 12 Apr 2018 23:20:04 +0000 (01:20 +0200)]
When notification type filtered, ignore live updates for it (#7101)

Fix #5625

7 years agoAllow more than the max pins if account is not local (#7105)
Renato "Lond" Cerqueira [Thu, 12 Apr 2018 18:36:02 +0000 (20:36 +0200)]
Allow more than the max pins if account is not local (#7105)

Sidekiq sometimes throws errors for users that have more pinned items
than the allowed by the local instance. It should only validate the
number of pins for local accounts.

7 years agoUpgrade Rails to version 5.2.0 (#5898)
Yamagishi Kazutoshi [Thu, 12 Apr 2018 12:45:17 +0000 (21:45 +0900)]
Upgrade Rails to version 5.2.0 (#5898)

7 years agoupdate gem, test pam authentication (#7028)
Alexander [Wed, 11 Apr 2018 19:40:38 +0000 (21:40 +0200)]
update gem, test pam authentication (#7028)

* update gem, test pam authentication

* add description for test parameters

* fix inclusion of optional group

7 years agoPlace privacy dropdown menu top if it is closer to the bottom of the viewport (#7106)
ThibG [Wed, 11 Apr 2018 18:42:50 +0000 (20:42 +0200)]
Place privacy dropdown menu top if it is closer to the bottom of the viewport (#7106)

7 years agoPaginate ancestor statuses in public page (#7102)
Akihiko Odaki [Wed, 11 Apr 2018 10:35:09 +0000 (19:35 +0900)]
Paginate ancestor statuses in public page (#7102)

This also limits the statuses returned by API, but pagination is not
implemented in Web API yet. I still expect it brings user experience
better than making a user wait to fetch all ancestor statuses and flooding
the column with them.

7 years agoFeature: Improve reports ui (#7032)
Emelia Smith [Tue, 10 Apr 2018 18:27:59 +0000 (20:27 +0200)]
Feature: Improve reports ui (#7032)

* Further improvements to Reports UI

- Clean up notes display
- Clean up add new note form
- Simplify controller
- Allow reopening a report with a note
- Show created at date for reports
- Fix report details table formatting

* Show history of report using Admin::ActionLog beneath the report

* Fix incorrect log message when reopening a report

* Implement fetching of all ActionLog items that could be related to the report

* Ensure adding a report_note updates the report's updated_at

* Limit Report History to actions that happened between the report being created and the report being resolved

* Fix linting issues

* Improve report history builder

Thanks @gargron for the improvements

7 years agoImprove load gap styling in web UI (#7100)
Eugen Rochko [Tue, 10 Apr 2018 15:12:10 +0000 (17:12 +0200)]
Improve load gap styling in web UI (#7100)

7 years agoUse RAILS_LOG_LEVEL to set log level of Sidekiq, too (#7079)
Eugen Rochko [Tue, 10 Apr 2018 14:08:28 +0000 (16:08 +0200)]
Use RAILS_LOG_LEVEL to set log level of Sidekiq, too (#7079)

Fix #3565 (oops)

7 years agoChange custom emoji search to `ILIKE` instead of `=` (#7099)
Paul Woolcock [Tue, 10 Apr 2018 13:46:27 +0000 (09:46 -0400)]
Change custom emoji search to `ILIKE` instead of `=` (#7099)

7 years agoFeature: Allow staff to change user emails (#7074)
Emelia Smith [Tue, 10 Apr 2018 07:16:06 +0000 (09:16 +0200)]
Feature: Allow staff to change user emails (#7074)

* Admin: Show unconfirmed email address on account page

* Admin: Allow staff to change user email addresses

* ActionLog: On change_email, log current email address and new unconfirmed email address

7 years agoFix GIFV encoding params (#7098)
MIYAGI Hikaru [Tue, 10 Apr 2018 07:11:55 +0000 (16:11 +0900)]
Fix GIFV encoding params (#7098)

- Explicitly specify video codec.
  When ffmpeg isn't compiled with libx264 but openh264, mpeg4 is selected as video codec.
- Swap avarage bitrate and max bitrate.

7 years agoLog rate limit hits (#7096)
Eugen Rochko [Mon, 9 Apr 2018 23:20:18 +0000 (01:20 +0200)]
Log rate limit hits (#7096)

Fix #7095

7 years agoWhen creating status, if no sensitive status is given, use default (#7057)
Renato "Lond" Cerqueira [Mon, 9 Apr 2018 21:02:42 +0000 (23:02 +0200)]
When creating status, if no sensitive status is given, use default (#7057)

Clients using the API that do not provide the sensitive flag are always
posting with false sensitive option.

7 years agoFeature: Direct message from Statuses (#7089)
Emelia Smith [Mon, 9 Apr 2018 15:09:11 +0000 (17:09 +0200)]
Feature: Direct message from Statuses (#7089)

* Fix: Switching between composing direct message and mention from menus

Previously clicking "direct message" followed by "mention" resulted in the composed status staying as "direct", along with weird spacing of items in the text area. This attempts to fix that.

* Fix: Add missing proptype check for onMention in Status component

* Add the ability to send a direct message to a user from the menu on Statuses

* Add space between "Embed" and "Mention" on expanded statuses menu

7 years agoOptimize public/headers/missing.png (#7084)
Una [Mon, 9 Apr 2018 09:34:48 +0000 (05:34 -0400)]
Optimize public/headers/missing.png (#7084)

7 years agoi18n: Update Polish translation (#7085)
Marcin Mikołajczak [Mon, 9 Apr 2018 08:28:53 +0000 (10:28 +0200)]
i18n: Update Polish translation (#7085)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoExclude status itself from context query (#7083)
Akihiko Odaki [Mon, 9 Apr 2018 07:58:53 +0000 (16:58 +0900)]
Exclude status itself from context query (#7083)

ancestor_statuses and descendant_statuses used to include the root status
itself, but the behavior is confusing because the root status is not
an ancestor nor descendant.

7 years agoHide search from Compose on mobile devices (#7077)
Emelia Smith [Sun, 8 Apr 2018 16:25:08 +0000 (18:25 +0200)]
Hide search from Compose on mobile devices (#7077)

* Hide search from Compose on mobile devices

We're presently seeing large numbers of users accidentally tooting what they're trying to search for. This PR hides the search form from the Compose view, now that we have a dedicated "search" tab on mobile.

* Don't "showSearch" on mobile if we're not currently searching (isSearchPage)

7 years agoAdd search item to tab bar for mobile devices (#7072)
Emelia Smith [Sun, 8 Apr 2018 12:26:58 +0000 (14:26 +0200)]
Add search item to tab bar for mobile devices (#7072)

* Add search item to tab bar for mobile devices

* Fix missing prop validation

7 years agoEnable updating additional account information from user preferences via rest api...
Levi Bard [Sun, 8 Apr 2018 11:43:10 +0000 (13:43 +0200)]
Enable updating additional account information from user preferences via rest api (#6789)

* Enable updating additional account information from user preferences via rest api
Resolves #6553

* Pacify rubocop

* Decoerce incoming settings in UserSettingsDecorator

* Create user preferences hash directly from incoming credentials instead of going through ActionController::Parameters

* Clean up user preferences update

* Use ActiveModel::Type::Boolean instead of manually checking stringified number equivalence

7 years agoFix follow/unfollow buttons on public profile (fixes #7036) (#7040)
ThibG [Sun, 8 Apr 2018 11:40:22 +0000 (13:40 +0200)]
Fix follow/unfollow buttons on public profile (fixes #7036) (#7040)

* Fix follow/unfollow buttons on public profile

- Present non-logged users with web+mastodon:// URLs for remote accounts
- Present logged-in users with appropriate links (authorize_follows and
  remote_unfollows) for remote accounts

* Do not cache rendered cards if user is logged in

7 years agoFree stroage if it is exceeding disk quota (#7061)
Akihiko Odaki [Sun, 8 Apr 2018 11:32:39 +0000 (20:32 +0900)]
Free stroage if it is exceeding disk quota (#7061)

7 years agoIgnore elasticsearch directory (#7070)
THE BOSS ♨ [Sun, 8 Apr 2018 07:57:16 +0000 (16:57 +0900)]
Ignore elasticsearch directory (#7070)

7 years agoAdd a circuit breaker for ActivityPub deliveries (#7053)
Eugen Rochko [Sat, 7 Apr 2018 19:36:58 +0000 (21:36 +0200)]
Add a circuit breaker for ActivityPub deliveries (#7053)

7 years agoi18n: improve "Welcome" translation in Portuguese (#7068)
Hisham Muhammad [Sat, 7 Apr 2018 19:36:03 +0000 (16:36 -0300)]
i18n: improve "Welcome" translation in Portuguese (#7068)

* i18n: update gender-neutral language for pt and pt-BR

Instead of using "bem-vindo(a)" (a masculine form of "Welcome"
with a "(a)" in the end to mean "bem-vinda" for the feminine form),
use "boas-vindas", which is a gender-neutral form of "Welcome").

There is already precedent for using "boas-vindas" in the
Brazilian Portuguese localization, in `config/locales/pt-BR.yml`.
European Portuguese dictionary Priberam also registers it as a valid form:
https://www.priberam.pt/dlpo/boas-vindas

* i18n: pt-BR minor orthography fix

The form "a bordo" does not take an accent.
http://oredator.com.br/curso-de-redacao/uncategorized/a-bordo-ou-a-bordo

7 years agoPrevent admins and moderators eavesdropping in private and direct toots (#7067)
Alda Marteau-Hardi [Sat, 7 Apr 2018 19:33:01 +0000 (21:33 +0200)]
Prevent admins and moderators eavesdropping in private and direct toots (#7067)

Fix #6986

7 years agoForward deletes on the same path as reply forwarding (#7058)
Eugen Rochko [Sat, 7 Apr 2018 16:54:46 +0000 (18:54 +0200)]
Forward deletes on the same path as reply forwarding (#7058)

* Forward deletes on the same path as reply forwarding

* Remove trailing whitespace

7 years agoRemove duplicate frequently used emojis (#7064)
Harmon [Sat, 7 Apr 2018 12:53:11 +0000 (07:53 -0500)]
Remove duplicate frequently used emojis (#7064)

7 years agoretrieve custom emoji list via API instead of before page load (#7047)
Isatis [Wed, 4 Apr 2018 20:25:34 +0000 (13:25 -0700)]
retrieve custom emoji list via API instead of before page load (#7047)

7 years agoAdjust privacy policy (#6666)
Eugen Rochko [Wed, 4 Apr 2018 19:47:39 +0000 (21:47 +0200)]
Adjust privacy policy (#6666)

* Adjust privacy policy to be more specific to Mastodon

Fix #6613

* Change data retention of IP addresses from 5 years to 1 year

* Add even more information

* Remove all (now invalid) translations of the privacy policy

* Add information about archive takeout, remove pointless consent section

* Emphasis on DM privacy

* Improve wording

* Add line about data use for moderation purposes

7 years agoi18n: Update Polish translation (#7037)
Marcin Mikołajczak [Wed, 4 Apr 2018 18:13:43 +0000 (20:13 +0200)]
i18n: Update Polish translation (#7037)

* i18n: Update Polish translation

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
* i18n: Update Polish translation

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoRevert "Add double-tap zoom functionary to `ZoomableImage` (#6944)" (#7035)
Emelia Smith [Wed, 4 Apr 2018 09:58:15 +0000 (11:58 +0200)]
Revert "Add double-tap zoom functionary to `ZoomableImage` (#6944)" (#7035)

Unfortunately the new hammer.js functionality wasn't correctly tested and didn't work across devices and browsers, as such, it's best to revert PR #6944 until we can revisit this functionality and make it work across all devices and browsers that are supported by Mastodon.

This reverts commit 5021c4e9ca78881f5379a18185a46e580b8f2c34.

7 years agoAdd contact account to landing page ("Administered by") (#6984)
Eugen Rochko [Tue, 3 Apr 2018 23:11:26 +0000 (01:11 +0200)]
Add contact account to landing page ("Administered by") (#6984)

7 years agoFix french wording of reblogged toots in public views, matching the wording of reblog...
ThibG [Tue, 3 Apr 2018 19:09:14 +0000 (21:09 +0200)]
Fix french wording of reblogged toots in public views, matching the wording of reblogged_by (#7029)

7 years agoFix nil account issue in ProcessAccountService (#7019)
Nolan Lawson [Tue, 3 Apr 2018 11:08:11 +0000 (04:08 -0700)]
Fix nil account issue in ProcessAccountService (#7019)

7 years agoImprove require_admin! and require_staff! filters (#7018)
Emelia Smith [Tue, 3 Apr 2018 11:07:32 +0000 (13:07 +0200)]
Improve require_admin! and require_staff! filters (#7018)

Previously these returns 302 redirects instead of 403s, which meant posting links to admin pages in slack caused them to unfurl, rather than stay as a link. Additionally, require_admin! doesn't appear to be actively used, on require_staff!

7 years agoi18n: Add Japanese translations for #7000 (#7022)
mayaeh [Tue, 3 Apr 2018 09:21:33 +0000 (18:21 +0900)]
i18n: Add Japanese translations for #7000 (#7022)

* run yarn manage:translations.

* run i18n-tasks add-missing ja.

* Update Japanese translations.

7 years agoFeature: Report improvements (#6967) (#7000)
Emelia Smith [Mon, 2 Apr 2018 20:04:14 +0000 (22:04 +0200)]
Feature: Report improvements (#6967) (#7000)

* Implement Assignment of Reports (#6967)

* Change translation of admin.report.comment.label to "Report Comment" for clarity

As we'll soon add the ability for reports to have comments on them, this clarification makes sense.

* Implement notes for Reports

This enables moderators to leave comments about a report whilst they work on it

* Fix display of report moderation notes

* Allow reports to be reopened / marked as unresolved

* Redirect to reports listing upon resolution of report

* Implement "resolve with note" functionality

* Add inverse relationship for report notes

* Remove additional database querying when loading report notes

* Fix tests for reports

* Fix localisations for report notes / reports

7 years agoDo not default SMTP verify mode to "peer", default to "none" (#6996)
Eugen Rochko [Mon, 2 Apr 2018 17:19:51 +0000 (19:19 +0200)]
Do not default SMTP verify mode to "peer", default to "none" (#6996)

7 years ago Add missing rejection handling for Promises (#7008)
unarist [Mon, 2 Apr 2018 12:51:02 +0000 (21:51 +0900)]
 Add missing rejection handling for Promises (#7008)

* Add eslint-plugin-promise to detect uncaught rejections

* Move alert generation for errors to actions/alert

* Add missing rejection handling for Promises

* Use catch() instead of onReject on then()

Then it will catches rejection from onFulfilled. This detection can be
disabled by `allowThen` option, though.

7 years agoImplement the ability for an Administrator or Moderator to remove an account avatar...
Emelia Smith [Mon, 2 Apr 2018 11:45:07 +0000 (13:45 +0200)]
Implement the ability for an Administrator or Moderator to remove an account avatar (#6998)

7 years agoFix issues with sending direct messages from user profile (#6999)
Emelia Smith [Mon, 2 Apr 2018 11:44:19 +0000 (13:44 +0200)]
Fix issues with sending direct messages from user profile (#6999)

* Clear compose textarea when starting a new direct message

Previous behaviour resulted in potentially misdirected direct messages.

* Hide search when starting to compose a direct message

7 years agoWeblate translations (2018-04-02) (#7007)
Yamagishi Kazutoshi [Mon, 2 Apr 2018 11:43:30 +0000 (20:43 +0900)]
Weblate translations (2018-04-02) (#7007)

* Translated using Weblate (Galician)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/gl/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/nl/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ca/

* Translated using Weblate (Arabic)

Currently translated at 76.4% (449 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Japanese)

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/

* Translated using Weblate (Slovak)

Currently translated at 92.3% (542 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 92.3% (542 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (58 of 58 strings)

Translation: Mastodon/Preferences
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/simple_form/sk/

* Translated using Weblate (Polish)

Currently translated at 98.9% (581 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pl/

* Translated using Weblate (French)

Currently translated at 99.6% (585 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/fr/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pt_BR/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ca/

* Translated using Weblate (Persian)

Currently translated at 100.0% (75 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/fa/

* Translated using Weblate (Persian)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/fa/

* Translated using Weblate (French)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/fr/

* Translated using Weblate (Japanese)

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/

* Translated using Weblate (Japanese)

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/sk/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (62 of 62 strings)

Translation: Mastodon/Devise
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/devise/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (75 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (62 of 62 strings)

Translation: Mastodon/Devise
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/devise/zh_Hant/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/eo/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (75 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/zh_Hant/

* Translated using Weblate (Arabic)

Currently translated at 76.6% (450 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/eo/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/

* Translated using Weblate (Slovak)

Currently translated at 92.6% (544 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (75 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/sk/

* Translated using Weblate (Arabic)

Currently translated at 82.9% (487 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Arabic)

Currently translated at 98.6% (74 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/ar/

* Translated using Weblate (Slovak)

Currently translated at 93.6% (550 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 95.4% (560 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ja/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (75 of 75 strings)

Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/id/

* Translated using Weblate (Korean)

Currently translated at 100.0% (58 of 58 strings)

Translation: Mastodon/Preferences
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/simple_form/ko/

* Translated using Weblate (Korean)

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ko/

* Translated using Weblate (Korean)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ko/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/

* Translated using Weblate (Arabic)

Currently translated at 82.9% (487 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Arabic)

Currently translated at 99.2% (278 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ar/

* Translated using Weblate (Arabic)

Currently translated at 87.3% (513 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Arabic)

Currently translated at 99.6% (279 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ar/

* bundle exec i18n-tasks normalize && yarn manage:translations

* revert

7 years agoRussian language updated (#7005)
Evgeny Petrov [Mon, 2 Apr 2018 10:49:06 +0000 (13:49 +0300)]
Russian language updated (#7005)

* Russian language updated

* Small fixes for RU language

* bundle exec i18n-tasks normalize

7 years agoi18n: update zh-HK translation (#7004)
luzi82 [Mon, 2 Apr 2018 10:11:37 +0000 (18:11 +0800)]
i18n: update zh-HK translation (#7004)

* i18n: update zh-HK translation

* i18n: update zh-HK translation

* i18n-tasks normalize

7 years agoSupport all ActivityPub actor types (#6997)
Eugen Rochko [Mon, 2 Apr 2018 00:10:53 +0000 (02:10 +0200)]
Support all ActivityPub actor types (#6997)

Fix #6973

7 years agoFix unpermitted parameters warning when generating pagination URLs (#6995)
Eugen Rochko [Mon, 2 Apr 2018 00:09:50 +0000 (02:09 +0200)]
Fix unpermitted parameters warning when generating pagination URLs (#6995)

7 years ago[WIP] Enable custom emoji on account pages and in the sidebar (#6124)
David Underwood [Sun, 1 Apr 2018 21:55:42 +0000 (17:55 -0400)]
[WIP] Enable custom emoji on account pages and in the sidebar (#6124)

Federate custom emojis with accounts

7 years agoUpdate Ruby to version 2.4.4 (#6964)
Yamagishi Kazutoshi [Sun, 1 Apr 2018 21:43:08 +0000 (06:43 +0900)]
Update Ruby to version 2.4.4 (#6964)

https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/

> This release includes some bug fixes and some security fixes.
>
> - CVE-2017-17742: HTTP response splitting in WEBrick
> - CVE-2018-6914: Unintentional file and directory creation with directory traversal in tempfile and tmpdir
> - CVE-2018-8777: DoS by large request in WEBrick
> - CVE-2018-8778: Buffer under-read in String#unpack
> - CVE-2018-8779: Unintentional socket creation by poisoned NUL byte in UNIXServer and UNIXSocket
> - CVE-2018-8780: Unintentional directory traversal by poisoned NUL byte in Dir
> - Multiple vulnerabilities in RubyGems

7 years agoFix: Prevent submission using same logic as submit button disabling. (#6993)
Emelia Smith [Sun, 1 Apr 2018 20:19:43 +0000 (22:19 +0200)]
Fix: Prevent submission using same logic as submit button disabling. (#6993)

This prevents submission through ctrl/cmd+enter when the submit button is disabled.

7 years agoimprove zh-HK localization by referring zh-TW and zh-CN (#6988)
luzi82 [Sun, 1 Apr 2018 12:57:26 +0000 (20:57 +0800)]
improve zh-HK localization by referring zh-TW and zh-CN (#6988)

7 years agoi18n: Update Polish translation (#6985)
Marcin Mikołajczak [Sun, 1 Apr 2018 08:31:38 +0000 (10:31 +0200)]
i18n: Update Polish translation (#6985)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoi18n: Add Japanese translations for domain blocks (#6979)
mayaeh [Sat, 31 Mar 2018 12:09:39 +0000 (21:09 +0900)]
i18n: Add Japanese translations for domain blocks (#6979)

* run yarn manage:translations

* Update Japanese translations for domain blocks.

7 years ago[Nanobox] Enable ElasticSearch support by default (#6977)
Daniel Hunsaker [Sat, 31 Mar 2018 11:17:25 +0000 (05:17 -0600)]
[Nanobox] Enable ElasticSearch support by default (#6977)

Admins can still disable the feature by adding `ES_ENABLED=false` to their environment, if they prefer not to use it. Be sure to set the variable before you deploy!

7 years agoIgnore AbortError when cancelled sharing (#6978)
unarist [Sat, 31 Mar 2018 11:16:38 +0000 (20:16 +0900)]
Ignore AbortError when cancelled sharing (#6978)

`navigator.share()` rejects Promise if user cancelled sharing, and it may
print it as an error on JavaScript console.

This patch ignores it and prints other errors on the console.

7 years agoFix compatibility with PeerTube (#6968)
ThibG [Fri, 30 Mar 2018 13:44:54 +0000 (15:44 +0200)]
Fix compatibility with PeerTube (#6968)

* Support fetching objects of convertible types by URL (fixes #6924)

* Ignore invalid hashtags

7 years agoAdd some UI for user-defined domain blocks (#6628)
ThibG [Fri, 30 Mar 2018 10:38:00 +0000 (12:38 +0200)]
Add some UI for user-defined domain blocks (#6628)

* Keep list of blocked domains

Might be overkill, but I'm trying to follow the same logic as for blocked users

* Add basic domain block UI

* Add the domain blocks UI to Getting Started

* Fix undefined URL in `fetchDomainBlocks`

* Update all known users' domain_blocking relationship instead of just one's

7 years agoUpgrade charlock_holmes to version 0.7.6 (#6966)
Pierre-Morgan Gate [Fri, 30 Mar 2018 07:52:44 +0000 (00:52 -0700)]
Upgrade charlock_holmes to version 0.7.6 (#6966)

This version fixes compilation errors when trying to build its native extension with ICU 61.

7 years agoupdate ja locale (#6965)
takayamaki [Fri, 30 Mar 2018 01:04:04 +0000 (10:04 +0900)]
update ja locale (#6965)

related https://github.com/tootsuite/mastodon/pull/6956

7 years agoFeature: Direct message from menu (#6956)
Emelia Smith [Thu, 29 Mar 2018 17:08:34 +0000 (19:08 +0200)]
Feature: Direct message from menu (#6956)

* Implement ability to send direct messages from the user menu

* Implement message warning users that direct messages are visible to all mentioned users

* Update locales

7 years agoFix ReferenceError when Cache API is missing (#6953)
unarist [Thu, 29 Mar 2018 12:57:02 +0000 (21:57 +0900)]
Fix ReferenceError when Cache API is missing (#6953)

Cache API is not supported on Safari 11.0 / iOS 11.

Since those caching is optional, this patch simply ignores it.

7 years agoFix TypeError on follow notification (#6950)
unarist [Thu, 29 Mar 2018 10:59:12 +0000 (19:59 +0900)]
Fix TypeError on follow notification (#6950)

`notification.status` may not be present, e.g. follow notification.

7 years agoDo not ignore unknown media attachments, only skip them (#6948)
ThibG [Wed, 28 Mar 2018 22:52:24 +0000 (00:52 +0200)]
Do not ignore unknown media attachments, only skip them (#6948)

That way, they are displayed in a list below the corresponding toot.

7 years agoAdd double-tap zoom functionary to `ZoomableImage` (#6944)
Yuto Tokunaga [Wed, 28 Mar 2018 18:40:51 +0000 (03:40 +0900)]
Add double-tap zoom functionary to `ZoomableImage` (#6944)

add <div.zoomable-image__margin/> to keep margin of the image on zooming
move setting `scrollLeft` and `scrollTop` of container from callback of
`setState` to `componentDidUpdate`
add 'hammerjs' package for touch gesture detection
rewrite `ZoomableImage` using 'hammerjs'

7 years agoDocument CORS requirement for asset host (#6941)
Akihiko Odaki [Wed, 28 Mar 2018 18:40:18 +0000 (03:40 +0900)]
Document CORS requirement for asset host (#6941)

7 years agoFix LoadMore on account media gallery (#6933)
unarist [Tue, 27 Mar 2018 14:53:52 +0000 (23:53 +0900)]
Fix LoadMore on account media gallery (#6933)

max_id in the fetch request should be a status id, but media attachment id was used.

7 years agoClone response before put it to the cache (#6932)
unarist [Tue, 27 Mar 2018 13:18:35 +0000 (22:18 +0900)]
Clone response before put it to the cache (#6932)

`Response.prototype.clone()` must be called before the response used.

This fixes an error from ServiceWorker and failing to load image when the
image is not cached.

7 years agoAdd missing null handling in notification reducer (#6930)
unarist [Tue, 27 Mar 2018 11:05:59 +0000 (20:05 +0900)]
Add missing null handling in notification reducer (#6930)

This patch adds null item (i.e. gap) handling on below functions to avoid TypeError.

* `filterNotifications` called on user mute/block
* `deleteByStatus` called on status deletion

7 years agoCache media (#6902)
Akihiko Odaki [Tue, 27 Mar 2018 10:32:30 +0000 (19:32 +0900)]
Cache media (#6902)

7 years agofix #6846 (#6914)
Yuto Tokunaga [Tue, 27 Mar 2018 10:30:28 +0000 (19:30 +0900)]
fix #6846 (#6914)

7 years agoAdd a spec for UniqueUsernameValidator (#6927)
unarist [Tue, 27 Mar 2018 03:22:58 +0000 (12:22 +0900)]
Add a spec for UniqueUsernameValidator (#6927)

Note that this spec has a pending test about dots in the username,
because allowing it has been reverted for now.

7 years agoFix UniqueUsernameValidator comparison (#6926)
Eugen Rochko [Tue, 27 Mar 2018 02:33:57 +0000 (04:33 +0200)]
Fix UniqueUsernameValidator comparison (#6926)

Comparison was downcasing only one side, therefore if previously
existing account had a non-lowercase spelling, it would be ignored
when checking for duplicates.

New rake task `mastodon:maintenance:find_duplicate_usernames` will
help find constraint violations that might have occured from the
presence of this bug.

Bump version to 2.3.3

7 years agoValidate HTTP response length while receiving (#6891)
Akihiko Odaki [Mon, 26 Mar 2018 12:02:10 +0000 (21:02 +0900)]
Validate HTTP response length while receiving (#6891)

to_s method of HTTP::Response keeps blocking while it receives the whole
content, no matter how it is big. This means it may waste time to receive
unacceptably large files. It may also consume memory and disk in the
process. This solves the inefficency by checking response length while
receiving.

7 years agofeat(ShowMore): Add classname to show more/show less button (#6904)
Stephen Burgess [Mon, 26 Mar 2018 11:59:44 +0000 (07:59 -0400)]
feat(ShowMore): Add classname to show more/show less button (#6904)

7 years agoRefactor scss (#6913)
Yuto Tokunaga [Mon, 26 Mar 2018 11:59:21 +0000 (20:59 +0900)]
Refactor scss (#6913)

* Refactoring scss

introduce scss variables for the media modal
fix css block structure corresponding to react components
fix flex layouts
remove background image of the loaded image on the media modal

* Fix typo

7 years agoFix moved account handling in IndexedDB feature (#6915)
unarist [Mon, 26 Mar 2018 10:48:01 +0000 (19:48 +0900)]
Fix moved account handling in IndexedDB feature (#6915)

* Fix stack overflow on importFetchedAccounts

  When the account has moved property, it should process destination
  account instead of source account itself.

* Set account id instead of account object for moved property

  This restores "foo has moved to" indication on account view, and
  fixes `reblog` index on `accounts` object store.

7 years agoMissing OTP_SECRET in scalingo.json (#6917)
Yann Klis [Mon, 26 Mar 2018 10:47:34 +0000 (12:47 +0200)]
Missing OTP_SECRET in scalingo.json (#6917)

7 years agoi18n: Update Polish translation (#6903)
Marcin Mikołajczak [Sun, 25 Mar 2018 14:33:07 +0000 (16:33 +0200)]
i18n: Update Polish translation (#6903)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoAllow clients to fetch notifications made while they were offline (#6886)
Akihiko Odaki [Sat, 24 Mar 2018 21:07:23 +0000 (06:07 +0900)]
Allow clients to fetch notifications made while they were offline (#6886)

7 years agoAllow clients to fetch statuses made while they were offline (#6876)
Akihiko Odaki [Sat, 24 Mar 2018 14:25:15 +0000 (23:25 +0900)]
Allow clients to fetch statuses made while they were offline (#6876)

7 years agoRename variables to have semantic meanings in notifications reducer (#6890)
Akihiko Odaki [Sat, 24 Mar 2018 12:36:44 +0000 (21:36 +0900)]
Rename variables to have semantic meanings in notifications reducer (#6890)

7 years agoStore objects to IndexedDB (#6826)
Akihiko Odaki [Sat, 24 Mar 2018 12:06:27 +0000 (21:06 +0900)]
Store objects to IndexedDB (#6826)

7 years agoRevert "Revert "Upgrade Paperclip to version 6.0.0" (#6807)" (#6808)
Yamagishi Kazutoshi [Sat, 24 Mar 2018 11:52:45 +0000 (20:52 +0900)]
Revert "Revert "Upgrade Paperclip to version 6.0.0" (#6807)" (#6808)

This reverts commit 40871caa4b06c7ee1c3b07f439ed984ead295ced.

7 years agoShow media modal on public pages (#6801)
Akihiko Odaki [Sat, 24 Mar 2018 11:52:26 +0000 (20:52 +0900)]
Show media modal on public pages (#6801)

7 years agoChange “Toots with replies” to “Toots and replies” (#6875)
Marcin Mikołajczak [Sat, 24 Mar 2018 11:51:51 +0000 (12:51 +0100)]
Change “Toots with replies” to “Toots and replies” (#6875)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
7 years agoChange columns in notifications nonnullable (#6764)
Akihiko Odaki [Sat, 24 Mar 2018 11:51:28 +0000 (20:51 +0900)]
Change columns in notifications nonnullable (#6764)

7 years agoNote if the user is already following the target when authorizing follow (#6325)
Akihiko Odaki [Sat, 24 Mar 2018 11:50:41 +0000 (20:50 +0900)]
Note if the user is already following the target when authorizing follow (#6325)

7 years agoInvites: Add '1 week' as expire option (#6872)
Jeroen [Sat, 24 Mar 2018 11:50:14 +0000 (12:50 +0100)]
Invites: Add '1 week' as expire option (#6872)

* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Update en.yml

7 years agoClose http connection in perform method of Request class (#6889)
Akihiko Odaki [Sat, 24 Mar 2018 11:49:54 +0000 (20:49 +0900)]
Close http connection in perform method of Request class (#6889)

HTTP connections must be explicitly closed in many cases, and letting
perform method close connections makes its callers less redundant and
prevent them from forgetting to close connections.

7 years agoInternationalize unexpected error message (#6887)
Akihiko Odaki [Sat, 24 Mar 2018 09:54:19 +0000 (18:54 +0900)]
Internationalize unexpected error message (#6887)

7 years agoWeblate translations (2018-03-23) (#6874)
Yamagishi Kazutoshi [Sat, 24 Mar 2018 00:04:02 +0000 (09:04 +0900)]
Weblate translations (2018-03-23) (#6874)

* Translated using Weblate (Galician)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/gl/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/nl/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (587 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ca/

* Translated using Weblate (Arabic)

Currently translated at 76.4% (449 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/

* Translated using Weblate (Japanese)

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/

* Translated using Weblate (Slovak)

Currently translated at 92.3% (542 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 92.3% (542 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (58 of 58 strings)

Translation: Mastodon/Preferences
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/simple_form/sk/

* Translated using Weblate (Polish)

Currently translated at 98.9% (581 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pl/

* Translated using Weblate (French)

Currently translated at 99.6% (585 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/fr/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.8% (586 of 587 strings)

Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pt_BR/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (280 of 280 strings)

Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ca/

* bundle exec i18n-tasks normalize && yarn manage:translations

7 years ago[i18n] Occitan update (#6869)
Quentí [Fri, 23 Mar 2018 09:52:25 +0000 (10:52 +0100)]
[i18n] Occitan update (#6869)

* Update oc.yml

* Update simple_form.oc.yml

* Update oc.json

* Update oc.yml

* bundle exec i18n-tasks normalize

7 years agoBump version to 2.3.2
Eugen Rochko [Thu, 22 Mar 2018 13:13:46 +0000 (14:13 +0100)]
Bump version to 2.3.2

7 years agoBump version to 2.3.2rc5
Eugen Rochko [Thu, 22 Mar 2018 10:31:52 +0000 (11:31 +0100)]
Bump version to 2.3.2rc5

7 years agoDo not re-query mentions from serializers (#6858)
Eugen Rochko [Thu, 22 Mar 2018 10:31:17 +0000 (11:31 +0100)]
Do not re-query mentions from serializers (#6858)

Fix performance regression from #6836