webfinger is NOT a joke.
This commit is contained in:
parent
5d62b17310
commit
0d162b067b
2
main.py
2
main.py
|
@ -97,7 +97,7 @@ for f in following:
|
||||||
print("Harvesting toots for user @{}, starting from {}".format(f.acct, last_toot))
|
print("Harvesting toots for user @{}, starting from {}".format(f.acct, last_toot))
|
||||||
|
|
||||||
#find the user's activitypub outbox
|
#find the user's activitypub outbox
|
||||||
print("WebFingering...")
|
print("WebFingering... (do not laugh at this. WebFinger is a federated protocol. https://wikipedia.org/wiki/WebFinger)")
|
||||||
instance = re.search(r"^.*@(.+)", f.acct)
|
instance = re.search(r"^.*@(.+)", f.acct)
|
||||||
if instance == None:
|
if instance == None:
|
||||||
instance = re.search(r"https?:\/\/(.*)", cfg['site']).group(1)
|
instance = re.search(r"https?:\/\/(.*)", cfg['site']).group(1)
|
||||||
|
|
Reference in New Issue