Coder Social home page Coder Social logo

Comments (7)

jasonmayes avatar jasonmayes commented on July 30, 2024

Which links are you referring to?

from twitter-post-fetcher.

M-Willett avatar M-Willett commented on July 30, 2024

The alphr link in this example. You're breaking the URI into spans anyway which is useful but something like maxchar = 30 would be ideal. Otherwise, can't fault this plugin!
screen shot 2015-09-29 at 10 21 36

from twitter-post-fetcher.

b2point0h avatar b2point0h commented on July 30, 2024

Having the same issue here. How can we show the twitter shortened link or limit the number of characters?

from twitter-post-fetcher.

jasonmayes avatar jasonmayes commented on July 30, 2024

Can anyone confirm if the shortened links are in the JSON response?

from twitter-post-fetcher.

OxyDesign avatar OxyDesign commented on July 30, 2024

Yes I confirm that. In the data.body for each link you have the href attr which is a https://t.co/.... and the content of the is the real link separated in several parts with classes tco-hidden, tco-display and tco-ellipsis.

Basically this classes let you hide the first and last parts of the url by using a display:none in CSS on .tco-hidden.

The issue come from the fact that your strip function removes all the classes therefore it's not possible to style the different parts of the link.

Solutions are, in my opinion, avoiding removing this specific classes or for instance adding an option in the config to replace the content of the link with the https://t.co/.... (from the href).

Let me know your thoughts about that and if you want me to amend something to fix it.

Thanks

from twitter-post-fetcher.

jasonmayes avatar jasonmayes commented on July 30, 2024

Looking at OxyDesign's solution now. :-) Sorry for delay guys, currently in the US so limited access to github whilst on holiday etc.

from twitter-post-fetcher.

jasonmayes avatar jasonmayes commented on July 30, 2024

This will be resolved once OxyDesign's patch goes in.

from twitter-post-fetcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.