1
0
Fork 0

Allowed "all" to be used as user selector

This commit is contained in:
Casey 2023-07-02 20:35:03 +03:00
parent 09cc8deb37
commit 686cfced29
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 3 deletions

View File

@ -71,7 +71,7 @@ async def listen(
async for status in source(**kwargs):
logger.info("New status: %s", status.uri)
logger.debug("Got status: %r", status)
if status.account.id != user:
if status.account.id != user and user != "all":
logger.info(
"Skipping status %s (account.id=%r != %r)",
status.uri,
@ -132,8 +132,7 @@ def main():
VERIFY_CREDS_TEMPLATE.format(**conf["main"]),
params={"access_token": conf["main"]["token"]},
)
account = Account.from_dict(rq.json())
user_id = account.id
user_id = Account.from_dict(rq.json()).id
logger.info("account.id=%s", user_id)