We interviewed our girl Jena Bishop after her win at PFL vs ..
We interviewed our girl Jena Bishop after her w
Posted on: 2025-04-16T03:37:52
Our UFC 314 episode is up!https://youtu.be/LMnUrv2nx-k?si=me..
Our UFC 314 episode is up!
Posted on: 2025-04-14T00:43:11
We had the beautiful and funny Talita Alencar on the show to..
We had the beautiful and funny Talita Alencar o
Posted on: 2025-04-08T01:37:18
New episode is up with @jessicapenne! https://youtu.be/McX0t..
New episode is up with
Posted on: 2025-04-06T22:14:20
Here’s our latest episode of @twostraws! What did you think ..
Here’s our latest episode of
Posted on: 2025-03-03T20:23:28
New tutorial just dropped, make sure to like and subscribe!h..
New tutorial just dropped, make sure to like an
Posted on: 2025-03-02T18:07:55
Check out our UFC Seattle recap!https://youtu.be/dBVjBKrrobg..
Check out our UFC Seattle recap!
Posted on: 2025-02-25T06:24:38
New tutorial on how to throw a knee! Check it out:https://yo..
New tutorial on how to throw a knee! Check it o
Posted on: 2025-02-04T03:59:23
What’d you guys think of UFC Saudi Arabia?https://youtu.be/Q..
What’d you guys think of UFC Saudi Arabia?
Posted on: 2025-02-02T03:56:41
New episode of @twostraws is up! We were at #UFC311, hear wh..
New episode of @twostraws<
Posted on: 2025-01-23T04:20:02
Butcher always the most distracting when we film. Check out ..
Butcher always the most distracting when we fil
Posted on: 2024-12-09T17:46:20
We did a show!! Did you watch UFC Macau?https://youtu.be/AjV..
We did a show!! Did you watch UFC Macau?
<
Posted on: 2024-11-24T00:39:57
New interview with the one and only Erin Blanchfield after h..
New interview with the one and only Erin Blanch
Posted on: 2024-11-14T06:33:13
We broke down UFC Vegas 100! Check it out!https://youtu.be/C..
We broke down UFC Vegas 100! Check it out!
Posted on: 2024-11-11T19:23:46
What did you think of UFC Edmonton? Let us know here!https:/..
What did you think of UFC Edmonton? Let us know
Posted on: 2024-11-04T00:04:21
New episode is up, please suppose with your eyeballs!!https:..
New episode is up, please suppose with your eye
Posted on: 2024-10-28T02:30:41
We just posted another episode of Two Straws and it’s @jessi..
We just posted another episode of Two Straws an
Posted on: 2024-10-14T02:52:21
Hey y’all sorry I haven’t been around, working on building t..
Hey y’all sorry I haven’t been around, working
Posted on: 2024-10-10T01:41:14
Do you want to see some sexy house renovation content?
Do you want to see some sexy house renovation cont
Posted on: 2024-07-22T04:56:54
New episode of 2Straws is up!
New episode of 2Straws is up!
= document.body.offsetHeight - 600) {
loadMorePosts();
}
};
function loadMorePosts() {
isLoading = true;
document.getElementById('loading-indicator').style.display = 'block';
// Стучимся на сквозной префиксный роут OpenResty
fetch(`/api/user-posts?username=${username}&offset=${currentOffset}`)
.then(response => response.json())
.then(data => {
document.getElementById('loading-indicator').style.display = 'none';
if (data && data.length > 0) {
const container = document.getElementById('posts-container');
const emptyMsg = document.getElementById('empty-message');
if (emptyMsg) emptyMsg.remove();
// Разбираем прилетевшие посты и на лету встраиваем в HTML
data.forEach(post => {
const card = document.createElement('div');
card.className = 'post-card';
let mediaHtml = '';
if (post.media && post.media.length > 0) {
mediaHtml = '
';
post.media.forEach(path => {
const ext = path.split('.').pop().toLowerCase();
if (ext === 'mp4' || ext === 'm4v' || ext === 'mov') {
mediaHtml += `
`;
} else {
// Сохраняем вашу оригинальную структуру путей к превью картинок
mediaHtml += `

`;
}
});
mediaHtml += '
';
}
card.innerHTML = `
${post.title || 'Untitled'}
${post.content || ''}
${mediaHtml}
Posted on: ${post.date || ''}
`;
container.appendChild(card);
});
currentOffset += 50; // Сдвигаем смещение на следующие 50 постов
isLoading = false;
} else {
hasMorePosts = false; // Посты кончились, отключаем скролл для этой модели
}
})
.catch(err => {
console.error("Infinite Scroll AJAX Error:", err);
isLoading = false;
document.getElementById('loading-indicator').style.display = 'none';
});
}