[pillowfort] support '/tagged/' URLs (#4570)
This commit is contained in:
@@ -132,7 +132,7 @@ class PillowfortPostExtractor(PillowfortExtractor):
|
||||
class PillowfortUserExtractor(PillowfortExtractor):
|
||||
"""Extractor for all posts of a pillowfort user"""
|
||||
subcategory = "user"
|
||||
pattern = BASE_PATTERN + r"/(?!posts/)([^/?#]+)"
|
||||
pattern = BASE_PATTERN + r"/(?!posts/)([^/?#]+(?:/tagged/[^/?#]+)?)"
|
||||
example = "https://www.pillowfort.social/USER"
|
||||
|
||||
def posts(self):
|
||||
|
||||
@@ -172,4 +172,12 @@ __tests__ = (
|
||||
"#count" : 15,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pillowfort.social/Staff/tagged/funding",
|
||||
"#category": ("", "pillowfort", "user"),
|
||||
"#class" : pillowfort.PillowfortUserExtractor,
|
||||
"#pattern" : r"https://img\d+\.pillowfort\.social/posts/",
|
||||
"#count" : 6,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user