This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Handling of withheld accounts and/ or tweets #428
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
Continuation from Twitter:
Issue 1: When encountering tweets withheld in the locality where the users currently resides in (or maybe based on Twitter location settings, I do not know), the warning text is displayed in the post body â but the link as found in the WebUI is not clickable.
Issue 2: In case a hole account is withheld, the tweets do load successfulli-ysh (all show the same withheld text, but at least they are displayed) in their profile, but their profile description fails to load. Instead, the gear loading animation keeps on spinning forever.
To Reproduce
Steps to reproduce the behavior:
- run the normal binary with active debug outputs:
G_MESSAGES_DEBUG=cawbird cawbird - From an EU country, search for a withheld account like
de_rt_com - Click on their profile in the search results
- See the issues appear. Log after clicking on the profile: see below
(cawbird:245994): cawbird-DEBUG: 20:24:23.849: REST: GET 1.1/statuses/user_timeline.json
(cawbird:245994): cawbird-DEBUG: 20:24:23.849: REST: GET 1.1/statuses/user_timeline.json
(cawbird:245994): cawbird-DEBUG: 20:24:23.849: REST: GET 1.1/friendships/show.json
(cawbird:245994): cawbird-DEBUG: 20:24:23.849: REST: GET 1.1/users/show.json
(cawbird:245994): cawbird-DEBUG: 20:24:23.849: REST: GET 1.1/statuses/user_timeline.json
cawbird-INFO: 20:24:24.157: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.160: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.161: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.163: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.164: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.167: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.168: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.171: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.172: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.176: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.177: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.180: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.182: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.186: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.187: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.190: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.191: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.193: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.194: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.196: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.324: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
(cawbird:245994): libsoup-CRITICAL **: 20:24:24.512: soup_session_queue_message: assertion 'SOUP_IS_MESSAGE (msg)' failed
cawbird-INFO: 20:24:24.513: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.652: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.652: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.652: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.652: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.652: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.653: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.653: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.653: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.653: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)
cawbird-INFO: 20:24:24.653: Skipping entity - expected https://support.twitter.com/articles/20169222 but found Learn more. Likely bad indices (323 to 333)System details:
- OS: NixOS-21.11
- Version: 1.4.2
- Package type: distro
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Activity
IBBoard commentedon Mar 4, 2022
So, it is our sanity checking that breaks the links!
If someone can run a debug build from the command-line, click a tweet to focus it, and then press 'k' (shortcuts) and dump the JSON for the tweet here then that'd be great.
I'll try to work out what we can do about the header and account info.
libsoup-CRITICAL **: 20:24:24.512: soup_session_queue_message: assertion 'SOUP_IS_MESSAGE (msg)' failedsuggests that something might have happened that we could detect and handle. But I don't know why it wouldn't be a SOUP message. I can see it might not be JSON, but an invalid SOUP message is odd.IBBoard commentedon Mar 4, 2022
If no-one is able to provide the JSON then I might be able guess at it. We're currently checking that the unformatted text matches the "original text", which links define as the URL (which is a t·co URL). But "Learn More" isn't a URL. So I can try comparing against the display text as well (which won't match for normal links, because the display text is the truncated version, but it may work for these links).
I might also be able to do something with Twitter profiles and locations and pretending I'm German ðĪ
IBBoard commentedon Mar 4, 2022
Setting my country to Germany worked ð And when I did, it decided to ask lots of privacy questions about what to enable and disable. Almost as if Europe has better GDPR protection/enforcement than the UK ð§
Re #428: Fix "Learn More" link on witheld tweet
IBBoard commentedon Mar 4, 2022
Got most of a fix for the rest of the profile issues. Just need to iron out some resource issues. And make our default avatar for these situations look less happy.
schmittlauch commentedon Mar 4, 2022
Ah great, I just had it figured out how to do a debug build ^^
Re #428: Handle withheld accounts having null avatar URLs
Re #428: Add specific "withheld" avatar
Re #428: Update i18n for "Withheld account"
Re #428: Avoid JSON `...with_default` method
Re #428: Reset `is_withheld` each reload
IBBoard commentedon Mar 16, 2022
I'm going to assume that this is working. We should release it soon.