diff --git a/Tusker/Screens/Compose/MainComposeTextView.swift b/Tusker/Screens/Compose/MainComposeTextView.swift index 830b3f71..5a162ef3 100644 --- a/Tusker/Screens/Compose/MainComposeTextView.swift +++ b/Tusker/Screens/Compose/MainComposeTextView.swift @@ -165,7 +165,9 @@ struct MainComposeWrappedTextView: UIViewRepresentable { } override func paste(_ sender: Any?) { - if UIPasteboard.general.contains(pasteboardTypes: CompositionAttachment.readableTypeIdentifiersForItemProvider) { + // we deliberately exclude the other CompositionAttachment readable type identifiers, because that's too overzealous with the conversion + // and things like URLs end up pasting as attachments + if UIPasteboard.general.contains(pasteboardTypes: UIImage.readableTypeIdentifiersForItemProvider) { uiState.delegate?.paste(itemProviders: UIPasteboard.general.itemProviders) } else { super.paste(sender)