Browse Source

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.
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
4739e0f090
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/services/post_status_service.rb

+ 4
- 1
app/services/post_status_service.rb View File

@ -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…
Cancel
Save