Bug 367773

Summary: Use t.co URL resolution provided by the Twitter API
Product: [Unmaintained] choqok Reporter: Benedikt Gollatz <benedikt>
Component: TwitterAssignee: Mehrdad Momeny <mehrdad.momeny>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Benedikt Gollatz 2016-08-24 18:57:09 UTC
Twitter provides resolution of external t.co links in the "entities" part of the API response. choqok should make use of this information.

Reproducible: Always

Steps to Reproduce:
1. Create a Twitter account in choqok.
2. Look at a tweet that contains a URL referencing a resource outside of Twitter.
3. Notice choqok displays an unresolved t.co link instead of a link to the real resource.

Actual Results:  
No resolution of t.co URLs.

Expected Results:  
t.co URLs should be resolved to their real target and displayed as such.

I have submitted a patch for this issue on the KDE review board with review request #128748: https://git.reviewboard.kde.org/r/128748/

I realise I'm somewhat late in the 1.6 development cycle with this, but since longurl.org is gone and the associated URL resolution plugin has stopped working, this patch brings back some of the lost functionality.
Comment 1 Mehrdad Momeny 2016-08-25 02:41:38 UTC
Oh, I didn't notice longurl.org is gone out of business.
I'll check this. But so far Choqok was not replacing short URLs with the longer ones, because that can cause a long text in tweet and not with the shorter version that Twitter shows. But the tooltip used to show the longer URL.
We need to decide whether to change it to show something like Twitter or not.
Comment 2 Benedikt Gollatz 2016-08-25 04:26:11 UTC
My patch on reviewboard does exactly that, as Twitter provides both versions (the one they display and the real expansion). The real expansion shows up as the tooltip and the href, and the shortened expansion is used to display the link in the PostWidget.
Comment 3 Mehrdad Momeny 2016-08-25 04:29:12 UTC
Yes, I understood, and that's my point, Choqok has not been following twitter in this matter. And that's the thing that might change.
But we need to consider all cases and microblog services that Choqok supports, not only twitter, and have a solution that fits all.
Comment 4 Christoph Cullmann 2025-06-09 20:08:03 UTC
Choqok is unfortunately no longer maintained.

If a new maintainer wants to step up and take care, the project is archived here:

https://invent.kde.org/network/choqok

You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived.

Sorry for the inconveniences.