Rocket.chat: Posting twitter links doesn't display the tweet.

Created on 8 Aug 2019  路  13Comments  路  Source: RocketChat/Rocket.Chat

Description:

When posting a twitter link, it's expected to see the tweet directly below it (similar to how you post a website url, you will see a brief view of it below)

Steps to reproduce:

  1. Enter a channel
  2. Directly link a tweet (ex. https://twitter.com/testing/status/1135187357513199616)
  3. Observe no embedded link shown

Expected behavior:

We should see the tweet directly

Actual behavior:

image

Server Setup Information:

  • Version of Rocket.Chat Server: 1.2.3
  • Operating System: Centos 7
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • Node Version: 8.11.4
  • MongoDB: 4.0.10
uux bug

Most helpful comment

the issue still (or again) exists on 3.2.1... neither twitter nor bloomberg links work, see:

image

vs. same url in slack:
image

BBG:
image

vs. same link in slack:
image

All 13 comments

I鈥檓 not sure if this is a front end issue or if backend isn鈥檛 fetching the oembed.

Preview is built on back end. Does the server have Internet access?

Well when I tested this, I tested on my personal server which didn't work, then I tested it on rocket.chat's public server and it didn't work. However I just tested this now, and it's apparently working today. I'm assuming it's what you said and the issue was on rocket.chats end. I'm concerned that this relies on rocket chats servers. Are they listening in on chats by filtering our links through them?

By backend we mean your servers backend. So relies on your servers ability to access the internet. Not it鈥檚 ability to reach us.

We for sure don鈥檛 have everyone contacting our servers for previews. That would be insane :)

I can confirm this was happening on open and nothing has changed infrastructure wise that would have prevented it from talking to twitter to get the preview.

Got it Aaron. Glad to hear there's no snooping 馃憤 In any case I still don't understand why it's now working when it wasn't before on my server. I have not touched the container or host it's been running in. Not to mention this was happening on the public server as well. I'm baffled.

I bet some change in the message attachment rendering was causing it, looking into some changelogs from latest versions. @jherman I'll close this issue by now, but feel free to reopen it if this bug comes back.

It's happening again @tassoevan. Any idea?

I can reproduce the issue at least in the mobile app and mobile browser, at least regarding Twitter URLs. GitHub URLs and others seem to work fine.

Screenshots below:

Mobile App

Screenshot_20200315_111130_chat rocket reactnative

Mobile Browser

Screenshot_20200315_111359_com android chrome

Desktop Browser

Screenshot_2020-03-15_11-29-11

the issue still (or again) exists on 3.2.1... neither twitter nor bloomberg links work, see:

image

vs. same url in slack:
image

BBG:
image

vs. same link in slack:
image

Been wondering about this one for some time. Is this something we just need to live with? Is this a deployment / configuration issue or? Never saw Rocket.Chat behave like the other collaboration products. Is there something we can do about it?

Ok, so I stumbled on this (https://github.com/RocketChat/Rocket.Chat/issues/12924#issuecomment-646759538) and added Twitter's script as discussed in the #12924 comment above. That seemed to do the right thing. It should just be rolled into Rocket.Chat as a configurable default IMHO. This is too much work for expected behavior (as we see in virtually any collaboration package today).

@rzaSF be sure to read his latest comment https://github.com/RocketChat/Rocket.Chat/issues/12924#issuecomment-703028598

the bloomberg links are still asking me if i am a robot btw.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lunitic picture lunitic  路  3Comments

danpospisil picture danpospisil  路  3Comments

Kiran-Rao picture Kiran-Rao  路  3Comments

tanc picture tanc  路  3Comments

zeigerpuppy picture zeigerpuppy  路  3Comments