mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 22:17:59 +00:00
use Message.object_id instead of Message.objectid
This commit is contained in:
parent
2ebb295be1
commit
3d9ba68bd1
|
@ -208,7 +208,7 @@ class RelayDatabase(dict):
|
|||
def distill_inboxes(self, message: Message) -> Iterator[str]:
|
||||
src_domains = {
|
||||
message.domain,
|
||||
urlparse(message.objectid).netloc
|
||||
urlparse(message.object_id).netloc
|
||||
}
|
||||
|
||||
for domain, instance in self['relay-list'].items():
|
||||
|
|
|
@ -27,12 +27,12 @@ def person_check(actor: str, software: str) -> bool:
|
|||
|
||||
|
||||
async def handle_relay(view: View) -> None:
|
||||
if view.message.objectid in cache:
|
||||
logging.verbose('already relayed %s', view.message.objectid)
|
||||
if view.message.object_id in cache:
|
||||
logging.verbose('already relayed %s', view.message.object_id)
|
||||
return
|
||||
|
||||
message = Message.new_announce(view.config.host, view.message.objectid)
|
||||
cache[view.message.objectid] = message.id
|
||||
message = Message.new_announce(view.config.host, view.message.object_id)
|
||||
cache[view.message.object_id] = message.id
|
||||
logging.debug('>> relay: %s', message)
|
||||
|
||||
inboxes = view.database.distill_inboxes(view.message)
|
||||
|
|
Loading…
Reference in a new issue