xmpp_p2p
    Preparing search index...

    Function parseFeedPost

    • Parses a microblog post item from a PubSub item element.

      Parameters

      • topic: string

        PubSub topic that carried the item.

      • itemEl: Element

        Item element to parse.

      • from: string

        Sender JID or peer reference.

      • Optionalnode: string

        Optional PubSub node name.

      Returns XmppFeedPost | undefined

      A normalized feed post or undefined when the item is not a post.