diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-05 21:14:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 21:14:35 +0100 |
commit | 989c67d29d379f872f23a513f43d5100630c1b12 (patch) | |
tree | 714929458aea3af2e1ffdd6a87d5ce9af0e423c1 /app/models | |
parent | 458830ee7c09aedecb5bccb32d66f364b450ca0d (diff) |
Fix handling announcements with links (#16941)
Broken since #15827
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 3acf759f9..c7f761bc6 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -338,7 +338,7 @@ class Status < ApplicationRecord def from_text(text) return [] if text.blank? - text.scan(FetchLinkCardService::URL_PATTERN).map(&:first).uniq.filter_map do |url| + text.scan(FetchLinkCardService::URL_PATTERN).map(&:second).uniq.filter_map do |url| status = begin if TagManager.instance.local_url?(url) ActivityPub::TagManager.instance.uri_to_resource(url, Status) |