Follow up fixes for the image URL support
parent
4613997fe3
commit
698a2bae11
|
@ -161,6 +161,7 @@ if config.CONFIG.image_url:
|
||||||
"url": config.CONFIG.image_url,
|
"url": config.CONFIG.image_url,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class NotAnObjectError(Exception):
|
class NotAnObjectError(Exception):
|
||||||
def __init__(self, url: str, resp: httpx.Response | None = None) -> None:
|
def __init__(self, url: str, resp: httpx.Response | None = None) -> None:
|
||||||
message = f"{url} is not an AP activity"
|
message = f"{url} is not an AP activity"
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Config(pydantic.BaseModel):
|
||||||
summary: str
|
summary: str
|
||||||
https: bool
|
https: bool
|
||||||
icon_url: str
|
icon_url: str
|
||||||
image_url: str
|
image_url: str | None = None
|
||||||
secret: str
|
secret: str
|
||||||
debug: bool = False
|
debug: bool = False
|
||||||
trusted_hosts: list[str] = ["127.0.0.1"]
|
trusted_hosts: list[str] = ["127.0.0.1"]
|
||||||
|
|
Loading…
Reference in New Issue