fedimbed: oop
This commit is contained in:
parent
9f5ebe42fa
commit
72459f8dc4
1 changed files with 19 additions and 18 deletions
|
@ -946,6 +946,7 @@ async function fetchPost(url, platform, forceMastoAPI = false) {
|
||||||
async function getStatsAS(post) {
|
async function getStatsAS(post) {
|
||||||
// agony
|
// agony
|
||||||
let replyCount = 0;
|
let replyCount = 0;
|
||||||
|
if (post?.replies?.id)
|
||||||
try {
|
try {
|
||||||
const selfReplies = await signedFetch(post.replies.id + "?page=true", {
|
const selfReplies = await signedFetch(post.replies.id + "?page=true", {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue