8be69f6fe5
To know if the gate should be bypassed, we check if the link contains the pasameter instead of checking if the link ends with it. This is impostant, for example if we were to implement searching for comments within a post. If we wanted to search for comments within a post that we have bypassed the gate to view: the link will look like https://libreddit-instance/r/somesub/comments/post-id/post-title&bypass_nsfw_landing/?q=some-query&type=comment |
||
---|---|---|
.. | ||
client.rs | ||
config.rs | ||
duplicates.rs | ||
instance_info.rs | ||
main.rs | ||
post.rs | ||
search.rs | ||
server.rs | ||
settings.rs | ||
subreddit.rs | ||
user.rs | ||
utils.rs |