1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-03-18 08:40:27 +01:00
Commit graph

64 commits

Author SHA1 Message Date
Emelia Smith
febcd0a76c
Expose status language via og:locale () 2025-02-28 10:53:39 +00:00
Claire
e8b6607ece
Fix titles being escaped twice () 2024-11-14 13:28:00 +00:00
Eugen Rochko
3d46f47817
Change embedded posts to use web UI ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-09-12 09:41:19 +00:00
Claire
edeae945c0
Remove fontawesome leftovers () 2024-08-21 15:55:35 +00:00
Matt Jankowski
fa2e7b1708
Migrate fontawesome->material in more views () 2024-08-20 11:52:45 +00:00
Matt Jankowski
3be1b1eaae
Use material symbol for filters/statuses views () 2024-08-20 11:52:27 +00:00
Matt Jankowski
c926f5fd67
Fix haml-lint UnnecessaryStringOutput for views () 2023-10-25 12:01:00 +00:00
Matt Jankowski
e715da6d25
Fix haml-lint Rubocop Rails/* cops () 2023-10-03 15:00:40 +02:00
Matt Jankowski
df05ece265
Fix haml-lint Rubocop Style/NumericPredicate cop () 2023-07-20 15:13:06 +02:00
Matt Jankowski
6edd404482
Cleanup unused portions of statuses/status partial () 2023-07-19 08:44:16 +02:00
Matt Jankowski
e663e6d2c2
Fix haml-lint ConsecutiveSilentScripts rule () 2023-07-18 09:25:37 +02:00
Matt Jankowski
4207c95d4f
Fix haml-lint Rubocop Style/SlicingWithRange cop () 2023-07-17 18:18:13 +02:00
Matt Jankowski
bd33efdf16
Fix haml-lint Rubocop Style/MinMaxComparison cop () 2023-07-17 15:38:04 +02:00
Nick Schonning
65669d3c57
Fix more haml-lint Rubocop () 2023-03-15 20:07:43 +01:00
Nick Schonning
75131e7bf7
Setup haml-lint CI with todo config () 2023-03-15 04:15:36 +01:00
Eugen Rochko
f98e4c662e
Change link previews for statuses to never use avatar as fallback () 2023-02-03 10:16:47 +01:00
Bramus!
e617ee7fd9
Add user profile OG tag on status page () 2022-11-27 20:45:28 +01:00
Rose
4f15fd0ba1
Fix style for hashes ()
* Fix style for hashes

Make the style for hashes consistent.

* New style

More consistency
2022-11-17 11:05:39 +01:00
Claire
e1227457f1
Fix links to the Web UI in notifications ()
Most of the old routes are broken because of the /web removal.
2022-11-07 15:42:58 +01:00
Eugen Rochko
839f893168
Change public accounts pages to mount the web UI ()
* Change public accounts pages to mount the web UI

* Fix handling of remote usernames in routes

- When logged in, serve web app
- When logged out, redirect to permalink
- Fix `app-body` class not being set sometimes due to name conflict

* Fix missing `multiColumn` prop

* Fix failing test

* Use `discoverable` attribute to control indexing directives

* Fix `<ColumnLoading />` not using `multiColumn`

* Add `noindex` to accounts in REST API

* Change noindex directive to not be rendered by default before a route is mounted

* Add loading indicator for detailed status in web UI

* Fix missing indicator appearing while account is loading in web UI
2022-10-20 14:35:29 +02:00
Eugen Rochko
62782babd0
Change public statuses pages to mount the web UI () 2022-10-06 02:26:34 +02:00
Jeong Arm
dc7e2985e6
Add lang html attr to each posts () 2022-05-28 15:50:36 +02:00
Stefano Pigozzi
99d7684dfd
Replace leftover envelope icons with at icons () 2022-05-06 00:41:56 +02:00
Eugen Rochko
cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
2022-03-26 02:53:34 +01:00
Claire
9b139d4ef9
Fix “edited at” in public pages not being properly localized ()
Fixes 
2022-03-15 19:07:25 +01:00
Eugen Rochko
d17fb70131
Change how changes to media attachments are stored for edits ()
* Change how changes to media attachments are stored for edits

Fix not being able to re-order media attachments

* Fix not broadcasting updates when polls/media is changed through ActivityPub

* Various fixes and improvements

* Update app/models/report.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Add tracking of media attachment description changes

* Change poll in status edit to have a structure closer to the real one

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-03-09 09:06:17 +01:00
Eugen Rochko
564efd0651
Add appeals ()
* Add appeals

* Add ability to reject appeals and ability to browse pending appeals in admin UI

* Add strikes to account page in settings

* Various fixes and improvements

- Add separate notification setting for appeals, separate from reports
- Fix style of links in report/strike header
- Change approving an appeal to not restore statuses (due to federation complexities)
- Change style of successfully appealed strikes on account settings page
- Change account settings page to only show unappealed or recently appealed strikes

* Change appealed_at to overruled_at

* Fix missing method error
2022-02-14 21:27:53 +01:00
Claire
bddd9ba36d
Add OMNIAUTH_ONLY environment variable to enforce externa log-in ()
* Remove support for OAUTH_REDIRECT_AT_SIGN_IN

Fixes 

Introduced in , OAUTH_REDIRECT_AT_SIGN_IN allowed skipping the log-in form
to instead redirect to the external OmniAuth login provider.

However, it did not prevent the log-in form on /about introduced by  from
appearing, and completely broke with the introduction of .

As I restoring that previous log-in flow without introducing a security
vulnerability may require extensive care and knowledge of how OmniAuth works,
this commit removes support for OAUTH_REDIRECT_AT_SIGN_IN instead for the time
being.

* Add OMNIAUTH_ONLY environment variable to enforce external log-in only

* Disable user registration when OMNIAUTH_ONLY is set to true

* Replace log-in links When OMNIAUTH_ONLY is set with exactly one OmniAuth provider
2022-01-23 15:52:58 +01:00
Claire
6eea3f8f9c
Add post edited notice in admin and public UIs ()
* Add edited toot flag on public pages

* Add toot edit flag to admin pages
2022-01-20 13:37:31 +01:00
Claire
e2844b7e58
Change number_to_human calls to always use 3-digits precision ()
Fixes 
2021-07-07 21:13:08 +02:00
Eugen Rochko
351c744590
Fix error when trying to render component for media without meta () 2021-05-05 21:16:55 +02:00
Takeshi Umeda
cb5bb2313b
Fix expand video on public page () 2020-12-30 23:18:11 +01:00
Eugen Rochko
1f564051b6
Change RTL detection to rely on unicode-bidi paragraph by paragraph () 2020-12-15 12:56:43 +01:00
ThibG
d849aad852
Change public thread view to hide "Show thread" link ()
Fixes 
2020-12-02 21:21:44 +01:00
Mélanie Chauvel
68d4b2b83e
Display “Show newer” and “Show older” instead of “Show more” in public pages () 2020-11-04 21:15:45 +01:00
Takeshi Umeda
d6fe0c94ca
Add account sensitized ()
* Add account sensitized

* Fix i18n normalize

* Fix description and spec

* Fix spec

* Fix wording
2020-11-04 20:45:01 +01:00
Mélanie Chauvel
1d07f51039
Make visibility icon clickable as part of the time of a toot ()
- Makes permalink to a toot more easily clickable
- Fix clicking between icon and time in fact clicking the display name
- Fix clicking slightly under time in fact clicking the display name
2020-10-27 03:00:47 +01:00
Eugen Rochko
a549415868
Fix regressions in icon buttons in web UI () 2020-10-04 15:02:36 +02:00
Jeremy Rose
03b6b034b9
add og:published_time to opengraph meta tags () 2020-09-24 23:32:13 +02:00
ThibG
0f38f9726a
Fix hardcoded non-breaking space in public view () 2020-08-13 12:04:28 +02:00
ThibG
8ce962e148
Fix audio/video player not using CDN_HOST in media paths on public pages () 2020-08-02 19:03:10 +02:00
Eugen Rochko
5b7a93b02c
Fix videos on public pages not using custom thumbnails () 2020-07-09 12:53:16 +02:00
Eugen Rochko
99f3a55540
Add color extraction for audio thumbnails () 2020-07-05 18:28:25 +02:00
Eugen Rochko
64aac30733
Add customizable thumbnails for audio and video attachments ()
- Change audio files to not be stripped of metadata
- Automatically extract cover art from audio if it exists
- Add `thumbnail` parameter to `POST /api/v1/media`, `POST /api/v2/media` and `PUT /api/v1/media/:id`
- Add `icon` to represent it in attachments in ActivityPub
- Fix `preview_url` containing URL of missing missing image when there is no thumbnail instead of null
- Fix duration of audio not being displayed on public pages until the file is loaded
2020-06-29 13:56:55 +02:00
Takeshi Umeda
418f0a33e9
Add a visibility icon to status ()
* Add a visibility icon to status

* Change to using the icon element

* Fix RTL

* Add a public globe
2020-06-25 22:43:59 +02:00
Eugen Rochko
662a49dc3f
Fix various issues around OpenGraph representation of media ()
- Fix audio attachments not being represented in OpenGraph tags
- Fix audio being represented as "1 image" in OpenGraph descriptions
- Fix video metadata being overwritten by paperclip-av-transcoder
- Fix embedded player not using Mastodon's UI
- Fix audio/video progress bars not moving smoothly
- Fix audio/video buffered bars not displaying correctly
2020-06-25 01:33:01 +02:00
ThibG
8e96510b25
Hide sensitive preview cards with blurhash ()
* Use preview card blurhash in WebUI

* Handle sensitive preview cards
2020-06-06 17:41:56 +02:00
ThibG
48503384d0
Fix some account avatars on public pages having incorrect size ()
* Fix some account avatars on public pages having incorrect size

* Remove outdated and overridden width and height attributes

* Remove more hardcoded width/height attributes
2020-05-13 21:20:34 +02:00
ThibG
0e362b7678
Fix end-user-facing uses of inline CSS ()
* Move some inline styles to CSS files

* Move default_account_display_name span to fix useless tags with duplicate id

* Change handling of public pages spoiler text from inline CSS to dataset attribute

* Use the `dir` HTML attribute instead of inline CSS

* Move status action bar inline CSS to CSS file

* Hide logo resources from CSS file, not inline CSS

Fixes 

* Move translation prompt styling from inline CSS to CSS file

* Move “invited by” styling on registration form from inline to CSS file

* Use the progress tag to display poll results in JS fallback

* Fix poll results JS-less fallback when the user has voted for an option

* Change account public page “moved” notice to use img tags instead of inline CSS

* Move OTP hint inline CSS to SCSS file

* Hide JS-less fallback vote progressbars from accessibility tools

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2020-04-28 10:16:55 +02:00
ThibG
9d24bcc5e6
Fix styling of polls in JS-less fallback on public pages () 2020-04-07 18:21:58 +02:00