comparison sat/plugins/plugin_comp_ap_gateway.py @ 3684:8353cc3b8db9

component AP gateway: fix wrong operator when testing HTTP code
author Goffi <goffi@goffi.org>
date Mon, 27 Sep 2021 08:29:09 +0200
parents 7c990aaa49d3
children b15644cae50d
comparison
equal deleted inserted replaced
3683:a1eff4e32848 3684:8353cc3b8db9
409 "content": mess_data.get("content_xhtml") or mess_data["content"], 409 "content": mess_data.get("content_xhtml") or mess_data["content"],
410 "to": "https://www.w3.org/ns/activitystreams#Public" 410 "to": "https://www.w3.org/ns/activitystreams#Public"
411 } 411 }
412 } 412 }
413 resp = await self.signAndPost(inbox_url, url_actor, item_data) 413 resp = await self.signAndPost(inbox_url, url_actor, item_data)
414 if resp.code == 202: 414 if resp.code != 202:
415 raise exceptions.NetworkError(f"unexpected return code: {resp.code}") 415 raise exceptions.NetworkError(f"unexpected return code: {resp.code}")