Create shown items earlier to prevent repetitions

main
Bob Mottram 2025-07-11 10:40:02 +01:00
parent 2becc66595
commit a4777c2361
1 changed files with 1 additions and 1 deletions

View File

@ -1851,6 +1851,7 @@ def _html_profile_posts(recent_posts_cache: {}, max_recent_posts: int,
minimize_all_images = False
if nickname in min_images_for_accounts:
minimize_all_images = True
shown_items: list[str] = []
while ctr < max_items and curr_page < 4:
outbox_feed_path_str = \
'/users/' + nickname + '/' + box_name + '?page=' + \
@ -1866,7 +1867,6 @@ def _html_profile_posts(recent_posts_cache: {}, max_recent_posts: int,
break
if not outbox_feed['orderedItems']:
break
shown_items: list[str] = []
for item in outbox_feed['orderedItems']:
if item['type'] == 'Create':
if not item['object'].get('id'):