Benjamin Neff
8f804e376a
Don't export chat_enabled flag anymore
...
The chat is already removed for 0.8, so there is no need to still export
this data since it can't be imported anyway.
Related to #8069
closes #8265
2021-07-04 22:03:37 +02:00
Benjamin Neff
caeeac6c59
Merge branch 'next-minor' into develop
2021-07-03 03:03:32 +02:00
Thorsten Claus
b31f9106a1
Migration: Exporting user blocks
...
closes #8263
2021-07-03 02:51:41 +02:00
Benjamin Neff
d27eefeb34
Merge branch 'next-minor' into develop
2021-06-30 23:27:57 +02:00
Benjamin Neff
7b73002a2c
Merge pull request #8261 from SuperTux88/gem-updates
...
Gem updates
2021-06-30 23:21:52 +02:00
Benjamin Neff
c203c1eb94
Cleanup unused commenting_disabled? and can_comment?
...
closes #8262
2021-06-30 23:19:29 +02:00
Benjamin Neff
dc3bef6a93
Bump carrierwave
2021-06-28 01:28:15 +02:00
Benjamin Neff
5fcc60fea8
Merge branch 'next-minor' into develop
2021-06-27 22:29:12 +02:00
Akshay S Dinesh
b375bfa630
Add more closing tags to fix specs
...
closes #8159
2021-06-27 22:23:22 +02:00
Benjamin Neff
1dd2382d03
Merge pull request #8243 from tclaus/8192_drop_relay_example
...
drop relay example and implementation
closes #8192
2021-06-13 01:35:42 +02:00
Benjamin Neff
a6c79f5e57
Merge pull request #8232 from tclaus/local_public_posts
...
Show Local public posts
closes #8220
2021-06-13 01:32:24 +02:00
Benjamin Neff
a17fca02ff
Merge branch 'next-minor' into develop
2021-06-13 01:27:34 +02:00
Thorsten Claus
43d489edda
Fixed test
...
closes #8244
2021-06-13 01:26:27 +02:00
Thorsten Claus
3793d36609
Added tag handling
2021-06-13 01:24:49 +02:00
Allan Klaus
b2b03d2679
Improve Service::Tumblr
...
- Fix rubocop styles
- Improve specs coverage
2021-06-13 01:24:48 +02:00
Pirate Praveen
92a096f03c
Add closing tags to replace invalid self-closing tags
...
closes #8251
closes #8158
2021-06-13 01:14:03 +02:00
Thorsten Claus
1f510d0b40
Wrapped local_comments also in a cache
...
closes #8241
closes #7992
2021-06-13 01:09:44 +02:00
Thorsten Claus
7042237218
Styles, SQL format
2021-06-13 01:03:22 +02:00
Thorsten Claus
d4331f4e65
7992 wrap local_posts from statistics in a cache
2021-06-13 01:03:18 +02:00
Thorsten Claus
61de6e117d
8192 drop relay example and implementation
2021-05-12 23:23:46 +02:00
Thorsten Claus
64d65269d8
Fixing robocop
2021-04-18 13:25:50 +02:00
Thorsten Claus
7fae5ca3b8
More optimized and faster query for local public posts
...
Even faster with new index
2021-04-18 13:11:25 +02:00
Thorsten Claus
2db1d5d641
Fixing PR Rewview issues
2021-04-18 13:11:25 +02:00
Thorsten Claus
4147249d2d
Makes the local posts link be configured for special audiences
2021-04-18 13:11:25 +02:00
Thorsten Claus
ddee980426
Adds a local-public tag on the sidebar that shows all posts local to this pod
2021-04-18 13:11:25 +02:00
Thorsten Claus
6c3269c6d5
Expand publisher on drag&drop
2021-04-14 08:27:06 +02:00
Hank Grabowski
0638619f81
7878 directly pasting images into edit box and broader drag and drop areas
2021-04-13 20:59:45 +02:00
Pirate Praveen
b9f570c68d
Use jquery-ui-rails instead of rails-assets-jquery.ui
...
closes #8147
2021-04-11 18:25:58 +02:00
Jonne Haß
28213b1a47
Merge branch 'next-minor' into develop
2021-04-11 17:29:57 +02:00
Jonne Haß
ee35ad3200
update devise-two-factor to 4.0.0
2021-04-11 17:25:18 +02:00
Jonne Haß
f4dc6d0dc7
Merge branch 'next-minor' into develop
2021-04-11 17:23:46 +02:00
gabrielrumiranda
394eafccc5
Actually implement validation error case in Photo#ownserhip_of_status_message
...
closes #8214
closes #8048
Co-authored-by: Thorsten Claus <thorstenclaus@web.de>
2021-04-11 17:22:40 +02:00
Jonne Haß
5f00b4a4e6
Merge branch 'next-minor' into develop
2021-04-11 17:13:46 +02:00
Gayathrir1666
ef9e764f7a
Add scrollbar to aspect dropdowns
...
closes #8213
closes #7696
Co-authored-by: Hank Grabowski <hankgrabowski@gmail.com>
Co-authored-by: Thorsten Claus <thorstenclaus@web.de>
2021-04-11 17:13:25 +02:00
Jonne Haß
2c8bf3b5da
Merge branch 'next-minor' into develop
2021-04-11 13:16:21 +02:00
Thorsten Claus
a420ba2cfc
Formatting post per user fractions
...
closes #8227
2021-04-11 13:16:15 +02:00
Jonne Haß
e0af180c9b
Merge branch 'next-minor' into develop
2021-04-11 01:46:52 +02:00
Thorsten Claus
a98fdc8079
Remove 'heidelberg' tile map service.
...
Updated settings for MapTiles as recommended by leaflet.js
Updating current licence text
Closes #8209
closes #8215
2021-04-11 01:45:05 +02:00
Dennis Schubert
d4f92a8fae
Merge branch 'next-minor' into develop
2021-02-21 19:45:00 +01:00
Thorsten Claus
d7941230a4
Replace some http links with their https counterparts.
...
closes #8207
2021-02-21 19:44:42 +01:00
Dennis Schubert
1ef0cef74c
Merge pull request #8205 from tclaus/8189-filter-upload-image-types
...
File selection dialog accepts only image types
2021-02-13 04:39:42 +01:00
Dennis Schubert
195dfe6970
Merge pull request #8188 from jhass/converations_api_read
...
API: Conversations read handling through explicit route
2021-02-13 04:36:23 +01:00
Thorsten Claus
37e4242fdf
File selection dialog accepts only image types
2021-02-08 21:38:49 +01:00
Benjamin Neff
caa8a29605
Merge branch 'next-minor' into develop
2020-12-30 14:16:08 +01:00
Benjamin Neff
1faddbc911
Fix "Change email" button position on mobile-ui
...
closes #8193
2020-12-30 14:16:02 +01:00
Jonne Haß
d9db761c79
API: Add endpoint to toggle conversation read status
2020-11-30 18:03:38 +01:00
Jonne Haß
a7ff52f366
API: Don't mark conversations as read when fetching its messages
2020-11-30 18:03:38 +01:00
Thorsten Claus
d2acad1aed
Enlarge accept and deny buttons in open-id authorization ( #8183 )
...
* Enlarge accept and deny buttons
* Move Accept/Deny buttons to the center on mobile, moved right on dektops
2020-11-14 19:22:40 +01:00
Jonne Haß
6a4a983fa1
Merge branch 'next-minor' into develop
2020-11-02 15:34:08 +01:00
David Morley
9793f89761
Update poduptime link to diaspora only list
...
closes #8174
2020-11-02 15:33:38 +01:00
Jonne Haß
0aba20f85c
OpenID Connect: ensure consistent issuer URL
...
root_url does not know the right protocol in all contexts,
some clients are strict when validating this.
2020-10-24 22:30:43 +02:00
Benjamin Neff
d27cd175df
Merge pull request #8167 from SuperTux88/fix-TagFollowingsController
...
Fix error in TagFollowingsController#create when duplicate is created
2020-10-24 21:04:55 +02:00
Dennis Schubert
31e13dcff7
Merge branch 'next-minor' into develop
2020-10-24 14:25:45 +02:00
Thorsten Claus
d0eb711ca0
In single post view deleting a comment updates the counter
2020-10-24 14:25:32 +02:00
Benjamin Neff
81bc438c98
Fix error in TagFollowingsController#create when duplicate is created
2020-10-23 21:10:15 +02:00
Jonne Haß
7fabd9d17f
OpenID Connect: Disable form-action CSP on authorization page
...
Some browsers apply this CSP rules even to the redirect response
after the POST requests, blocking the redirect_uri redirect
2020-10-20 18:10:52 +02:00
Jonne Haß
15c11b87ca
Merge branch 'next-minor' into develop
2020-09-04 21:58:57 +02:00
Jonne Haß
08395cc877
Migrate configuration to TOML
...
YAML is just too easy to get wrong
closes #8132
2020-09-04 21:48:54 +02:00
Dennis Schubert
517e3b22ba
Expose a user's .current_sign_in_ip in the admin panel
2020-09-02 21:06:13 +02:00
Dennis Schubert
31b28e731d
Merge branch 'next-minor' into develop
2020-06-13 23:31:09 +02:00
Noah Leal
ad91dddd63
Issue #8119 - Add length validation to a profile's gender field.
...
closes #8127
2020-06-13 23:31:03 +02:00
Jonne Haß
d13bcc00e0
Merge branch 'next-minor' into develop
2020-03-21 19:15:14 +01:00
Vitalie Ciubotaru
827a2ce991
Remove links to deleted profiles in admin user stats
...
closes #8063
closes #8061
2020-03-21 19:14:56 +01:00
Jonne Haß
1a7b2b0c31
API: extend /search/user with a filter option
...
See API docs for more details
2020-03-20 12:39:09 +01:00
Jonne Haß
2d28ddc1ef
Add API route to (un)block a user
2020-03-20 12:38:27 +01:00
Jonne Haß
cd6e02ccec
API: allow post creation without a body when there are photos
2020-02-20 18:50:32 +01:00
Jonne Haß
e9242d7754
API: Fix fetching explicitly not only unread conversations
2020-02-17 10:59:10 +01:00
Jonne Haß
00df0b7bda
API: add new route to search for tags
2020-02-17 10:58:04 +01:00
Benjamin Neff
4139ae2549
Merge branch 'next-minor' into develop
2020-02-12 00:13:19 +01:00
Dennis Schubert
2e2b42ef1a
Mark non-attribute usage in SQL queries as safe.
...
Non-attribute arguments will be disallowed in Rails 6.0.
2020-02-11 23:54:55 +01:00
Dennis Schubert
4685df634c
Make Person.search_query_string public.
...
Accessibility of private/protected class methods in :scope is deprecated and will be removed in Rails 6.0.
2020-02-11 23:53:14 +01:00
Dennis Schubert
45e8b54bea
Check for status codes instead of relying on response.redirect?.
...
Rack did so much refactoring, we do not see a Response object here anymore.
2020-02-11 23:53:14 +01:00
Dennis Schubert
75ef13b5d1
Replace content_security_policy_nonce with content_security_policy_script_nonce.
...
To avoid an conflict with Rails, and to avoid confusing by twitter's gem overloading the method.
2020-02-11 23:53:14 +01:00
Dennis Schubert
25e9728fae
Do not depend on the default parameter being set in Person#initialize.
...
ActiveRecord 5.2.x occasionally calls with a nil parameter explicitly provided, so using default arguments does not work.
2020-02-11 23:53:14 +01:00
Jonne Haß
6dbef95951
API: return whether post or item was already reported or not
2020-02-09 11:04:59 +01:00
Jonne Haß
8068d8747b
API: Fix fetching explicitly not only unread notifications
2020-02-09 11:03:55 +01:00
Jonne Haß
cd0995abf3
API: Don't return notifications target unless it's a post
2020-02-09 11:03:55 +01:00
Jonne Haß
04d0d6dccb
API: return mentioned_people for comments
2020-02-04 18:54:53 +01:00
Dennis Schubert
dbbf743920
Add the scaled_full image as a raw image in AvatarPresenter as well.
...
This is a temporary workaround. Adding the real raw photo is quite a
challange and touches multiple components nobody wants to touch right
now. As this change is blocking an actual hotfix, this is fine, and will
be properly fixed at a later time.
2020-02-04 15:52:57 +01:00
Dennis Schubert
bf55d07580
Re-add sizes.raw to the photo JSON
...
because we need it for showing the raw image in the lightbox. This got lost, as the photo extension was made after API development started.
2020-02-04 14:38:49 +01:00
Jonne Haß
2e7526bac5
API: Let hide endpoint take payload as documented and act according to it
2020-02-02 21:49:20 +01:00
Jonne Haß
dcbd02cf7f
Return 403 for unauthorized API requests
...
Also cleanup error handling code and remove last translatable
API error messages
2020-02-02 21:49:20 +01:00
Jonne Haß
884de9008f
API: rename poll_answer_id to poll_answer in post interactions vote endpoint
2020-02-02 21:26:33 +01:00
Jonne Haß
b1f357849b
API: return post oEmbed data
2020-02-02 20:15:36 +01:00
Jonne Haß
5921cd0176
API: return post open graph metadata
2020-02-02 20:15:36 +01:00
Jonne Haß
8cae234f45
API: return own vote state in polls
2020-02-02 18:40:07 +01:00
Jonne Haß
b921b71b97
API: ensure nsfw field in post is returned as a boolean
2020-02-02 18:31:46 +01:00
Jonne Haß
0754c92116
API: correct like and comment scopes for private posts
2020-02-02 18:23:34 +01:00
Jonne Haß
fbd0a51829
API: return current users like, reshare and subcription status in post infos
2020-02-02 18:13:55 +01:00
Jonne Haß
6bbcb7415b
API: don't make error messages translatable
2020-02-02 18:04:11 +01:00
Jonne Haß
04744b4dac
API: Return 409 when trying to create something existing and 410 when trying to delete something already gone
...
Probably missed a few more cases where we always return sucess when the user requests
status quo, but this should cover most ground
2020-02-02 18:04:11 +01:00
Jonne Haß
e8b9a70fbf
Ensure API responses adhere to documented error format
2020-02-02 18:04:11 +01:00
Jonne Haß
2da33408f9
Merge branch 'next-minor' into develop
2020-01-27 09:30:14 +01:00
Jonne Haß
1e642be040
Hide sign up link in mobile header when registrations are disabled
...
closes #8060
2020-01-27 09:30:11 +01:00
Jonne Haß
35bfbc9c82
Return missing created_at field on reshares endpoint
2020-01-24 16:58:32 +01:00
Jonne Haß
0935451cd8
Return a default token_endpoint_auth_method when the client gives none in its OpenID Connect registration request
...
Since we announce it in the supported metadata, some clients expect to be told what to use and don't fallback to the spec standard of
client_secret_basic on their own.
2020-01-24 11:02:02 +01:00
Jonne Haß
8d690a9e33
undo changes in introduced by merge conflicts in the api branch
2020-01-21 23:56:01 +01:00
Jonne Haß
16b242fa0f
Drop chat_enabled from aspects API
2020-01-21 23:35:01 +01:00
Jonne Haß
3abf6b6f41
return required client_secret_expires_at in openid connect dynamic registration response
2020-01-21 23:35:01 +01:00
Jonne Haß
1bf05e7921
use desktop openid connect authorizations and error pages on mobile for now
2020-01-21 23:35:01 +01:00
Jonne Haß
39c863ead9
Merge branch 'develop' into api
2020-01-21 23:35:01 +01:00
cmrd Senya
6b8cd5d390
API: accept name parameter instead of first name and last name in user patch
2020-01-21 23:34:43 +01:00
cmrd Senya
9e18b19d6a
API: render name instead of first_name and last_name in user data
2020-01-21 23:34:43 +01:00
cmrd Senya
c348a763cf
API: add profile:read_private scope
2020-01-21 23:34:43 +01:00
Jonne Haß
d08b31f2ed
OpenID: remove private profile data claims that are not returned anyway and fix return values for profile and picture
2020-01-21 23:34:43 +01:00
Jonne Haß
dad54db7f4
Return API pagination links as headers rather than in the response body itself
2020-01-21 23:34:43 +01:00
Jonne Haß
2f7acbe4b3
API: fix missing page parameter to integer conversion
2020-01-21 23:34:43 +01:00
Jonne Haß
ab04633474
fix styling on the new authorization page
2020-01-21 23:34:43 +01:00
Jonne Haß
cb679371ac
Merge branch 'develop' into api
2020-01-21 23:34:43 +01:00
Jonne Haß
16e754f4c7
API: don't return default avatar
2020-01-21 23:34:00 +01:00
Benjamin Neff
1cbb3f9a7c
Merge pull request #8069 from denschub/remove-chat
...
Remove the JSXC/Prosody integration.
2019-10-25 01:32:37 +02:00
Benjamin Neff
6bb2e2fadd
Merge branch 'next-minor' into develop
2019-10-25 01:24:19 +02:00
FeruzOripov
3856b44c57
Refactoring aspects_controller.rb
...
closes #8064
2019-10-25 01:22:02 +02:00
Dennis Schubert
862fa38f8b
Remove the JSXC/Prosody integration.
...
As per discussion on https://discourse.diasporafoundation.org/t/removing-diaspora-s-current-chat-integration/2718 , nobody raised serious concerns or objections. Given future plans, we do not think having an unfinished implementation of something that likely will not get finished in the current form is worth it. So let's get rid of it.
2019-10-18 23:14:14 +02:00
Benjamin Neff
e63fa7a398
Merge branch 'next-minor' into develop
2019-07-04 02:30:38 +02:00
Benjamin Neff
b42c9896bc
Migrate pending profile photos and fix upload to unpend profile photos
...
fixes #8043
closes #8044
2019-07-04 02:29:17 +02:00
Benjamin Neff
e0b8b295df
Merge pull request #8039 from SuperTux88/photos-remove-commentable
...
Remove commentable functionality from photos
2019-07-03 13:29:39 +02:00
Benjamin Neff
a26e20ab7d
Merge branch 'next-minor' into develop
2019-07-03 13:25:49 +02:00
Benjamin Neff
df4e79b842
Cleanup pending photos which were never posted with cronjob
...
Only delete photos older than a day, so we don't delete photos for posts
which were uploaded 10 minutes ago and the author is still writing the
post for it.
closes #8041
2019-07-03 13:24:27 +02:00
Benjamin Neff
034d78e3e4
Remove commentable functionality from photos
...
This is not (and as far as I know, was never) used. If we want to make
standalone photos commentable, we can always add it back, but it would
also need to change federation for it to work, because comments support
only posts there. But for now it makes the code cleaner and easier to
remove it.
2019-07-02 01:58:54 +02:00
Benjamin Neff
6f14f1b850
Merge branch 'next-minor' into develop
2019-06-17 01:20:42 +02:00
Benjamin Neff
5602dc4418
Use username parameter first if present
...
this makes sure we don't use an old otp_user_id from an old session
closes #8031
2019-06-17 01:14:22 +02:00
Benjamin Neff
88e35d3f3a
Use :database_authenticatable strategy to check password for OTP user
...
This:
* makes sure that after_database_authentication is called for users with
enabled 2fa.
* handles paranoid mode correctly
2019-06-17 01:12:42 +02:00
Benjamin Neff
ef31ea6b96
Enable remember me for all forms
...
fixes #8023
2019-06-17 01:12:42 +02:00
flaburgan
78538d034a
Harmonize markdown titles sizes
...
fixes #7757
closes #8029
2019-06-17 01:10:41 +02:00
flaburgan
d8b3718a08
Fix wrong padding for captcha label in registration form
...
fixes #8016
closes #8028
2019-06-17 01:08:38 +02:00
Jonne Haß
700e5588e0
Merge branch 'next-minor' into develop
2019-05-24 22:43:13 +02:00
Jonne Haß
1227f34b2a
Pass normalized URI to OpenGraphReader
...
This ensures the hostname is downcase and thus subsequent third party library
assumptions hold, namely http-cookie (pulled through faraday-cookie_jar) doesn't
raise
closes #8021
2019-05-24 22:43:08 +02:00
Benjamin Neff
314239ff2a
Merge branch 'next-minor' into develop
2019-05-12 00:25:52 +02:00
Benjamin Neff
e5ba9a1a46
Move translations to registrations.closed
...
And remove unused translations and make "another pod" translatable.
closes #7896
2019-05-12 00:25:36 +02:00
flaburgan
4feab5219e
Use a partial to share code between mobile and desktop, add the new route to the RegistrationController, drop flash message for closed registrations
2019-05-12 00:25:36 +02:00
alebor-5
469983a623
Improve communication about signing up on closed pods
...
fixes #7767
2019-05-12 00:25:08 +02:00
flaburgan
6826e89a95
Change design, add a link to the official website
...
fixes #7910
closes #7966
2019-05-12 00:12:12 +02:00
David Moseler
e04ddd0bcc
Clarify pod is part of diaspora in splash screen
2019-05-12 00:09:58 +02:00
Benjamin Neff
165b8f4f6e
Don't encrypt the OTP secret
...
It doesn't add any security to have this encrypted, but it adds
complexity for podmins, because they need to backup the key.
closes #8014
2019-05-12 00:06:28 +02:00
Dennis Schubert
74c3debefe
Merge branch 'next-minor' into develop
2019-05-01 00:22:09 +02:00
Dennis Schubert
caf822f497
Make sure 2fa settings have the right background color
...
closes #8008
2019-05-01 00:22:04 +02:00
Benjamin Neff
d25d9f96f9
Merge branch 'next-minor' into develop
2019-04-30 22:52:00 +02:00
Benjamin Neff
54fd4846c0
Use password to disable 2FA instead of a token
...
Using token doesn't make much sense when you can generate new tokens
right below.
closes #8006
2019-04-30 22:51:51 +02:00
Benjamin Neff
ecda6eccf6
Remove password reset and sign up link below two factor form
...
They don't make sense on that page, because at this stage, the user
already has an account and also has already entered their password.
closes #8005
2019-04-30 22:51:11 +02:00
Benjamin Neff
d486fbce8c
Merge branch 'next-minor' into develop
2019-04-30 00:21:55 +02:00
Dennis Schubert
3c06bb2f4c
Center <p>s inside formes used as secondary labels
...
closes #8004
2019-04-30 00:21:43 +02:00
Dennis Schubert
ef137f09f2
Add lock icon to the 2fa OTP field
2019-04-30 00:21:36 +02:00
Benjamin Neff
607659939d
Enable paranoid mode for devise
...
fixes #8001
closes #8003
2019-04-30 00:21:00 +02:00
lislis
9d5b981809
Two factor authentication ( #7751 )
2019-04-28 23:24:40 +02:00
lislis
1da118780e
Two factor authentication ( #7751 )
2019-04-28 19:06:48 +02:00
Benjamin Neff
8372fb2240
Merge branch 'next-minor' into develop
2019-04-28 16:48:49 +02:00
Benjamin Neff
17af65e22c
Allow links with only the diaspora ID to link to a profile
...
closes #8000
2019-04-28 16:48:31 +02:00
Benjamin Neff
91aae4d755
Fix 500er when calling protocol handler with invalid URL
2019-04-28 16:44:29 +02:00
Benjamin Neff
d58646085f
Merge branch 'next-minor' into develop
2019-04-27 19:12:35 +02:00
Benjamin Neff
035b6f39fc
Change wording of description in PWA manifest
2019-04-27 19:11:27 +02:00
Benjamin Neff
cf350c3e92
Merge pull request #7660 from cmrd-senya/archive-import-backend
...
Archive import backend implementation
2019-04-27 19:07:09 +02:00
Benjamin Neff
6ba9b24c1a
Merge branch 'next-minor' into develop
2019-04-27 18:00:40 +02:00
flaburgan
2073791cee
Add a manifest.json file as a first step to make diaspora* a PWA
...
fixes #7997
closes #7998
2019-04-27 18:00:14 +02:00
flaburgan
5b6cef0679
Remove legacy mobile web-capable
2019-04-27 17:56:51 +02:00
Jonne Haß
91b6a807c7
API: fix birthday format in responses
2019-04-27 16:05:22 +02:00
Jonne Haß
52e4e9f903
API: Update post location format to floats instead of floats as strings
2019-04-27 16:04:44 +02:00
Jonne Haß
af59bf3265
API: Do not return redundant author for photos
2019-04-27 16:03:55 +02:00
Jonne Haß
8afa17f940
Don't return aspect order in single user info API route
2019-04-27 16:03:02 +02:00
cmrd Senya
597d9e0275
AccountMigration: support chained migration case
2019-04-26 20:29:26 +03:00
Jonne Haß
f7a27f0c07
Ignore Metrics/AbcSize Rubocop for PostPresenter#as_api_response
...
[ci skip]
2019-04-26 18:18:48 +02:00
Jonne Haß
99411fced7
Merge branch 'develop' into api
2019-04-26 17:54:08 +02:00
cmrd Senya
f85f167f50
Implement archive import backend
...
This implements archive import feature.
The feature is divided in two main subfeatures: archive validation and archive import.
Archive validation performs different validation on input user archive. This can be
used without actually running import, e.g. when user wants to check the archive
before import from the frontend. Validators may add messages and modify the archive.
Validators are separated in two types: critical validators and non-critical validators.
If validations by critical validators fail it means we can't import archive.
If non-critical validations fail, we can import archive, but some warning messages
are rendered.
Also validators may change archive contents, e.g. when some entity can't be
imported it may be removed from the archive.
Validators' job is to take away complexity from the importer and perform the validations
which are not implemented in other parts of the system, e.g. DB validations or
diaspora_federation entity validations.
Archive importer then takes the modified archive from the validator and imports it.
In order to incapsulate high-level migration logic a MigrationService is
introduced. MigrationService links ArchiveValidator, ArchiveImporter and
AccountMigration.
Also here is introduced a rake task which may be used by podmins to run archive
import.
2019-04-26 18:41:27 +03:00
Benjamin Neff
e0a6189ec4
Merge branch 'next-minor' into develop
2019-03-30 15:05:47 +01:00
Benjamin Neff
c063f6fa1b
Bump devise
2019-03-30 15:01:00 +01:00
Benjamin Neff
707e358e48
Merge branch 'next-minor' into develop
2019-02-19 01:30:08 +01:00
Dennis Schubert
e47d0d9675
Replace dandelion.jpg with a public domain photo
...
Closes #7972
closes #7976
2019-02-19 01:29:52 +01:00
Dennis Schubert
97805e6602
Merge branch 'next-minor' into develop
2019-01-13 02:17:22 +01:00
Benjamin Neff
2894984f57
Fix order of posts on tags-stream for tags including 'activity'
...
closes #7959
2019-01-13 02:17:15 +01:00
Benjamin Neff
2b2852267a
Merge branch 'next-minor' into develop
2019-01-06 22:18:48 +01:00
flaburgan
3f700c3960
Fix photos galley when too many thumbnails by adding a scroll-x
...
fixes #7942
closes #7943
2019-01-06 22:12:38 +01:00
flaburgan
c8a1f308c6
Rename 'toggle mobile' to 'switch to touch-optimized mode' or 'switch to standard mode'
...
closes #7926
2019-01-06 22:04:22 +01:00
flaburgan
6804132c15
Do not autofollow back a user you are ignoring
...
fixes #7808
closes #7913
2019-01-06 22:02:10 +01:00
Hank Grabowski
58d2ce7ba6
Ignore Users in Mobile UI
...
fixes #7840
closes #7884
2019-01-06 21:55:33 +01:00
Hank Grabowski
ce01946eb0
Fixed new pronto warnings after develop branch sync
2018-12-30 17:04:35 -05:00
Hank Grabowski
e127502be5
API Branch Final Cleanup Before PR
2018-12-30 22:33:04 +01:00
Hank Grabowski
9c730fc0f3
OpenID Scopes and Security updates
2018-12-30 22:33:04 +01:00
Hank Grabowski
a53495c9aa
API Paging library and used in appropriate controllers with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
16bf5d8130
Add Poll Voting Method to Interactions Endpoint
2018-12-30 22:33:04 +01:00
Hank Grabowski
02cf6a9eb2
Photos API Endpoint and unit tests complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
7dba616e4e
Search API Endpoint and unit test complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
2f432eb560
Users Controller and unit tests complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
09c13fdf67
Notifications API Endpoint and unit test complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
803abba5c1
Interactions API endpoint complete with full tests
2018-12-30 22:33:04 +01:00
HankG
0f4789a5cb
Contacts API Feature complete with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
7ae36de2cf
Tags API Endpoint complete with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
db7fe69ce4
Aspects API Endpoint complete with full tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
173461ac3d
Reshares API Endpoint complete with full unit tests
2018-12-30 22:31:33 +01:00
HankG
4923338bcf
Conversations API Endpoint Feature complete with full tests
2018-12-30 22:31:33 +01:00
HankG
48b1428c57
Streams Controller API feature complete and fully tested
2018-12-30 22:31:33 +01:00
Hank Grabowski
bb2261b47d
Posts API Endpoint feature complete with full unit tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
f64a8e04ed
Comments API Endpoint complete with full unit tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
7ee9565a04
Likes API endpoint complete
2018-12-30 22:31:33 +01:00
Frank Rousseau
a56d998499
Fix code style
2018-12-30 22:31:33 +01:00
Frank Rousseau
5326ddf6c3
Adapt error formatting to documentation
2018-12-30 22:31:33 +01:00
Frank Rousseau
df11297654
Fix like deletion
2018-12-30 22:31:33 +01:00
Frank Rousseau
84ac19a090
Clean API routes
...
* Remove routes without matching controller
* Rename stream routes to match specifications
* Remove public stream route and related controller
2018-12-30 22:31:33 +01:00
Frank Rousseau
f8969ddfeb
Make Post API match specs
...
https://diaspora.github.io/api-documentation/routes/posts.html
2018-12-30 22:31:33 +01:00
Frank Rousseau
ec47fc67ab
Make the comment API match the API specs
2018-12-30 22:31:33 +01:00
Frank Rousseau
317b78394a
Improve API error management
...
* Fix active record not found case
* Display backtrace in error logs
2018-12-30 22:31:33 +01:00