wirehead: owner mentions count too (filter dropped, budget still caps)
This commit is contained in:
1 parent
a02c188ab9
commit
fd2a6b627f
1 file changed
+1
-2
@@ -116,8 +116,7 @@ def main():
|
|||||||
log("no mentions"); return 0
|
log("no mentions"); return 0
|
||||||
# oldest first, newest saved; only strictly-new mentions
|
# oldest first, newest saved; only strictly-new mentions
|
||||||
posts.sort(key=lambda p: p.get("id", "0"))
|
posts.sort(key=lambda p: p.get("id", "0"))
|
||||||
new = [p for p in posts if p.get("id", "0") > st["last_id"]
|
new = [p for p in posts if p.get("id", "0") > st["last_id"]]
|
||||||
and p.get("author_id") != "4607920157"] # never reply to self
|
|
||||||
log("new mentions:", len(new))
|
log("new mentions:", len(new))
|
||||||
replied = 0
|
replied = 0
|
||||||
for p in new:
|
for p in new:
|
||||||
|
|||||||
Reference in new issue
Block a user