mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
Onelinerz standardization work and docs
This commit is contained in:
parent
5859ba0b68
commit
a14c0f42af
4 changed files with 24 additions and 4 deletions
|
@ -153,10 +153,14 @@ exports.getModule = class OnelinerzModule extends MenuModule {
|
|||
);
|
||||
},
|
||||
function populateEntries(entriesView, entries, callback) {
|
||||
const tsFormat = self.menuConfig.config.timestampFormat || self.client.currentTheme.helpers.getDateFormat('short');
|
||||
const tsFormat =
|
||||
self.menuConfig.config.dateTimeFormat ||
|
||||
self.menuConfig.config.timestampFormat || // deprecated
|
||||
self.client.currentTheme.helpers.getDateFormat('short');
|
||||
|
||||
entriesView.setItems(entries.map( e => {
|
||||
return {
|
||||
text : e.oneliner, // standard
|
||||
userId : e.user_id,
|
||||
userName : e.user_name,
|
||||
oneliner : e.oneliner,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue