Improve move support
This commit is contained in:
parent
333fa5dc40
commit
a701d3b06e
5 changed files with 30 additions and 19 deletions
|
@ -11,6 +11,7 @@ from markdown import markdown
|
|||
from app import config
|
||||
from app.config import ALSO_KNOWN_AS
|
||||
from app.config import AP_CONTENT_TYPE # noqa: F401
|
||||
from app.config import MOVED_TO
|
||||
from app.httpsig import auth
|
||||
from app.key import get_pubkey_as_pem
|
||||
from app.source import hashtagify
|
||||
|
@ -131,6 +132,9 @@ ME = {
|
|||
if ALSO_KNOWN_AS:
|
||||
ME["alsoKnownAs"] = [ALSO_KNOWN_AS]
|
||||
|
||||
if MOVED_TO:
|
||||
ME["movedTo"] = MOVED_TO
|
||||
|
||||
|
||||
class NotAnObjectError(Exception):
|
||||
def __init__(self, url: str, resp: httpx.Response | None = None) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue