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.
Improvements to Privacy link replacements #252
Closed
opened 2021年10月17日 11:51:44 +02:00 by BachoSeven
·
1 comment
BachoSeven
commented 2021年10月17日 11:51:44 +02:00
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.
teddit
added the 2021年10月19日 19:05:22 +02:00
enhancement
label
teddit
commented 2022年01月30日 00:22:40 +01:00
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
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

33 KiB
teddit
closed this issue 2022年01月30日 00:22:40 +01:00
Sign in to join this conversation.
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
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
Loading...
Add table
Add a link
Reference in a new issue
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?