Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
1236b8a0
Commit
1236b8a0
authored
Apr 24, 2018
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use the ID to order archives
fix
#3343
parent
61de6b1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
CHANGELOG.rst
CHANGELOG.rst
+5
-0
src/database/database.cpp
src/database/database.cpp
+2
-2
No files found.
CHANGELOG.rst
View file @
1236b8a0
...
...
@@ -2,6 +2,11 @@ Version 8.0
===========
- Add a complete='true' in MAM’s iq result when appropriate
- The archive ordering now only relies on the value of the ID, not the
date. This means that if you manually import archives in your database (or
mess with it somehow), biboumi will not work properly anymore, if you
don’t make sure the ID of everything in the muclogline table is
consistent.
- The “virtual” channel with an empty name (for example
%irc.freenode.net@biboumi) has been entirely removed.
- Add an “Address” field in the servers’ configure form. This lets
...
...
src/database/database.cpp
View file @
1236b8a0
...
...
@@ -224,9 +224,9 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne
}
if
(
paging
==
Database
::
Paging
::
first
)
request
.
order_by
()
<<
Database
::
Date
{}
<<
" ASC, "
<<
Id
{}
<<
" ASC "
;
request
.
order_by
()
<<
Id
{}
<<
" ASC "
;
else
request
.
order_by
()
<<
Database
::
Date
{}
<<
" DESC, "
<<
Id
{}
<<
" DESC "
;
request
.
order_by
()
<<
Id
{}
<<
" DESC "
;
if
(
limit
>=
0
)
request
.
limit
()
<<
limit
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment