Skip to content
  • lain @lambadalambda ·

    what's the 'authority' thing?

  • @lambadalambda host + port

  • lain @lambadalambda ·

    yeah, but, why do you check it

  • lain @lambadalambda ·

    ah i see, you're trying to check if the blocked person is on this server, right?

  • yes

  • lain @lambadalambda ·

    to do that:

    1. grab the user by the blocked object (which is the blocked user, to most probably is th same but that's not guaranteed. Use User.get_cached_by_ap_id for that.
    2. that user has a field 'local' which will be true if the user is local. No need to check any url.
  • lain @lambadalambda ·

    Same goes for getting the author

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment