diff --git a/Source/Modules/ActivityPub.py b/Source/Modules/ActivityPub.py index 1df08d9..4ab5a37 100644 --- a/Source/Modules/ActivityPub.py +++ b/Source/Modules/ActivityPub.py @@ -77,7 +77,7 @@ def MastodonShare(InstanceURL, Token, TypeFilter, CategoryFilter, HoursLimit, Pa if p['Link'] == URL: DoPost = False break - if DoPost and (not HoursLimit or (Meta['Created on'] and time.time() - time.mktime(date_parse(Meta['Created on']).timetuple()) < 60*60*HoursLimit)): + if DoPost and (not HoursLimit or (Meta['CreatedOn'] and time.time() - time.mktime(date_parse(Meta['CreatedOn']).timetuple()) < 60*60*HoursLimit)): if not SaidPosting: print("[I] Posting to Mastodon") SaidPosting = True