This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix wrong route helper in encrypted messages controller (
#13952
)
And add `created_at` to encrypted message serializer
closed-social-v3
Eugen Rochko
4 years ago
committed by
GitHub
parent
77619b1654
commit
f669b8bcce
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
4 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
app/controllers/api/v1/crypto/encrypted_messages_controller.rb
+2
-1
app/serializers/rest/encrypted_message_serializer.rb
+ 2
- 2
app/controllers/api/v1/crypto/encrypted_messages_controller.rb
View File
@ -34,11 +34,11 @@ class Api::V1::Crypto::EncryptedMessagesController < Api::BaseController
end
def
next_path
api_v1_encrypted_messages_url
pagination_params
(
max_id
:
pagination_max_id
)
if
records_continue?
api_v1_
crypto_
encrypted_messages_url
pagination_params
(
max_id
:
pagination_max_id
)
if
records_continue?
end
def
prev_path
api_v1_encrypted_messages_url
pagination_params
(
min_id
:
pagination_since_id
)
unless
@encrypted_messages
.
empty?
api_v1_
crypto_
encrypted_messages_url
pagination_params
(
min_id
:
pagination_since_id
)
unless
@encrypted_messages
.
empty?
end
def
pagination_max_id
+ 2
- 1
app/serializers/rest/encrypted_message_serializer.rb
View File
@ -2,7 +2,8 @@
class
REST
::
EncryptedMessageSerializer
<
ActiveModel
::
Serializer
attributes
:id
,
:account_id
,
:device_id
,
:type
,
:body
,
:digest
,
:message_franking
:type
,
:body
,
:digest
,
:message_franking
,
:created_at
def
id
object
.
id
.
to_s
Write
Preview
Loading…
Cancel
Save