v0.17.2 Minor typo fix

This commit is contained in:
David Sainty 2024-06-28 10:55:58 +10:00
parent 2139ddc1fe
commit 1a12adbd97

View File

@ -1,5 +1,5 @@
# gossamer threads migration-import code
# v0.17.1
# v0.17.2
require 'mysql2'
require 'open-uri'
@ -226,7 +226,7 @@ class GossamerForumsImporter < ImportScripts::Base
# Helper method to handle post attachments
def handle_post_attachments(gossamer_post_id, post, user_id)
execute_query("SELECT * FROM gforum_PostAttachment WHERE post_id_fk = #{post_id}").each do |att_row|
execute_query("SELECT * FROM gforum_PostAttachment WHERE post_id_fk = #{gossamer_post_id}").each do |att_row|
attachment_url = "https://forum.slowtwitch.com/forum/?do=post_attachment;postatt_id=#{att_row['postatt_id']}"
attachment_data = download_attachment(attachment_url)
next unless attachment_data