diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx
index 20f84677..13ba1ffe 100644
--- a/src/components/views/Board.jsx
+++ b/src/components/views/Board.jsx
@@ -11,7 +11,7 @@ import Post from '../Post';
import PostLoader from '../PostLoader';
import ReplyModal from '../ReplyModal';
import SettingsModal from '../SettingsModal';
-import findParentShortCid from '../../utils/findParentShortCid';
+import findShortParentCid from '../../utils/findShortParentCid';
import getCommentMediaInfo from '../../utils/getCommentMediaInfo';
import getDate from '../../utils/getDate';
import handleQuoteClick from '../../utils/handleQuoteClick';
@@ -521,7 +521,7 @@ const Board = () => {
{renderedComments?.map((reply) => {
const replyMediaInfo = getCommentMediaInfo(reply);
const fallbackImgUrl = "/assets/filedeleted-res.gif";
- const shortParentCid = findParentShortCid(reply.parentCid, selectedFeed);
+ const shortParentCid = findShortParentCid(reply.parentCid, selectedFeed);
return (
{'>>'}
diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx
index 51bc020c..d4414167 100644
--- a/src/components/views/Thread.jsx
+++ b/src/components/views/Thread.jsx
@@ -11,7 +11,7 @@ import Post from '../Post';
import PostLoader from '../PostLoader';
import ReplyModal from '../ReplyModal';
import SettingsModal from '../SettingsModal';
-import findParentShortCid from '../../utils/findParentShortCid';
+import findShortParentCid from '../../utils/findShortParentCid';
import getCommentMediaInfo from '../../utils/getCommentMediaInfo';
import getDate from '../../utils/getDate';
import handleQuoteClick from '../../utils/handleQuoteClick';
@@ -510,7 +510,7 @@ const Thread = () => {
renderedComments.map((reply) => {
const replyMediaInfo = getCommentMediaInfo(reply);
const fallbackImgUrl = "/assets/filedeleted-res.gif";
- const shortParentCid = findParentShortCid(reply.parentCid, comment);
+ const shortParentCid = findShortParentCid(reply.parentCid, comment);
return (
{'>>'}
diff --git a/src/utils/findParentShortCid.js b/src/utils/findShortParentCid.js
similarity index 70%
rename from src/utils/findParentShortCid.js
rename to src/utils/findShortParentCid.js
index 2cf62b29..2634c763 100644
--- a/src/utils/findParentShortCid.js
+++ b/src/utils/findShortParentCid.js
@@ -1,4 +1,4 @@
-function findParentShortCid(parentCid, input) {
+function findShortParentCid(parentCid, input) {
const feed = Array.isArray(input) ? input : [input];
for (const thread of feed) {
@@ -6,7 +6,7 @@ function findParentShortCid(parentCid, input) {
return thread.shortCid;
}
if (thread.replyCount > 0 && thread.replies.pages.topAll.comments) {
- const shortCid = findParentShortCid(parentCid, thread.replies.pages.topAll.comments);
+ const shortCid = findShortParentCid(parentCid, thread.replies.pages.topAll.comments);
if (shortCid) {
return shortCid;
}
@@ -15,4 +15,4 @@ function findParentShortCid(parentCid, input) {
return null;
}
-export default findParentShortCid;
\ No newline at end of file
+export default findShortParentCid;
\ No newline at end of file