diff --git a/moa/toot.py b/moa/toot.py index 42c7b7b..283f040 100644 --- a/moa/toot.py +++ b/moa/toot.py @@ -77,6 +77,10 @@ def is_reply(self): def is_self_reply(self): return self.is_reply and self.data['in_reply_to_account_id'] == self.data['account']['id'] + @property + def is_favourited(self): + return self.data['favourited'] + @property def is_boost(self): return self.data['reblog'] is not None @@ -146,6 +150,11 @@ def should_skip(self): # If it's a boost and boosts are allowed then post it even # if public toots aren't allowed pass + + elif self.settings.conditional_posting_faves and not self.is_favourited: + logger.info(f'Skipping: Not posting unfavourited toot') + pass + elif self.settings.conditional_posting: for ht in self.data['tags']: