Commit Graph

983 Commits

Author SHA1 Message Date
Sean Billig 573d7096f3
Merge pull request #372 from christianbundy/block-unblock
Add block and unblock to author profile
2020-03-28 15:51:24 -07:00
Christian Bundy 7e22829578 Fix own profile error
Problem: A `null` relationship represents when it's your profile, which
isn't very intuitive. It causes an error when we try to check for the
`blocking` and `following` properties, which don't exist on `null`.

Solution: Instead of `null`, set a `me` property to tell whether this
relationship is our own profile.
2020-03-28 13:32:02 -07:00
Christian Bundy b629727e4f
Merge pull request #373 from sbillig/docs
minor doc fixes; add gh cli instructions
2020-03-28 12:35:39 -07:00
sean billig 974fb7fc07 minor doc fixes; add gh cli instructions 2020-03-28 11:34:04 -07:00
Christian Bundy e7bd3ed305 Add block and unblock to author profile
Problem: We have a way to follow and unfollow, but there's no way to
block or unblock. Also if you go to the profile of a blocked peer, their
posts still show up.

Solution: Add block and unblock and hide messages from blocked peers on
their profile page.

Fixes: https://github.com/fraction/oasis/issues/370
2020-03-28 10:03:31 -07:00
Sean Billig 033dbede33
Merge pull request #363 from christianbundy/type-defs
Add TypeScript definitions for better guardrails
2020-03-27 19:19:17 -07:00
Sean Billig 0c5116ad0c
Merge branch 'master' into type-defs 2020-03-27 19:10:35 -07:00
Sean Billig 4aa2841247
Merge pull request #339 from christianbundy/add-auto-hops
Automatically connect to replicated peers
2020-03-27 17:20:18 -07:00
wuhei 6d396c16cc typos 2020-03-28 00:04:10 +01:00
Sean Billig e96486b1d0
Merge pull request #366 from christianbundy/fix-double-channel
Avoid processing popular posts twice
2020-03-27 14:51:02 -07:00
Jonathan Dahan f3644354ac
Merge pull request #368 from christianbundy/add-contributing-maintaining
Add contributing and maintainting documents
2020-03-27 17:34:55 -04:00
Christian Bundy 4091fce767 Fix linter problems
Problem: This doesn't pass the linter.

Solution: Run `npm run fix` and disable the spell-checker when we
define language names.
2020-03-27 14:14:39 -07:00
Christian Bundy 3627ce4658 Fix CSpell error in example typo
Problem: The sample typo in `docs/contributing.md` was failing our
spell-check test.

Solution: Disable the spell-chack on that line.
2020-03-27 13:47:50 -07:00
Christian Bundy 927c356303 Add contributing and maintainting documents
Problem: We had our contract in `contributing.md` but that didn't really
give actionable information on how to contribute or how to maintain this
project.

Solution: Move contract to `contract.md` and start documents for
contributing and maintaining.
2020-03-27 12:41:51 -07:00
wuhei b27b6241f2 Italian translation, changed a string in the Spanish translation 2020-03-27 19:12:49 +01:00
Sean Billig 288d5f10fa
Merge pull request #341 from christianbundy/root-channel
Don't append channel to non-root posts
2020-03-27 10:46:07 -07:00
Sean Billig e53003fbd5
Merge pull request #365 from christianbundy/add-chat
Add Matrix chat room to readme
2020-03-27 10:44:29 -07:00
Christian Bundy 5b2ae2a219 Avoid processing popular posts twice
Problem: Messages are being fetched with `post.get()`, which runs the
`transform()` function to decorate them with Markdown/etc, but then
they're being passed through `transform()` a second time at the end of
the function. This is inefficient and applies side-effects (like adding
channels to the post) twice.

Solution: Remove the final `transform()` so that these posts are only
decorated once.

Fixes: https://github.com/fraction/oasis/issues/358
2020-03-27 09:43:57 -07:00
Christian Bundy 7152d42a5c Add Matrix chat room to readme
Problem: There's a chat room but it isn't in the readme.

Solution: Put it in the readme.

Fixes: https://github.com/fraction/oasis/issues/318
2020-03-27 09:24:13 -07:00
Christian Bundy 555249277f Remove @ts-ignore workaround
Problem: The workaround is no longer necessary now that the new version
of @types/koa has been published. Thanks to @peterblazejewicz,
@harryparkdotio, and @orta for the quick upstream fix.

Solution: Run `npm update` and remove the `@ts-ignore` comment.
2020-03-27 09:13:31 -07:00
Christian Bundy fb23d25217 Add more type definitions to reduce implicit any
Problem: We still have heaps of implicit 'any' types that our linters
can't make sense of.

Solution: Keep on adding type documentation! Slowly but surely I'm
hoping we can reduce the amount of untyped JavaScript in the repo.
2020-03-27 08:21:40 -07:00
Christian Bundy defb57321e Merge branch 'master' of github.com:fraction/oasis into type-defs 2020-03-27 08:02:44 -07:00
Christian Bundy 4883efbc2c
Merge pull request #362 from nickwynja/inline-header-fix
Revert selector to span to fix lock alignment
2020-03-27 07:21:07 -07:00
Nick Wynja bae675f039 Revert selector to span to fix lock alignment 2020-03-27 10:11:11 -04:00
Nick Wynja 8efe326cdf
Merge pull request #357 from christianbundy/consistent-ui
Fix UI inconsistencies
2020-03-27 09:44:47 -04:00
Christian Bundy 3ada298d53
Merge pull request #360 from msiqu/patch-1
fix follow button link for non-english languages
2020-03-26 17:46:15 -07:00
mario siqueira acba28af67 Prettiered 2020-03-26 18:13:38 -03:00
Mario Siqueira 2c86eb5cf1
fixed the fix
Previous fix did not take into account "unfollow". Now it does
2020-03-26 17:56:10 -03:00
Mario Siqueira a5ae700b92
fix follow button link for non-english languages
currently if non-english language is set in configuration, the FOLLOW button doesn't work (it takes the i18n translation as part of the URL).
2020-03-26 16:48:16 -03:00
Christian Bundy 43c8310abf Reduce indent border size
Problem: The indent borders take up lots of space and visual attention
when you're in highly-nested threads.

Solution: Reduce their size by half.
2020-03-26 11:22:24 -07:00
Christian Bundy 3e6489db67 Fix CSRF and DNS rebind vulnerabilities
Problem: Since we don't validate the referer hostname or the HTTP host
header, an attacker who can trick an Oasis user into clicking a
malicious link can submit HTTP requests to localhost, potentially
publishing messages or extracting information.

Solution: Ensure that all requests have valid hostnames in the referer
to protect against CSRF attacks, ensure that all requests have valid
hostnames in the HTTP header to protect against DNS rebind attacks, and
ensure that errors are only output in the HTTP response when we're sure
that the request is valid.
2020-03-26 10:13:03 -07:00
Christian Bundy 9ddb23b501 Fix UI inconsistencies
Problem: After some fantastic new pull requests, there are some
inconsistencies between how each author implemented different features.

Solution: Fix regressions and iron out inconsistencies. This fixes the
heart highlight bug, uses the same indentation for Summaries + Threads +
the thread view, tightens up the CSP now that we don't need
unsafe-inline styles, and uses a neutral tone for indents with the same
width as the blockquote border (so far violet has been reserved for
private messages).
2020-03-25 16:03:51 -07:00
Jacob Karlsson 7e1b38394b Fix style 2020-03-25 21:31:23 +01:00
Jacob Karlsson e8b2a2d163 Merge branch 'master' of github.com:fraction/oasis into hide-forks 2020-03-25 21:24:09 +01:00
Jacob Karlsson 86450d49ce Auto-expand ancestors of the linked post 2020-03-25 21:09:04 +01:00
Jonathan Dahan b765a0defd
Merge pull request #356 from christianbundy/fix-link
Fix Markdown link bug
2020-03-25 14:49:30 -04:00
Christian Bundy c4aaf47a06 Fix Markdown link bug
Problem: Some sigil links were broken because of a bug in SSB-Markdown
that was recently resolved.

Solution: Upgrade SSB-Markdown.

Fixes: https://github.com/fraction/oasis/issues/242
2020-03-25 10:15:26 -07:00
Jonathan Dahan 9bbf082304
Merge pull request #342 from christianbundy/connected-only
Only show connected peers in settings
2020-03-25 10:01:18 -04:00
Jonathan Dahan ef4678064a
Merge pull request #345 from christianbundy/remove-issue-version
Remove version question from issue template
2020-03-25 09:59:08 -04:00
Christian Bundy 3f335eedbf
Merge pull request #353 from nickwynja/threads
Introduces Threads
2020-03-25 06:36:54 -07:00
Nick Wynja 95e7a31dcd lint fix 2020-03-25 09:05:53 -04:00
Sean Billig 03a6a143cd
Merge pull request #349 from christianbundy/fix-theme
Fix theme using capitalization
2020-03-24 19:22:47 -07:00
Christian Bundy 4653bdb01f Fall back to TCP socket if Unix connection fails
Problem: We're only attempting connection via Unix sockets, but some SSB
services may choose to only listen on TCP sockets.

Solution: Start by attempting connection to Unix socket and fallback to
the TCP socket remote if that doesn't work, before just trying to start
our own SSB service.
2020-03-24 19:06:23 -07:00
Nick Wynja 48f8108340 Merge master 2020-03-24 21:00:38 -04:00
Christian Bundy e1288c8a08
Merge pull request #348 from nickwynja/sticky
Text-based browser spacing issues and sticky headers enhancement
2020-03-24 17:05:49 -07:00
Christian Bundy 9ee58369cc Add .mailmap for canonical identities
Problem: Some of us have a few different emails, which show up as
different people when we commit. It would be great to merge these Git
identities so that they don't show up as different people.

Solution: Use `.mailmap`, which lets people choose their favorite
canonical email address for this project.
2020-03-24 16:59:20 -07:00
Nick Wynja a96aaa5012 Merge conflict 2020-03-24 19:57:22 -04:00
Nick Wynja 3280956d3b Adds sticky section headers
While reading long conversations, it's easy to get a bit lost as to whom
 is saying what. With some basic CSS, we can keep the header of the post
 sticky so you can see more context above the message.
2020-03-24 19:40:12 -04:00
Nick Wynja fa874e8f4f Fixes spacing issues in text-based browsers
Closes #329; Addresses spacing issues in text-based browsers by introducting block
elements and non-breaking spaces.
2020-03-24 19:40:12 -04:00
Christian Bundy a4ccae8833 Fix theme using capitalization
Problem: Capitalization in "sulphurPool" was causing a file not found.

Solution: Replace "sulphurPool" with "sulphurpool".
2020-03-24 14:55:50 -07:00