tangled
alpha
login
or
join now
edavis.dev
/
bsky-tools
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
feat(bsky-activity): track embeds
Eric Davis
2 years ago
790de8d5
e4cabbf6
+6
1 changed file
expand all
collapse all
unified
split
bsky-activity.py
+6
bsky-activity.py
···
81
81
{'did': repo_did, 'ts': repo_update_time.timestamp()}
82
82
)
83
83
84
84
+
if collection == 'app.bsky.feed.post':
85
85
+
embed = payload['record'].get('embed')
86
86
+
if embed is not None and embed.get('$type', ''):
87
87
+
embed_type = embed['$type']
88
88
+
redis_pipe.incr(f'app.bsky.feed.post:embed:{embed_type}')
89
89
+
84
90
redis_pipe \
85
91
.incr(collection) \
86
92
.incr('dev.edavis.muninsky.ops')