forked from KayFaraday/pleroma-ebooks
fetch_posts.py: remove unused import
This commit is contained in:
parent
5dcbd4ccfa
commit
b8e727cfd4
|
@ -8,7 +8,6 @@ import platform
|
||||||
import pendulum
|
import pendulum
|
||||||
import aiosqlite
|
import aiosqlite
|
||||||
import contextlib
|
import contextlib
|
||||||
from yarl import URL
|
|
||||||
from utils import shield
|
from utils import shield
|
||||||
from pleroma import Pleroma
|
from pleroma import Pleroma
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
@ -186,7 +185,7 @@ class PostFetcher:
|
||||||
try:
|
try:
|
||||||
# note: the server might decide to return multiple links
|
# note: the server might decide to return multiple links
|
||||||
# so we need to decide how to prefer one.
|
# so we need to decide how to prefer one.
|
||||||
# i'd put "and URL(template).host == instance" here,
|
# i'd put "and yarl.URL(template).host == instance" here,
|
||||||
# but some instances have no subdomain for the handle yet use a subdomain for the canonical URL.
|
# but some instances have no subdomain for the handle yet use a subdomain for the canonical URL.
|
||||||
# Additionally, an instance could theoretically serve profile pages over I2P and the clearnet,
|
# Additionally, an instance could theoretically serve profile pages over I2P and the clearnet,
|
||||||
# for example.
|
# for example.
|
||||||
|
|
Loading…
Reference in New Issue