Improved naming of output serializer url util

This commit is contained in:
Fabien "egg" O'Carroll 2023-01-20 17:50:00 +07:00 committed by Fabien 'egg' O'Carroll
parent 68f469c78b
commit 40c280f6ac

View File

@ -10,13 +10,13 @@ const {
const events = require('../../lib/common/events');
const externalRequest = require('../../../server/lib/request-external.js');
const urlUtils = require('../../../shared/url-utils');
const url = require('../../../server/api/endpoints/utils/serializers/output/utils/url');
const outputSerializerUrlUtil = require('../../../server/api/endpoints/utils/serializers/output/utils/url');
const labs = require('../../../shared/labs');
const urlService = require('../url');
function getPostUrl(post) {
const jsonModel = {};
url.forPost(post.id, jsonModel, {options: {}});
outputSerializerUrlUtil.forPost(post.id, jsonModel, {options: {}});
return jsonModel.url;
}
module.exports = {