this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

one more fix

+2 -4
+2 -4
firehose_classifier.py
··· 175 175 async def _apply_label(self, uri: str, cid: str, pred: float, label: str): 176 176 try: 177 177 if label == "likely-nsfw": 178 - atproto_label = "porn" 179 178 comment = f"Automated: Likely NSFW content detected ({pred:.3f})" 180 179 elif label == "possible-nsfw": 181 - atproto_label = "sexual" 182 180 comment = f"Automated: Possible NSFW content detected ({pred:.3f})" 183 181 else: 184 182 return ··· 186 184 await self.ozone_client.add_or_remove_label( 187 185 action_id=0, 188 186 entity_id=uri, 189 - label=atproto_label, 187 + label=label, 190 188 neg=False, 191 189 comment=comment, 192 190 cid=cid, 193 191 ) 194 192 195 - logger.info(f"Applied '{atproto_label}' label to {uri}") 193 + logger.info(f"Applied '{label}' label to {uri}") 196 194 197 195 except Exception as e: 198 196 logger.error(f"Failed to apply label to {uri}: {e}")