]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoNew API: GET /api/v1/custom_emojis to get a server's custom emojis (#5051)
Eugen Rochko [Fri, 22 Sep 2017 23:57:23 +0000 (01:57 +0200)]
New API: GET /api/v1/custom_emojis to get a server's custom emojis (#5051)

8 years agoFix custom emojis not detected when used in content warning (#5049)
Eugen Rochko [Fri, 22 Sep 2017 23:50:17 +0000 (01:50 +0200)]
Fix custom emojis not detected when used in content warning (#5049)

8 years agoSwitch from EmojiOne to Twemoji, different emoji picker (#5046)
Eugen Rochko [Fri, 22 Sep 2017 23:41:00 +0000 (01:41 +0200)]
Switch from EmojiOne to Twemoji, different emoji picker (#5046)

* Switch from EmojiOne to Twemoji, different emoji picker

* Make emoji-mart use a local spritesheet

* Fix emojify test

* yarn manage:translations

8 years agoDo not filter statuses with unknown languages (#5045)
Akihiko Odaki [Fri, 22 Sep 2017 17:33:17 +0000 (02:33 +0900)]
Do not filter statuses with unknown languages (#5045)

8 years agoFix the migration error when deprecated_preview_cards has been deleted (#5043)
nullkal [Fri, 22 Sep 2017 17:32:57 +0000 (02:32 +0900)]
Fix the migration error when deprecated_preview_cards has been deleted (#5043)

* Fix the migration error when deprecated_preview_cards has deleted

* Re-run Travis CI

8 years agoFix PropTypes.oneOfType() warning (#5041)
Nolan Lawson [Fri, 22 Sep 2017 15:50:29 +0000 (08:50 -0700)]
Fix PropTypes.oneOfType() warning (#5041)

8 years agoHardcode IdToBigints migration columns (#5039)
aschmitz [Fri, 22 Sep 2017 11:20:04 +0000 (06:20 -0500)]
Hardcode IdToBigints migration columns (#5039)

This addresses a comment during review:
https://github.com/tootsuite/mastodon/pull/4801#discussion_r139337452

This means we'll need to make sure that all _id columns going forward
are bigints, but that should happen automatically in most cases.

8 years agoDocument REDIS_NAMESPACE (#5038)
Nolan Lawson [Fri, 22 Sep 2017 04:44:39 +0000 (21:44 -0700)]
Document REDIS_NAMESPACE (#5038)

8 years agoMake dropdowns render into portal, expand animation (#5018)
Eugen Rochko [Fri, 22 Sep 2017 02:59:17 +0000 (04:59 +0200)]
Make dropdowns render into portal, expand animation (#5018)

* Make dropdowns render into portal, expand animation

* Improve actions modal style

8 years agoUse passive listener in privacy_dropdown.js (#5037)
Nolan Lawson [Fri, 22 Sep 2017 02:59:01 +0000 (19:59 -0700)]
Use passive listener in privacy_dropdown.js (#5037)

8 years agoEliminate re-renders for intersection_observer_article.js (#5036)
Nolan Lawson [Fri, 22 Sep 2017 02:58:33 +0000 (19:58 -0700)]
Eliminate re-renders for intersection_observer_article.js (#5036)

8 years agofix : mobile style of /about/more (#5034)
syui [Thu, 21 Sep 2017 12:30:21 +0000 (21:30 +0900)]
fix : mobile style of /about/more (#5034)

8 years agoFix shortname problem in emojify() (regression from #5016) (#5032)
MIYAGI Hikaru [Thu, 21 Sep 2017 01:47:16 +0000 (01:47 +0000)]
Fix shortname problem in emojify() (regression from #5016) (#5032)

When colon appears end of line, skiped all character containing unicode emojis. Fixed.
https://github.com/tootsuite/mastodon/pull/5016#issuecomment-331012008

8 years agoReduce wasted renders for column_loading.js (#5021)
Nolan Lawson [Wed, 20 Sep 2017 17:58:44 +0000 (10:58 -0700)]
Reduce wasted renders for column_loading.js (#5021)

* Reduce wasted renders for column_loading.js

* Use defaultProps

8 years agoFix theme translations alphabetically (#5031)
Lynx Kotoura [Wed, 20 Sep 2017 17:41:35 +0000 (02:41 +0900)]
Fix theme translations alphabetically (#5031)

8 years agoDisable private status federation over OStatus (#5027)
Eugen Rochko [Wed, 20 Sep 2017 17:08:20 +0000 (19:08 +0200)]
Disable private status federation over OStatus (#5027)

8 years agoUse file extensions in addition to MIME types for file picker (#5029)
unarist [Wed, 20 Sep 2017 17:07:23 +0000 (02:07 +0900)]
Use file extensions in addition to MIME types for file picker (#5029)

Currently we're using a list of MIME types for `accept` attribute on `input[type="file"]` for filter options of file picker, and actual file extensions will be infered by browsers. However, infered extensions may not include our expected items. For example, "image/jpeg" seems to be infered to
only ".jfif" extension in Firefox.

To ensure common file extensions are in the list, this PR adds file extensions in addition to MIME types. Also having items in both format is encouraged by HTML5 spec.

https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)

8 years agoBetter Japanese translations (#5030)
Lynx Kotoura [Wed, 20 Sep 2017 16:56:28 +0000 (01:56 +0900)]
Better Japanese translations (#5030)

8 years agoAdd Japanese translations for multiple themes, custom emoji (#5026)
mayaeh [Wed, 20 Sep 2017 14:09:57 +0000 (23:09 +0900)]
Add Japanese translations for multiple themes, custom emoji (#5026)

* Add Japanese translations for multiple themes

* Change Japanese translation for custom emoji's created_msg.

8 years agoRemove unnecessary css property (#5025)
TomoyaShibata [Wed, 20 Sep 2017 13:26:22 +0000 (22:26 +0900)]
Remove unnecessary css property (#5025)

8 years agol10n Occitan: theme site, custom emoji, Oauth, newcomers follow admins, ... (#5023)
JeanGauthier [Wed, 20 Sep 2017 13:00:54 +0000 (15:00 +0200)]
l10n Occitan: theme site, custom emoji, Oauth, newcomers follow admins, ... (#5023)

* Oauto code string

* Theme, custom emoji and more

* Site theme

* added two spaces wierdly gone away

* Update oc.yml

Changes adviced

8 years agoAdd japanese translations for custom emoji. (#5007)
mayaeh [Wed, 20 Sep 2017 12:57:59 +0000 (21:57 +0900)]
Add japanese translations for custom emoji. (#5007)

* Add japanese translations for custom emoji.

* Remove spaces.

* Change destroyed_msg.

* Revert "Change destroyed_msg."

8 years agoChange IDs to strings rather than numbers in API JSON output (#5019)
aschmitz [Wed, 20 Sep 2017 12:53:48 +0000 (07:53 -0500)]
Change IDs to strings rather than numbers in API JSON output (#5019)

* Fix JavaScript interface with long IDs

Somewhat predictably, the JS interface handled IDs as numbers, which in
JS are IEEE double-precision floats. This loses some precision when
working with numbers as large as those generated by the new ID scheme,
so we instead handle them here as strings. This is relatively simple,
and doesn't appear to have caused any problems, but should definitely
be tested more thoroughly than the built-in tests. Several days of use
appear to support this working properly.

BREAKING CHANGE:

The major(!) change here is that IDs are now returned as strings by the
REST endpoints, rather than as integers. In practice, relatively few
changes were required to make the existing JS UI work with this change,
but it will likely hit API clients pretty hard: it's an entirely
different type to consume. (The one API client I tested, Tusky, handles
this with no problems, however.)

Twitter ran into this issue when introducing Snowflake IDs, and decided
to instead introduce an `id_str` field in JSON responses. I have opted
to *not* do that, and instead force all IDs to 64-bit integers
represented by strings in one go. (I believe Twitter exacerbated their
problem by rolling out the changes three times: once for statuses, once
for DMs, and once for user IDs, as well as by leaving an integer ID
value in JSON. As they said, "If you’re using the `id` field with JSON
in a Javascript-related language, there is a very high likelihood that
the integers will be silently munged by Javascript interpreters. In most
cases, this will result in behavior such as being unable to load or
delete a specific direct message, because the ID you're sending to the
API is different than the actual identifier associated with the
message." [1]) However, given that this is a significant change for API
users, alternatives or a transition time may be appropriate.

1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html

* Additional fixes for stringified IDs in JSON

These should be the last two. These were identified using eslint to try
to identify any plain casts to JavaScript numbers. (Some such casts are
legitimate, but these were not.)

Adding the following to .eslintrc.yml will identify casts to numbers:

~~~
  no-restricted-syntax:
  - warn
  - selector: UnaryExpression[operator='+'] > :not(Literal)
    message: Avoid the use of unary +
  - selector: CallExpression[callee.name='Number']
    message: Casting with Number() may coerce string IDs to numbers
~~~

The remaining three casts appear legitimate: two casts to array indices,
one in a server to turn an environment variable into a number.

* Back out RelationshipsController Change

This was made to make a test a bit less flakey, but has nothing to
do with this branch.

* Change internal streaming payloads to stringified IDs as well

Per
https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452
we need these changes to send deleted status IDs as strings, not
integers.

8 years agoFix custom emojis with non-1:1 aspect ratio being stretched (#5017)
Eugen Rochko [Wed, 20 Sep 2017 01:38:38 +0000 (03:38 +0200)]
Fix custom emojis with non-1:1 aspect ratio being stretched (#5017)

8 years agoredo #4500 with customEmojis (#5016)
MIYAGI Hikaru [Tue, 19 Sep 2017 21:27:29 +0000 (21:27 +0000)]
redo #4500 with customEmojis (#5016)

8 years agoi18n: Update Polish translation (#5015)
m4sk1n [Tue, 19 Sep 2017 21:25:17 +0000 (23:25 +0200)]
i18n: Update Polish translation (#5015)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoFix race condition when processing incoming OStatus messages (#5013)
ThibG [Tue, 19 Sep 2017 19:44:18 +0000 (21:44 +0200)]
Fix race condition when processing incoming OStatus messages (#5013)

* Avoid races in incoming OStatus toots processing

* oops

* oops again

8 years agoIntroduce OStatus::TagManager (#5008)
Akihiko Odaki [Tue, 19 Sep 2017 16:08:08 +0000 (01:08 +0900)]
Introduce OStatus::TagManager (#5008)

8 years agoFix non-local statuses are html_encoded in public_page. (#5012)
Naoki Kosaka [Tue, 19 Sep 2017 15:55:48 +0000 (00:55 +0900)]
Fix non-local statuses are html_encoded in public_page. (#5012)

8 years agoSet touchstart listener to 'passive', remove 'once' (#5011)
Nolan Lawson [Tue, 19 Sep 2017 15:00:29 +0000 (08:00 -0700)]
Set touchstart listener to 'passive', remove 'once' (#5011)

8 years agoUse OrderedCollectionPage to return followers/following list (#4949)
nullkal [Tue, 19 Sep 2017 14:37:06 +0000 (23:37 +0900)]
Use OrderedCollectionPage to return followers/following list (#4949)

8 years agoAdd support for multiple themes (#4959)
Andrew [Tue, 19 Sep 2017 14:36:23 +0000 (07:36 -0700)]
Add support for multiple themes (#4959)

* Add support for selecting a theme

* Fix codeclimate issues

* Look up site default style if current user is not available due to e.g. not being logged in

* Remove outdated comment in common.js

* Address requested changes in themes PR

* Fix codeclimate issues

* Explicitly check current_account in application controller and only check theme availability if non-nil

* codeclimate

* explicit precedence with &&

* Fix code style in application_controller according to @nightpool's suggestion, use default style in embedded.html.haml

* codeclimate: indentation + return

8 years agoHide sensitive image in default on the public pages (#5009)
unarist [Tue, 19 Sep 2017 14:03:45 +0000 (23:03 +0900)]
Hide sensitive image in default on the public pages (#5009)

Additionally, this restores previous background / text color for media spoiler.

8 years agoFix incomplete account records being read (#4998)
Eugen Rochko [Tue, 19 Sep 2017 04:53:16 +0000 (06:53 +0200)]
Fix incomplete account records being read (#4998)

* Fix incomplete account records being read

- Put account processing into redis lock
- Do not save until record is complete

* Fix spaces

8 years agoRemove ubuntu-toolchain-r-test (#5005)
Akihiko Odaki [Tue, 19 Sep 2017 03:06:27 +0000 (12:06 +0900)]
Remove ubuntu-toolchain-r-test (#5005)

8 years agoFix custom emojis index (#5006)
Yamagishi Kazutoshi [Tue, 19 Sep 2017 03:06:13 +0000 (12:06 +0900)]
Fix custom emojis index (#5006)

8 years agoDefine emoji context for ActivityPub (#5004)
Eugen Rochko [Tue, 19 Sep 2017 03:05:48 +0000 (05:05 +0200)]
Define emoji context for ActivityPub (#5004)

* Define emoji context for ActivityPub

* Fix the emojo

* Use general Mastodon context instead

8 years agoAdmin interface for listing, adding and removing custom emojis (#5002)
Eugen Rochko [Tue, 19 Sep 2017 01:52:38 +0000 (03:52 +0200)]
Admin interface for listing, adding and removing custom emojis (#5002)

* Admin interface for listing, adding and removing custom emojis

* Only display local ones in the list

8 years agoRun i18n-tasks normalize (#5003)
Eugen Rochko [Tue, 19 Sep 2017 01:27:08 +0000 (03:27 +0200)]
Run i18n-tasks normalize (#5003)

8 years agoCustom emoji (#4988)
Eugen Rochko [Tue, 19 Sep 2017 00:42:40 +0000 (02:42 +0200)]
Custom emoji (#4988)

* Custom emoji

- In OStatus: `<link rel="emoji" name="coolcat" href="http://..." />`
- In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }`
- In REST API: Status object includes `emojis` array (`shortcode`, `url`)
- Domain blocks with reject media stop emojis
- Emoji file up to 50KB
- Web UI handles custom emojis
- Static pages render custom emojis as `<img />` tags

Side effects:

- Undo #4500 optimization, as I needed to modify it to restore
  shortcode handling in emojify()
- Formatter#plaintext should now make sure stripped out line-breaks
  and paragraphs are replaced with newlines

* Fix emoji at the start not being converted

8 years agoA few updates to the Spanish translation and some typos fixing (#4997)
BruWalfas [Mon, 18 Sep 2017 22:47:48 +0000 (19:47 -0300)]
A few updates to the Spanish translation and some typos fixing (#4997)

* So Spanish. Much changes. Wow.

* Some little fixes

* Updated es.yml, and fixed some ortographical errors

* Some little changes to simple_form.es.yml

* Yeah, so much translations

* Spanish e-mail messages

* Remove unused message

8 years agoAdd will-change to improve scrolling perf (#5001)
Nolan Lawson [Mon, 18 Sep 2017 21:29:15 +0000 (14:29 -0700)]
Add will-change to improve scrolling perf (#5001)

8 years agoRe-allow underscore on valid_url_path_ending_chars (#4999)
unarist [Mon, 18 Sep 2017 19:25:40 +0000 (04:25 +0900)]
Re-allow underscore on valid_url_path_ending_chars (#4999)

Limiting allowed characters in the last character of the URL is came from twitter-text, but underscore is allowed on there, and Mastodon before #4941.

8 years agoAdd published property to ActivityPub activity for reblogs (#5000)
unarist [Mon, 18 Sep 2017 18:30:11 +0000 (03:30 +0900)]
Add published property to ActivityPub activity for reblogs (#5000)

Since reblogs are serialized as Announce activity, its published property can be used for the creation time of reblog.

8 years agoDo not add image size without meta to OGP (regression from #4901) (#4995)
Yamagishi Kazutoshi [Mon, 18 Sep 2017 13:00:29 +0000 (22:00 +0900)]
Do not add image size without meta to OGP (regression from #4901) (#4995)

8 years agoUse Account.local.sum(statuses_count) instead of Status.local.count (#4996)
Akihiko Odaki [Mon, 18 Sep 2017 12:59:57 +0000 (21:59 +0900)]
Use Account.local.sum(statuses_count) instead of Status.local.count (#4996)

It is faster.

8 years agoBump ruby version to 2.4.2 (#4958)
Daigo 3 Dango [Mon, 18 Sep 2017 02:55:57 +0000 (16:55 -1000)]
Bump ruby version to 2.4.2 (#4958)

* Bump ruby version to 2.4.2

https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-4-2-released/

Gemfile.lock is also updated.

TODO
- [ ] Update Dockerfile with Alpine release of ruby-2.4.2

* Revert jwt version

It seems that jwt 2.0.0 fails in some environment.
ref. https://github.com/zaru/webpush/issues/42

* Bump Ruby version on docker image

8 years agoAdd `strip_insignificant_zeros: true` option to `number_to_human` (#4993)
Yamagishi Kazutoshi [Mon, 18 Sep 2017 02:55:23 +0000 (11:55 +0900)]
Add `strip_insignificant_zeros: true` option to `number_to_human` (#4993)

8 years agoSome improvements in the Spanish translation (#4991)
febrezo [Mon, 18 Sep 2017 02:52:34 +0000 (04:52 +0200)]
Some improvements in the Spanish translation (#4991)

8 years agoOauth code in input form and add description message (#4986)
Lynx Kotoura [Sun, 17 Sep 2017 13:23:44 +0000 (22:23 +0900)]
Oauth code in input form and add description message (#4986)

* Oauth code in a input form and add description

* New authcode description

8 years agoValidate uri presence for remote status (#4985)
unarist [Sun, 17 Sep 2017 13:21:57 +0000 (22:21 +0900)]
Validate uri presence for remote status (#4985)

8 years agoRaise an error on getting activity uri for remote status (#4984)
unarist [Sun, 17 Sep 2017 11:51:34 +0000 (20:51 +0900)]
Raise an error on getting activity uri for remote status (#4984)

We had returned `nil` for that case, but this raises an error instead, as a wrong usage of the method.
This method is currently only used in ActivitySerializer.

8 years agoFix cancellation of scroll to the right (#4978)
abcang [Sun, 17 Sep 2017 09:59:23 +0000 (18:59 +0900)]
Fix cancellation of scroll to the right (#4978)

8 years agoRandomize sidekiq-scheduler cron schedule (#4980)
Patrick Figel [Sun, 17 Sep 2017 09:58:20 +0000 (11:58 +0200)]
Randomize sidekiq-scheduler cron schedule (#4980)

SubscriptionsScheduler in particular causes high load across the
entire fediverse at 5 AM UTC every day. Randomizing cron schedules
and/or adding a random delay is considered best practice to avoid
this issue.

8 years agoFix an error when actor json couldn't be fetched in ResolveRemoteAccountService ...
unarist [Sun, 17 Sep 2017 09:54:23 +0000 (18:54 +0900)]
Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979)

* Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService

* Add specs

8 years agoSo Spanish. Much changes. Wow. (#4976)
BruWalfas [Sun, 17 Sep 2017 09:16:43 +0000 (06:16 -0300)]
So Spanish. Much changes. Wow. (#4976)

8 years agoRemove local_only scope in Status (#4977)
Akihiko Odaki [Sun, 17 Sep 2017 03:29:43 +0000 (12:29 +0900)]
Remove local_only scope in Status (#4977)

8 years agoEscape URL parts on formatting local status (#4975)
unarist [Sat, 16 Sep 2017 19:33:52 +0000 (04:33 +0900)]
Escape URL parts on formatting local status (#4975)

8 years agoMinor Chinese check & jsx addition (#4973)
Mingye Wang [Sat, 16 Sep 2017 16:48:38 +0000 (12:48 -0400)]
Minor Chinese check & jsx addition (#4973)

* zh-*: transition from "like" back to "fav"

This commit reverts the translation for the yellow-star "fav" button
back to "fav" in Chinese. Some ambuiguity between "like" and "fav" is
deliberately used in zh-TW/HK by using the existing phrase "最爱"
(favorite (adj.), lit. love-most) instead of "收藏" (favourite (v.),
"collect") in some instances.

Fixes #3511.

* zh-*: apply suggestions for PR #4557

* zh-cn: de-monetize ya account

In Chinese two separate characters, 账 and 帐, can be used to spell the
word for account (账/帐户). However, the one with a 贝 on the left is
evolved from the latter specifically for monetary purposes. Since
people usually can't figure out which one to use, it might be a good
idea to use the original not-so-money one.

* zh-*: complete jsx translation

8 years agoAdjust landing pages 2 (#4967)
Lynx Kotoura [Sat, 16 Sep 2017 16:39:12 +0000 (01:39 +0900)]
Adjust landing pages 2 (#4967)

* Adjust landing pages 2

Fix styles of terms page
Remove action buttons from timeline in about page
Adjust styles of short description
Adjust form inputs
Set autocomplete off for username and email box in registration form. Remove line breakings.

* Revert removing action buttons

8 years agoFix an error in ReplyDistributionWorker when replied status was deleted (#4974)
unarist [Sat, 16 Sep 2017 16:18:00 +0000 (01:18 +0900)]
Fix an error in ReplyDistributionWorker when replied status was deleted (#4974)

Reply distribution is proceed by Sidekiq, so replied status may be deleted before this.

8 years agocorrect URL pattern used in text length counter in WebUI (#4968)
ふぁぼ原 [Sat, 16 Sep 2017 13:01:15 +0000 (22:01 +0900)]
correct URL pattern used in text length counter in WebUI (#4968)

8 years agoFix AP serialization error when thread is missing (#4970)
unarist [Sat, 16 Sep 2017 13:00:36 +0000 (22:00 +0900)]
Fix AP serialization error when thread is missing (#4970)

`Status#reply?` may returns true even if the thread is missing.
e.g. the replied status was deleted or couldn't be fetched.

Then it raises NoMethodError on various AP json serialization.

This issue won't happen on Atom serialization because it checks thread
existence using `StreamEntry#threaded?` instead.

8 years agoFix hasSize condition in secSet and sizes. (#4969)
Naoki Kosaka [Sat, 16 Sep 2017 13:00:01 +0000 (22:00 +0900)]
Fix hasSize condition in secSet and sizes. (#4969)

8 years agoFix filterable_languages method of SettingsHelper (#4966)
Akihiko Odaki [Sat, 16 Sep 2017 12:59:41 +0000 (21:59 +0900)]
Fix filterable_languages method of SettingsHelper (#4966)

8 years agoBump to 1.6.1
Eugen Rochko [Sat, 16 Sep 2017 01:08:29 +0000 (03:08 +0200)]
Bump to 1.6.1

8 years agoWhen accessing uncached media attachment, redownload it (#4955)
Eugen Rochko [Sat, 16 Sep 2017 01:01:45 +0000 (03:01 +0200)]
When accessing uncached media attachment, redownload it (#4955)

* When accessing uncached media attachment, redownload it

* Prevent re-download of rejected media

8 years agoFix invisible load more button (#4962)
unarist [Fri, 15 Sep 2017 22:32:43 +0000 (07:32 +0900)]
Fix invisible load more button (#4962)

* Fix behavior while the button is invisible
e.g. pointer cursor, couldn't open contextmenu
* Avoid rendering the button to remove blank space if no more items are available or no items are rendered

8 years agoWhen web UI URL used while logged out, redirect to static page (#4954)
Eugen Rochko [Thu, 14 Sep 2017 22:57:08 +0000 (00:57 +0200)]
When web UI URL used while logged out, redirect to static page (#4954)

8 years agoRemove redundant width/height values from SVGs to fix Safari bug (#4956)
Eugen Rochko [Thu, 14 Sep 2017 22:51:00 +0000 (00:51 +0200)]
Remove redundant width/height values from SVGs to fix Safari bug (#4956)

8 years agol10n: PT-BR translation updated (#4953)
Anna e só [Thu, 14 Sep 2017 22:02:38 +0000 (19:02 -0300)]
l10n: PT-BR translation updated (#4953)

* devise.pt-BR.yml now fully translated

* pt-BR.json now fully translated

* pt-BR.yml partially translated; 46 lines left

* pt-BR.yml now fully translated

* simple_form.pt-BR.yml fully translated

* doorkeeper.pt-BR.yml now fully translated

* E-mail instructions on app/views/user_mailer added and fully translated

* PT-BR translation for #4871

* Deleted an unwanted caracter on pt-BR.yml

* Fixing typos on pt-BR.yml

* Added translation for Pinned toots tab on pt-BR.json

* Added missing translation for navigation_bar.pins

* Fixed spelling on pt-BR.yml

* Update pt-BR.json

8 years agoAdd scheduled worker to purge old user IPs (#4951)
sdukhovni [Thu, 14 Sep 2017 20:26:38 +0000 (16:26 -0400)]
Add scheduled worker to purge old user IPs (#4951)

* Add scheduled worker to purge old user IPs

* Use ruby 1.9 hash syntax

8 years agoFix race condition when receiving an ActivityPub Create multiple times (#4930)
ThibG [Thu, 14 Sep 2017 20:26:22 +0000 (22:26 +0200)]
Fix race condition when receiving an ActivityPub Create multiple times (#4930)

* Fix race condition when receiving an ActivityPub Create multiple times

* Use a RedisLock to avoid concurrent processing of a same Create activity

8 years agoAdd missing Japanese translations (#4947)
Yamagishi Kazutoshi [Thu, 14 Sep 2017 16:03:34 +0000 (01:03 +0900)]
Add missing Japanese translations (#4947)

8 years agoEnable to recognize most kinds of characters as URL paths (#4941)
ふぁぼ原 [Thu, 14 Sep 2017 16:03:20 +0000 (01:03 +0900)]
Enable to recognize most kinds of characters as URL paths (#4941)

8 years agol10n: update Persian translation (#4946)
Masoud Abkenar [Thu, 14 Sep 2017 15:13:38 +0000 (17:13 +0200)]
l10n: update Persian translation (#4946)

8 years agoFix #4908 - Do not keep remote file names, generate random (#4934)
Eugen Rochko [Thu, 14 Sep 2017 14:41:59 +0000 (16:41 +0200)]
Fix #4908 - Do not keep remote file names, generate random (#4934)

8 years agoInclude requested URL into the message on network errors (#4945)
unarist [Thu, 14 Sep 2017 14:12:50 +0000 (23:12 +0900)]
Include requested URL into the message on network errors (#4945)

8 years agoRevert unique retry job (#4937)
abcang [Thu, 14 Sep 2017 13:12:43 +0000 (22:12 +0900)]
Revert unique retry job (#4937)

* Revert "Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)"

This reverts commit 6859d4c0289e767955aac3f345074220fe200604.

* Revert "Do not execute the job with the same arguments as the retry job (#4814)"

This reverts commit be7ffa2d7539d5a1946a3933cb9d242b9fac0ddc.

8 years agoi18n: Update Polish translation (#4942)
m4sk1n [Thu, 14 Sep 2017 12:58:48 +0000 (14:58 +0200)]
i18n: Update Polish translation (#4942)

* 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>
* Update pl.yml

8 years agoAnother Dutch language update (#4944)
Jeroen [Thu, 14 Sep 2017 12:52:47 +0000 (14:52 +0200)]
Another Dutch language update (#4944)

* Update nl.json

* Update nl.yml

* Update nl.json

8 years agoAdd Japanese translate for #4911 (#4943)
Naf [Thu, 14 Sep 2017 09:20:04 +0000 (18:20 +0900)]
Add Japanese translate for #4911 (#4943)

8 years agol10n update OC/FR video redesign (#4938)
Quent-in [Thu, 14 Sep 2017 07:32:14 +0000 (09:32 +0200)]
l10n update OC/FR video redesign (#4938)

* l10n update for Redesign video player (#4911)

* Update videp

* Update

I hope this time format works well.

* One missing string

* Update time format

I'd like the complete name of the month in the Long format and the short one in the short format.
I hope it works now

8 years agoAdd Japanese translate for #4913 (#4936)
N氏 [Thu, 14 Sep 2017 03:25:18 +0000 (12:25 +0900)]
Add Japanese translate for #4913 (#4936)

8 years agoSupport OpenGraph video embeds (#4897)
Eugen Rochko [Thu, 14 Sep 2017 02:11:36 +0000 (04:11 +0200)]
Support OpenGraph video embeds (#4897)

* Support OpenGraph video embeds

It's not really OpenGraph, it's twitter:player property, but it's
not OEmbed so that fits. For example, this allows Twitch clips to
be displayed as embeds.

Also, fixes glitch-soc/mastodon#135

* Fix invalid OpenGraph cards being saved through attaching and
revisit URLs after 14 days

8 years agoGive video player fluid max-width (#4935)
Eugen Rochko [Thu, 14 Sep 2017 02:03:00 +0000 (04:03 +0200)]
Give video player fluid max-width (#4935)

8 years agoRedesign video player (#4911)
Eugen Rochko [Thu, 14 Sep 2017 01:39:10 +0000 (03:39 +0200)]
Redesign video player (#4911)

* Redesign video player

* Use new video player on static public pages too

* Use media gallery component on static public pages too

* Pause video when hiding it

* Full-screen sizing on WebKit

* Add aria labels to video player buttons

* Display link card on public status page

* Fix fullscreen from modal sizing issue

* Remove contain: strict property to fix fullscreen from columns

8 years agoFix refollowing (#4931)
ThibG [Wed, 13 Sep 2017 22:05:25 +0000 (00:05 +0200)]
Fix refollowing (#4931)

* Make RefollowWorker ActivityPub-only to avoid potential identifier mismatches

* Don't call RefollowWorker on new accounts

8 years agoUploads for admin site settings (#4913)
Eugen Rochko [Wed, 13 Sep 2017 22:04:30 +0000 (00:04 +0200)]
Uploads for admin site settings (#4913)

* Improve OpenGraph tags for about pages

* Add thumbnail admin setting

* Fix error

* Fix up

8 years agoi18n: Update Polish translation (#4929)
m4sk1n [Wed, 13 Sep 2017 18:57:33 +0000 (20:57 +0200)]
i18n: Update Polish translation (#4929)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoUpdating Dutch translation (#4927)
Jeroen [Wed, 13 Sep 2017 14:12:29 +0000 (16:12 +0200)]
Updating Dutch translation (#4927)

* Update doorkeeper.nl.yml

* Update nl.yml

* Update simple_form.nl.yml

* Update nl.json

* Update en.json

* Update en.json

* Update nl.json

8 years agofix share intent. (#4926)
MitarashiDango [Wed, 13 Sep 2017 13:20:03 +0000 (22:20 +0900)]
fix share intent. (#4926)

8 years agoFix ActivityPub handling of replies with WEB_DOMAIN (#4895) (#4904)
ThibG [Wed, 13 Sep 2017 12:22:16 +0000 (14:22 +0200)]
Fix ActivityPub handling of replies with WEB_DOMAIN (#4895) (#4904)

* Fix ActivityPub handling of replies when LOCAL_DOMAIN ≠ WEB_DOMAIN (#4895)

For all intents and purposes, `local_url?` is used to check if an URL refers
to the Web UI or the various API endpoints of the local instances. Those things
reside on `WEB_DOMAIN` and not `LOCAL_DOMAIN`.

* Change local_url? spec, as all URLs handled by Mastodon are based on WEB_DOMAIN

8 years agoAdd instance search feature (#4925)
nullkal [Wed, 13 Sep 2017 10:30:07 +0000 (19:30 +0900)]
Add instance search feature (#4925)

8 years agoMake instance names in into links to user list in the instance (#4924)
nullkal [Wed, 13 Sep 2017 09:34:07 +0000 (18:34 +0900)]
Make instance names in  into links to user list in the instance (#4924)

8 years agoFix #4917 - Add missing suspend checks (#4921)
Eugen Rochko [Wed, 13 Sep 2017 09:05:02 +0000 (11:05 +0200)]
Fix #4917 - Add missing suspend checks (#4921)

8 years agoFix #4918 - Limit pinned toots to 5 (#4923)
Eugen Rochko [Wed, 13 Sep 2017 09:04:32 +0000 (11:04 +0200)]
Fix #4918 - Limit pinned toots to 5 (#4923)

8 years agoFix height cache (#4909)
abcang [Wed, 13 Sep 2017 08:24:33 +0000 (17:24 +0900)]
Fix height cache (#4909)

8 years agoSpecify libicu explicitly in Aptfile (#4920)
Daigo 3 Dango [Wed, 13 Sep 2017 07:30:13 +0000 (21:30 -1000)]
Specify libicu explicitly in Aptfile (#4920)

It seems libicu-dev no longer installs libicu55 needed by charlock_holmes.

8 years ago[WiP] Whenever a remote keypair changes, unfollow them and re-subscribe to … (#4907)
ThibG [Tue, 12 Sep 2017 21:10:40 +0000 (23:10 +0200)]
[WiP] Whenever a remote keypair changes, unfollow them and re-subscribe to … (#4907)

* Whenever a remote keypair changes, unfollow them and re-subscribe to them

In Mastodon (it could be different for other OStatus or AP-enabled software),
a keypair change is indicative of whole user (or instance) data loss. In this
situation, the “new” user might be different, and almost certainly has an empty
followers list. In this case, Mastodon instances will disagree on follower
lists, leading to unreliable delivery and “shadow followers”, that is users
believed by a remote instance to be followers, without the affected user
knowing.

Drawbacks of this change are:
1. If an user legitimately changes public key for some reason without losing
   data (not possible in Mastodon at the moment), they will have their remote
   followers unsubscribed/re-subscribed needlessly.
2. Depending of the number of remote followers, this may generate quite some
   traffic.
3. If the user change is an attempt at usurpation, the remote followers will
   unknowingly follow the usurper. Note that this is *not* a change of
   behavior, Mastodon already behaves like that, although delivery might be
   unreliable, and the usurper would not have known the former user's
   followers.

* Rename ResubscribeWorker to RefollowWorker

* Process followers in batches