Commit 2200d7c9 authored by Mario's avatar Mario
Browse files

Also check against the f argument which seems to be omnipresent. In general...

Also check against the f argument which seems to be omnipresent. In general this should be made more robust by checking if the url is an actor or something we can fetch. This should probably happen after we went through the connect routine though.
parent 08b05d64
......@@ -1140,9 +1140,10 @@ function pubcrawl_follow_mod_init($x) {
// Deal with mastodon remote reply
// Make sure it is not a real attempt to connect with a profile
if (local_channel() && isset($_REQUEST['url']) && !array_key_exists('submit', $_REQUEST) && !array_key_exists('interactive', $_REQUEST)) {
if (local_channel() && isset($_REQUEST['url']) && !array_key_exists('submit', $_REQUEST) && !array_key_exists('interactive', $_REQUEST) && !array_key_exists('f', $_REQUEST)) {
goaway(z_root() . '/search?search=' . $_REQUEST['url']);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment