Commit Graph

7324 Commits

Author SHA1 Message Date
Darius Kazemi 3ddd4448b1 WIP 2022-12-30 19:51:58 -08:00
Darius Kazemi 7100c04d0c Fixing initial content width 2022-12-30 19:42:36 -08:00
Darius Kazemi 2d6a98a43b Make navigation panel retractable on mobile and tablet 2022-12-30 18:38:35 -08:00
Darius Kazemi 6231d4b7ee Change hashtag icon to search
Because this is where search lives.
2022-12-30 03:21:15 -08:00
Darius Kazemi 050e6165cf Fix linter error 2022-12-30 03:21:10 -08:00
Darius Kazemi 2634fc5054 Fixing linter errors 2022-12-30 03:15:27 -08:00
Darius Kazemi e657bdd27a Getting rid of the top header
Moving the account and post buttons into the side nav bar.
2022-12-30 02:59:31 -08:00
Darius Kazemi 9cfe55cb0a Fixing a PropType 2022-12-30 01:54:07 -08:00
Darius Kazemi 3f944ee936 Fix alignment on gallery items lacking alt text
The icons now are in the lower right and they correct for their relative inset values.
2022-12-30 01:29:07 -08:00
Darius Kazemi 357186376c
Revert About page to v3 static version (#1264)
Major changes in this PR to how the About page is rendered.

* Bringing back the static, serverside-generated About page from v3.
This involved reverting a lot of code and modifying some of the
variables names to match changes in v4.
 * Update the table of contents generator to also parse markdown
* Change a bunch of in-app routing to redirect to the static About page
instead of the React component route
* Incorporate @ClearlyClaire's [open
PR](https://github.com/mastodon/mastodon/pull/20808) for a setting that
lets admins choose to make the explore page their non-logged-in landing
page instead of About (but About is the default)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-12-30 01:00:59 -08:00
Darius Kazemi 97e267bb8c Allow admins to toggle public statistics API 2022-12-29 11:37:06 -08:00
Darius Kazemi dec4afe6d7 Add media missing description icon button class
For custom CSS. Also renaming one of the other related classes.
2022-12-29 10:23:46 -08:00
Darius Kazemi f295633a6e
Add icon on media that lacks alt description (#1261)
A warning icon now appears on media that lacks an alt description.

Also, for admins who want to add custom CSS rules to media that is
missing descriptions, there is now a `.media-missing-description` rule
that can be added to the custom CSS settings so you can do stuff like
this if you want:

Fixes #1165
2022-12-28 23:35:49 -08:00
Darius Kazemi d2e626dd1d
Adding a server setting for default federation (#1258)
There is now a toggle under Administration -> Server Settings ->
Hometown that lets an admin make new accounts default to local-only
privacy for posts. It does not affect current accounts.


![image](https://user-images.githubusercontent.com/266454/209882528-5edd4bd7-5002-4104-8058-f6e638f89453.png)

Fixes #704
2022-12-28 14:59:40 -08:00
Darius Kazemi 4bd06f4eff Linter fix 2022-12-28 14:02:42 -08:00
Darius Kazemi 535c7fd4df Various CSS tweaks 2022-12-28 14:02:00 -08:00
Darius Kazemi 9be13466eb
Fix paragraph formatting in the reply-to box (#1257)
This CSS was accidentally deleted back when I was implementing `Article`
support. Now when you reply to something that has paragraph breaks, the paragraph
breaks render correctly.

Fixes #1241
2022-12-28 13:50:12 -08:00
Darius Kazemi b2ea7f764c
Bring back server privacy settings that were removed in v4.0.0 (#1256)
This PR adds a "Hometown" tab to the "Server Settings" menu for
administrators. I have placed our site-wide RSS default opt-in/opt-out
setting here, and future Hometown-specific site-wide settings will go
there too.

This PR also brings back the site-wide setting for whether users are
default opted in to or out of search engine indexing (thanks @prplecake)
and the site-wide setting for whether the list of discovered servers is
available to the public via the API. Both options are under Server
Settings -> Discovery now.

Fixes #1211

Co-authored-by: prplecake <me@prplecake.com>
2022-12-28 13:19:58 -08:00
Darius Kazemi a5d93111aa
Fix edit history CSS (#1255)
This dropdown now uses the correct background colors in the Macaron
theme.

Also fixed a bunch of linter errors.
2022-12-28 11:40:29 -08:00
Darius Kazemi 6281823df0
Add a user setting to show/hide domains on remote usernames (#1254)
Adds a user toggle in the preferences menu:

> Show full username (including domain) for remote users

It only shortens the username of local accounts. The main reason for this is so that there is a clear visual indicator of who is local on a thread -- this is important for local-only posting reasons. But we've been using it on Friend Camp for 3 years now and it's actually really nice for getting a sense of who is on what server, too.

The bulk of this work was done by Callie on Friend Camp in October 2019.

Fixes #1247
2022-12-28 10:45:04 -08:00
Darius Kazemi 60746ab437
Import/Export Domain Block Lists (#1253)
Adds buttons to Preferences -> Moderation -> Federation that allow moderators to import and export domain-level blocks.

This is coming to a future Mastodon release (I don't know which one) but I wanted to pull it in to Hometown early. Work by @clearlyclaire, @enbylenore, and @tak

Fixes #1164

Co-authored-by: Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Lenore Gilbert <lenore@lenoregilbert.net>
2022-12-27 17:46:53 -08:00
Darius Kazemi ba6a13b0af
Add a clear one-click to open remote profile (#1252)
The user display name on a profile page is now an [underlined hyperlink](https://github.com/hometown-fork/hometown#better-accessibility-defaults) to the actual profile page. An "external link" icon appears if it is a remote url.

Fixes #1251
2022-12-27 17:38:35 -08:00
Darius Kazemi b8802af45c
Revert post timestamps to link to canonical url (#1249)
After much discussion (#1214), I have decided that the solution we are
going with for timestamp-clicking is:

- clicking a post timestamp from most views takes you to the "focus" view for that post, identical to v3 behavior
- clicking the timestamp from the "focus" view opens the link to the canonical post on the server of origin, identical to v3 behavior

This is an application of this patch from the queer.party folks: https://commit.pup.cloud/maff/queer.party/src/branch/master/patches/4.0.0_4-revert-captive-links.patch

Fixes #1214
2022-12-27 17:21:12 -08:00
Darius Kazemi 24a0422945 Make "boosted" button status high contrast
Fixes #1243
2022-12-12 16:13:03 -08:00
Nilesh 5ee505d42e Fix #1236 Increase max length of UserInviteRequest.text from 420 to 5000 2022-12-11 20:37:37 +00:00
Darius Kazemi 57cbfed37e Revert "Random WIP mostly for changing layout, should look and then discard"
This reverts commit 6ceb7f2783.
2022-12-04 12:38:29 -08:00
Darius Kazemi a98750aac0 Merge tag 'v3.5.5+hometown-1.0.8' into hometown-4.0-1.0.8-merge 2022-12-04 12:18:18 -08:00
Darius Kazemi 5732db7348 Merge tag 'v4.0.2' into hometown-4.0-merge 2022-12-04 12:01:49 -08:00
Darius Kazemi 427596ab01 Adding a `norss` user preference
There is now a `norss` user preference for a user to opt out of having an RSS feed of their public posts. This operates on the exact same logic as the existing `noindex` for the search engine opt-out: the admin can check a box in Site Settings for a default setting for users. If a user has never touched their RSS opt-out setting then it is equal to whatever the default is. But individual users can override the default in their Preferences -> Other menu.

So a privacy-minded server admin could opt everyone out by default, but the overall default behavior is to have RSS feeds of public posts for everyone, which is the default Mastodon behavior anyway.

The `norss`, like `noindex`, is just a key on a pre-existing `settings` object that is a key-value store, so there doesn't even need to be a database migration for this!

Fixes #1232
2022-12-03 22:04:55 -08:00
Darius Kazemi 9c4df21753 Fix ActivityPub Article rendering bugs
* re-add the `article-type` class to article content in feed
 * fix margin on `article-type`
 * handle images where `src` is formatted like `/foo/bar.png` by inferring the protocol and domain (and port and password if applicable) from `url` in the AP object received -- without this we can't make a reasonable inference of origin since the domain for the content might be different from the domain of the activitypub server itself
2022-12-02 17:13:06 -08:00
Darius Kazemi f6e4ef606a Fix positioning of version in link footer 2022-12-01 22:17:50 -08:00
Darius Kazemi f9c2070d2f
Merge pull request #1229 from hometown-fork/1219-expose-local-only-default-on-api
Expose the "default_federation" preference on the preferences API
2022-12-01 21:28:46 -08:00
Darius Kazemi 7964499716
Merge pull request #1228 from hometown-fork/1183-fetch-ap-articles
Make the "media gallery" not show up on Articles
2022-12-01 21:28:27 -08:00
Darius Kazemi 81dd6eec39
Merge pull request #1227 from hometown-fork/1187-keep-local-posts
Add option to keep local-only posts on auto-delete
2022-12-01 21:28:07 -08:00
Darius Kazemi d271c40341
Merge pull request #1226 from hometown-fork/1174-multiple-choice-poll-toggle
Add toggle for multiple choice polls
2022-12-01 21:27:52 -08:00
Darius Kazemi 38a6d091b6
Merge pull request #1225 from hometown-fork/1206-update-footer
Fix references to Mastodon in footer
2022-12-01 21:27:34 -08:00
Darius Kazemi a52bd88273 Expose the "default_federation" preference on the preferences API
Now when you make a call to `api/v1/preferences` you get a `posting:default:federation` response, which is `true` if the user's posts federate by default, and `false` if the user's posts are local-only by default.
2022-12-01 21:23:10 -08:00
Darius Kazemi 160c575c8b Making the "media gallery" not show up on Articles
When we fetch Articles, we render images inline as intended by the Article. There is no need for a Media Gallery item.
2022-12-01 21:07:04 -08:00
Darius Kazemi 503efed083 Add option to keep local-only posts on auto-delete
This adds a `keep_local` column to the `account_statuses_cleanup_policy` table in the database. There is a new checkbox in the preferences for automatic post deletion, and when calculating which statuses to delete there is now a filter for `without_local_scope`.
2022-12-01 20:28:45 -08:00
Darius Kazemi fb23e84d58 Add toggle for multiple choice polls
Adding an explicit toggle to the poll interface so the multiple choice polls are no longer a "hidden" feature.

Fixes #1174
2022-12-01 19:45:40 -08:00
Darius Kazemi b8c624b673 Fix references to Mastodon in footer
We now link the Hometown documentation, and list Hometown first as the place to report issues.

Fixes #1206
2022-12-01 19:36:42 -08:00
Darius Kazemi 6341c9419c Make the "I don't like it" category let you report an account
This makes it so that when a user reports an account and selects "I don't like it", instead of getting a message about how they should personally block that person, it sends them to the normal reporting interface and they can file their report.

Fixes #1202
2022-12-01 19:13:17 -08:00
Darius Kazemi 6ceb7f2783 Random WIP mostly for changing layout, should look and then discard 2022-12-01 18:26:28 -08:00
Darius Kazemi 9545af9026 Basic tweaks and fixes to the merge 2022-11-16 21:49:51 -08:00
Darius Kazemi 840688318f Merge tag 'v4.0.0' into hometown-4.0-merge 2022-11-16 20:54:49 -08:00
Eugen Rochko 17bd9a87b9
Fix wrong color on mentions hidden behind content warning in web UI (#20724) 2022-11-15 02:58:00 +01:00
Darius Kazemi 73bdd71e09 Merge tag 'v3.5.5' into hometown-dev 2022-11-14 13:44:19 -08:00
Claire b22e1476ca Fix nodes order being sometimes mangled when rewriting emoji (#20677)
* Fix front-end emoji tests

* Fix nodes order being sometimes mangled when rewriting emoji
2022-11-14 22:20:29 +01:00
Claire ccbca50a25
Fix nodes order being sometimes mangled when rewriting emoji (#20677)
* Fix front-end emoji tests

* Fix nodes order being sometimes mangled when rewriting emoji
2022-11-14 22:14:55 +01:00
Darius Kazemi f5ffda7cf3 Merge tag 'v3.5.4' into hometown-dev 2022-11-14 11:47:27 -08:00