-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reblog attribution linking to external domain
On blogs with a custom domain the url given in rebloggedFrom* and rebloggedRoot* will use their custom domain instead of a regular tumblr domain. In order to preserve the slug of the post priviblur uses the url given from rebloggedFrom* and rebloggedRoot* which meant that users can be directed to an external site unknownly. This commit fixes that by using the url given in the parentPostUrl which should always be a regular tumblr link. Redundancy is also added in that priviblur will check if the URL is a Tumblr domain and return a span if it isn't and priviblur is unable to create a url to the original post
- Loading branch information
Showing
4 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters