core, memory (sqla), plugins XEP-0277, XEP-0346: various fixes:
- `is_local`: now use `server_jid`. - `aio_func`: pass the missing `self` argument (`aio_fund` is unbound). - Declare `pubsub_service` in `core_types.SatXMPPEntity` - plugin XEP-0277: fix handling of `MbData.from_element` when node is not specified (so we use default node). - plugin XEP-0346: `IdentityData`: fix field access, following move to Pydantic model.
This commit is contained in:
parent
f862efe790
commit
50ffc8c3b4
2 changed files with 26 additions and 25 deletions
|
|
@ -214,8 +214,9 @@ class MbData(BaseModel):
|
|||
data = {
|
||||
"id": id_,
|
||||
"service": service,
|
||||
"node": node,
|
||||
}
|
||||
if node is not None:
|
||||
data["node"] = node
|
||||
|
||||
# Set URI if node is provided
|
||||
# FIXME: node should alway be set in the future, check FIXME in method signature.
|
||||
|
|
|
|||
|
|
@ -810,7 +810,7 @@ class PubsubSchema(object):
|
|||
if fill_author:
|
||||
if not values.get("author"):
|
||||
id_data = await self._i.get_identity(client, None, ["nicknames"])
|
||||
values["author"] = id_data["nicknames"][0]
|
||||
values["author"] = id_data.nicknames[0]
|
||||
if not values.get("author_jid"):
|
||||
values["author_jid"] = client.jid.full()
|
||||
item_id = await self.send_data_form_item(
|
||||
|
|
|
|||
Loading…
Reference in a new issue