#1583 Pubsub: Implement #expire_item

Reporter lovetox
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Type-Enhancement
  • Priority-Medium
  • Status-Accepted
  1. lovetox on

    Description of feature: Let client set a time in seconds when a pubsub item should expire see XEP-0060 <field var='pubsub#item_expire' type='text-single' label='Time after which to automatically purge items. `max` for no specific limit other than a server imposed maximum.'> Motivation: This is nice for user data like User Activity or User Mood, or even in the future a Status Message XEP via PEP. If the user sets his Activity or Mood, the client wants to expire it after some time. Right now we remove the items when going offline. But thats not optimal as there could be other clients online. Its considerable work to check if an item in a multi client setup with various connection disruptions is still valid or current, a simple "This expires in 24 hours" would be perfect.

  2. Zash on

    Would be nice to have but no immediate plans to do this before 0.12

    Changes
    • tags Status-Accepted

New comment

Not published. Used for spam prevention and optional update notifications.