am i correct that onebox previews won’t be generated for links in imported posts?
for example, i’m not seeing it in youtube links on a phpbb migration.
any pointers for accomplishing this? thanks
In a discussion about generating onebox previews for links in imported posts, shyguy confirms that onebox previews are not automatically generated for imported content (e.g., YouTube links from a phpBB migration). Richie suggests testing by manually rebaking a single post, which shyguy confirms works. To handle this in bulk, shyguy runs docker exec discourse-app rake posts:rebake, which successfully generates oneboxes. However, Richie and Richie caution that rebaking large volumes of posts can trigger rate-limiting or blacklisting from services like YouTube and Amazon due to excessive requests. shyguy admits to already running the command and shares that only ~1,226 posts contain relevant links — mostly from a home IP — and hopes for the best while promising to review best practices for future caution.
am i correct that onebox previews won’t be generated for links in imported posts?
for example, i’m not seeing it in youtube links on a phpbb migration.
any pointers for accomplishing this? thanks
it sure does!
how can i do it in bulk?
read this whole thread for warnings!
i will give this a whirl…
docker exec discourse-app rake posts:rebake
edit: yes, this works
thanks for the hint, @Richie
Before you do…
Just be careful, we have run in to problems with YouTube, Amazon and others blacklisting our server because we hammered them for onebox details when rebaking hundreds of thousands of posts ![]()
uh oh. i already let it rip. i hope it will be ok?
phpbb=# select count(*) from phpbb_posts where (post_text like '%youtu%' or post_text like '%instagr%' or post_text like '%facebook%');
count
-------
1226
(1 row)
so there’s a ballpark… you think i’ll be ok? this is from my home IP lol. i’ll read your link and see if there is a way to be more careful next time.