mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 06:06:22 +01:00
Put a video camera emoji or a picture frame emoji instead of “.”
This uses the same logic as the status icons in the glitch flavor.
This commit is contained in:
parent
8729f5e466
commit
4739e0f090
@ -21,7 +21,10 @@ class PostStatusService < BaseService
|
||||
|
||||
media = validate_media!(options[:media_ids])
|
||||
status = nil
|
||||
text = '.' if text.blank? && options[:spoiler_text].present?
|
||||
if text.blank? && options[:spoiler_text].present?
|
||||
text = '.'
|
||||
text = media.find(&:video?) ? '📹' : '🖼' if media.size > 0
|
||||
end
|
||||
|
||||
ApplicationRecord.transaction do
|
||||
status = account.statuses.create!(text: text,
|
||||
|
Loading…
Reference in New Issue
Block a user