mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +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.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort;
|
||||
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 : '';
|
||||
plugins.fireHook('filter:config.get', config, next);
|
||||
},
|
||||
|
||||
@@ -77,7 +77,6 @@ module.exports = function (User) {
|
||||
settings.upvoteNotifFreq = getSetting(settings, 'upvoteNotifFreq', 'all');
|
||||
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 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.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) === 1;
|
||||
|
||||
@@ -131,7 +130,6 @@ module.exports = function (User) {
|
||||
followTopicsOnReply: data.followTopicsOnReply,
|
||||
restrictChat: data.restrictChat,
|
||||
topicSearchEnabled: data.topicSearchEnabled,
|
||||
delayImageLoading: data.delayImageLoading,
|
||||
homePageRoute: ((data.homePageRoute === 'custom' ? data.homePageCustom : data.homePageRoute) || '').replace(/^\//, ''),
|
||||
scrollToMyPost: data.scrollToMyPost,
|
||||
notificationSound: data.notificationSound,
|
||||
|
||||
@@ -1384,7 +1384,6 @@ describe('User', function () {
|
||||
homePageCustom: '',
|
||||
openOutgoingLinksInNewTab: 0,
|
||||
scrollToMyPost: 1,
|
||||
delayImageLoading: 1,
|
||||
userLang: 'en-GB',
|
||||
usePagination: 1,
|
||||
topicsPerPage: '10',
|
||||
|
||||
Reference in New Issue
Block a user