forked from hkc/mastoposter
Allowed "all" to be used as user selector
This commit is contained in:
parent
09cc8deb37
commit
686cfced29
|
@ -71,7 +71,7 @@ async def listen(
|
||||||
async for status in source(**kwargs):
|
async for status in source(**kwargs):
|
||||||
logger.info("New status: %s", status.uri)
|
logger.info("New status: %s", status.uri)
|
||||||
logger.debug("Got status: %r", status)
|
logger.debug("Got status: %r", status)
|
||||||
if status.account.id != user:
|
if status.account.id != user and user != "all":
|
||||||
logger.info(
|
logger.info(
|
||||||
"Skipping status %s (account.id=%r != %r)",
|
"Skipping status %s (account.id=%r != %r)",
|
||||||
status.uri,
|
status.uri,
|
||||||
|
@ -132,8 +132,7 @@ def main():
|
||||||
VERIFY_CREDS_TEMPLATE.format(**conf["main"]),
|
VERIFY_CREDS_TEMPLATE.format(**conf["main"]),
|
||||||
params={"access_token": conf["main"]["token"]},
|
params={"access_token": conf["main"]["token"]},
|
||||||
)
|
)
|
||||||
account = Account.from_dict(rq.json())
|
user_id = Account.from_dict(rq.json()).id
|
||||||
user_id = account.id
|
|
||||||
|
|
||||||
logger.info("account.id=%s", user_id)
|
logger.info("account.id=%s", user_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue