]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoFont styles are now packagified
kibigo! [Sat, 18 Nov 2017 19:05:00 +0000 (11:05 -0800)]
Font styles are now packagified

8 years agoSets default theme to glitch
kibigo! [Sat, 18 Nov 2017 03:32:04 +0000 (19:32 -0800)]
Sets default theme to glitch

8 years agoRemoved glitch tests
kibigo! [Sat, 18 Nov 2017 03:25:06 +0000 (19:25 -0800)]
Removed glitch tests

8 years agoRestore vanilla components
kibigo! [Sat, 18 Nov 2017 03:16:35 +0000 (19:16 -0800)]
Restore vanilla components

8 years agoForking glitch theme
kibigo! [Sat, 18 Nov 2017 03:11:18 +0000 (19:11 -0800)]
Forking glitch theme

8 years agoMerge pull request #223 from glitch-soc/glitchsoc/feature/configurable-status-size
beatrix [Sat, 18 Nov 2017 00:02:40 +0000 (19:02 -0500)]
Merge pull request #223 from glitch-soc/glitchsoc/feature/configurable-status-size

Make character limit configurable (from tootsuite/mastodon#5697)

8 years agoMerge pull request #224 from yipdw/merge-upstream
David Yip [Fri, 17 Nov 2017 23:58:13 +0000 (17:58 -0600)]
Merge pull request #224 from yipdw/merge-upstream

Merge upstream (tootsuite/mastodon#5703)

8 years agoUpdate annotations on Follow, FollowRequest, and Mute.
David Yip [Fri, 17 Nov 2017 23:41:15 +0000 (17:41 -0600)]
Update annotations on Follow, FollowRequest, and Mute.

Follow and FollowRequest had conflicts in their schema annotations, so I
ran latest migrations and let annotate_models fix them up.

8 years agoMerge remote-tracking branch 'origin/master' into merge-upstream
David Yip [Fri, 17 Nov 2017 23:40:00 +0000 (17:40 -0600)]
Merge remote-tracking branch 'origin/master' into merge-upstream

8 years agoLists (#5703)
Eugen Rochko [Fri, 17 Nov 2017 23:16:48 +0000 (00:16 +0100)]
Lists (#5703)

* Add structure for lists

* Add list timeline streaming API

* Add list APIs, bind list-account relation to follow relation

* Add API for adding/removing accounts from lists

* Add pagination to lists API

* Add pagination to list accounts API

* Adjust scopes for new APIs

- Creating and modifying lists merely requires "write" scope
- Fetching information about lists merely requires "read" scope

* Add test for wrong user context on list timeline

* Clean up tests

8 years agoMerge pull request #222 from yipdw/merge/tootsuite/master
David Yip [Fri, 17 Nov 2017 20:35:16 +0000 (14:35 -0600)]
Merge pull request #222 from yipdw/merge/tootsuite/master

Merge upstream (e28b33c.. 94c5a11)

8 years agoMerge remote-tracking branch 'lambadalambda/feature/configurable-status-size' into...
David Yip [Fri, 17 Nov 2017 20:28:16 +0000 (14:28 -0600)]
Merge remote-tracking branch 'lambadalambda/feature/configurable-status-size' into glitchsoc/feature/configurable-status-size

8 years agoMerge pull request #221 from glitch-soc/local-only-policy
beatrix [Fri, 17 Nov 2017 20:17:49 +0000 (15:17 -0500)]
Merge pull request #221 from glitch-soc/local-only-policy

Update StatusPolicy to check current_account for local_only? toots.

8 years agoMerge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Jenkins [Fri, 17 Nov 2017 20:17:12 +0000 (20:17 +0000)]
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master

8 years agoMerge pull request #218 from glitch-soc/themed-prefetching
David Yip [Fri, 17 Nov 2017 20:01:23 +0000 (14:01 -0600)]
Merge pull request #218 from glitch-soc/themed-prefetching

Themed preloading

8 years agoIncrease contrast of Admin badges (#5740)
Lynx Kotoura [Fri, 17 Nov 2017 18:59:53 +0000 (03:59 +0900)]
Increase contrast of Admin badges (#5740)

To comply WCAG 2.0 guidelines on contrast ratio.

8 years agoFix regression #5467: fixes emoji copy (#5739)
Clworld [Fri, 17 Nov 2017 17:22:31 +0000 (02:22 +0900)]
Fix regression #5467: fixes emoji copy (#5739)

8 years agoChange libinconv download URL to HTTPS (#5738)
Alex Coto [Fri, 17 Nov 2017 17:21:05 +0000 (12:21 -0500)]
Change libinconv download URL to HTTPS (#5738)

8 years agoUpdate StatusPolicy to check current_account for local_only? toots.
David Yip [Fri, 17 Nov 2017 15:07:21 +0000 (09:07 -0600)]
Update StatusPolicy to check current_account for local_only? toots.

StatusPolicy#account was renamed to StatusPolicy#current_account in
upstream.  This commit renames the local-only changes to match and
augments the #show? policy spec with what we expect for local-only
toots.

8 years agoMove "Permissions" row into main table in /admin/accounts/:id (#5734)
unarist [Fri, 17 Nov 2017 14:18:20 +0000 (23:18 +0900)]
Move "Permissions" row into main table in /admin/accounts/:id (#5734)

8 years agoAdd trailing comma in mapStateToProps
David Yip [Fri, 17 Nov 2017 06:24:22 +0000 (00:24 -0600)]
Add trailing comma in mapStateToProps

Consistency, eslint, etc.

8 years agoMerge pull request #219 from glitch-soc/no-spin
David Yip [Fri, 17 Nov 2017 06:14:24 +0000 (00:14 -0600)]
Merge pull request #219 from glitch-soc/no-spin

Remove 'spin' theme

8 years agoThrow layout, isWide, navbarUnder back into mapStateToProps.
David Yip [Fri, 17 Nov 2017 06:11:01 +0000 (00:11 -0600)]
Throw layout, isWide, navbarUnder back into mapStateToProps.

This gets wide view, auto layout, and navbar-under-mobile working again.

8 years agoRemoves spin theme
kibigo! [Fri, 17 Nov 2017 05:50:07 +0000 (21:50 -0800)]
Removes spin theme

8 years agoThemed prefetching
kibigo! [Fri, 17 Nov 2017 05:35:25 +0000 (21:35 -0800)]
Themed prefetching

8 years agoMerge remote-tracking branch 'origin/master' into gs-master
David Yip [Fri, 17 Nov 2017 04:52:37 +0000 (22:52 -0600)]
Merge remote-tracking branch 'origin/master' into gs-master

8 years agoRedirect to reports when moderator (#5733)
Yamagishi Kazutoshi [Fri, 17 Nov 2017 02:26:34 +0000 (11:26 +0900)]
Redirect to reports when moderator (#5733)

8 years agoRemove empty strings (#5732)
ysksn [Fri, 17 Nov 2017 01:52:30 +0000 (10:52 +0900)]
Remove empty strings (#5732)

8 years agoFix some rubocop style issues (#5730)
Eugen Rochko [Fri, 17 Nov 2017 01:06:26 +0000 (02:06 +0100)]
Fix some rubocop style issues (#5730)

8 years agoDisplay moderator badge (green), admin badge changed to red (#5728)
Eugen Rochko [Fri, 17 Nov 2017 00:22:38 +0000 (01:22 +0100)]
Display moderator badge (green), admin badge changed to red (#5728)

8 years agoImprove language filter (#5724)
Renato "Lond" Cerqueira [Thu, 16 Nov 2017 12:51:38 +0000 (10:51 -0200)]
Improve language filter (#5724)

* Scrub text of html before detecting language.

* Detect language on statuses coming from activitypub.

* Fix rubocop comments.

* Remove custom emoji from text before language detection

8 years agoFix AccountFinderConcern::AccountFinder#with_usernames (#5722)
ysksn [Thu, 16 Nov 2017 11:13:03 +0000 (20:13 +0900)]
Fix AccountFinderConcern::AccountFinder#with_usernames (#5722)

8 years agoMerge pull request #216 from glitch-soc/merge-upstream-3023725
Surinna Curtis [Thu, 16 Nov 2017 07:38:26 +0000 (01:38 -0600)]
Merge pull request #216 from glitch-soc/merge-upstream-3023725

Merge upstream at commit 3023725

8 years agoMerge tootsuite/master at 30237259367a0ef2b20908518b86bbeb358999b5
Surinna Curtis [Thu, 16 Nov 2017 07:21:16 +0000 (01:21 -0600)]
Merge tootsuite/master at 30237259367a0ef2b20908518b86bbeb358999b5

8 years agoAdd tests for Status#verb (#5717)
ysksn [Thu, 16 Nov 2017 06:46:29 +0000 (15:46 +0900)]
Add tests for Status#verb (#5717)

8 years agoMerge pull request #217 from monsterpit-daggertooth/fix-streaming-host-env
David Yip [Thu, 16 Nov 2017 05:40:07 +0000 (23:40 -0600)]
Merge pull request #217 from monsterpit-daggertooth/fix-streaming-host-env

Allow streaming server to take bindhost from HOST env

8 years agoAllow streaming server to take bindhost from HOST env
Daggertooth [Tue, 14 Nov 2017 08:32:24 +0000 (08:32 +0000)]
Allow streaming server to take bindhost from HOST env

8 years agoAdd tests for Status#hidden? (#5719)
ysksn [Thu, 16 Nov 2017 02:07:27 +0000 (11:07 +0900)]
Add tests for Status#hidden? (#5719)

8 years agoMerge pull request #212 from aschmitz/feat/mute-reblogs
beatrix [Wed, 15 Nov 2017 17:01:17 +0000 (12:01 -0500)]
Merge pull request #212 from aschmitz/feat/mute-reblogs

Allow hiding reblogs on a per-follow basis

8 years ago[Nanobox] Apply Release Notes Changes (#5670)
Daniel Hunsaker [Wed, 15 Nov 2017 15:26:53 +0000 (08:26 -0700)]
[Nanobox] Apply Release Notes Changes (#5670)

Apparently I missed some things in earlier commits/releases that needed to be applied to the Nanobox setup. All minor things, nothing that breaks anything, but still best to get them in place.

- Move cron jobs to their own component, so the Sidekiq component can be scaled up to multiple instances without causing issues with running the same cron job multiple times at once.
- Update cron jobs to the latest requirements, removing extraneous ones
- Add new variables to `.env.nanobox`
- Update Nginx to use correct cache header directives

8 years agoDelegate some methods of User to @settings (#5706)
ysksn [Wed, 15 Nov 2017 15:05:20 +0000 (00:05 +0900)]
Delegate some methods of User to @settings (#5706)

* Move some tests of User into Settings::ScopedSettings

* Add a test for User@settings

8 years agoAdd a test for Tag#to_param (#5705)
ysksn [Wed, 15 Nov 2017 15:04:41 +0000 (00:04 +0900)]
Add a test for Tag#to_param (#5705)

8 years agoreusable-streaming (#5709)
masarakki [Wed, 15 Nov 2017 15:04:15 +0000 (00:04 +0900)]
reusable-streaming (#5709)

8 years agoAdd Japanese translation for DM block option. (#5704)
mayaeh [Wed, 15 Nov 2017 02:57:09 +0000 (11:57 +0900)]
Add Japanese translation for DM block option. (#5704)

8 years agoOptional notification muting (#5087)
Surinna Curtis [Wed, 15 Nov 2017 02:56:41 +0000 (20:56 -0600)]
Optional notification muting (#5087)

* Add a hide_notifications column to mutes

* Add muting_notifications? and a notifications argument to mute!

* block notifications in notify_service from hard muted accounts

* Add specs for how mute! interacts with muting_notifications?

* specs testing that hide_notifications in mutes actually hides notifications

* Add support for muting notifications in MuteService

* API support for muting notifications (and specs)

* Less gross passing of notifications flag

* Break out a separate mute modal with a hide-notifications checkbox.

* Convert profile header mute to use mute modal

* Satisfy eslint.

* specs for MuteService notifications params

* add trailing newlines to files for Pork :)

* Put the label for the hide notifications checkbox in a label element.

* Add a /api/v1/mutes/details route that just returns the array of mutes.

* Define a serializer for /api/v1/mutes/details

* Add more specs for the /api/v1/mutes/details endpoint

* Expose whether a mute hides notifications in the api/v1/relationships endpoint

* Show whether muted users' notifications are muted in account lists

* Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint

* make the hide/unhide notifications buttons work

* satisfy eslint

* In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.

* fix a missing import

* add an explanatory comment to AccountInteractions

* Refactor handling of default params for muting to make code cleaner

* minor code style fixes oops

* Fixed a typo that was breaking the account mute API endpoint

* Apply white-space: nowrap to account relationships icons

* Fix code style issues

* Remove superfluous blank line

* Rename /api/v1/mutes/details -> /api/v2/mutes

* Don't serialize "account" in MuteSerializer

Doing so is somewhat unnecessary since it's always the current user's account.

* Fix wrong variable name in api/v2/mutes

* Use Toggle in place of checkbox in the mute modal.

* Make the Toggle in the mute modal look better

* Code style changes in specs and removed an extra space

* Code review suggestions from akihikodaki

Also fixed a syntax error in tests for AccountInteractions.

* Make AddHideNotificationsToMute Concurrent

It's not clear how much this will benefit instances in practice, as the
number of mutes tends to be pretty small, but this should prevent any
blocking migrations nonetheless.

* Fix up migration things

* Remove /api/v2/mutes

8 years agoAdd tests for StreamEntry (#5687)
ysksn [Wed, 15 Nov 2017 01:00:58 +0000 (10:00 +0900)]
Add tests for StreamEntry (#5687)

* Add tests for StreamEntry

- `#object_type`
- `#verb`
- `#mentions`

* Fix to test results instead of implementations

8 years agoFilter searched toots to be consistent with blocking behaviors (#5383)
ThibG [Wed, 15 Nov 2017 00:53:33 +0000 (01:53 +0100)]
Filter searched toots to be consistent with blocking behaviors (#5383)

8 years agoUse already-known remote user data if resolving temporarily fails in mentions (#5702)
ThibG [Wed, 15 Nov 2017 00:06:49 +0000 (01:06 +0100)]
Use already-known remote user data if resolving temporarily fails in mentions (#5702)

8 years agoAllow specifying STATSD_NAMESPACE (#5700)
Eugen Rochko [Tue, 14 Nov 2017 22:22:43 +0000 (23:22 +0100)]
Allow specifying STATSD_NAMESPACE (#5700)

8 years agoAdd option to block direct messages from people you don't follow (#5669)
Eugen Rochko [Tue, 14 Nov 2017 20:12:57 +0000 (21:12 +0100)]
Add option to block direct messages from people you don't follow (#5669)

* Add option to block direct messages from people you don't follow

Fix #5326

* If the DM responds to a toot by recipient, allow it through

* i18n: Update Polish translation (for #5669) (#5673)

8 years agoUpdating Chinese (Simplified) translations (#5643)
SerCom_KC [Tue, 14 Nov 2017 19:44:42 +0000 (03:44 +0800)]
Updating Chinese (Simplified) translations (#5643)

* i18n: (zh-CN) Bug fix for note-counter.

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add missing translations

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add support.array key for better wording

* Revert "i18n: (zh-CN) Add support.array key for better wording"

This reverts commit 27bf9a946e886213e827cd985d4f62419db57534.
Looks like this commit can't get pass the checks, revert it for now.

* i18n: (zh-CN) Change `客户端` to `应用`

* i18n: (zh-CN) Improve translations

* i18n: (zh-CN) Add missing translations (#5635)

* i18n: (zh-CN) Change `两步验证` to `双重认证`

* i18n: (zh-CN) Improve translations

8 years agoAdd a test for SiteUpload#cache_key (#5685)
ysksn [Tue, 14 Nov 2017 19:44:11 +0000 (04:44 +0900)]
Add a test for SiteUpload#cache_key (#5685)

8 years agoRefactor remote_follow_spec.rb (#5690)
Yamagishi Kazutoshi [Tue, 14 Nov 2017 19:41:17 +0000 (04:41 +0900)]
Refactor remote_follow_spec.rb (#5690)

8 years agoAdd uniqueness to block email domains (#5692)
Yamagishi Kazutoshi [Tue, 14 Nov 2017 19:37:17 +0000 (04:37 +0900)]
Add uniqueness to block email domains (#5692)

8 years agoi18n: Update Polish translation (#5699)
Marcin Mikołajczak [Tue, 14 Nov 2017 19:36:11 +0000 (20:36 +0100)]
i18n: Update Polish translation (#5699)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoRename MAX_CHARS to MAX_TOOT_CHARS to be more specific.
Lain Iwakura [Tue, 14 Nov 2017 16:56:38 +0000 (17:56 +0100)]
Rename MAX_CHARS to MAX_TOOT_CHARS to be more specific.

8 years agoCode style fixes.
Lain Iwakura [Tue, 14 Nov 2017 15:54:04 +0000 (16:54 +0100)]
Code style fixes.

8 years agoHandle character limit in initial state in frontend.
Lain Iwakura [Tue, 14 Nov 2017 15:24:10 +0000 (16:24 +0100)]
Handle character limit in initial state in frontend.

8 years agoReturn character limit in API and initial state.
Lain Iwakura [Tue, 14 Nov 2017 15:23:12 +0000 (16:23 +0100)]
Return character limit in API and initial state.

8 years agoMake character limit configurable.
Lain Iwakura [Tue, 14 Nov 2017 15:22:34 +0000 (16:22 +0100)]
Make character limit configurable.

8 years agoAdd Japanese translations for moderator roles and its own admin actions. (#5689)
mayaeh [Tue, 14 Nov 2017 06:53:14 +0000 (15:53 +0900)]
Add Japanese translations for moderator roles and its own admin actions. (#5689)

8 years agoi18n: fix typo in Polish translation (#5688)
Marcin Mikołajczak [Tue, 14 Nov 2017 06:52:32 +0000 (07:52 +0100)]
i18n: fix typo in Polish translation (#5688)

8 years agoAdd tests for Setting (#5683)
ysksn [Tue, 14 Nov 2017 02:08:04 +0000 (11:08 +0900)]
Add tests for Setting (#5683)

8 years agol10n: PT-BR translation updated (#5681)
Anna e só [Tue, 14 Nov 2017 02:07:38 +0000 (00:07 -0200)]
l10n: PT-BR translation updated (#5681)

* Improved e-mail messages; delted repeated words

* pt-BR.json translations updated

* Revert "pt-BR.json translations updated"

This reverts commit 108c460531196fed6e6d14f93e8d8d047c835ffd.

* Updated pt-BR.json

* pt-BR.yml updated

8 years agoMerge pull request #214 from glitch-soc/keyword-mute
David Yip [Mon, 13 Nov 2017 18:33:19 +0000 (12:33 -0600)]
Merge pull request #214 from glitch-soc/keyword-mute

Maintain case-insensitivity when merging multiple matchers (#213)

8 years agoMaintain case-insensitivity when merging multiple matchers (#213)
David Yip [Mon, 13 Nov 2017 17:06:02 +0000 (11:06 -0600)]
Maintain case-insensitivity when merging multiple matchers (#213)

When given two regexps, Regexp.union preserves the options set (or not
set) on each regex; this meant that none of the multiline (m),
case-insensitivity (i), or extended syntax (x) options were set.  Our
regexps are written expecting the m, i, and x options were set on all of
them, so we need to make sure that we preserve that behavior.

8 years agoAdd code of conduct from GitHub generator (#5674)
Eugen Rochko [Mon, 13 Nov 2017 16:28:55 +0000 (17:28 +0100)]
Add code of conduct from GitHub generator (#5674)

8 years agofix Code Climate badge on README.md (#5671)
takayamaki [Mon, 13 Nov 2017 02:49:54 +0000 (11:49 +0900)]
fix Code Climate badge on README.md (#5671)

and change badge's URI to https

8 years agoAdd tests for SessionActivation (#5668)
ysksn [Mon, 13 Nov 2017 00:54:48 +0000 (09:54 +0900)]
Add tests for SessionActivation (#5668)

* Fabricate SessionActivation

not only user_id but user association.

* Add tests for SessionActivation

8 years agoUpdate model annotations to use BIGINT for IDs (#5461)
Daniel Hunsaker [Sun, 12 Nov 2017 15:18:50 +0000 (08:18 -0700)]
Update model annotations to use BIGINT for IDs (#5461)

All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.

8 years agoFix #5652 - Notify too short when abbrev in JA (#5664)
KEINOS [Sun, 12 Nov 2017 07:51:47 +0000 (16:51 +0900)]
Fix #5652 - Notify too short when abbrev in JA (#5664)

* Fix #5652 - Notify too short when abbrev in JA

Fix #5652 of the notification message to be understandable when abbreviated.

* Changed quotes as original

Double quote to single and single quote as none. But I am not convinced of this fix.

* Added a single quote as YAMLlint's suggestion

* `bundle exec i18n-tasks normalize`

8 years agoAdd tests for RemoteProfile (#5665)
ysksn [Sun, 12 Nov 2017 07:23:31 +0000 (16:23 +0900)]
Add tests for RemoteProfile (#5665)

8 years agoActually filter blocked reblogs from feed
aschmitz [Sun, 12 Nov 2017 04:10:49 +0000 (22:10 -0600)]
Actually filter blocked reblogs from feed

And even a relevant test. Whoops.

8 years agoFix #5632 - Reset column loading status after fetch fail (#5659)
Eugen Rochko [Sun, 12 Nov 2017 03:51:07 +0000 (04:51 +0100)]
Fix #5632 - Reset column loading status after fetch fail (#5659)

8 years agoDon't update follower counts on reblog toggle
aschmitz [Sun, 12 Nov 2017 03:42:22 +0000 (21:42 -0600)]
Don't update follower counts on reblog toggle

8 years agoi18n: Update Polish translation (for #5635) (#5661)
Marcin Mikołajczak [Sat, 11 Nov 2017 21:31:20 +0000 (22:31 +0100)]
i18n: Update Polish translation (for #5635) (#5661)

* i18n: Update Polish translation (for #5635)

* 😑🔫

8 years agoUpdates per code review
aschmitz [Sat, 11 Nov 2017 20:37:23 +0000 (14:37 -0600)]
Updates per code review

Thanks, @valerauko!

8 years agoAdd moderator role and add pundit policies for admin actions (#5635)
Eugen Rochko [Sat, 11 Nov 2017 19:23:33 +0000 (20:23 +0100)]
Add moderator role and add pundit policies for admin actions (#5635)

* Add moderator role and add pundit policies for admin actions

* Add rake task for turning user into mod and revoking it again

* Fix handling of unauthorized exception

* Deliver new report e-mails to staff, not just admins

* Add promote/demote to admin UI, hide some actions conditionally

* Fix unused i18n

8 years agoRetry thread resolving (#5599)
ThibG [Sat, 11 Nov 2017 15:49:04 +0000 (16:49 +0100)]
Retry thread resolving (#5599)

Thread resolving is one of the few tasks that isn't retried on failure.
One common cause for failure of this task is a well-connected user replying to
a toot from a little-connected user on a small instance: the small instance
will get many requests at once, and will often fail to answer requests within
the 10 seconds timeout used by Mastodon.

This changes makes the ThreadResolveWorker retry a few times, with a
rapidly-increasing time before retries and large random contribution in order
to spread the load over time.

8 years agoPer-user reblog hiding implementation/fixes/tests
aschmitz [Sat, 11 Nov 2017 02:11:10 +0000 (20:11 -0600)]
Per-user reblog hiding implementation/fixes/tests

Note that this will only hide/show *future* reblogs by a user, and does
nothing to remove/add reblogs that are already in the timeline. I don't
think that's a particularly confusing behavior, and it's a lot easier
to implement (similar to mutes, I believe).

8 years agoAdd tests for RemoteFollow (#5651)
ysksn [Fri, 10 Nov 2017 15:56:02 +0000 (00:56 +0900)]
Add tests for RemoteFollow (#5651)

* Add tests for RemoteFollow.initialize

* Add tests for RemoteFollow#valid?

* Add tests for RemoteFollow#subscribe_address_for

8 years agoUpdate en.yml (#5648)
Matt [Fri, 10 Nov 2017 01:58:33 +0000 (14:58 +1300)]
Update en.yml (#5648)

Changed "Toots with replies" to read "Toots and replies"

8 years agoFix focused background color of direct toots (#5642)
Lynx Kotoura [Thu, 9 Nov 2017 18:40:34 +0000 (03:40 +0900)]
Fix focused background color of direct toots (#5642)

8 years ago"Show reblogs" per-follower UI/database changes
aschmitz [Thu, 9 Nov 2017 14:41:10 +0000 (08:41 -0600)]
"Show reblogs" per-follower UI/database changes

TODO:

* Tests (particularly for FollowRequests).
* Anything to respect the setting when putting reblogs in timelines.

8 years agoAdd tests for Notification (#5640)
ysksn [Thu, 9 Nov 2017 13:37:10 +0000 (22:37 +0900)]
Add tests for Notification (#5640)

* Add tests for Notification#target_status

* Add tests for Notification#browserable?

* Add tests for Notification.reload_stale_associations!

8 years agoAdd and Remove tests for FollowRequest (#5622)
ysksn [Thu, 9 Nov 2017 13:36:52 +0000 (22:36 +0900)]
Add and Remove tests for FollowRequest (#5622)

* Add a test for FollowRequest#authorize!

* Remove tests

There is no need to test
ActiveModel::Validations::ClassMethods#validates.

* Make an alias of destroy! as reject!

Instead of defining the method,
make an alias of destroy! as reject! because of reducing test.

8 years agoRewrite account_controller_spec (#5633)
Nanamachi [Thu, 9 Nov 2017 13:36:17 +0000 (22:36 +0900)]
Rewrite account_controller_spec (#5633)

* make accounts_controller_spec DRY

* Add blocked user spec

8 years agoShow confirmation dialog on leaving WebUI while composing (#5616)
unarist [Thu, 9 Nov 2017 13:34:41 +0000 (22:34 +0900)]
Show confirmation dialog on leaving WebUI while composing (#5616)

* Show confirmation dialog on leaving WebUI while composing

Currently, Back button and Back hotkey can cause leaving from WebUI, as well as browser's back button. Users may hit those buttons accidentally, and their composing text will be lost.

So this prevents it by showing confirmation dialog from `onbeforeunload` event.

* Fix message and comments

8 years agoi18n: Update Polish translation (#5639)
Marcin Mikołajczak [Thu, 9 Nov 2017 13:23:06 +0000 (14:23 +0100)]
i18n: Update Polish translation (#5639)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoTranslate ja (#5637)
nullkal [Thu, 9 Nov 2017 13:22:55 +0000 (22:22 +0900)]
Translate ja (#5637)

8 years agoi10n OC: Memorial (#5615) + #5467 (#5623)
Quenty31 [Wed, 8 Nov 2017 14:19:49 +0000 (15:19 +0100)]
i10n OC: Memorial (#5615) + #5467 (#5623)

* Changed ĩ => ï

* Changed ĩ => ï

* Add ability to disable login and mark accounts as memorial (#5615)

8 years agoIn remove_remote, exclude removed media attachments. (#5626)
Naoki Kosaka [Wed, 8 Nov 2017 14:19:22 +0000 (23:19 +0900)]
In remove_remote, exclude removed media attachments. (#5626)

8 years agoAdd tests for MediaAttachment (#5620)
ysksn [Wed, 8 Nov 2017 06:29:07 +0000 (15:29 +0900)]
Add tests for MediaAttachment (#5620)

- `#local?`
- `#needs_redownload?`
- `#to_param`

8 years agoAdd tests for CustomEmoji#local? and #object_type (#5621)
ysksn [Wed, 8 Nov 2017 06:28:17 +0000 (15:28 +0900)]
Add tests for CustomEmoji#local? and #object_type (#5621)

8 years agoFix process mentions for local users, as local users are considered to use OStatus...
ThibG [Tue, 7 Nov 2017 21:15:15 +0000 (22:15 +0100)]
Fix process mentions for local users, as local users are considered to use OStatus (#5618)

8 years agoEliminate space around emoji (#5474)
nullkal [Tue, 7 Nov 2017 18:09:53 +0000 (03:09 +0900)]
Eliminate space around emoji (#5474)

* Eliminate space around emoji

* More improve emoji style

* Make more compatible with Twemoji

* Make scss-lint happy

* Make not modify normal emoji's behavior

* Decrease status__action-bar's margin-top to 5px

* Make the test be passed

* Revert "Make the test be passed"

This reverts commit 54a8c60e5907ef20a5ceb5ab2c86a933e06f3ece.

* Revert "Make not modify normal emoji's behavior"

This reverts commit 6a5bdf0c11df16ebd190cb3ab9d2e8f1349f435a.

8 years agoTwidere mention workaround (#5552)
ThibG [Tue, 7 Nov 2017 18:08:14 +0000 (19:08 +0100)]
Twidere mention workaround (#5552)

* Work around Twidere and Tootdon bug

Tootdon and Twidere construct @user@domain handles from mentions in toots based
solely on the mention text and account URI's domain without performing any
webfinger call or retrieving account info from the Mastodon server.

As a result, when a remote user has WEB_DOMAIN ≠ LOCAL_DOMAIN, Twidere and
Tootdon will construct the mention as @user@WEB_DOMAIN. Now, this will usually
resolve to the correct account (since the recommended configuration is to have
WEB_DOMAIN perform webfinger redirections to LOCAL_DOMAIN) when processing
mentions, but won't do so when displaying them (as it does not go through the
whole account resolution at that time).

This change rewrites mentions to the resolved account, so that displaying the
mentions will work.

* Use lookbehind instead of non-capturing group in MENTION_RE

Indeed, substitutions with the previous regexp would erroneously eat any
preceding whitespace, which would lead to concatenated mentions in the
previous commit.

Note that users will “lose” up to one character space per mention for their
toots, as that regexp is also used to remove the domain-part of mentioned
users for character counting purposes, and it also erroneously removed the
preceding character if it was a space.

8 years agoAdd ability to disable login and mark accounts as memorial (#5615)
Eugen Rochko [Tue, 7 Nov 2017 18:06:44 +0000 (19:06 +0100)]
Add ability to disable login and mark accounts as memorial (#5615)

Fix #5597

8 years agoFix spell miss (SWIIFT_OBJECT_URL -> SWIFT_OBJECT_URL) (#5617)
MitarashiDango [Tue, 7 Nov 2017 18:06:30 +0000 (03:06 +0900)]
Fix spell miss (SWIIFT_OBJECT_URL -> SWIFT_OBJECT_URL) (#5617)

8 years agofix: slang to adequate word (#5453)
voidSatisfaction [Tue, 7 Nov 2017 13:49:50 +0000 (22:49 +0900)]
fix: slang to adequate word (#5453)