mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
remove delayImageLoading from api @julianlam
This commit is contained in:
@@ -97,7 +97,6 @@ apiController.loadConfig = function (req, callback) {
|
|||||||
config.topicPostSort = settings.topicPostSort || config.topicPostSort;
|
config.topicPostSort = settings.topicPostSort || config.topicPostSort;
|
||||||
config.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort;
|
config.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort;
|
||||||
config.topicSearchEnabled = settings.topicSearchEnabled || false;
|
config.topicSearchEnabled = settings.topicSearchEnabled || false;
|
||||||
config.delayImageLoading = settings.delayImageLoading !== undefined ? settings.delayImageLoading : true;
|
|
||||||
config.bootswatchSkin = (meta.config.disableCustomUserSkins !== 1 && settings.bootswatchSkin && settings.bootswatchSkin !== '') ? settings.bootswatchSkin : '';
|
config.bootswatchSkin = (meta.config.disableCustomUserSkins !== 1 && settings.bootswatchSkin && settings.bootswatchSkin !== '') ? settings.bootswatchSkin : '';
|
||||||
plugins.fireHook('filter:config.get', config, next);
|
plugins.fireHook('filter:config.get', config, next);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ module.exports = function (User) {
|
|||||||
settings.upvoteNotifFreq = getSetting(settings, 'upvoteNotifFreq', 'all');
|
settings.upvoteNotifFreq = getSetting(settings, 'upvoteNotifFreq', 'all');
|
||||||
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;
|
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;
|
||||||
settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;
|
settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;
|
||||||
settings.delayImageLoading = parseInt(getSetting(settings, 'delayImageLoading', 1), 10) === 1;
|
|
||||||
settings.bootswatchSkin = settings.bootswatchSkin || '';
|
settings.bootswatchSkin = settings.bootswatchSkin || '';
|
||||||
settings.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) === 1;
|
settings.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) === 1;
|
||||||
|
|
||||||
@@ -131,7 +130,6 @@ module.exports = function (User) {
|
|||||||
followTopicsOnReply: data.followTopicsOnReply,
|
followTopicsOnReply: data.followTopicsOnReply,
|
||||||
restrictChat: data.restrictChat,
|
restrictChat: data.restrictChat,
|
||||||
topicSearchEnabled: data.topicSearchEnabled,
|
topicSearchEnabled: data.topicSearchEnabled,
|
||||||
delayImageLoading: data.delayImageLoading,
|
|
||||||
homePageRoute: ((data.homePageRoute === 'custom' ? data.homePageCustom : data.homePageRoute) || '').replace(/^\//, ''),
|
homePageRoute: ((data.homePageRoute === 'custom' ? data.homePageCustom : data.homePageRoute) || '').replace(/^\//, ''),
|
||||||
scrollToMyPost: data.scrollToMyPost,
|
scrollToMyPost: data.scrollToMyPost,
|
||||||
notificationSound: data.notificationSound,
|
notificationSound: data.notificationSound,
|
||||||
|
|||||||
@@ -1384,7 +1384,6 @@ describe('User', function () {
|
|||||||
homePageCustom: '',
|
homePageCustom: '',
|
||||||
openOutgoingLinksInNewTab: 0,
|
openOutgoingLinksInNewTab: 0,
|
||||||
scrollToMyPost: 1,
|
scrollToMyPost: 1,
|
||||||
delayImageLoading: 1,
|
|
||||||
userLang: 'en-GB',
|
userLang: 'en-GB',
|
||||||
usePagination: 1,
|
usePagination: 1,
|
||||||
topicsPerPage: '10',
|
topicsPerPage: '10',
|
||||||
|
|||||||
Reference in New Issue
Block a user