kopia lustrzana https://github.com/snarfed/bridgy-fed
allow receive tasks for protocol bot domains, for update profile button
rodzic
3d84dc4d36
commit
dd1d53c28b
|
@ -1365,8 +1365,11 @@ def receive_task():
|
||||||
|
|
||||||
authed_as = form.get('authed_as')
|
authed_as = form.get('authed_as')
|
||||||
|
|
||||||
|
internal = (authed_as == common.PRIMARY_DOMAIN
|
||||||
|
or authed_as in common.PROTOCOL_DOMAINS)
|
||||||
try:
|
try:
|
||||||
return PROTOCOLS[obj.source_protocol].receive(obj=obj, authed_as=authed_as)
|
return PROTOCOLS[obj.source_protocol].receive(obj=obj, authed_as=authed_as,
|
||||||
|
internal=internal)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
logger.warning(e, exc_info=True)
|
logger.warning(e, exc_info=True)
|
||||||
error(e, status=304)
|
error(e, status=304)
|
||||||
|
|
Ładowanie…
Reference in New Issue