diff --git a/components/chat/ChatQuote.vue b/components/chat/ChatQuote.vue
index 43523dd2..cbb1a4e9 100644
--- a/components/chat/ChatQuote.vue
+++ b/components/chat/ChatQuote.vue
@@ -23,14 +23,14 @@
diff --git a/public/css/custom.css b/public/css/custom.css
index 1078db21..d86d3f94 100644
--- a/public/css/custom.css
+++ b/public/css/custom.css
@@ -442,6 +442,10 @@ a:hover {
font-style: italic;
}
+.quote-text {
+ cursor: pointer;
+}
+
.sidebar-card-body {
padding-top: 0;
}
diff --git a/utils/ipfsUtils.js b/utils/ipfsUtils.js
index 81b48524..684b54fc 100644
--- a/utils/ipfsUtils.js
+++ b/utils/ipfsUtils.js
@@ -88,7 +88,7 @@ export async function getWorkingUrl(url) {
}
}
} else if (url.startsWith("ar://")) {
- const arweaveUrl = url.replace("ar://", "https://arweave.net/")
+ const arweaveUrl = url.replace("ar://", this.$config.arweaveGateway)
try {
const response = await axios.head(arweaveUrl, { signal: AbortSignal.timeout(abortTimeout) })
diff --git a/utils/textUtils.js b/utils/textUtils.js
index 676e0fe0..98120008 100644
--- a/utils/textUtils.js
+++ b/utils/textUtils.js
@@ -100,7 +100,7 @@ export function getAllImagesFromText(text) {
} else {
for (let i = 0; i < imageLinks.length; i++) {
if (imageLinks[i].startsWith('ar://')) {
- imageLinks[i] = imageLinks[i].replace('ar://', 'https://arweave.net/')
+ imageLinks[i] = imageLinks[i].replace('ar://', this.$config.arweaveGateway)
} else if (imageLinks[i].startsWith('ipfs://')) {
imageLinks[i] = imageLinks[i].replace('ipfs://', 'https://ipfs.io/ipfs/')
}
@@ -137,7 +137,7 @@ export function getImageFromText(text) {
} else {
for (let i = 0; i < imageLinks.length; i++) {
if (imageLinks[i].startsWith('ar://')) {
- imageLinks[i] = imageLinks[i].replace('ar://', 'https://arweave.net/')
+ imageLinks[i] = imageLinks[i].replace('ar://', this.$config.arweaveGateway)
} else if (imageLinks[i].startsWith('ipfs://')) {
imageLinks[i] = imageLinks[i].replace('ipfs://', 'https://ipfs.io/ipfs/')
}
@@ -412,7 +412,7 @@ export function imgParsing(text) {
return text.replace(imageRegex, function (url) {
let newUrl = url
if (url.startsWith('ar://')) {
- newUrl = url.replace('ar://', 'https://arweave.net/')
+ newUrl = url.replace('ar://', this.$config.arweaveGateway)
} else if (url.startsWith('ipfs://')) {
newUrl = url.replace('ipfs://', 'https://ipfs.io/ipfs/')
}
@@ -437,7 +437,7 @@ export function imgWithoutExtensionParsing(text) {
return text.replace(imageRegex, function (url) {
if (url.startsWith('ar://')) {
- url = url.replace('ar://', 'https://arweave.net/')
+ url = url.replace('ar://', this.$config.arweaveGateway)
} else if (url.startsWith('ipfs://')) {
url = url.replace('ipfs://', 'https://ipfs.io/ipfs/')
}