Fixes issue with profile pictures not updating w/o refresh and prevents more ie10 ajax caching issues
Этот коммит содержится в:
@@ -102,7 +102,7 @@ module.exports = React.createClass({
|
|||||||
currentUserCss = "current--user";
|
currentUserCss = "current--user";
|
||||||
}
|
}
|
||||||
|
|
||||||
var timestamp = UserStore.getCurrentUser().update_at;
|
var timestamp = UserStore.getProfile(post.user_id).update_at;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -565,6 +565,7 @@ module.exports.updateLastViewedAt = function(channelId, success, error) {
|
|||||||
|
|
||||||
function getChannels(success, error) {
|
function getChannels(success, error) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
cache: false,
|
||||||
url: '/api/v1/channels/',
|
url: '/api/v1/channels/',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@@ -580,6 +581,7 @@ module.exports.getChannels = getChannels;
|
|||||||
|
|
||||||
module.exports.getChannel = function(id, success, error) {
|
module.exports.getChannel = function(id, success, error) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
cache: false,
|
||||||
url: '/api/v1/channels/' + id + '/',
|
url: '/api/v1/channels/' + id + '/',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@@ -609,6 +611,7 @@ module.exports.getMoreChannels = function(success, error) {
|
|||||||
|
|
||||||
function getChannelCounts(success, error) {
|
function getChannelCounts(success, error) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
cache: false,
|
||||||
url: '/api/v1/channels/counts',
|
url: '/api/v1/channels/counts',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@@ -652,6 +655,7 @@ module.exports.executeCommand = function(channelId, command, suggest, success, e
|
|||||||
|
|
||||||
module.exports.getPosts = function(channelId, offset, limit, success, error, complete) {
|
module.exports.getPosts = function(channelId, offset, limit, success, error, complete) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
cache: false,
|
||||||
url: '/api/v1/channels/' + channelId + '/posts/' + offset + '/' + limit,
|
url: '/api/v1/channels/' + channelId + '/posts/' + offset + '/' + limit,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@@ -667,6 +671,7 @@ module.exports.getPosts = function(channelId, offset, limit, success, error, com
|
|||||||
|
|
||||||
module.exports.getPost = function(channelId, postId, success, error) {
|
module.exports.getPost = function(channelId, postId, success, error) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
cache: false,
|
||||||
url: '/api/v1/channels/' + channelId + '/post/' + postId,
|
url: '/api/v1/channels/' + channelId + '/post/' + postId,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user