Commit graph

3349 commits

Author SHA1 Message Date
Akihiko Odaki (@fn_aki@pawoo.net)
5fcbc71c35 Cover Favourite more () 2017-06-19 01:38:50 +02:00
Akihiko Odaki (@fn_aki@pawoo.net)
e990a4a566 Spec AccountDomainBlock () 2017-06-18 02:59:49 +02:00
Nolan Lawson
424cf0a590 Fix jittery scrolling for Chromium browsers () () 2017-06-18 02:59:29 +02:00
Nolan Lawson
f973d620ca handle resize in a debounce() () 2017-06-18 02:57:41 +02:00
Yamagishi Kazutoshi
dece663cd0 Upgrade Webpacker to version 2.0 () 2017-06-18 02:57:09 +02:00
nightpool
0048f7ac72 Whitelist allowed classes for federated statuses ()
* Whitelist allowed classes for federated statuses

Allowed classes are currently:

 - Any microformats class (h/p/u/dt/e-*)
 - the classes mention, hashtag, ellipses and invisible.

this last one is somewhat suspect, but Mastodon currently uses it to render hidden link text.

resolved 

* Fix code style
2017-06-17 20:26:05 +02:00
Quent-in
d792a958fb l10n update for account deletion ()
* l10n update for acount deletion

* l10n little change

* l10n little changes

Less passive voice, more natural.

* Update oc.yml

Correction, " added
2017-06-17 20:21:25 +02:00
Akihiko Odaki (@fn_aki@pawoo.net)
f391f81f3d Spec UserMailer () 2017-06-17 01:15:00 +02:00
unarist
05e7d8861c Use cross-env for npm run on Windows () 2017-06-17 01:14:42 +02:00
abcang
3d49aa4bfb Fix ogp url () 2017-06-16 22:38:26 +02:00
Yamagishi Kazutoshi
888ef58ee1 Upgrade react-immutable-pure-component to version 1.0.0 () 2017-06-16 01:46:12 +02:00
Yamagishi Kazutoshi
dd7fb41dbb Add alt attribute to ImageLoader () 2017-06-15 14:10:41 +02:00
ThibG
dd67b9e049 Fix by not spawning RemoteProfileUpdateWorker from FetchRemoteAccountService () 2017-06-15 11:04:23 +02:00
Eugen Rochko
1f042e5b43 Bump version to 1.4.3 2017-06-15 03:03:42 +02:00
m4sk1n
a15a1827ab updated Polish translation ()
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
2017-06-15 02:00:23 +02:00
Eugen Rochko
7181178007 Fix regression from - filter out hidden statuses from ancestors/descendants even if the viewer is anonymous () 2017-06-15 02:00:08 +02:00
Eugen Rochko
86211d3ca6 Fix regression from - properly set defaultColumns () 2017-06-14 23:07:06 +02:00
unarist
54addd93c5 Add Japanese translation for Account deletion () 2017-06-14 22:00:08 +02:00
unarist
167ba4c5f7 Fix merge default columns ()
mergeDeep also merges columns, but it should be replaced simply.

So in the new function, first apply mergeDeep except columns, and set default columns if columns unset.
2017-06-14 21:59:52 +02:00
Eugen Rochko
c883e96d95 Fix account delete form not accepting password, update suspended ()
account before removing content for quicker feedback to end-users
2017-06-14 20:30:12 +02:00
m4sk1n
cc22f75a94 i18n: updated Polish translation () 2017-06-14 20:08:00 +02:00
Eugen Rochko
afefb364cb Save settings when they are changed () 2017-06-14 18:59:02 +02:00
Eugen Rochko
6f8f401ea1 Batched remove status service ()
* Make Pubsubhubbub::DistributionWorker handle both single stream entry
arguments, as well as arrays of stream entries

* Add BatchedRemoveStatusService, make SuspendAccountService use it

* Improve method names

* Add test

* Add more tests

* Use PuSH payloads of 100 to have a clear mapping of
1000 input statuses -> 10 PuSH payloads

It was nice while it lasted
2017-06-14 18:01:35 +02:00
Eugen Rochko
1c7e2ddd65 Account deletion ()
* Add form for account deletion

* If avatar or header are gone from source, remove them

* Add option to have SuspendAccountService remove user record, add tests

* Exclude suspended accounts from search
2017-06-14 18:01:27 +02:00
Yamagishi Kazutoshi
caa23159ae Update React to version v15.6 () 2017-06-14 16:16:00 +02:00
Yamagishi Kazutoshi
1d085d88ad Enable useBuiltIns option of transform-object-rest-spread () 2017-06-14 13:42:00 +02:00
Eugen Rochko
973d6ef93a Fix - When redis feed is empty, fall back to database ()
* Fix  - When redis feed is empty, fall back to database

* Use redis value to return feed from database only while RegenerationWorker
hasn't finished running

* Fix specs

* Replace usage of reject!
2017-06-14 13:37:03 +02:00
Sorin Davidoi
cf69bdc097 fix(status): Content jump due to height changes () 2017-06-13 20:46:21 +02:00
Eugen Rochko
baf07bc83b Exclude packs/custom.js from webpack compilation to prevent breakage ()
due to the change in 
2017-06-13 03:55:36 +02:00
Eugen Rochko
9ba171309b Simplify getting started links localization. Link "powered by Mastodon" to joinmastodon.org () 2017-06-13 03:55:28 +02:00
Eugen Rochko
46af0c66b6 Fix - Adjust quality settings of converted GIFs to reduce filesize () 2017-06-13 00:51:48 +02:00
Eugen Rochko
91e13e3cf8 Fix unclickable onboardin modal regression () 2017-06-13 00:39:31 +02:00
m4sk1n
5b0518ada5 i18n: minor fix in Polish translation ()
* i18n: minor fix in Polish translation

* i18n
2017-06-12 23:55:32 +02:00
Eugen Rochko
2deea77f2e Unread indicator was invisible behind column header, adjusted ()
* Unread indicator was invisible behind column header, adjusted

* Unread indicator now a CSS pseudo-element

* Adjust flex
2017-06-12 20:02:17 +02:00
Ratmir Karabut
a7426cd173 Update Russian translation (pin) ()
* Update Russian translation (pin)
2017-06-12 12:53:20 +02:00
Yamagishi Kazutoshi
ef29596d2d Regenerate defaultMessages.json ()
follow up 
2017-06-12 12:41:19 +02:00
Yamagishi Kazutoshi
5f19b8e900 Re-add clear notifications button ()
* Re-add clear notifications button

* remove connect() in column_settings

* one line

* remove unused props
2017-06-12 12:26:23 +02:00
unarist
1ce6a20bde Fix locale related specs ()
* Use I18n.locale instead of ":en"
* Reset I18n.locale value after locale changing tests
2017-06-12 10:58:03 +02:00
Yamagishi Kazutoshi
f5d119ae3a Update dependencies for Node.js ()
* Update @storybook/addon-actions to v3.1.2

* Update @storybook/react to v3.1.2

* Update babel-core to v6.25.0

* Update babel-preset-env to v1.5.2

* Update chai to version v4.0.2

* Update extract-text-webpack-plugin to v2.1.2

* Update file-loader to v0.11.2

* Update intersection-observer to v0.3.0

* Update pg to v6.2.4

* Update sinon to v2.3.4

* Update style-loader to v0.18.2

* Update websocket.js to v0.1.10

* Update react-redux-loading-bar to v2.9.2

* yarn upgrade
2017-06-12 10:54:02 +02:00
Eugen Rochko
9cda14bd24 Fix regression from - Do not use pipeline around zscore () 2017-06-12 03:11:12 +02:00
ThibG
3af5774a71 Fix an error when TagManager.local_url? is called with a bad URI ()
TagManager.local_url? was sometimes called with an URI with a nil host,
leading to a crash in TagManager.local_url?. This fixes moves the
already-existing uri.host.blank? check in front to avoid this case.
2017-06-11 22:53:12 +02:00
Eugen Rochko
8ae61fc4cf Fix - Update OStatus2 gem () 2017-06-11 17:47:29 +02:00
Eugen Rochko
8b893afde7 Fix removal of status sending the original status to mentioned users instead of delete Salmon ()
* Fix removal of status sending the original status to mentioned users instead
of delete Salmon, add test

* Create remove_status_service_spec.rb
2017-06-11 17:13:43 +02:00
Eugen Rochko
1348d63517 Fix - Refactor timelines reducer ()
* Move ancestors/descendants out of timelines reducer

* Refactor timelines reducer

All types of timelines now have a flat structure and use the same
reducer functions and actions

* Reintroduce some missing behaviours

* Fix wrong import in reports

* Fix includes typo

* Fix issue related to "next" pagination in timelines and notifications

* Fix bug with timeline's initial state, expandNotifications
2017-06-11 17:07:35 +02:00
René Klačan
042d4c1663 Fix Account model deprecation warnings ()
```
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:60)
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:60)
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:60)
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:61)
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:62)
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead. (called from block in <class:Account> at /Users/rene/Workspace/personal/ruby/mastodon/app/models/account.rb:63)
```

Here's PR describing changes to Dirty API https://github.com/rails/rails/pull/25337
2017-06-11 17:01:32 +02:00
Akihiko Odaki (@fn_aki@pawoo.net)
5c54ae381a Localize date in digest and cover NotificationMailer more ()
* Localize date in digest

* Cover NotificationMailer more
2017-06-11 12:04:35 +02:00
Ratmir Karabut
0962301493 Update Russian translation () 2017-06-11 10:43:01 +02:00
Yamagishi Kazutoshi
eb34081815 Remove comments for eslint-disable () 2017-06-11 10:42:42 +02:00
Yamagishi Kazutoshi
d3279a6702 Refactor UpdateRemoteProfileService () 2017-06-11 10:41:59 +02:00
René Klačan
ecdf17a2d7 Make sure email is case insensitive on all places ()
When case insensitivity is enabled via devise's `config.case_insensitive_keys` then `.find_for_authentication` method needs to be used instead of `.find_by` because second mentioned returns `nil` when valid email with different cases is passed.

More info https://github.com/plataformatec/devise/wiki/How-To:-Use-case-insensitive-emails
2017-06-11 02:29:08 +02:00