0
0
Fork 0

Use CSS to trim long card descriptions (#24265)

This commit is contained in:
Christian Schmidt 2023-04-23 22:32:47 +02:00 committed by GitHub
parent 4687967176
commit e713c545b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 15 deletions

View file

@ -175,7 +175,6 @@ module StatusesHelper
def render_card_component(status, **options)
component_params = {
sensitive: sensitized?(status, current_account),
maxDescription: 160,
card: ActiveModelSerializers::SerializableResource.new(status.preview_card, serializer: REST::PreviewCardSerializer).as_json,
}.merge(**options)