0
0
Fork 0

Refactor account and status formatting (#17877)

* Refactor status formatting

* Add account formatting helpers

* Remove StatusFormatter

* Fixup

* Fix copied typo
This commit is contained in:
Claire 2022-03-28 01:17:17 +02:00 committed by GitHub
parent e6a159a648
commit 2c45859ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 26 additions and 16 deletions

View file

@ -446,7 +446,7 @@ class FeedManager
status = status.reblog if status.reblog?
combined_text = [
extract_plain_text(status.text, status.local?),
extract_status_plain_text(status),
status.spoiler_text,
status.preloadable_poll ? status.preloadable_poll.options.join("\n\n") : nil,
status.ordered_media_attachments.map(&:description).join("\n\n"),