Yoshod / Sersi

http://discord.gg/TgrPmDwVwq
GNU General Public License v3.0
3 stars 1 forks source link

Feature Request: Discourage AMP links and links with trackers #243

Closed Yoshod closed 4 months ago

Yoshod commented 5 months ago

Description: Probably either by messaging the user after they post a discouraged link or by using the same mechanism that stops all caps messages to repost an amended link. The examples of links with trackers I'm aware of are YouTube and Spotify links that contain the "si" URL parameter, which is some sort of tracking tokens

Use Case: Tracking bad and makes links unnecessarily longer, AMP is also stinky and usually makes browsing an article worse

Proposed Solution: Likely implement it by scanning for known URLs like YouTube (perhaps regex?) and cut out known trackers. Then reply to the message (non-ping) with the tracking free version of the URL(s)

Additional Info: None

Impact on Project: Potentially a bigger impact as this will require reading the content of all messages.

Priority: Minor

Reason for Priority: Whilst potentially a big impact, implementing it should be simple minus any potential regex.

Milestone: 5.2.3

This issue was submitted automatically by Sersi.

Yoshod commented 4 months ago

Implemented in ed5554b