We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7018dca commit da663a3Copy full SHA for da663a3
.gitignore
@@ -1,3 +1,4 @@
1
public/
2
.DS_Store
3
.directory
4
+*.csv
fix-disqus-comments-to-https.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+if [ "$1" == "" ]; then
+ echo 1. Open https://hypriot.disqus.com/admin/discussions/migrate/ and start the URL mapper.
+ echo 2. Download CSV and run this script with it.
5
+ echo 3. Upload new CSV to migrate all links to https.
6
+ exit 1
7
+fi
8
+
9
+input=$1
10
+output=${input//.csv/-upload.csv}
11
+rm -f "$output"
12
+echo "Fixing CSV $input -> $output"
13
+while read -r link; do
14
+ link=${link///}
15
+ httpslink=${link//\?*/}
16
+ httpslink=${httpslink//http:/https:}
17
+ echo "$link,$httpslink" >> "$output"
18
+done <"$input"
0 commit comments