Topic: [Feature] Trim Twitter URLs in source fields

Posted under Site Bug Reports & Feature Requests

Requested feature overview description.

Attempt to trim Twitter URLs when saving changes to source fields.

For instance, using the following example URL:
https://mobile.twitter.com/odei_552/status/1544823014000590848/photo/1?s=21&t=_fhVIoonB1v9getoDXxB_Q

Trim extraneous parts of the link to:
https://twitter.com/odei_552/status/1544823014000590848

See also: topic #34368.

Why would it be useful?

Currently, Twitter uses a wide array of URL parameters depending on how pages are accessed. This leads to visual clutter in the source field and reduces consistency of sources between posts. It would also save time and effort for uploaders to automatically remove these parts, rather than require manually trimming the URL each time.

In addition, using the Post Replacement feature does not remove existing URLs. If the current source URL includes the parameter ?s=21, and the replacer removes that part of the URL in the Additional Source field, both links are now present in the source.

What part(s) of the site page(s) are affected?

The uploading page, post pages, and the post replacement page are affected.

Updated

I actually had a very similar feature request saved as a draft that I forgot to finish and submit.

Requested feature overview description.
Automatically remove the &t= parameter from Twitter links when used as a source.

Why would it be useful?
The &t= parameter on Twitter links is a unique identifier of a user's session on Twitter, which is not only unnecessary clutter in the source field for us but also a potential privacy risk for users.

I don't think the average person can resolve this identifier to an individual account, but Twitter for sure can. I have no doubt that Twitter will then permanently store the fact the link you shared on e621.net got a few hundred clicks in their analytics. I'm sure they have worse data on you already, but it's still a concern.

Just because I can't directly find out who created the link, it doesn't mean there's no privacy risk. Since the parameter is unique for each session I can search other places for that string to find who owns the e621 account - an example of finding an e621 uploader's Telegram account by using the search feature in public groups. Imagine if you shared your furry porn to e621 and some wholesome memes to your grandma's Facebook page all in the same session.
I had to try hundreds before I got a hit, but it remains possible nonetheless.

The abuse potential is quite low, but it serves nothing to us apart from cluttering the source field, meanwhile providing Twitter with their morally ambiguous method of collecting analytics data. Most people uploading to e621 are probably completely unaware of the tracking parameters in the links they create.

What part(s) of the site page(s) are affected?
Posts/sources

So, definitely a +1 from me. While mine specifically related to the &t= parameter I'd agree with stripping it all for the sake of cleaner URLs.

Twitter's URL-extending habits are extremely annoying. Another reason it would be nice to have the clutter forcibly removed is that, for some reason, Twitter refuses to show replies under the tweet if there is a ?s= etc. at the end of the URL. Deleting the suffix will give you a strictly superior version of the same page.

I honestly didn't know about it restricting things when there's the ?s= bit on it, but I do know it used to treat the site differently if accessed through mobile.twitter and always just clipped it down on both ends when encountering that prefix. I definitely would appreciate it being an automated thing.

There is a thing like this happening for pixiv already, where it removes duplicate illustration links regardless of their format, so the foundation for this is already there.

With sites like twitter where you just need to look at the url I do agree that it makes sense to automatically trim them. Consider this feature added to my already large todo list.

  • 1