component pubsub: Integrate XEP-0499 extended discovery:
- Added `on_extended_disco()` handler. - Added `with_parent=True` to all `get_pubsub_node()` calls to prevent lazy load errors in access checks. rel 476 Registered XEP-0499 handler in `profile_connecting()` and added it to plugin dependencies.
This commit is contained in:
parent
f1ceb7db8e
commit
c89b91c2e9
1 changed files with 116 additions and 11 deletions
|
|
@ -0,0 +1,26 @@
|
|||
"""add "max_items" to PubsubNode
|
||||
|
||||
Revision ID: f9ce59cfc13f
|
||||
Revises: ece2a6d7e4bb
|
||||
Create Date: 2026-04-11 12:29:56.062028
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'f9ce59cfc13f'
|
||||
down_revision = 'ece2a6d7e4bb'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
with op.batch_alter_table('pubsub_nodes', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('max_items', sa.Integer(), server_default=sa.text('0'), nullable=False))
|
||||
|
||||
|
||||
def downgrade():
|
||||
with op.batch_alter_table('pubsub_nodes', schema=None) as batch_op:
|
||||
batch_op.drop_column('max_items')
|
||||
Loading…
Reference in a new issue