]>
cat aescling's git repositories - mastodon.git/log
PFM [Thu, 7 Sep 2017 14:18:41 +0000 (23:18 +0900)]
Use <button> instead of <div role="button"> (#4835)
voidSatisfaction [Thu, 7 Sep 2017 07:58:11 +0000 (16:58 +0900)]
Add Pinned toot column (#4817)
* Add Pinned_toot_section
* Fix add frozen_string_literal
* Fix delete no need controller and tests
* Fix replace query strings to axios params
* Fix change value to accountId and disabling more button
voidSatisfaction [Thu, 7 Sep 2017 07:55:42 +0000 (16:55 +0900)]
Feat add validation for report comment: characters under 1000 valid (#4833)
Joseph Mingrone [Thu, 7 Sep 2017 01:55:06 +0000 (22:55 -0300)]
Use casecmp() instead of casecmp?() for now (#4832)
* Use casecmp() instead of casecmp?() for now
casecmp?() is only available in ruby 2.4.0. Users running earlier ruby versions
would see errors, e.g., running
RAILS_ENV=production rails mastodon:maintenance:remove_deprecated_preview_cards.
* Correctly check whether casecmp() returns 0
Quent-in [Wed, 6 Sep 2017 23:55:03 +0000 (01:55 +0200)]
i10n update OC and FR files (#4824)
* Onboarding: corrections
Some missing letters and spaces or better wording
* Embed
Translated as Intégrer in FR / Embarcar in OC
Olivier Humbert [Wed, 6 Sep 2017 20:32:49 +0000 (22:32 +0200)]
Update fr.json (#4830)
typo
Eugen Rochko [Wed, 6 Sep 2017 18:57:52 +0000 (20:57 +0200)]
Fix locking migration on statuses table. Nullable column and NO default value (#4825)
Eugen Rochko [Wed, 6 Sep 2017 17:02:03 +0000 (19:02 +0200)]
Bump version to 1.6.0rc2
Eugen Rochko [Wed, 6 Sep 2017 17:01:28 +0000 (19:01 +0200)]
Switch to static URIs, new URI format in both protocols for new statuses (#4815)
* Decouple Status#local? from uri being nil
* Replace on-the-fly URI generation with stored URIs
- Generate URI in after_save hook for local statuses
- Use static value in TagManager when available, fallback to tag format
- Make TagManager use ActivityPub::TagManager to understand new format
- Adjust tests
* Use other heuristic for locality of old statuses, do not perform long query
* Exclude tombstone stream entries from Atom feed
* Prevent nil statuses from landing in Pubsubhubbub::DistributionWorker
* Fix URI not being saved (#4818)
* Add more specs for Status
* Save generated uri immediately
and also fix method order to minimize diff.
* Fix alternate HTML URL in Atom
* Fix tests
* Remove not-null constraint from statuses migration to speed it up
voidSatisfaction [Wed, 6 Sep 2017 15:32:15 +0000 (00:32 +0900)]
Add Smartphone screen favourite back button and adjust styles (#4813)
* Feat add get-back button on favourite columnHeader
* Style adjust nice looking get-back button
* Fix delete media query and add padding right
* fix: restore padding and add lastchild style for back-button
Masoud Abkenar [Wed, 6 Sep 2017 15:31:54 +0000 (17:31 +0200)]
i18n: update Persian translation (#4822)
Clworld [Wed, 6 Sep 2017 15:29:56 +0000 (00:29 +0900)]
fix scroll position (#4821)
Yamagishi Kazutoshi [Wed, 6 Sep 2017 14:25:19 +0000 (23:25 +0900)]
Update react-intl to version 2.4.0 (#4820)
PFM [Wed, 6 Sep 2017 11:55:47 +0000 (20:55 +0900)]
fix text position of NSFW for video file (#4819)
Yamagishi Kazutoshi [Wed, 6 Sep 2017 10:13:00 +0000 (19:13 +0900)]
Add environment sample for OpenStack Swift (#4816)
Adam Thurlow [Tue, 5 Sep 2017 21:17:06 +0000 (18:17 -0300)]
swift-enable the paperclip! :paperclip: (#2322)
abcang [Tue, 5 Sep 2017 18:56:20 +0000 (03:56 +0900)]
Do not execute the job with the same arguments as the retry job (#4814)
Eugen Rochko [Tue, 5 Sep 2017 18:55:25 +0000 (20:55 +0200)]
Fix mentions in direct statuses not being delivered via AP (#4806)
Eugen Rochko [Tue, 5 Sep 2017 15:48:13 +0000 (17:48 +0200)]
Fix #4794 - Fake instant follow in API response when account is believed unlocked (#4799)
Lynx Kotoura [Tue, 5 Sep 2017 10:31:24 +0000 (19:31 +0900)]
Adjust status embeds (#4808)
* Adjust status embeds
Adjust styles of embed code. Adjust styles of embed pages. Fix overflow of embed-modal.
* Remove trailing whitespace
* Using width from the variable
takayamaki [Tue, 5 Sep 2017 10:30:01 +0000 (19:30 +0900)]
add index_notifications_on_id_and_account_id_and_activity_type on notifications table (#4750)
Treyssat-Vincent Nino [Tue, 5 Sep 2017 10:13:25 +0000 (12:13 +0200)]
comment correction (#4812)
voidSatisfaction [Mon, 4 Sep 2017 18:40:02 +0000 (03:40 +0900)]
Translation korean added (#4802)
ButterflyOfFire [Mon, 4 Sep 2017 17:54:12 +0000 (18:54 +0100)]
Update ar.yml (#4810)
Some little changes to "ar" locale
Eugen Rochko [Mon, 4 Sep 2017 16:26:33 +0000 (18:26 +0200)]
Fix some ActivityPub JSON bugs (#4796)
- Fix assumption that `url` is always a string. Handle it if it's an
array of strings, array of objects, object, or string, both for
accounts and for objects
- `sharedInbox` is actually supposed to be under `endpoints`, handle
both cases and adjust the serializer
nullkal [Mon, 4 Sep 2017 10:53:18 +0000 (19:53 +0900)]
Show pinned statuses only in the top of the profile page (#4803)
* Show pinned statuses only in the top of the profile page
* Refactor AccountsController#show_pinned_statuses?
voidSatisfaction [Mon, 4 Sep 2017 10:52:06 +0000 (19:52 +0900)]
Fix streaming url to lowercase (#4804)
Eugen Rochko [Mon, 4 Sep 2017 00:14:12 +0000 (02:14 +0200)]
Fix #4551 - Use correct syntax for content preloading (#4798)
abcang [Sun, 3 Sep 2017 18:31:51 +0000 (03:31 +0900)]
Fix a problem that notification column goes to top (#4792)
Eugen Rochko [Sun, 3 Sep 2017 13:17:34 +0000 (15:17 +0200)]
Fix short number locales (#4790)
Overwrite values from rails-i18n by manually overwriting in every locale.
We want numbers like 1.5K in every language
Andreas Drop [Sun, 3 Sep 2017 13:17:24 +0000 (15:17 +0200)]
Make german translation more gender neutral #4755 (#4789)
Akihiko Odaki [Sun, 3 Sep 2017 10:39:39 +0000 (19:39 +0900)]
Use next instead of return in task (#4787)
May Kittens Devour Your Soul [Sun, 3 Sep 2017 09:10:53 +0000 (11:10 +0200)]
Croatian translation - updated (#4183)
* Update hr.json
* Update hr.json
Quent-in [Sun, 3 Sep 2017 09:08:37 +0000 (11:08 +0200)]
l10n Occitan update for Embed, cancel follow request, ... (#4788)
* Update: some missing strings
* Updates missing strings
* New string
* Update oc.json
* Update oc.yml
* Update oc.json
Akihiko Odaki [Sun, 3 Sep 2017 05:58:58 +0000 (14:58 +0900)]
Explicitly define attached file of DeprecatedPreviewCard (#4786)
The path template of the attached files must explicitly be defined because
it is contradicting to the name of the class.
Eugen Rochko [Sat, 2 Sep 2017 23:12:05 +0000 (01:12 +0200)]
Bump version to 1.6.0rc1 (#4768)
Eugen Rochko [Sat, 2 Sep 2017 23:11:23 +0000 (01:11 +0200)]
Instantly upgrade account to ActivityPub if we receive ActivityPub payload (#4766)
Eugen Rochko [Sat, 2 Sep 2017 21:21:48 +0000 (23:21 +0200)]
Improve client-side German i18n (#4785)
Eugen Rochko [Sat, 2 Sep 2017 21:13:35 +0000 (23:13 +0200)]
Rename "locked" to "manuallyApprovesFollowers" in ActivityPub (#4779)
See: <https://www.w3.org/wiki/Activity_Streams_extensions#as:manuallyApprovesFollowers>
abcang [Sat, 2 Sep 2017 18:45:42 +0000 (03:45 +0900)]
Validate data of Imports (#4782)
m4sk1n [Sat, 2 Sep 2017 18:45:20 +0000 (20:45 +0200)]
i18n: Improve Polish translation (#4783)
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
Eugen Rochko [Sat, 2 Sep 2017 18:44:41 +0000 (20:44 +0200)]
Make "unfollow" undo pending outgoing follow request too (#4781)
* Make "unfollow" undo pending outgoing follow request too
* Add cancel button to web UI when awaiting follow request approval
* Make the hourglass button do the cancelling
PFM [Sat, 2 Sep 2017 16:52:56 +0000 (01:52 +0900)]
fix text position of NSFW in Safari (Mac/iPhone) (#4570)
unarist [Sat, 2 Sep 2017 15:42:47 +0000 (00:42 +0900)]
Raise an error for remote url in StatusFinder (#4776)
* Raise an error for remote url in StatusFinder
Previous implementation had allowed remote url with status id which also exists on local.
Then that bug leads /api/web/embed to return wrong embed url.
* Fix oembed_controller_spec
unarist [Sat, 2 Sep 2017 14:50:42 +0000 (23:50 +0900)]
Fix WebPush (regression from #4524) (#4778)
* Fix NoMethodError in Web::PushSubscription
```
undefined method `site_contact_email' for #<Class:0x00005976d13c40>
/usr/local/bundle/gems/activerecord-5.1.3/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/usr/local/bundle/gems/attr_encrypted-3.0.3/lib/attr_encrypted.rb:295:in `method_missing'
/usr/local/bundle/gems/attr_encrypted-3.0.3/lib/attr_encrypted/adapters/active_record.rb:129:in `method_missing_with_attr_encrypted'
/mastodon/app/models/web/push_subscription.rb:53:in `push_payload'
```
* Specify serializer in Web::NotificationSerializer
Surinna Curtis [Sat, 2 Sep 2017 14:27:16 +0000 (09:27 -0500)]
Don't unconditionally call `preventDefault` and `stopPropagation` on all keyup events (#4777)
* UploadArea should only preventDefault for Escape
This will make accessibility for some things less effortful, since we won't have to define a prior event handler to do whatever should be happening by default.
* Remove workaround for fixed bug in SettingToggle
SettingToggle was toggling itself in response to keydown of space, and then the keyup was doing it again
m4sk1n [Sat, 2 Sep 2017 14:25:54 +0000 (16:25 +0200)]
i18n: Update Polish translation (#4775)
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
Lynx Kotoura [Sat, 2 Sep 2017 13:49:28 +0000 (22:49 +0900)]
Adjust settings pages (#4765)
* views: Adjust heading positions
* Adjust settings pages
Adjust label. Adjust tables. Adjust admin/reports/* pages. Fix 2FA QR code style for narrow devices. Widen several pages. Increase contrast.
* Remove trailing whitespace
Yamagishi Kazutoshi [Sat, 2 Sep 2017 12:02:29 +0000 (21:02 +0900)]
Add Japanese translate for #4561 (#4771)
Yamagishi Kazutoshi [Sat, 2 Sep 2017 12:02:15 +0000 (21:02 +0900)]
Add text color style for noscript link (#4772)
Yamagishi Kazutoshi [Sat, 2 Sep 2017 12:01:59 +0000 (21:01 +0900)]
Fix profile page when use system's font (#4774)
Yamagishi Kazutoshi [Sat, 2 Sep 2017 12:01:44 +0000 (21:01 +0900)]
Disable embed modal when private status (#4773)
* Disable embed modal when private status
* Remove `reblogDisabled`
Eugen Rochko [Sat, 2 Sep 2017 12:01:23 +0000 (14:01 +0200)]
Define missing JSON-LD properties (#4767)
Using _: property names is discouraged, as in the future,
canonicalization may throw an error when encountering that instead
of discarding it silently like it does now.
We are defining some ActivityStreams properties which we expect
to land in ActivityStreams eventually, to ensure that future versions
of Mastodon will remain compatible with this even once that happens.
Those would be `locked`, `sensitive` and `Hashtag`
We are defining a custom context inline for some properties which we
do not expect to land in any other context. `atomUri`, `inReplyToAtomUri`
and `conversation` are part of the custom defined OStatus context.
Eugen Rochko [Sat, 2 Sep 2017 12:00:58 +0000 (14:00 +0200)]
Use updated ActivityStreams context (added: sharedInbox) (#4764)
mayaeh [Sat, 2 Sep 2017 05:48:51 +0000 (14:48 +0900)]
Add japanese translations for embed modal feature. (#4770)
Yamagishi Kazutoshi [Sat, 2 Sep 2017 01:03:21 +0000 (10:03 +0900)]
Add RoutingHelper (#4769)
m4sk1n [Fri, 1 Sep 2017 23:52:28 +0000 (01:52 +0200)]
Add link to 'noscript' message (#4561)
* Add link to 'noscript' message
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
* remove indent
Eugen Rochko [Fri, 1 Sep 2017 19:54:42 +0000 (21:54 +0200)]
Add ActivityPub handler for Delete->Actor activities (#4761)
Eugen Rochko [Fri, 1 Sep 2017 19:30:13 +0000 (21:30 +0200)]
Finish up embed modal feature (#4759)
* Add embed button to dropdowns of in-timeline statuses
* yarn run manage:translations
Eugen Rochko [Fri, 1 Sep 2017 19:26:01 +0000 (21:26 +0200)]
Avoid sending some ActivityPub payloads if the receiver will get them through distribution (#4739)
Eugen Rochko [Fri, 1 Sep 2017 19:12:59 +0000 (21:12 +0200)]
Do not rely on activity arriving exactly once after delete arrived (#4754)
Cygnan [Fri, 1 Sep 2017 19:01:23 +0000 (04:01 +0900)]
Adjust padding on the public profile page (#4757)
* Fix a style issue on the public profile page for some mobile browsers
Signed-off-by: Cygnan <email@cygnan.com>
* Set padding-bottom to 20px
Signed-off-by: Cygnan <email@cygnan.com>
unarist [Fri, 1 Sep 2017 19:00:43 +0000 (04:00 +0900)]
Deduplicate with local status on Create activity (#4763)
Eugen Rochko [Fri, 1 Sep 2017 18:50:42 +0000 (20:50 +0200)]
Fix NoMethodError (#4762)
Eugen Rochko [Fri, 1 Sep 2017 14:20:16 +0000 (16:20 +0200)]
Make PreviewCard records reuseable between statuses (#4642)
* Make PreviewCard records reuseable between statuses
**Warning!** Migration truncates preview_cards tablec
* Allow a wider thumbnail for link preview, display it in horizontal layout (#4648)
* Delete preview cards files before truncating
* Rename old table instead of truncating it
* Add mastodon:maintenance:remove_deprecated_preview_cards
* Ignore deprecated_preview_cards in schema definition
* Fix null behaviour
Yamagishi Kazutoshi [Fri, 1 Sep 2017 14:13:31 +0000 (23:13 +0900)]
Use system's default font on non web UI pages (#4553)
* Use system's default font on non web UI pages
* Remove import for Redirect
Eugen Rochko [Fri, 1 Sep 2017 14:07:08 +0000 (16:07 +0200)]
Make first use less overwhelming with browser permissions (#4760)
- Ask for desktop notifications after 1 minute of use instead of
instantly
- Ask for protocol handler permission after 5 minutes of use
instead of instantly
Damien Erambert [Fri, 1 Sep 2017 12:09:01 +0000 (05:09 -0700)]
Update FR locales (#4714)
* Make the fr locales up-to-date with the last changes (new profile view, applications)
* Use the same wording for toots in fr.yml and fr.json
* Translate the pin related strings
* Translate pin-related locales on the front-end
* Add missing locales in doorkeeper.fr.yml and remove un-used ones
* Change "posts" back to "status" in the /about/more page in fr.yml
* Fix typos for "status" in fr.yml
* fix typo for "status" in fr.json
* Remove duplicate string
* Non-breaking space before punctuation
* 'Better' translation for "unpin"
* Put back 'pouet' where it was already
* Fix
* Fix
Eugen Rochko [Fri, 1 Sep 2017 11:35:23 +0000 (13:35 +0200)]
Refactor Web::PushSubscription, remove welcome message (#4524)
* Refactor Web::PushSubscription, remove welcome message
* Add missing helper
* Use locale of the receiver on push notifications (#4519)
* Remove unused translations
* Fix dir on notifications
unarist [Fri, 1 Sep 2017 11:34:04 +0000 (20:34 +0900)]
Convert OStatus tag to ActivityPub id on in_reply_to resolution (#4756)
unarist [Fri, 1 Sep 2017 10:33:02 +0000 (19:33 +0900)]
Fallback from perform_via_activitypub on private posts (#4758)
Currently, private / direct posts via OStatus from AP compatible instance will be dropped due to failing to fetch AP version.
So this fallbacks to OStatus handling:
* when failed to fetch ActivityPub version
* when status is neither :public nor :unlisted
Eugen Rochko [Thu, 31 Aug 2017 19:32:09 +0000 (21:32 +0200)]
Remove identity context from output of LinkedDataSignature (#4753)
unarist [Thu, 31 Aug 2017 15:18:49 +0000 (00:18 +0900)]
Don't process ActivityPub payload if signature is invalid (#4752)
* Don't process ActivityPub payload if signature is invalid
* Fix style issue
James [Thu, 31 Aug 2017 13:44:00 +0000 (06:44 -0700)]
Guarantee Subscription service first account has proper URL details (#4732)
* Guarantee Subscription service first account has proper URL details
Subscription Service potentially could break if the first user suspended
themselves, creating a situation where the urls that populate throughout
subscription service's PuSH request would cause the remote API to throw 503 errors.
Guaranteeing that the first account picked is not suspended prevents this problem.
* Fix style issue
Akihiko Odaki [Thu, 31 Aug 2017 09:20:54 +0000 (18:20 +0900)]
Fix the usages of Detect Passive Events (#4749)
Eugen Rochko [Thu, 31 Aug 2017 01:38:35 +0000 (03:38 +0200)]
Embed modal (#4748)
* Embed modal
* Proxy OEmbed requests from web UI
Eugen Rochko [Wed, 30 Aug 2017 22:02:59 +0000 (00:02 +0200)]
Add sharedInbox to actors (#4737)
Wonderfall [Wed, 30 Aug 2017 21:52:19 +0000 (23:52 +0200)]
Update to Alpine 3.6 (#4747)
MitarashiDango [Wed, 30 Aug 2017 15:30:25 +0000 (00:30 +0900)]
error fixed (when loading pages in single column mode.) (#4746)
Eugen Rochko [Wed, 30 Aug 2017 13:37:02 +0000 (15:37 +0200)]
Forward ActivityPub creates that reply to local statuses (#4709)
* Forward ActivityPub creates that reply to local statuses
* Fix test
* Fix wrong signers
Yamagishi Kazutoshi [Wed, 30 Aug 2017 12:03:17 +0000 (21:03 +0900)]
Add close tag of iframe for oEmbed response (#4745)
* Add close tag of iframe for oEmbed response
* add comma
nullkal [Wed, 30 Aug 2017 08:24:30 +0000 (17:24 +0900)]
Use request.remote_ip instead of request.ip (#4744)
Eugen Rochko [Wed, 30 Aug 2017 08:23:43 +0000 (10:23 +0200)]
Update status embeds (#4742)
- Use statuses controller for embeds instead of stream entries controller
- Prefer /@:username/:id/embed URL for embeds
- Use /@:username as author_url in OEmbed
- Add follow link to embeds which opens web intent in new window
- Use redis cache in development
- Cache entire embed
Eugen Rochko [Wed, 30 Aug 2017 03:04:20 +0000 (05:04 +0200)]
Remove unneccesary indices (#4738)
We only look up status_pins by account_id, or account_id and status_id,
never by status_id
Eugen Rochko [Wed, 30 Aug 2017 01:30:13 +0000 (03:30 +0200)]
Update bundler-audit and brakeman (#4740)
abcang [Tue, 29 Aug 2017 15:06:19 +0000 (00:06 +0900)]
Scroll smoothly to the right (#4735)
MitarashiDango [Tue, 29 Aug 2017 14:11:28 +0000 (23:11 +0900)]
fix error when single columns mode. (#4734)
Eugen Rochko [Tue, 29 Aug 2017 14:11:05 +0000 (16:11 +0200)]
Serialize ActivityPub alternate link into OStatus deletes, handle it (#4730)
Requires moving Atom rendering from DistributionWorker (where
`stream_entry.status` is already nil) to inline (where
`stream_entry.status.destroyed?` is true) and distributing that.
Unfortunately, such XML renderings can no longer be easily chained
together into one payload of n items.
Akihiko Odaki [Tue, 29 Aug 2017 12:16:21 +0000 (21:16 +0900)]
Do not scroll the columns area due to redirection (#4541)
Commit
9d1f8b9d6af1d384a4dd68bc6353a2fde5735b33 scrolls the columns area
when the route changes since the user is likely to want to see the
rightmost column in such cases.
However, redirection is automatic and does not indicate users' intension.
Do not scroll the columns area due to one.
abcang [Mon, 28 Aug 2017 20:23:44 +0000 (05:23 +0900)]
Generalized the infinite scrollable list (#4697)
unarist [Mon, 28 Aug 2017 20:08:11 +0000 (05:08 +0900)]
Fix Delete activity handling when the status has been reblogged (#4729)
unarist [Mon, 28 Aug 2017 19:38:59 +0000 (04:38 +0900)]
Fix deletion of status which has been reblogged (#4728)
abcang [Mon, 28 Aug 2017 17:12:09 +0000 (02:12 +0900)]
rescue HTTP::ConnectionError in RemoteFollowController#create (#4726)
Lynx Kotoura [Sun, 27 Aug 2017 23:16:49 +0000 (08:16 +0900)]
Add japanese translations for shorten display of large numbers (#4722)
Lynx Kotoura [Sun, 27 Aug 2017 22:01:07 +0000 (07:01 +0900)]
Adjust "signed in as" pages (#4720)
* Adjust "signed in as" pages
Fix min-width
Set width of .account-header .name
To apply text-overflow and overflow settings
Set overflow for detailed-status__display-name
* Remove trailing whitespace
Lynx Kotoura [Sun, 27 Aug 2017 21:59:51 +0000 (06:59 +0900)]
Adjust public profile pages (#4713)
* Adjust account-grid in public profiles
Full-width card on mobile UI. Set break-word for long name and ID. Fix margin.
* Reduce padding-bottom of public profiles
* Revive next prev buttons in mobile public profiles
In followers followees pages.
* Revert break-word for username
* Fix overflow of display_name
Need re-setting text-overflow and overflow in display: block;
Eugen Rochko [Sun, 27 Aug 2017 15:04:45 +0000 (17:04 +0200)]
Shorten display of large numbers on public profiles (#4711)
mayaeh [Sun, 27 Aug 2017 15:03:27 +0000 (00:03 +0900)]
Add japanese translations for Pinned statuses based on pawoo. (#4717)
Add japanese translations for pin_errors.
Eugen Rochko [Sun, 27 Aug 2017 11:35:18 +0000 (13:35 +0200)]
Adjust RTL styles (#4712)
unarist [Sun, 27 Aug 2017 11:35:01 +0000 (20:35 +0900)]
Allow Symbol keyed Hash in LinkedDataSignature (#4715)
SerializarbleResource#as_json serializes to Symbol keyed Hash, but current
implementation of LinkedDataSignature expects String keyed Hash.
So it generates broken payload.