Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE] Preview message URLs only once #22516

Merged

Conversation

nmagedman
Copy link
Contributor

@nmagedman nmagedman commented Jun 30, 2021

If a message lists the same URL twice, the URL would be previewed twice.
This includes Markdown code explicitly using the URL as the link text.
e.g.
[http://example.com/](http://example.com/)

Strip out duplicate URLs when parsing them out, so we only show a single preview.

If a message lists the same URL twice, the URL would be previewed twice.
This includes Markdown code explicitly using the URL as the link text.
e.g.
        ```
        [http://example.com/](http://example.com/)
        ```

Strip out duplicate URLs when parsing them out,so we only show
a single preview.

Co-authored-by: Evgeniy Kulesh <evgeniyk@seekingalpha.com>
@nmagedman nmagedman force-pushed the noach_preview_message_urls_only_once branch from a2ab963 to 52fc6d1 Compare June 30, 2021 16:49
@ggazzo ggazzo self-assigned this Jul 1, 2021
@ggazzo ggazzo requested a review from a team July 1, 2021 17:10
@ggazzo ggazzo added this to the 3.17.0 milestone Jul 1, 2021
@ggazzo ggazzo merged commit f60a471 into RocketChat:develop Jul 1, 2021
gabriellsh added a commit that referenced this pull request Jul 1, 2021
…ite/create_disc

* 'develop' of github.com:RocketChat/Rocket.Chat: (27 commits)
  [IMPROVE] Preview message URLs only once (#22516)
  [FIX] Admin page crashing when commit hash is null (#22057)
  [FIX] Unnecessary space on members list footer (#22514)
  Chore: Review some dependencies (#22522)
  Chore: Meteor 2.2 and bump dependencies (#22399)
  Chore: Remove Sodium from the main client (#22459)
  [FIX] Prune messages from particular user(s) (#22506)
  [FIX] Livechat apps permission error (#22511)
  [IMPROVE] Message deletion modal #22508
  Update README.md
  Update README.md
  [IMPROVE] Add pagination to tags, and improve current Agents pagination
  [FIX] Rewrite CurrentChats to TS (#22424)
  [FIX] Sort AutocompleteDepartmentsMultiple (#22419)
  [FIX] Put title into AutocompleteDepartment components (#22417)
  [FIX] Bugs in AutoCompleteDepartment (#22414)
  [FIX] Closed chats doesn't show who picked the call (#22368)
  [FIX] Omnichannel Real Time Monitoring chart not displaying chats-per-agent and chats-per-department (#22406)
  [IMPROVE] Paginated multiselect for EE tags (#22315)
  [FIX] Units Edit and adds the option to hide own department in useDepartmentList
  ...
@ggazzo ggazzo mentioned this pull request Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants