Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0277.py @ 3761:e0ff2f277e13
plugin XEP-0277: fix `await` trigger incorrectly used on a sync trigger
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 13 May 2022 18:46:51 +0200 |
parents | ea6fda69bb9f |
children | becd7f1aa033 |
comparison
equal
deleted
inserted
replaced
3760:74f436e856ff | 3761:e0ff2f277e13 |
---|---|
797 # FIXME: would it make sense to restrict publish model to subscribers? | 797 # FIXME: would it make sense to restrict publish model to subscribers? |
798 self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN, | 798 self._p.OPT_PUBLISH_MODEL: self._p.ACCESS_OPEN, |
799 } | 799 } |
800 | 800 |
801 # if other plugins need to change the options | 801 # if other plugins need to change the options |
802 await self.host.trigger.point("XEP-0277_comments", client, mb_data, options) | 802 self.host.trigger.point("XEP-0277_comments", client, mb_data, options) |
803 | 803 |
804 for comments_data in mb_data['comments']: | 804 for comments_data in mb_data['comments']: |
805 uri = comments_data.get('uri') | 805 uri = comments_data.get('uri') |
806 comments_node = comments_data.get('node') | 806 comments_node = comments_data.get('node') |
807 try: | 807 try: |