teddit/teddit
22
405
Fork
You've already forked teddit
77

Improvements to Privacy link replacements #252

Closed
opened 2021年10月17日 11:51:44 +02:00 by BachoSeven · 1 comment

At https://codeberg.org/teddit/teddit/src/branch/main/inc/processPostMedia.js#L19, you could add || post_media.type === 'youtu.be', since that's an often used shortened version of youtube links which youtube provides when you share. I guess then https://codeberg.org/teddit/teddit/src/branch/main/inc/processPostMedia.js#L40 would also need to be updated. Perhaps there are other commonly used shortened versions of Twitter and Instagram links, I'll lyk if I found out.

At https://codeberg.org/teddit/teddit/src/branch/main/inc/processPostMedia.js#L19, you could add `|| post_media.type === 'youtu.be'`, since that's an often used shortened version of youtube links which youtube provides when you share. I guess then https://codeberg.org/teddit/teddit/src/branch/main/inc/processPostMedia.js#L40 would also need to be updated. Perhaps there are other commonly used shortened versions of Twitter and Instagram links, I'll lyk if I found out.

Media type is youtube.com even when the video is linked from youtu.be, for example:
https://old.reddit.com/r/videos/comments/sdfafy/how_the_rantiwork_fox_news_interview_should_have/.json

image

Media type is `youtube.com` even when the video is linked from youtu.be, for example: https://old.reddit.com/r/videos/comments/sdfafy/how_the_rantiwork_fox_news_interview_should_have/.json ![image](/attachments/3a1fd790-e867-4c9a-a30e-dc5b4f561803)
Sign in to join this conversation.
No Branch/Tag specified
main
0.4.0
0.3.8
latest
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
teddit/teddit#252
Reference in a new issue
teddit/teddit
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?