Commit Graph

7451 Commits (master)

Author SHA1 Message Date
multiple creatures 518b2ff788 include "do not interact" as a trigger for infering no replies mode 2019-12-12 11:37:09 -06:00
multiple creatures 5464e5a0b7 avoid letting folks kick themselves out of their own threads 2019-12-12 11:12:43 -06:00
multiple creatures 1633268293 avoid posting when body only has mentions it 2019-12-12 11:10:11 -06:00
multiple creatures 5cf03910f7 use `origin` prop for imported announces 2019-12-12 10:08:41 -06:00
multiple creatures e52ed3b6e9 only pass account id into scope instead of whole account object 2019-12-12 09:53:50 -06:00
multiple creatures dc8e5eae2c better key constraints on imported statuses, sharekeys, & normalized statuses tables 2019-12-12 05:38:08 -06:00
multiple creatures 7d0e47f837 periodically clean up filter caches 2019-12-12 05:28:56 -06:00
multiple creatures 9211a9ef58 add `thread:kick` & `thread:unkick` bangtags, alias them to `kick` & `unkick` 2019-12-12 04:49:50 -06:00
multiple creatures b36ab3443a revise post service to check for kicked status before posting, handle out-of-body mentions, & let the post worker deal with finalizing + delivery 2019-12-12 04:48:28 -06:00
multiple creatures a8713ee8b7 add ability for post authors to kick jerks out of their threads 2019-12-12 04:38:56 -06:00
multiple creatures 90373b7f31 use service account helper in janitor scheduler 2019-12-12 04:36:05 -06:00
multiple creatures 114fc3cdd0 simplify the asynchronous post worker 2019-12-12 04:33:51 -06:00
multiple creatures 49c7092f7e make it possible to process & send out mentions in separate steps 2019-12-12 04:32:38 -06:00
multiple creatures 2be54072b1 add service account helper to make announcer & janitor posting easier 2019-12-12 04:29:25 -06:00
multiple creatures a8b4d5316c remove duplicate post distribution calls 2019-12-12 04:24:07 -06:00
multiple creatures dd7e1fb2b0 remove unused filter helper 2019-12-11 23:54:54 -06:00
multiple creatures dae7cda4ab move sharekeys & import metadata to own tables 2019-12-11 22:00:22 -06:00
multiple creatures 9a435494c2 move normalized text into own table 2019-12-11 20:04:53 -06:00
multiple creatures 3dc62460b0 use `set` instead of `setex` 2019-12-11 19:21:47 -06:00
multiple creatures 302f532440 fix newlines in normalized text + make `tag` & `tags` headings mean the same thing 2019-12-10 05:33:44 -06:00
multiple creatures 2da941beaa simplify normalizer & add headings 2019-12-10 05:18:50 -06:00
multiple creatures 533dd6d985 `include` looks nicer 2019-12-10 05:17:51 -06:00
multiple creatures 859763ea02 handle syntax for `tags:` as `tags: tag1 tag2 "tag3" ...` 2019-12-10 03:52:54 -06:00
multiple creatures 61e3a90e50 add regex shortcut descriptions for filters 2019-12-10 03:44:43 -06:00
multiple creatures 91545d4ec4 make query expander convert `heading: regex to match` shortcut into regex form 2019-12-10 03:26:26 -06:00
multiple creatures 0dfc7b1b64 include headings `tags`, `subj`, `text`, & `desc` in normalized text so they can be individually matched in tl filters 2019-12-10 03:26:22 -06:00
multiple creatures 13f4959034 add accessibility option to make everything lowercase 2019-12-10 03:04:05 -06:00
multiple creatures 41b0d10e88 remove duplicate domain check 2019-12-10 02:43:33 -06:00
multiple creatures ae16b3b466 do not override timestamps when syncing 2019-12-10 02:36:38 -06:00
multiple creatures 5af281b057 add synchronize button to account manager 2019-12-10 02:36:38 -06:00
multiple creatures 882d089dd0 add cooldown to post sync just in case 2019-12-10 02:36:38 -06:00
multiple creatures 002fb7fbb7 synchronize remote posts on first follow 2019-12-10 02:36:38 -06:00
multiple creatures 0512709a77 set `resource_options` to empty hash if `nil` 2019-12-10 02:36:38 -06:00
multiple creatures 7fe078cf50 remove no-longer-useful context checks from autoreject helper 2019-12-10 02:36:33 -06:00
multiple creatures 5242ebf563 forgot to join domain parts 2019-12-08 03:12:10 -06:00
multiple creatures 307c1ec1de forgot to add the redisable module 2019-12-07 23:19:10 -06:00
multiple creatures 6eebf636ba don't count faves as indicators for known accounts 2019-12-07 23:18:17 -06:00
multiple creatures 6fa9c3eb1b add option to toggle whether regex filters should be applied to mentions 2019-12-07 22:13:32 -06:00
multiple creatures feceb543fd make sure filter cache gets wiped when a filter is deleted 2019-12-07 20:48:38 -06:00
multiple creatures 5d7349f2ab domain policies also now get applied to subdomains 2019-12-07 20:17:07 -06:00
multiple creatures 2765793f7d make domain policies templatable 2019-12-07 19:46:11 -06:00
multiple creatures 174f588004 get rid of unneccesary protocol check from upstream 2019-12-07 18:29:28 -06:00
multiple creatures 776d558ff9 skip posts that don't actually exist 2019-12-07 18:26:30 -06:00
multiple creatures 2662240771 add drafts shortcut to web ui 2019-12-06 13:03:52 -06:00
multiple creatures 0ae1bc9796 make posts with `#``self.draft` scope private by default 2019-12-06 12:28:50 -06:00
multiple creatures ac5fb845af use `self.draft` scope tag for draft posts & add draft header 2019-12-06 12:08:38 -06:00
multiple creatures 996cb6818f avoid resurfacing old posts that are being streamed into the world timeline 2019-12-05 13:09:26 -06:00
multiple creatures 04d55aab4a use keyword argument for `delayed` flag 2019-12-05 13:06:20 -06:00
multiple creatures 98339c8fb3 use `update` to change `curated` flags 2019-12-05 13:05:46 -06:00
multiple creatures bc81d32c2c when someone adds/changes a filter retroactively apply it to their home & list timelines 2019-12-03 17:06:47 -06:00
multiple creatures bcb45d2cbe add `all` & `all_cached` props to feed model 2019-12-03 17:06:47 -06:00
multiple creatures e63192cbb1 clear filtered status cache when a domain policy gets reset 2019-12-03 17:06:47 -06:00
multiple creatures 04ec25754b cache list of already-filtered statuses 2019-12-03 17:06:43 -06:00
multiple creatures 5475adfbc9 add `size` property to feed model 2019-12-03 15:23:57 -06:00
multiple creatures 65afa0fe01 fix `thread:sharekey:sync` by spelling `earliest` correctly 2019-12-03 00:52:33 -06:00
multiple creatures 053c748b31 user invitations should now (by)pass the spam check 2019-12-02 22:00:12 -06:00
multiple creatures 29c54ac59b hide media captions under content notes when not expanded 2019-12-02 21:46:10 -06:00
multiple creatures e14a7b0c36 pruning thread leaves can cause data loss - let's not do that 2019-12-02 21:37:12 -06:00
multiple creatures 59b8f3b6a3 correctly detect domain policy changes 2019-12-01 10:15:05 -06:00
multiple creatures 3bef7b280f `update` -> `update!` 2019-12-01 07:04:07 -06:00
multiple creatures a11e99a15b raise video & audio quality 2019-11-29 17:32:51 -06:00
multiple creatures e9e8528432 `compand` apparantly screws up dynamic range - get rid of that 2019-11-29 16:29:29 -06:00
multiple creatures f18e6229b7 use static waveform for audio uploads & explicitly accept `audio/mp3` 2019-11-29 14:51:03 -06:00
multiple creatures c3c2ef2190 actually load the css on status pages (oops) 2019-11-29 14:30:48 -06:00
multiple creatures 91cac4c890 temporarily revert confirming boosts with no alt text to work around breaking modal bug 2019-11-26 22:29:57 -06:00
Eugen Rochko a6ea38d07b [Glitch] Fix list not being automatically unpinned when it returns 404 in web UI
Port 92b572e2a3830086497900fa78dcfcc2ae919e33 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-26 22:21:43 -06:00
Thibaut Girka 769661c004 Properly handle unboosting statuses from detailed view
Fixes #1106
2019-11-26 22:20:24 -06:00
Eugen Rochko cd1e1f28b8 Change priority of delete activity forwards for replies and reblogs (#11002)
Fix #11001
2019-11-19 16:49:57 -06:00
Eugen Rochko 001b0cbbc1 Fix position of search icon (#11003) 2019-11-19 16:49:51 -06:00
Eugen Rochko b96912e0aa Fix more issues in the light theme (#10996)
* Fix tabs bar in light theme

* Fix borders on small screens in light theme
2019-11-19 16:49:43 -06:00
Eugen Rochko a8dfe4e490 Change full logo to use primary text color of the given theme (#10994)
* Change full logo to use primary text color of the given theme

* Fix colors of public layout header in light theme
2019-11-19 16:49:06 -06:00
Eugen Rochko c66472bd66 Improve light theme (#10992) 2019-11-19 16:48:59 -06:00
Eugen Rochko 3b610926fe Fix RTL layout not being RTL within the columns area (#10990) 2019-11-19 16:48:50 -06:00
Eugen Rochko 160ed28c30 Fix some React warnings (#10989) 2019-11-19 16:48:43 -06:00
ThibG a64b016195 Fix display of alt-text when a media attachment is not available (#10981) 2019-11-19 16:48:30 -06:00
ThibG 117686fd00 Put poll options behind content warnings (#10983)
* Put poll options behind CWs in WebUI

* Put polls behind CWs on public pages

* Add poll icon to public pages CWs

* Revert to not showing an icon in the CW button
2019-11-19 16:48:13 -06:00
mayaeh 9dcf02b3e0 Fix emoji-button appearing above privacy-dropdown (#11027) 2019-11-19 16:43:52 -06:00
Eugen Rochko 584a63134a Fix login sometimes redirecting to paths that are not pages (#11019)
Fix #11016
2019-11-19 16:43:38 -06:00
Thibaut Girka 2b7b9f6ddb Minor cleanup 2019-11-19 16:41:31 -06:00
Thibaut Girka e02786eb56 Fix unboost confirmation dialog not showing up on detailed statuses 2019-11-19 16:41:31 -06:00
Thibaut Girka f98dfefb35 Add option to display a warning before boosting toots lacking media descriptions 2019-11-19 16:41:28 -06:00
Thibaut Girka c28703fafd Add DM conversations mode similar to upstream 2019-11-19 16:40:34 -06:00
Eugen Rochko 48facd225b [Glitch] Fix not being able to directly switch between list timelines in web UI
Port 5bfd802c571a2793bb59ba4540407a6147e82f88 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 16:39:22 -06:00
ThibG 2c2b0dcb84 [Glitch] Fix “mark as sensitive” not being used in delete & redraft
Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc
2019-11-19 16:39:22 -06:00
Jeong Arm 924e535779 [Glitch] Scroll to compose form when focus
Port 8f3c32e29cf13a84b2f0a58da0ab0c99a88caad5 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 16:39:22 -06:00
Thibaut Girka b2f3fd782b [Glitch] Fix refreshing featured toots when the new collection is empty
Port d34a3a2cc72c12ae5119150a8ac18dd8fb7a4e6b to glitch-soc
2019-11-19 16:39:22 -06:00
Eugen Rochko 23d379e007 Add waiting time to list of pending accounts in admin UI (#10985) 2019-11-19 16:38:32 -06:00
Yamagishi Kazutoshi 968de2cfc2 Fix sass-lint config (#10982) 2019-11-19 16:38:32 -06:00
Wenceslao Páez Chávez 396a4e057a Fix overlap of emoji button on search popup (#10978) 2019-11-19 16:38:32 -06:00
Eugen Rochko 68621fad93 Fix not being able to directly switch between list timelines in web UI (#10973) 2019-11-19 16:38:32 -06:00
ThibG df2518da9e Fix “mark as sensitive” not being used in delete & redraft (#10980) 2019-11-19 16:38:32 -06:00
Takeshi Umeda d602531a8f Fix emoji picker being always displayed (#10979)
* Fix emoji picker being always displayed

* Remove duplicate content with other pull-requests
2019-11-19 16:37:35 -06:00
Jeong Arm 168b4cf1b0 Scroll to compose form when focus (#10970)
* Scroll to compose form when focus

* Get rid of constructor
2019-11-19 16:37:35 -06:00
ThibG 176b48c6dc Cleanup various controllers (#10972)
* Remove skip_session! as it is not supported in Rails 5

* Minor cleanup in StreamEntriesController

* Remove redundant mark_cacheable! calls
2019-11-19 16:37:33 -06:00
ThibG 86d8fba855 Fix potential private status leak (#10969) 2019-11-19 16:35:05 -06:00
ThibG 43007ae25f Fix refreshing featured toots when the new collection is empty (#10971)
Fixes #10945
2019-11-19 16:32:40 -06:00
ThibG 61d29f59fb Do not misattribute inlined boosts if `attributedTo` isn't present (#10967)
* Do not misattribute inlined boosts if `attributedTo` isn't present

Fixes #10950

* Fix tests
2019-11-19 16:32:40 -06:00
Eugen Rochko 3873a9e9af Fix margins on profile metadata in single column mode (#10961) 2019-11-19 16:32:40 -06:00
Eugen Rochko 4a7267c3a9 Change reblogs counter to be updated when boosted privately (#10964) 2019-11-19 16:32:40 -06:00
Eugen Rochko fbf08920a0 Refactor all ActivityPub deliveries to be serialized and signed through one concern (#10966) 2019-11-19 16:32:36 -06:00
Thibaut Girka 82bd234c3c Fix display of alt-text when a media attachment is not available 2019-11-19 16:26:35 -06:00
Thibaut Girka 51ae1816da Fix CW field automatically getting the focus when it is always enabled 2019-11-19 16:26:35 -06:00
Eugen Rochko 2982211167 Fix poll API not requiring authentication on non-public polls (#10960)
* Fix poll API not requiring authentication on non-public polls

That API does not reveal the content of the status, i.e. the question
itself, nor who the author is, nor which status it belongs to, but it
does reveal the poll options and how many answers they got

Fix #10959

* Add test
2019-11-19 16:25:28 -06:00
Eugen Rochko 0ba9ba56f3 Add profile directory link to single column navigation panel (#10963) 2019-11-19 16:25:28 -06:00
Jeong Arm 2aee833a22 Add missing Korean translations (#10962)
And change some word.
2019-11-19 16:24:22 -06:00
ThibG 0fd8575fff Handle blank poll options more gracefully (#10946)
Pleroma currently allows (erroneously imho) empty poll options, that is,
options with an empty (but existing) `name`.
2019-11-19 16:22:51 -06:00
Jeong Arm eb915cd89c [Glitch] Fix profile picture preview
Port e13e4b28db7e066d1f6f21e306aa95b97c3ccd99 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 16:21:50 -06:00
Jeong Arm 5551fda1fa Fix profile picture preview (#10931) 2019-11-19 16:18:09 -06:00
Takeshi Umeda d85d4c1f1f Improvement variable height in single column layout (#10917)
* Improvement variable height of compose and navigation panel in single column layout

* Fix wrong quotes and missing commas
2019-11-19 16:18:09 -06:00
Hanage999 28303672dc Center 2-columns layout without side effect (#10915) 2019-11-19 16:18:08 -06:00
Lady Lumb fde6aa7922 Added env variables for max image and video size. [Monsterfork: partially revert to `glitch-soc` media model]
I changed the IMAGE_LIMIT and VIDEO_LIMIT variables to read from the env, or use default if not set in the env, to make it easier to change this on an instance by instance basis and make it persistent across updates.
2019-11-19 16:08:08 -06:00
Thibaut Girka 5f5ca12f6b Fix expanding status from menu modal in glitch-soc
Fixes #1085
2019-11-19 15:58:46 -06:00
Eugen Rochko eee0ef3249 Change links in right panel to open in the same tab (#10848)
For Rambox compatibility
2019-11-19 15:56:10 -06:00
ThibG d7a38dcfda Fix React warning about legacy lifecycle calls and sensitive status resetting (#10872) 2019-11-19 15:56:10 -06:00
Takeshi Umeda 8fe650ea4d Fix safari post field display issue in single column layout (#10883) 2019-11-19 15:53:32 -06:00
Alix Rossi c18c9f4312 i18n: Update Corsican front-end translation (#10884) 2019-11-19 15:53:32 -06:00
mayaeh 84b70ebf55 Update Japanese translations. (#10875)
run yarn manage:translations ja && i18n-tasks add-missing ja
2019-11-19 15:53:28 -06:00
Aditoo17 d29c7c7dc3 I18n: Update Czech translation (#10874) 2019-11-19 15:43:02 -06:00
Thibaut Girka 6bc293f647 Raise exception when attempting to serialize local-only statuses 2019-11-19 15:43:02 -06:00
slice 5afe3032d5 Fix incorrect PropType in Glitch AutosuggestInput 2019-11-19 15:43:02 -06:00
slice 4373ff0614 Remove isRequired from Glitch ReplyIndicator status
This can be null under normal circumstances, which isRequired doesn't
like.
2019-11-19 15:43:02 -06:00
Thibaut Girka 119852adab Truncate long URLs while providing alt text for inline images 2019-11-19 15:43:02 -06:00
Thibaut Girka c0a29cdb71 Translate incoming remote img tags by a link 2019-11-19 15:42:59 -06:00
Eugen Rochko a78abedd3d [Glitch] Use `<use />` to render transparent SVG logo instead of inserting it
Port SCSS changes from 8d5dcc9301c422f131167574da550f8cdaedb73f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 15:38:37 -06:00
ThibG 556fedba9f Fix web push notifications for polls (#10864)
Fixes #10861
2019-11-19 15:37:21 -06:00
Eugen Rochko 67de0dcca9 Refactor footers in web UI into a single component (#10846) 2019-11-19 15:37:15 -06:00
abcang b08d29418c Display notifications count on a new single column (#10859) 2019-11-19 15:33:11 -06:00
Eugen Rochko 191a993eb3 Use `<use />` to render transparent SVG logo instead of inserting it (#10845) 2019-11-19 15:33:07 -06:00
Takeshi Umeda 7c22a82938 Fix poll visibility on public pages (#10817)
* Fix poll visibility on public pages

* Revert "Fix poll visibility on public pages"

This reverts commit 54a9608add6f855bc6337fe3c65eaee7ba13db49.

* Revert "Change poll options to alphabetic letters when status text is hidden"

This reverts commit c53d67326201b2061990b1874a3547c3647f50d2.
2019-11-19 15:33:04 -06:00
Thibaut Girka a6888a2d9d Fix video player regressions introduced by blurhash merge 2019-11-19 15:32:53 -06:00
Thibaut Girka 0564c07f50 [Glitch] Add keyboard shortcut to hide/show media
Port a472190729782f31731674c626c07af483fe9c7f and 988342a56cb58da9ac660eec3e55c3bcbbd6269b to glitch-soc
2019-11-19 15:32:48 -06:00
Neil Moore df29ca91bd Create new click handler for status__expand area in status (#10837)
This click handler only activates on left-click, resolving #10798.
This matches behavior in status_content.js, as added in #536
2019-11-19 15:32:39 -06:00
Eugen Rochko a79c9d86d1 Fix null error in status component when determining showMedia state (#10838)
* Fix null error in status component when determining showMedia state

Also update the showMedia value if the status passed to the
component changes

* Refactor media visibility computation into a defaultMediaVisibility function

* Fix default media visibility with reblogs
2019-11-19 15:32:34 -06:00
Hanage999 e228ec1d09 Fix wrong redirect from getting started to home in advanced Web UI (#10839)
* update Ruby to 2.5.3

* Link to Getting Started will not redirect to Home in multi-column UI (https://github.com/tootsuite/mastodon/pull/10835)
2019-11-19 15:32:26 -06:00
Eugen Rochko 4da0c1b25e Improvements to the single column layout (#10835)
* Improvements to the single column layout

- Add follows and followers link to the right panel
- Increase margins around separators in right panel
- Add follow requests link with counter when account is locked to right panel

* Redirect from getting started to home when navigation panel is visible
2019-11-19 15:32:18 -06:00
ThibG 62f13e9f9a Add a keyboard shortcut to hide/show media (#10647)
* Move control of media visibility to parent component

* Add keyboard shortcut to toggle media visibility
2019-11-19 15:32:13 -06:00
Mélanie Chauvel (ariasuni) 21fd31271c Avoid cutting bottom of letters of last paragraph of statuses (#10821) 2019-11-19 15:31:55 -06:00
Eugen Rochko e9a90ca12a Add responsive panels to the single-column layout (#10820)
* Add responsive panels to the single-column layout

* Fixes

* Fix not being able to save the preference

* Fix code style issues

* Set max-height on the compose textarea and add a link to relationship manager
2019-11-19 15:31:27 -06:00
りんすき 58a63aef1f [Glitch] Fix composer route opening when not needed
Port c1e77b56a9 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 13:43:44 -06:00
Thibaut Girka 74b18e0d26 Use Sec-WebSocket-Protocol instead of query string to pass WebSocket token
Inspired by https://github.com/kubevirt/kubevirt/issues/1242
2019-11-19 13:43:21 -06:00
ThibG 64a68bf2ea Improve streaming server security (#10818)
* Check OAuth token scopes in the streaming API

* Use Sec-WebSocket-Protocol instead of query string to pass WebSocket token

Inspired by https://github.com/kubevirt/kubevirt/issues/1242
2019-11-19 13:43:02 -06:00
Eugen Rochko 7952281bbb Various improvements to single column layout (#10809)
- Add potential side panels to single column layout
- Hide FAB on large screens
2019-11-19 13:36:09 -06:00
ThibG e4731a4d70 Fix possible race condition when processing statuses (#10815) 2019-11-19 13:36:01 -06:00
Thibaut Girka b49fdce784 Do not share a single Redcarpet::Markdown object across threads
There are apparently thread-safety issues: https://github.com/vmg/redcarpet/pull/672
2019-11-19 13:35:52 -06:00
nzws f6bd1629b9 [Glitch] Fix stacking order of emoji picker
Port 8a378d4c3d8bd74f3070af0b70725da4a6d10375 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-19 13:35:28 -06:00
ThibG 77323f419c Move signature verification stoplight to the requests themselves (#10813)
* Move signature verification stoplight to the requests themselves

This avoids blocking messages from known keys for 5 minutes when only one fails…

* Put the stoplight on the actual client IP, not a potential reverse proxy
2019-11-19 13:34:56 -06:00
ThibG a8ae1e4855 Retry ActivityPub inbox delivery on HTTP 401 and 408 errors (#10812)
HTTP 401 responses returned by Mastodon's inbox controller may
be temporary if, for instance, the requesting user's actor/key json
could not be retrieved in a timely fashion. This changes allow retries
instead of dropping the message entirely.

Also added HTTP 408 as that error is by nature temporary.
2019-11-19 13:34:01 -06:00
Eugen Rochko 918b7866dd Add `forceSingleColumn` prop to `<UI />` (#10807) [Monsterfork adjustment: keep ordering]
* Move TabsBar rendering logic from CSS to the ColumnsArea component

* Add forceSingleColumn mode

* Add unread notifications counter to tabs bar

* Add toggle to control `forceSingleColumn`

* Increase paddings in mobile layout responsively at large sizes
2019-11-19 13:31:33 -06:00
nzws 0041fafd54 Fix stacking order of emoji picker (#10801) 2019-11-19 13:27:43 -06:00
dxwc e07991df26 i18n: Complete frontend Bengali translation (#10800)
* i18n: Complete frontend Bengali translation

* run yarn manage:translations
2019-11-19 13:24:44 -06:00