Commit fcb31612 authored by Mario's avatar Mario
Browse files

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

Revert "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."

This reverts commit 2200d7c9.
parent 2200d7c9
......@@ -1140,10 +1140,9 @@ 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) && !array_key_exists('f', $_REQUEST)) {
if (local_channel() && isset($_REQUEST['url']) && !array_key_exists('submit', $_REQUEST) && !array_key_exists('interactive', $_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