diff options
author | Starfall <us@starfall.systems> | 2021-01-13 13:39:46 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-01-13 13:39:46 -0600 |
commit | 65263e6309fb4dea1a93d4b4806af629d317c156 (patch) | |
tree | 8a142dea5cc3d4081f551c02e953976d3c0930bf /app/models/status.rb | |
parent | 29227b32e150894e15098bcf216b1f5c08763200 (diff) | |
parent | a7a47834e50645746355e2b9a88244c1804c73cd (diff) |
Merge branch 'glitch' into main
Diffstat (limited to 'app/models/status.rb')
-rw-r--r-- | app/models/status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 0d15304b6..766c13a40 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -387,7 +387,7 @@ class Status < ApplicationRecord def from_text(text) return [] if text.blank? - text.scan(FetchLinkCardService::URL_PATTERN).map(&:first).uniq.map do |url| + text.scan(FetchLinkCardService::URL_PATTERN).map(&:first).uniq.filter_map do |url| status = begin if TagManager.instance.local_url?(url) ActivityPub::TagManager.instance.uri_to_resource(url, Status) @@ -396,7 +396,7 @@ class Status < ApplicationRecord end end status&.distributable? ? status : nil - end.compact + end end end |