diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-06 00:33:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 00:33:55 +0100 |
commit | a25839340e93b1e93b7b99b0f65fa7da7d62bad2 (patch) | |
tree | a329d65c115e752c3be5c262ebf96f69cd13861a /app/models/status.rb | |
parent | e0f39626973fd9f5cce2d4cd3b166fb47e9c9059 (diff) | |
parent | 4bb6b1a1e788abac7d1745e0f4eb72ad4d4ec110 (diff) |
Merge pull request #1628 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/status.rb')
-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 7b11709fa..3a1323849 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -391,7 +391,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) |